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

Add an element parameter to the Insert component

    Details

    • Type: Wish
    • Status: Resolved
    • Priority: 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

        Attachments

        1. insert.patch
          2 kB
          Markus Wiederkehr

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: