Still stuck with the same exception, even after upgrading to beta3.
Can you please explain what "hierarchy does not match" means?
On 8/28/07, Kees de Kooter <[EMAIL PROTECTED]> wrote:
> > The Apache mailing lists don't allow attachments, so that got
> > filtered. Furthermore, a relevant piece of code usually helps us
> > better see what the problem might be. In your code both java code and
> > some of your markup.
> >
>
> OK, here are some snippets:
>
> My superclass:
>
> public abstract class TemplateWebPage extends WebPage {
>
> public TemplateWebPage() {
> super();
> add(new Label("pageTitle", new PropertyModel(this,
> "pageTitle")));
> add(new MenuPanel("menuPanel"));
> add(new UserPanel("userPanel"));
> }
>
> The main markup of that page:
>
> <div class="left-column" wicket:id="menuPanel">
> </div>
>
> <div class="right-column">
> <wicket:child/>
> </div>
>
> The code of the "MenuPanel":
>
> public class MenuPanel extends Panel {
>
> public MenuPanel(String id) {
> super(id);
>
> add(new Label("customers", getString("menu.main.customers")));
>
>
> The markup of the panel:
>
> <wicket:panel xmlns:wicket="http://wicket.sourceforge.net/">
>
> <div class="menu" style="width: 158px;">
> <table style="width: 100%;">
> <tr class="menuitem">
> <td colspan="2" style="width: 160px;">
> <a href="company-list.do?relation-type=customer">
> <span wicket:id="customers">customers</span>
> </a>
> </td>
> </tr>
>
> The first lines of the exception:
>
> Unexpected RuntimeException
>
> WicketMessage: Unable to find component with id 'customers' in
> [MarkupContainer [Component id = -relative_path_prefix10, page =
> nl.boplicity.metronome.wicket.location.LocationListPage, path =
> 11:menuPanel:-relative_path_prefix10.WebMarkupContainer, isVisible =
> true, isVersioned = true]]. This means that you declared
> wicket:id=customers in your markup, but that you either did not add
> the component to your page at all, or that the hierarchy does not
> match.
> [markup =
> file:/home/kees/eclipse-workspace/metronome/target/classes/nl/boplicity/metronome/wicket/menu/MenuPanel.html
>
--
Cheers,
Kees de Kooter
http://www.boplicity.net
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]