tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marcus Schulte (JIRA)" <...@tapestry.apache.org>
Subject [jira] Updated: (TAPESTRY-1895) Add possibiliti to generate stateless links Page and External links.
Date Wed, 10 Sep 2008 17:43:45 GMT

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

Marcus Schulte updated TAPESTRY-1895:

    Fix Version/s:     (was: 4.1.6)

> Add possibiliti to generate stateless links Page and External links.
> --------------------------------------------------------------------
>                 Key: TAPESTRY-1895
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-1895
>             Project: Tapestry
>          Issue Type: Improvement
>          Components: Core Components
>    Affects Versions: 4.1.3
>            Reporter: Alexander Gavrilov
>             Fix For: 4.1.7
> For now External and Page service always generated statefull links. 
> In my application i generate links to send to the users, and those links includes all
"client" persistent state of pages, and encodes session ID. This state ans session ID is not
required for users when they access page first time. 
> Whe can add parameter statfull to the ExternalServiceParameter class, and add new class
PageServiceParameter with page name and statefull attributes. In PageService we can check
what the type of passed parameter, and if it is PageService, use it if not use the default
behaviour. The defined "statefull" parameter whe can bypass to the _linkFactory.constructLink
> for ExternalService:
>     ExternalServiceParameter esp = (ExternalServiceParameter) parameter;
>     Map parameters = new HashMap();
>     parameters.put(ServiceConstants.PAGE, esp.getPageName());
>     parameters.put(ServiceConstants.PARAMETER, esp.getServiceParameters());
>     return _linkFactory.constructLink(this, post, parameters, esp.isStatefull());
> for PageService:
>     Map parameters = new HashMap();
>     final PageServiceParameter psp = parameter instanceof PageServiceParameter ? (PageServiceParameter)parameter
: null;
>     parameters.put(ServiceConstants.PAGE, psp != null ? psp.getPage() : parameter);
>     return _linkFactory.constructLink(this, post, parameters, psp != null ? psp.isStatefull()
: true);

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

View raw message