Ok,
try this

@VisitorFieldValidator(fieldName = "YOUR FIELD NAME", appendPrefix =
true, message = "YOUR MESSAGE")

Struts should use Field Name like a prefix for every invalid element
inside the annotated object.

2010/12/8 RogerV <roger.var...@googlemail.com>:
>
>
>
> Maurizio Cucchiara wrote:
>>
>> According with documentation appendPrefix "Determines whether the field
>> name
>> of this field validator should be prepended to the field name of the
>> visited
>> field to determine the full field name when an error occurs"
>> this link should be useful
>> http://struts.apache.org/2.0.14/docs/using-visitor-field-validator.html
>>
>> Maurizio Cucchiara
>>
>>
>
> I've read the documentation several times. I didn't understand that
> paragraph then, and I still don't
> understand what it means now :(
>
> Any pointers to an example?
>
> Regards
>
> --
> View this message in context: 
> http://old.nabble.com/%40VisitorFieldValidator-message-formatting-question.-tp30405050p30405827.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>



-- 
Maurizio Cucchiara

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

Reply via email to