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

MarkupNotFoundException happens if there's a component inside another with wicket:message attribute

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.5-M2.1
    • None
    • None
    • None

    Description

      Hi,
      I am just in the process of migrating my project to 1.5(-M2.1), and discovered a problem when there's a markup like this:

      <span wicket:message="title:favoriteCount.tip"><wicket:message key="favoriteCount">FAVORITE COUNT</wicket:message><span wicket:id="favoriteCount" /></span>

      and Java file like this:

      add(new Label("favoriteCount"));

      and appropriate resource file(s) of course,
      then at render time a MarkupNotFoundException is given (Markup not found for Component: [Component id = favoriteCount]). If I remove the wicket:message="title:favoriteCount.tip" part then it is fine, similar to 1.4.x.

      Another small note on issue 2776: I am not sure that reopening it was a good approach but the fix for that one disappeared for 1.5-M2.1. Could you please check that one too?

      Attachments

        Issue Links

          Activity

            People

              ivaynberg Igor Vaynberg
              szabolcs Szádeczky-Kardoss Szabolcs
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: