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
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
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
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,
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
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
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
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
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
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-
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
11 matches
Mail list logo