tapestry-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kalle Korhonen <kalle.o.korho...@gmail.com>
Subject Re: Invoke method after page is loaded; when method finishes, redirect to another page
Date Fri, 04 Mar 2011 15:41:52 GMT
You don't need multiple pages for it, you can just do it all in one
page if you don't mind some ajax (no scripting needed).
ProgressiveDisplay is ideal for this
(http://tapestry.apache.org/current/tapestry-core/ref/org/apache/tapestry5/corelib/components/ProgressiveDisplay.html).

Kalle


On Fri, Mar 4, 2011 at 4:37 AM, LLTYK <LLTYK@mailinator.com> wrote:
> Use a meta refresh (it'll probably have to be in the  tag somehow). Or
> javascript, to hit the same url.
>
> @Inject
> private ComponentResources componentResources;
>
> @OnEvent("calculate")
> ResultPage calculate() { .... }
>
> public String getCalculateUrl()
> {
> return componentResources.createEventLink("calculate).toString();
> }
>
>
>
>
> --
> View this message in context: http://tapestry-users.832.n2.nabble.com/Invoke-method-after-page-is-loaded-when-method-finishes-redirect-to-another-page-tp6088155p6088324.html
> Sent from the Tapestry Users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Mime
View raw message