Tapestry
  1. Tapestry
  2. TAPESTRY-263

Add an element parameter to the Insert component

    Details

    • Type: Wish Wish
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: unspecified
    • Fix Version/s: 4.1.1
    • Component/s: Framework
    • Labels:
      None

      Description

      It would be nice if the Insert component had a parameter to specify an HTML tag for wrapping the output.

      Examples:

      <span jwcid="@Insert" value="test" element="strong">
      would render: <strong>test</strong>

      <span jwcid="@Insert" value="test" element="strong" class="test">
      would render: <strong class="test">test</strong>

      <span jwcid="@Insert" value="ognl:null" element="strong" class="test">
      would render nothing

      <span jwcid="@Insert" value="test">
      would render: test

      1. insert.patch
        2 kB
        Markus Wiederkehr

        Activity

        Hide
        Jesse Kuhnert added a comment -

        It now includes a "renderTag" parameter that is either true or false. If true it will render whatever tag you specify when referencing the component.

        Show
        Jesse Kuhnert added a comment - It now includes a "renderTag" parameter that is either true or false. If true it will render whatever tag you specify when referencing the component.
        Hide
        Markus Wiederkehr added a comment -

        Here's a patch for Tapestry 3.0.1

        Show
        Markus Wiederkehr added a comment - Here's a patch for Tapestry 3.0.1

          People

          • Assignee:
            Jesse Kuhnert
            Reporter:
            Markus Wiederkehr
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development