This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes JSF and the fly likes Question about Validator's validate(...) signature Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Question about Validator Watch "Question about Validator New topic
Author

Question about Validator's validate(...) signature

Alberto Caraz
Greenhorn

Joined: Apr 27, 2007
Posts: 18
The validate method for the javax.faces.Validator class is



According to the specs, "value" represents the converted datum to be validated. However, if I understand it correctly, as part of the lifecycle, once request values have been processed and converted, the converted objects are stored inside the corresponding UIComponents and accesible via the getLocalValue() method. Why do we then require to receive the value as a parameter when we can get it from the UIComponent (given that we know it is a UIInput)?

That is, isn't "value" equal the component's associated localvalue?

Thank you very much
[ August 28, 2007: Message edited by: Alberto Caraz ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Question about Validator's validate(...) signature