You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Jesse Kuhnert (JIRA)" <de...@tapestry.apache.org> on 2008/01/29 22:16:34 UTC

[jira] Resolved: (TAPESTRY-1782) Call IExternalPage.activateExternalPage before IPage#validate

     [ https://issues.apache.org/jira/browse/TAPESTRY-1782?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jesse Kuhnert resolved TAPESTRY-1782.
-------------------------------------

    Resolution: Won't Fix
      Assignee: Jesse Kuhnert

I think that even your external page parameters should be available from your validate() method.   You can call cycle.getListenerParameters().   These are set before calling validate or activateExternalPage. 

Calling cycle.getListenerParameters() from within activate() would be no different than calling

IExternalPage.activateExternalPage(cycle.getListenerParameters(), cycle)



> Call IExternalPage.activateExternalPage before IPage#validate
> -------------------------------------------------------------
>
>                 Key: TAPESTRY-1782
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-1782
>             Project: Tapestry
>          Issue Type: Wish
>          Components: Framework
>    Affects Versions: 4.1.3
>            Reporter: Alexander Gavrilov
>            Assignee: Jesse Kuhnert
>            Priority: Critical
>
> We are required to check user right to access the page based on parameners, thats are commig from activateExternalPage. But because activateExternalPage invoked after validate we can't do that in the proposed validate() method. So, in the current implementation validate can be used for role-based security only (to check is user authenticated or not, or is user belong to some role or not), and this is very limited. What we do now, we introduce new interface IActivatePage with single method activate(), which are caller right after validate() for non external service invocations or after activateExternalPage for external service invocations. In this method we setting up page context properties, and invoking drools to check the current user right for initialized page object. Its wold be nice, to have IPage#validate invoked before IExternalPage.activateExternalPage, or to have aothe method like activate, that will be called in the services directly after the activateExternalPage for External service, or after validate() for another services.

-- 
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