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

Copy attributes from wicket:panel to source tag

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.4.7
    • 1.5-RC1
    • wicket
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: