Hi,

I will try the PageRedirect suggested by Andy, but to answer your answer as I am eager to learn:
The sceanrio is the following: enter an offer, confirm an offer and then go the offer overview page.


I enter the dosthg method when the user clicks on the Post submit button of the offer confirmation page:
<input jwcid="@Submit" value="Post" type="submit" listener="ognl:listeners.onSubmitOffer" class="buttons"/>
Then the code activates the offer overview page as previously written:
class OfferConfirmation {
...
onSubmitOffer(IRequestCycle cycle) {
OwnOffer page = (OwnOffer) cycle.getPage("OwnOffer ");
cycle.activate(page);
}
}
When clicking on the reload browser button and being on the OwnOffer page, the onSubmitOffer method is invoked again.


Thanks.
DvJ
From: Albert Kwong <[EMAIL PROTECTED]>
Reply-To: "Tapestry users" <[email protected]>
To: Tapestry users <[email protected]>
Subject: Re: Reload button causes wierd behavior
Date: Fri, 29 Apr 2005 15:58:31 +0800 (CST)

When you were in PageA, how did you trigger
onDoSthg()?

Albert

--- david joffrin <[EMAIL PROTECTED]> ���g:
> Hi,
>
> No, my URL does not indicate anything like direct
> link, this is a straight
> www.mydomain.com/foo/bar.
>
> Just to test, how can I programmaticly have a
> redirect rather than an
> activation.
>
> Thanks.
> DvJ
>
> >From: Paul Ferraro <[EMAIL PROTECTED]>
> >Reply-To: "Tapestry users"
> <[email protected]>
> >To: Tapestry users
> <[email protected]>
> >Subject: Re: Reload button causes wierd behavior
> >Date: Thu, 28 Apr 2005 16:26:52 -0700
> >
> >Your url probably indicates a direct link (or
> similar) that triggers the
> >onDoSthg listener of PageA, no?  If you find this
> behavior undesirable,
> >then you should redirect to PageB instead of simply
> activating it.
> >
> >Paul
> >
> >david joffrin wrote:
> >
> >>Hi,
> >>
> >>I have just realized something today on my code,
> really wierd... I think
> >>this is due to the RequestCycle object, but, I
> would need some
> >>clarification in order to fix it the right way.
> >>So, the scenario is as follow:
> >>
> >>class PageA {
> >>...
> >>onDoSthg(IRequestCycle cycle) {
> >>            PageB page = (PageB)
> cycle.getPage("PageB");
> >>            cycle.activate(page);
> >>}
> >>}
> >>
> >>After page B is rendered, I click the button
> RELOAD... then A.onDoSthg is
> >>being re-executed.... Why that?
> >>
> >>Thanks.
> >>DvJ
> >>
> >>
> >>
>



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



Reply via email to