You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Howard M. Lewis Ship (JIRA)" <de...@tapestry.apache.org> on 2008/01/02 20:45:34 UTC
[jira] Updated: (TAPESTRY-1999) Actionlink context type coercion
[ https://issues.apache.org/jira/browse/TAPESTRY-1999?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Howard M. Lewis Ship updated TAPESTRY-1999:
-------------------------------------------
Issue Type: Improvement (was: Bug)
> Actionlink context type coercion
> --------------------------------
>
> Key: TAPESTRY-1999
> URL: https://issues.apache.org/jira/browse/TAPESTRY-1999
> Project: Tapestry
> Issue Type: Improvement
> Components: tapestry-core
> Affects Versions: 5.0.7
> Environment: JBoss 4.2.2
> Reporter: Landais Gabriel
>
> We wish to have a list as a context for an actionlink :
> .tml :
> <t:actionlink t:id="detail" context="${detailContext}">Detail</t:actionlink>
> .java :
> public String getDetailContext() {
> List context = new ArrayList();
> context.add(instance.getId1());
> context.add(instance.getId2());
> return context;
> }
>
> public Object onActionFromDetail(List context) {
> String id1 = context.get(0);
> String id2 = context.get(1);
> pageDetail.setup(id1, id2);
> return pageDetail;
> }
> BUT
> context parameter in onActionFromDetail contains just one String that looks like "[4, 5]"
--
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