[jboss-user] [JBoss Seam] - s:decorate how to use invalid on first page hit

mars1412 do-not-reply at jboss.com
Tue Nov 20 07:52:58 EST 2007


what I'd like to for input fields:
*  user opens page: show no image after the input field
  | *  invalid input: show a red sign
  | *  valid input: show a green sign
how would I do that?

details:
when using s:decorate you can use the vars invalid and required inside of the template
but how I can find out (in the template), if this is the very first time, that the page is being rendered?

more details:
when the page is rendered for the first time, invalid will be false for all input fields (which is strictly speaking not really correct for e.g. required fields)

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4106359#4106359

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4106359



More information about the jboss-user mailing list