Wicket
  1. Wicket
  2. WICKET-5187

Unknown tag name with Wicket namespace: 'panel'

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.8.0, 7.0.0-M1
    • Component/s: None
    • Labels:
      None

      Description

      If you create a non-panel component with PanelMarkupSourcingStrategy(true), and provide the html:

      <!doctype html>
      <html xmlns:wicket="http://wicket.apache.org">
      <wicket:panel>
      // MY CODE
      </wicket:panel>
      </html>

      You get an error: "Unknown tag name with Wicket namespace: 'panel'"

      In org.apache.wicket.markup.html.panel.Panel the static code "WicketTagIdentifier.registerWellKnownTagName(PANEL);" will register wicket:panel,
      so you only get this if you add the non-panel component before your first panel.

      1. myproject.zip
        46 kB
        Andy Van Den Heuvel

        Activity

        Hide
        Martin Grigorov added a comment -

        As discussed in the mailing lists this problem should not happen with the current code.
        Please provide a quickstart so we can see what breaks.

        Show
        Martin Grigorov added a comment - As discussed in the mailing lists this problem should not happen with the current code. Please provide a quickstart so we can see what breaks.
        Hide
        Andy Van Den Heuvel added a comment -

        If I load a real Panel before I load my non-panel component (with PanelMarkupSourcingStrategy), it works correctly.
        This can be solved by registering the tagname at construction time in AssociatedMarkupSourcingStrategy.

        I'll provide a quickstart

        Show
        Andy Van Den Heuvel added a comment - If I load a real Panel before I load my non-panel component (with PanelMarkupSourcingStrategy), it works correctly. This can be solved by registering the tagname at construction time in AssociatedMarkupSourcingStrategy. I'll provide a quickstart
        Hide
        Andy Van Den Heuvel added a comment -

        This is the quickstart

        Show
        Andy Van Den Heuvel added a comment - This is the quickstart
        Hide
        Martin Grigorov added a comment -

        Moved the registration to the respective MarkupSourcingStrategies - or Panel and Border.

        Show
        Martin Grigorov added a comment - Moved the registration to the respective MarkupSourcingStrategies - or Panel and Border.

          People

          • Assignee:
            Martin Grigorov
            Reporter:
            Andy Van Den Heuvel
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development