On Jun 1, 2005, at 9:52 PM, Patrick Casey wrote:
I have a component on my form:
<input type="text" jwcid="@TextField" value="ognl:object.login"
size="30"/>
How the heck do I make the component red? I can make it red on
the
page definition with:
<input type="text" jwcid="@TextField" value="ognl:object.login"
class="red" size="30"/>
But I can't seem to find a way for my java code to set the class
programmatically. Is there a way I can do this?
You could use ValidField instead, mark the field with a validation
error programatically, and then have it automatically styled with the
ValidationDelegate (or more likely a custom one).
Erik
p.s. I'm looking forward to Paul's improvements in the validation arena!
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]