Hi!
I need to extend several struts-el fields based on errors but all my
validation messages are stored in global scope.
I've tried to get (in my tag-lib extension):
ActionMessages errors =
RequestUtils.getActionMessages(pageContext,this.property);
or
ActionMessages errors =
TagUtils.getInstance().getActionMessages(pageContext,this.property);
or
ActionMessages errors = (ActionMessages)
pageContext.getRequest().getAttribute(Globals.ERROR_KEY);
Iterator i = errors.get(this.property);
but all my errors (in any case) aren't bound to any property...
My typical validation is
<form name="/candidatobasicoman">
<field property="nome"
depends="required">
<arg0 key="label.nome"/>
</field>
<field property="cpf"
depends="required, cpf">
<arg0 key="label.cpf"/>
</field>
(...)
Any help?
Thanks in advance!
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]