You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Steve Wu <st...@FXALL.com> on 2004/06/28 18:03:39 UTC

updating form values without submitting form

hello, 

i'm rather new to tapestry, but so far have been able to find my way in doing most
things. i've run into a bit of a roadblock here...

i have a page which has two select components, and i have two ActionLinks to
move items from list1 to list2 and vice versa. however, the listeners that the 
ActionLinks call are unable to see which options were selected. i have a feeling
it's because the listener was not invoked by the form's submission and thus the 
components' internal values have not had a chance to update themselves. 

i can get around this by submitting the form first, and then calling one of the two
listeners to move items from list to list, but since i have two such listeners, the
form submission listener does not know which listener to call when i submit my form.

i would like users to be able to just hit one of the buttons and have the lists 
update their options because needing to submit the form first and then have the user
click the button to perform the desired action would be very counter intuitive. 

is there any way i can get the two listeners that move options from list to list to
update the selected values for each Option in the Select component without submitting
the form first?

thanks for any help,
steven wu

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