File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSF and the fly likes retrieve UIComponent value in custom validator with EL expressions Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » JSF
Reply Bookmark "retrieve UIComponent value in custom validator with EL expressions" Watch "retrieve UIComponent value in custom validator with EL expressions" New topic
Author

retrieve UIComponent value in custom validator with EL expressions

Exxo exxo
Greenhorn

Joined: Aug 19, 2008
Posts: 1
Hello,

I'm trying to retrieve the value of a HTMLOutPutLable component in my Custom validator. The value is an EL-Expression (using a Message.property-File). As long as I write a "normal" value for the value Attribute in the OutPutLable-Tag everything works fine, but with an EL-Expression the getValue()-Method always returns null.

Here are the important parts of my code:

jsp:


Validator-Class:


Any assistance would be appreciated. I heard of the ability to use the FacesContext.getCurrentInstance().getELContext() method, but i don't know how to use it correctly. Can anyone give an example code on this ?

Thanks, regards,

Exxo

[ August 19, 2008: Message edited by: Exxo exxo ]
[ August 19, 2008: Message edited by: Exxo exxo ]
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: retrieve UIComponent value in custom validator with EL expressions
 
Similar Threads
Problem jsf cutom validation -- validate method dont call
Custom validator not validating
validator not invoke
display error message
How to use validation with example need