Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Major Major
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: wicket

      Description

      This will facilitate users to reference models in several places of the markup.

      One can do:

      class Page extends WebPage {
      public Page()

      { putVariable("username", "Peter Johnson"); }

      }

      <html>
      <body>
      <div class="header">
      <wicket:var name="name" />
      </div>
      <div class="container">
      <wicket:var name="name" />
      </div>
      <div class="footer">
      <wicket:var name="name" />
      </div>
      </body>
      </html>

      It will be possible too to do such a thing:

      Java: putVariable("css", "blue-header");

      HTML: <div wicket:var="class:css">

      And render: <div class="blue-header">

      These variables can be rendered multiple times and my also be accessed from child objects (but not the opposite), like:

      add(new WebMarkupContainer("header"));

      <div wicket:id="header">
      <span wicket:var="class:css">Header</span>
      </div>

        Activity

        Bruno Borges created issue -
        Bruno Borges made changes -
        Field Original Value New Value
        Attachment wicket-var-feature.diff [ 12492373 ]
        Bruno Borges made changes -
        Attachment wicket-var-feature.diff [ 12492373 ]
        Bruno Borges made changes -
        Attachment wicket-var-feature.diff [ 12492387 ]
        Jeremy Thomerson made changes -
        Status Open [ 1 ] Closed [ 6 ]
        Resolution Won't Fix [ 2 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Bruno Borges
          • Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development