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

Allow <script>-Tags act as WebMarkUpContainer to add Child-Components

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 6.14.0, 7.0.0-M1
    • wicket
    • None

    Description

      Since JQuery Templates are more and more commonly used, it could be a nice feature to let <script>-Tags act as WebMarkUpContainer.

      e.g. adding an InputField with an AjaxEventBehavior...

      <script type="text/x-jquery-template" wicket:id="scriptMarkUpContainer">
        <input wicket:id="inputXYZ" type="text" />
      </script>
      
      
      WebMarkUpContainer scriptAsTemplate = new WebmarkUpContainer("scriptMarkUpContainer");
      
      TextField t = new TextField("inputXYZ");
      t.add(new AjaxEventBehavior("click"){...});
      
      scriptAsTemplate.add(t);
      
      

      Attachments

        1. scripttemplate-quickstart.zip
          34 kB
          Patrick Davids

        Activity

          People

            mgrigorov Martin Tzvetanov Grigorov
            patrick1701 Patrick Davids
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: