Details
-
Type:
Sub-task
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.9.3
-
Fix Version/s: 2.0-M3
-
Component/s: Web - Tapestry
-
Labels:None
Description
FileUpload.java:
Listener methods are improved in Tapestry 4. IRequestCycle is no longer necessary (it is optional). The return type can be void, String, IPage or ILink.Thus:
public String cancel()
{ log.debug(...); return "mainMenu"; }You can use the @InjectPage (<inject type="page">) annotation to gain access to another page within the app.
The goal here is to reduce or eliminate the IRequestCycle from page and component code, or at least, from listener methods.