Re: validation checkboxlist

2018-01-08 Thread Lukasz Lenart
2018-01-08 20:04 GMT+01:00 José Antonio Delgado Trujillo :
> 

Re: BeanValidation-Plugin

2018-01-08 Thread Johannes Geppert
Hi,

If you already found a solution for this issue it would be create if you
maybe can create a Issue and a PR so we can integrate it in the Struts code
base.
http://struts.apache.org/submitting-patches.html

Best Regards

Johannes

#
web: http://www.jgeppert.com
twitter: http://twitter.com/jogep


2018-01-08 21:11 GMT+01:00 Hedju Hor :

> Hi, i'm using a action with ModelDriven and multiple action methods.
>
> For Validation the Model i'm using the 'Bean Validation Plugin' but the
> current Version does not support 'Grouping Constraints' described in
> https://docs.jboss.org/hibernate/validator/5.1/
> reference/en-US/html/chapter-groups.html
>
> Is there already a Solution for that or i have to write my own
> BeanValidationInterceptor?
> (btw already done ist)
>
>
> Regards
>
> Hedju Hor
>
>
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>


BeanValidation-Plugin

2018-01-08 Thread Hedju Hor
Hi, i'm using a action with ModelDriven and multiple action methods.

For Validation the Model i'm using the 'Bean Validation Plugin' but the current 
Version does not support 'Grouping Constraints' described in 
https://docs.jboss.org/hibernate/validator/5.1/reference/en-US/html/chapter-groups.html

Is there already a Solution for that or i have to write my own 
BeanValidationInterceptor? 
(btw already done ist)


Regards

Hedju Hor



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



Re: validation checkboxlist

2018-01-08 Thread José Antonio Delgado Trujillo
Thanks a lot Lukasz,

I had the same like the example except the expression of the validation.
I misunderstood the param-name=“expression” - It was the expression to 
evaluate!!! (i was thinking about the expression to fail the validation) 


>> 

Re: Annotation validation setter level

2018-01-08 Thread José Antonio Delgado Trujillo
Thanks a lot for the link and the explanation.
Un saludo,
José A.

> On 6 Jan 2018, at 10:37, Hedju Hor  wrote:
> 
> Hi, use  @VisitorFieldValidator
> 1. in Action-Class annotad gettter Method of the model with 
> @VisitorFieldValidator
> 2. @EmailValidator on getter in Model Person.getEmail
> 
> see 
> https://depressedprogrammer.wordpress.com/2007/05/10/struts-2-validation-using-annotations/
> 
> Regards
> Hedju Hor
> 
> On 2018-01-05 19:50, José Antonio Delgado Trujillo  
> wrote: 
>> Annotations validations an alternative way of XML validation or the simplest 
>> way to implement the validate method.
>> 
>> Yo have two options:
>> At method level 
>> At setter level
>> 
>> In the second if you don’t have the setter in the Action class because it 
>> is a property of an object, where do i put the annotation. I think it would 
>> be in the model class but it doesn’t work.
>> 
>> I explain better with a example.
>> Person class have email property and the action class has a field of 
>> Person’s type. So the setter method is for Person not for email. If i want 
>> to use @EmailValidator in a setter level where does it put the annotation?
>> 
>> 
>> Un saludo,
>> José A.
>> 
>> 
> 
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
> 



Re: About error-code 404 is called for each struts action class

2018-01-08 Thread Emi




On 1/6/2018 12:04 AM, Emi wrote:

404.jsp is called by web.xml when going from one page to another.

Maybe other requests like a missing favicon, css or javascript causes this.

Yes.

In one one css file, the following cods caused 404 error.

body {
font: 0.7em/1.5em "Trebuchet MS",Verdana,sans-serif;
background: white 
url('images/ui-bg_fine-grain_65_654b24_60x60.png') repeat;

}

Thanks a lot.