Re: [Stripes-users] Stripes, Twitter bootstrap validation errors

2012-03-26 Thread Rolf
alexis BOISSONNAT alexis.boissonnat@... writes: Hi Rolf, You can try something like that :  div class=control-group ${empty(actionBean.context.validationErrors[YourInputName]) ? '' : 'error'} Which will add the 'error' class if any error occurs on YourInputName. Cheers,

Re: [Stripes-users] Stripes, Twitter bootstrap validation errors

2012-03-26 Thread VANKEISBELCK Remi
Hi Rolf, You can easily wrap this into a custom JSP tag if you want to stay DRY... Cheers Remi 2012/3/26 Rolf r.su...@minihouse.eu alexis BOISSONNAT alexis.boissonnat@... writes: Hi Rolf, You can try something like that : div class=control-group

[Stripes-users] Stripes, Twitter bootstrap validation errors

2012-03-23 Thread Rolf
Hi all, I am experimenting a bit using Stripes with Twitter's Bootstrap. While it plays nicely most of the time, i am having trouble signalling form validation errors back to the form. Bootstrap wants me to add the error class to the surrounding .control-group

Re: [Stripes-users] Stripes, Twitter bootstrap validation errors

2012-03-23 Thread alexis BOISSONNAT
Hi Rolf, You can try something like that : div class=control-group ${empty(actionBean.context.validationErrors[YourInputName]) ? '' : 'error'} Which will add the 'error' class if any error occurs on YourInputName. Cheers, Alex. On Fri, Mar 23, 2012 at 12:19 PM, Rolf r.su...@minihouse.eu