I know I can make a field required like this:
<t:textfield value="myTextField" validate="required"/>

But how can I make it programmatically determine whether or not the field is 
required?

I have tried:

<t:textfield value="myTextField" validate="${validationText}"/>

public String getValidationText() {
   if (fieldRequired) { return "required" }
   else { return ""}


But that doesn't seem to work.  Tapestry says it can't coerce a string into a 
Validator.

Am I overlooking something simple or is there a better approach to accomplish 
this?

Jack


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to