• Post Reply Bookmark Topic Watch Topic
  • New Topic

Required attribute code

 
Gina vernon
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am interesting in looking at the source code for implementing required attribute on a component like inputtext, etc. Can anyone point me to the it? I tried searching but did not find much, maybe I am using the wrong search words.... I have looked at UIComponenttag and UIComponenteltag, but they dont actually show how the required functionality is processed.

Thanks.
 
Tim Holloway
Bartender
Posts: 18412
58
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is a validator functionality inherited from UIInput. It references the "required" property of the component, which in JSF 2 is a member of the propertykeys object rather than an actual field.

Here's how it gets applied:
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!