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
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]