You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Shing Hing Man <ma...@yahoo.com> on 2008/03/22 16:13:34 UTC

Tap 5.0.11 : FormFragment with server side validation

I have the following simple FormFragment which is
inside a form component with server side validation.
        <t:label for="name"/>
	<t:textfield t:id="name"  validate="required" />
<br/>
          
        <t:checkbox t:id="married"
t:mixins="triggerfragment" fragment="spouseNameFF"/>
        <t:label for="married">Married ?</t:label>
	

	<t:formfragment t:id="spouseNameFF" visible="married"
hide="fade">		
		<t:label for="spouseName"/>
		<t:textfield t:id="spouseName" validate="required"/>
<br/>
		
	</t:formfragment>  


There are two problems.

1) Checked married, both name and spouseName are
blank. After the form is submitted, name is marked in
error. But the spouseName is not visible.
2) Checked married, both name and spouseName are
entered. After the form is submitted, spouseName is
null.

Note that the above two problems disappear with client
side validation.


An online demo and the demo source code is available 
at
http://lombok.demon.co.uk/tapestry5Demo/test/core/formfragmentdemoone


It would be very much appreciated if someone could
point out what I have done wrong.

Thanks!
Shing

Home page : http://www.lombok.demon.co.uk/



      __________________________________________________________
Sent from Yahoo! Mail.
More Ways to Keep in Touch. http://uk.docs.yahoo.com/nowyoucan.html

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org