-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I've been creating a generic Tab component, which uses a simple ActionLink for 
each tab, and a very simple listener interface.

e.g: a page can use the component, and have a listener called when a user 
selects a tab.  The component itself does not reside in a form.

Now, I'm wanting to use this within a form which uses validation - what I was 
is that if a user clicks the tab I can perform the validation and potentially 
veto the tab change.

The validation works fine. If I hit the submit button on the form (which wraps 
the tab, plus a number of block/renderblock's - one for each tab page) it 
will do the right thing (show errors) if there is bad data.

But because the tab links are ActionLinks, I can just move between the tabs 
without causing validation (or in fact, any POST at all - so any changes made 
on a tab page are lost).

I'm not sure how to make the tab links fire the same behavior as is done with 
a submit button. I figure this is me having a mental block - I squeezing my 
eyes shut really hard but it's still not clear to me :-)

Ideas?
Suggestions?

- -- 
Regards,
Neil Clayton

(PS: If you see strange text you don't understand underneath my email, don't 
worry - it's just my PGP signature)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE+FEXxLXcfQF3yrNoRAsrMAJ4/d5+wWKIGlHSImVgfMnsXAUgxeACgiCaw
Sn8EHD6FJxyY4M6uSKmOhTM=
=NoRl
-----END PGP SIGNATURE-----



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Tapestry-developer mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/tapestry-developer

Reply via email to