Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-2874

Copy attributes from wicket:panel to source tag

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.4.7
    • Fix Version/s: 1.5-RC1
    • Component/s: wicket
    • Labels:
      None

      Description

      When I have a page like so:

      <div wicket:id="content" />
      

      And two types of panels that could go in there, that should have different styling, I'm currently stuck using a pointless extra div:

      <wicket:panel>
          <div class="style1">
              Content 1
          </div>
      </wicket:panel>
      

      If wicket allows copying attributes on from the wicket:panel tag to the source tag of the panel; this would become a lot cleaner and neater:

      <wicket:panel class="style1">
          Content 1
      </wicket:panel>
      

        Attachments

        1. PanelWithAttribute.java
          3 kB
          Juegen Donnerstag

          Issue Links

            Activity

              People

              • Assignee:
                jdonnerstag Juegen Donnerstag
                Reporter:
                lhunath Maarten Billemont
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: