Well, I tried it with doing setResponsePage(new MyOtherPage()) and URL
still looked like the link listener URL.  But, when I did
setResponsePage(MyOtherPage.class), the URL changed to whatever I
mounted it to.  I assumed that meant that the redirect wasn't
happening.  I could be wrong.


On Fri, Mar 28, 2008 at 7:47 PM, Johan Compagner <[EMAIL PROTECTED]> wrote:
> what do you mean redirect does't work?
>  90% of the time if you do setResponsePage(new Page())
>  a redirect is done anyway. (for example if you do that in onSubmit)
>  To go around for example the double post problem if you go back in history
>  or refresh the page.
>
>  johan
>
>  On Sat, Mar 29, 2008 at 12:15 AM, James Carman <[EMAIL PROTECTED]>
>
>
> wrote:
>
>  > Oh, and redirect doesn't work with the Page version (at least in my
>  > tests it didn't).
>  >
>  > On Fri, Mar 28, 2008 at 7:13 PM, James Carman
>  > <[EMAIL PROTECTED]> wrote:
>  > > If you need to initialize the page instance in some way (by passing
>  > >  constructor params, for instance), you use the Page version.  The
>  > >  other version just uses Class.newInstance() to instantiate the page
>  > >  object.
>  > >
>  > >
>  > >
>  > >  On Fri, Mar 28, 2008 at 6:44 PM, Timm Helbig <
>  > [EMAIL PROTECTED]> wrote:
>  > >  > Hi,
>  > >  >
>  > >  >  I have read several times in the mailing list, that it is bad to use
>  > >  >  setRespsonsePage(Page p). What is the backdraw compared to
>  > >  >  setResponsePage(Class c) ?
>  > >  >
>  > >  >  In my case a Form Submit redirects to another Page, that needs some
>  > initial
>  > >  >  data given through the Constructor, e.g. MyPage(MyInitialData data)
>  > {} .
>  > >  >
>  > >  >  Regards,
>  > >  >  Timm
>  > >  >
>  > >  >
>  >  ---------------------------------------------------------------------
>  > >  >  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]
>  >
>  >
>

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

Reply via email to