I have a form that captures information about a user.  Within the form are 
some basic TextField components and 2 PropertySelection components (one to 
select country and one to select state).  I also have 2 submit components 
(save and cancel) which have corresponding listener methods on the Page. I 
want to add functionality such that when the user selects a new country 
the state PropertySelection component is updated with corresponding 
states.  I can add the submitOnChange attribute to the country 
PropertySelection, but how do I hook this up to a method on the Page? 
Currently, I have no listener on the Form itself.  The 2 listeners (save 
and cancel) are on their respective Submit components.  I really don't 
want to put a listener on the form and then have to determine if cancel, 
save, or change country happened.  Any ideas?

On a side note, I have cancel as a submit component.  The listener does 
nothing but return the IPage to go back to.  There must be an easier way 
to make the equivalent of a PageLink show up as a button. 

Thanks,
Ryan

Reply via email to