I am learning JSF and starting to write a custom component in JSF 1.2. Can someone please shed light on how JSF 'required' attribute works under the hood? I looked at the html generated and it doesnot show anything with required.
I am writing a JSF component with multiple input texts but only some of them will be required ( eg. writing 2 input text Zipcode component where the last input text is ALWAYS optional whereas the first input text is to be controlled by required attribute defined in xhtml.
How do I handle such selective 'required' behavior?