You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Landais Gabriel (JIRA)" <de...@tapestry.apache.org> on 2007/12/27 18:56:43 UTC

[jira] Created: (TAPESTRY-1999) Actionlink context type coercion

Actionlink context type coercion
--------------------------------

                 Key: TAPESTRY-1999
                 URL: https://issues.apache.org/jira/browse/TAPESTRY-1999
             Project: Tapestry
          Issue Type: Bug
          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


[jira] Updated: (TAPESTRY-1999) Allow the context for an event to be specified as a List as well as an Object array

Posted by "Howard M. Lewis Ship (JIRA)" <de...@tapestry.apache.org>.
     [ https://issues.apache.org/jira/browse/TAPESTRY-1999?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Howard M. Lewis Ship updated TAPESTRY-1999:
-------------------------------------------

    Summary: Allow the context for an event to be specified as a List as well as an Object array  (was: Actionlink context type coercion)

> Allow the context for an event to be specified as a List as well as an Object array
> -----------------------------------------------------------------------------------
>
>                 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 List 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


[jira] Assigned: (TAPESTRY-1999) Allow the context for an event to be specified as a List as well as an Object array

Posted by "Howard M. Lewis Ship (JIRA)" <de...@tapestry.apache.org>.
     [ https://issues.apache.org/jira/browse/TAPESTRY-1999?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Howard M. Lewis Ship reassigned TAPESTRY-1999:
----------------------------------------------

    Assignee: Howard M. Lewis Ship

> Allow the context for an event to be specified as a List as well as an Object array
> -----------------------------------------------------------------------------------
>
>                 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
>            Assignee: Howard M. Lewis Ship
>
> 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 List 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


[jira] Updated: (TAPESTRY-1999) Actionlink context type coercion

Posted by "Landais Gabriel (JIRA)" <de...@tapestry.apache.org>.
     [ https://issues.apache.org/jira/browse/TAPESTRY-1999?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Landais Gabriel updated TAPESTRY-1999:
--------------------------------------

    Description: 
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 List 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]"

  was:
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]"


Wrong return type of getDetailContext() (was String)

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


[jira] Closed: (TAPESTRY-1999) Allow the context for an event to be specified as a List as well as an Object array

Posted by "Howard M. Lewis Ship (JIRA)" <de...@tapestry.apache.org>.
     [ https://issues.apache.org/jira/browse/TAPESTRY-1999?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Howard M. Lewis Ship closed TAPESTRY-1999.
------------------------------------------

       Resolution: Fixed
    Fix Version/s: 5.0.11

> Allow the context for an event to be specified as a List as well as an Object array
> -----------------------------------------------------------------------------------
>
>                 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
>            Assignee: Howard M. Lewis Ship
>             Fix For: 5.0.11
>
>
> 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 List 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


[jira] Updated: (TAPESTRY-1999) Actionlink context type coercion

Posted by "Howard M. Lewis Ship (JIRA)" <de...@tapestry.apache.org>.
     [ 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