tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nick Westgate (JIRA)" <...@tapestry.apache.org>
Subject [jira] Commented: (TAPESTRY-1730) Order of event handler method invocation should be greatest number of parameters to fewest
Date Sun, 02 Sep 2007 17:17:19 GMT

    [ https://issues.apache.org/jira/browse/TAPESTRY-1730?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12524374
] 

Nick Westgate commented on TAPESTRY-1730:
-----------------------------------------

This covers the same issue as TAPESTRY-1695.

Cheers,
Nick.

> Order of event handler method invocation should be greatest number of parameters to fewest
> ------------------------------------------------------------------------------------------
>
>                 Key: TAPESTRY-1730
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-1730
>             Project: Tapestry
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.0.5
>            Reporter: Howard M. Lewis Ship
>
> Say you are writing an activate event handler, meant to guard the page against access
without a provided token.
> void onActivate(String token) {
>   // validate the token
> }
> Object onPassivate() { return _token; }
> Great ... but what about the case where the user omits the token? 
> Object onActivate() {
>   return _invalidAuthorizationPage; // Redirect away
> }
> But with the current setup, this gets invoked BEFORE onActivate(String) so there's no
hope of actually using the page, even with the security token.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


Mime
View raw message