Theres no way of picking up what was rendered in your view in the
validation config.

If you're "hard coding" your label values rather than putting them in
the message resources though, you can do the same in your
validation.xml - using the resource="false" attribute.

 <arg key="User" position="0" resource="false"/>

... or even the whole error message.

Niall

On 8/22/06, Jean-Marie Pitre <[EMAIL PROTECTED]> wrote:

Hi,

I am using Validator 1.3, I would like to know if I can pass argument
value issued from html element?

I explain me:

I have an html form :

...
<font id="labeluser" class="test">User</font>
<html:text property="userid"/>
...

My validation looks like this:

<form name="Identification">
<field property="uti_userid" depends="required">
<arg key="user.label" position="0"/>
</field>

Do you know if there a mean to display the labeluser (font id) instead
of putting value in a resource bundle?

Thanks,

Regards,
Jean-Marie.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to