That's just what I don't want to do. My forms live as private classes on a panel (one form per one style of panel). I don't want to have to introduce n new panels to handle the case where I wan to do the redirect. I was hoping I could do it in one place (kind of like an aop after advice :). ___________ Robert Moskal Most Media Brooklyn, USA 347-529-4744
On Tue, Dec 8, 2009 at 12:09 PM, Alex Rass <[email protected]> wrote: > So: always override onSumbit for the buttons and *sometimes* redirect. > Tis all. > > - Alex > > -----Original Message----- > From: Robert Moskal [mailto:[email protected]] > Sent: Tuesday, December 08, 2009 12:05 PM > To: [email protected] > Subject: Redirect after for submit, but not what you think > > Hi all: > > I'd like to be able to redirect after I submit a form, basically I want my > app to navigate to the next question in a survey after a user responds. > But > I don't want to do this in the onClick method of the form buttons, because > I > only want to do this sometimes. In other words sometimes I want to deploy > an application where I do the auto-navigation and sometimes I want the user > to stay on the same page after submitting. > > The ideal place seems to be on the page level. but it seems you can't call > setResponsePage in the onDetach method. Where in request life-cycle would > be the place to do this sort of redirect? > > Thanks and regards, > ___________ > Robert Moskal > Most Media > Brooklyn, USA > 347-529-4744 > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
