Re: @VisitorFieldValidator message formatting question.

2010-12-10 Thread Maurizio Cucchiara
Forget what I told you about fieldName, try simply to change value of messge inside visitor annotation. Setting append prefix to true tells struts to prepend message to error fileds. Maurizio Cucchiara Il giorno 10/dic/2010 16.02, "RogerV" ha scritto: > > > Maurizio Cucchiara wrote: >> >> At fir

Re: @VisitorFieldValidator message formatting question.

2010-12-10 Thread RogerV
Maurizio Cucchiara wrote: > > At first glance everything would seems correctly configured (except > for that unnecessary RequiredFieldValidator). > Did you try it in a more recent version (like 2.2.1)? > Hi Maurizo, I've upgraded to 2.2.1 and the behaviour has changed slightly, but still does

Re: @VisitorFieldValidator message formatting question.

2010-12-09 Thread Maurizio Cucchiara
At first glance everything would seems correctly configured (except for that unnecessary RequiredFieldValidator). Did you try it in a more recent version (like 2.2.1)? 2010/12/9 RogerV : > > > Maurizio Cucchiara wrote: >> >> Sorry, >> I meant annotated *classes* >> > > Sure, BaseAction - all othe

Re: @VisitorFieldValidator message formatting question.

2010-12-09 Thread RogerV
Maurizio Cucchiara wrote: > > Sorry, > I meant annotated *classes* > Sure, BaseAction - all other actions extend this; @ParentPackage(value = "admin") @Result(name="start",location="add-new-user-flow.jsp") public class AddNewUserFlow extends ActionSupport implements SessionAware, Preparable,

Re: @VisitorFieldValidator message formatting question.

2010-12-09 Thread Maurizio Cucchiara
Sorry, I meant annotated *classes* 2010/12/9 Maurizio Cucchiara : > My guess is that there is something wrong in your configuration. > Could you post your annotated class? > > 2010/12/9 RogerV : >> >> >> >> Maurizio Cucchiara wrote: >>> >>> Ok, >>> try this >>> >>> @VisitorFieldValidator(fieldName

Re: @VisitorFieldValidator message formatting question.

2010-12-09 Thread Maurizio Cucchiara
My guess is that there is something wrong in your configuration. Could you post your annotated class? 2010/12/9 RogerV : > > > > Maurizio Cucchiara wrote: >> >> Ok, >> try this >> >> @VisitorFieldValidator(fieldName = "YOUR FIELD NAME", appendPrefix = >> true, message = "YOUR MESSAGE") >> >> Strut

Re: @VisitorFieldValidator message formatting question.

2010-12-09 Thread RogerV
Maurizio Cucchiara wrote: > > 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. > This doesn't work as I would expe

Re: @VisitorFieldValidator message formatting question.

2010-12-08 Thread Maurizio Cucchiara
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 : > > > > Maurizio Cucchiara wrote: >> >> According with documentat

Re: @VisitorFieldValidator message formatting question.

2010-12-08 Thread RogerV
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://stru

Re: @VisitorFieldValidator message formatting question.

2010-12-08 Thread Maurizio Cucchiara
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-

@VisitorFieldValidator message formatting question.

2010-12-08 Thread RogerV
I'm trying to use the VistorFieldValidator via annotation. The validator is being called ok, but using @VisitorFieldValidator() all the error messages are prefixed with the word "null". If I use @VisitorFieldValidator(appendPrefix=false) then I don't get any error messages at all. Why am I gettin