Uploaded image for project: 'Tapestry'
  1. Tapestry
  2. TAPESTRY-1999

Allow the context for an event to be specified as a List as well as an Object array

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 5.0.7
    • 5.0.11
    • tapestry-core
    • None
    • JBoss 4.2.2

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

      Attachments

        Activity

          People

            hlship Howard Lewis Ship
            landaisg Landais Gabriel
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: