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,
 
 Alex.
 

Hey Alex,

Your suggestion works great, even though it is a bit verbose and repetitive.

Thanks a lot!

Greets Rolf



--
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
___
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users


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
 ${empty(actionBean.context.validationErrors[YourInputName]) ? '' :
 'error'} 
 
  Which will add the 'error' class if any error occurs on YourInputName.
 
  Cheers,
 
  Alex.
 

 Hey Alex,

 Your suggestion works great, even though it is a bit verbose and
 repetitive.

 Thanks a lot!

 Greets Rolf




 --
 This SF email is sponsosred by:
 Try Windows Azure free for 90 days Click Here
 http://p.sf.net/sfu/sfd2d-msazure
 ___
 Stripes-users mailing list
 Stripes-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/stripes-users

--
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure___
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users