I want to set an af:inputText component as required. I set required and showRequired fields as true, but it just put red star(*) near the field. When I click my next page button, it passes to the next page without forcing me to enter a value for the required field.
1- Is there a built in method to force the user to enter the value?
2- What is the difference between required and showRequired attributes?
Edited by: user11079681 on Nov 14, 2012 7:26 AM
Edited by: user11079681 on Nov 14, 2012 7:27 AM
Hi and welcome,
showrequired only is a display indication the validation is executed/controlled for required property
try with required=true
you want to set the "required" attribute to true. Regarding the question about the difference, please read the component documentation
Are both required and showRequired set to true? Both will need to be set to true. If both are set and you are still seeing it not getting enforced, please file a SR as it may be a product defect.