Tapestry 5
  1. Tapestry 5
  2. TAP5-1295

Simplify connecting a link or form to an (enclosing) Zone

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 5.2.2
    • Fix Version/s: 5.2.2
    • Component/s: tapestry-core
    • Labels:
      None

      Description

      Currently, when connecting a link to a zone, you bind the zone parameter of the link to the client-side id of the Zone.

      To do this, you must know the client-side id of the Zone.

      It would be nice if the zone value could be evaluated on the client and make use of the rendered DOM to simplify this.

      I thought the special string "^" could mean "the containing Zone", and could be located via the "t-zone" CSS class that Zones normally have.

      An extended form could be "^.foo" to find an enclosing element with CSS class foo and assume that is the zone (this would help when dealing with nested zones).

      The exact syntax is up for debate but the idea is that the connection could be made on the client-side without having to deal with the (relative) intricacies of either assigning a zone id explicitly, or reading the Zone's id.

        Activity

        Hide
        Howard M. Lewis Ship added a comment -

        For the first pass, just "^" is supported. We'll see if we need something higher powered.

        Show
        Howard M. Lewis Ship added a comment - For the first pass, just "^" is supported. We'll see if we need something higher powered.
        Hide
        Hudson added a comment -

        Integrated in tapestry-5.2-freestyle #214 (See https://hudson.apache.org/hudson/job/tapestry-5.2-freestyle/214/)
        TAP5-1295: Provide an easy way for a component to link to an enclosing Zone without explicitly knowing its id (resolved on the client side)

        Show
        Hudson added a comment - Integrated in tapestry-5.2-freestyle #214 (See https://hudson.apache.org/hudson/job/tapestry-5.2-freestyle/214/ ) TAP5-1295 : Provide an easy way for a component to link to an enclosing Zone without explicitly knowing its id (resolved on the client side)
        Hide
        Massimo Lusetti added a comment -

        This is cool!

        Show
        Massimo Lusetti added a comment - This is cool!

          People

          • Assignee:
            Howard M. Lewis Ship
            Reporter:
            Howard M. Lewis Ship
          • Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development