This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Using ValueExpression's in a validator tag  RSS feed

 
Rob Micah
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a component on which I need 2 validations performed. I want to execute the required validator, based on a ValueExpression, and a custom validator I've written. The problem I'm running into is that the jsf validator tags have a disabled property and although the documentation states they accept a ValueExpression, they do not. So this led me to attempt adding an attribute to my own validator that would accept a ValueExpression. Unfortunately I am not having any luck. Here's my taglib.xml

So my questions are:
1. Is it possible to create a ValueExpression attribute on a custom validator tag? and
2. What do the validator property-handling methods look like?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!