Hi Andy,
Form has a zone parameter, if you bind it the zone will be updated when
the form has been submitted.
Just make sure to check Request#isXHR to see if it's actually an
Ajaz-request before you return a block/component or Tapestry will bark.
The solution, then, is to just do a normal return like you would from a
non-Ajax event handler.
http://tapestry.apache.org/tapestry5/tapestry-core/ref/org/apache/tapestry/corelib/components/Form.html
has the lowdown on events emitted by Form, it's at the bottom of the page.
-Filip
Blower, Andy skrev:
Is it possible to update a zone as a result of a form submission, rather than
having the entire page refresh?
I have a form with a select box and submit button to change the sorting of a
list of search results, and when I return a zone from the event handler method
onSubmit() the entire page is refreshed rather than just the zone. The zone
updates correctly from other actionlinks on the page and their onAction() event
handler. Is the answer to get the form to fire action events somehow?
I admit that I'm still a little confused still by events, is there a complete
list of the event types and their uses/behaviour somewhere that I've missed?
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]