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

Simplified Markup IDs

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.4.1
    • 1.5.0
    • wicket
    • None

    Description

      • If you set a markup id with Component.setMarkupId("..."), this should include setOutputMarkupId(true) automatically.
      • If the HTML tag in the markup has an id="..." attribute, this should be equivalent to calling Component.setMarkupId("...").
      • In development mode wicket should yield a warning if rendered markup ids are not unique.
      • Automatically generated Markup IDs should be guaranteed to be stable and not depend on session / component ordering.

      Motivation: Make it easier to work with automatically generated / manually assigned HTML IDs for refering to markup elements in test code (browser-based tests, for example Selenium) and for working with markup ids in javascript code.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              ralf.ebert Ralf Ebert
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: