Re: Updating a zone as a result of a form submission

2008-05-22 Thread Josh Canfield
his out. > >> -Original Message- >> From: Filip S. Adamsen [mailto:[EMAIL PROTECTED] >> Sent: 22 May 2008 10:52 >> To: Tapestry users >> Subject: Re: Updating a zone as a result of a form submission >> >> Hi Andy, >> >> Form has a zone

Re: Updating a zone as a result of a form submission

2008-05-22 Thread Filip S. Adamsen
ound to the select box. return lor; } Object onAction(String st) { results.resort(st); return lor; } The form submit does the resort, but refreshes the entire page. I just can't figure this out. -----Original Message----- From: Filip S.

RE: Updating a zone as a result of a form submission

2008-05-22 Thread Blower, Andy
Message- > From: Filip S. Adamsen [mailto:[EMAIL PROTECTED] > Sent: 22 May 2008 12:30 > To: Tapestry users > Subject: Re: Updating a zone as a result of a form submission > > How is your zone defined? > > Also, check if the form is really submitted using an XMLHttpRequest.

Re: Updating a zone as a result of a form submission

2008-05-22 Thread Filip S. Adamsen
figure this out. -Original Message- From: Filip S. Adamsen [mailto:[EMAIL PROTECTED] Sent: 22 May 2008 10:52 To: Tapestry users Subject: Re: Updating a zone as a result of a form submission Hi Andy, Form has a zone parameter, if you bind it the zone will be updated when the form has been submitted.

RE: Updating a zone as a result of a form submission

2008-05-22 Thread Blower, Andy
s the resort, but refreshes the entire page. I just can't figure this out. > -Original Message- > From: Filip S. Adamsen [mailto:[EMAIL PROTECTED] > Sent: 22 May 2008 10:52 > To: Tapestry users > Subject: Re: Updating a zone as a result of a form submission > &g

Re: Updating a zone as a result of a form submission

2008-05-22 Thread Filip S. Adamsen
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 re

Updating a zone as a result of a form submission

2008-05-22 Thread Blower, Andy
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