Hi Ryan.

AFAIK you'll have to put a listener on the form (or modify the component
somehow to take a listener).You can still keep your other listeners,
but my preference is to use the tag and selected parameters to differentiate
submits and handle everything in the one (form) listener.

The submitOnChange option uses javascript though.

Cheers,
Nick.


Ryan Wynn wrote:
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

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to