Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

retrieve UIComponent value in custom validator with EL expressions

 
Exxo exxo
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic