tapestry-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gillespie59 <emmanuel.de...@atosorigin.com>
Subject Re: Invoke method after page is loaded; when method finishes, redirect to another page
Date Fri, 04 Mar 2011 12:16:06 GMT
If I understand your question

yourFirstPage.java

@Inject
private myCalculatePage mySecondPage;

void onClickFromMyButton(){
  //Call a method to set all the parameters needed for the next page
  mySecondPage.setParam(...);
  return mySecondPage;
}

yourCalculatePage.java
@Inject
private myResultPage myThirdPage;

void onActivate(){
  //Calculation system ...

  myThirdPage.setResult("The Result String");
  result myThirdPage;
  
}

myResultPage .java

@Property
@Persist
private String result;

And you can display the result in your tml file with ${result}.

Emmanuel




--
View this message in context: http://tapestry.1045711.n5.nabble.com/Invoke-method-after-page-is-loaded-when-method-finishes-redirect-to-another-page-tp3409329p3409377.html
Sent from the Tapestry - User 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


Mime
View raw message