I have a radioGroup with a dynamic set of choices, and no default value, so nothing is selected when the page is first loaded (or refreshed).
I am trying to set up validation to force the user to select a value. The validation catches when no choice is made, but, it only ever shows the default ‘Validation Error: Value is required’ error message. I can’t display a custom error.
Here’s an excerpt of the code:
<xp:radioGroup id=“Category” value=“#{MyBulletin.Category}” layout=“pageDirection”>
<xp:validateRequired message=“Please enter a category!”>
</xp:validateRequired>
</xp:this.validators>
<xp:selectItems id=“selectItems5”>
</xp:this.value>
</xp:selectItems>
</xp:radioGroup>
My other custom error messages (for regular text fields) work fine.
Thanks,
Karl