hmm we should make Panel abstract i guess. It has to be overridden On Tue, Mar 25, 2008 at 10:27 PM, Ryan O'Hara <[EMAIL PROTECTED]> wrote:
> Hello, > > I have a Login.html/Login.java which adds a TabbedHeader component > (which extends Panel). When I try to add a panel component to > TabbedHeader, I get the following exception: > > WicketMessage: Markup of type 'html' for component > 'org.apache.wicket.markup.html.panel.Panel' not found. Enable debug > messages for org.apache.wicket.util.resource to get a list of all > filenames tried: > [MarkupContainer [Component id = hoverMenu, page = > edu.chop.bic.cnv.ui.Login, path = > 0:loginTabbedHeader:hoverMenu.Panel, isVisible = true, isVersioned = > true]] > > Root cause: > > org.apache.wicket.markup.MarkupNotFoundException: Markup not found. > Component class: org.apache.wicket.markup.html.panel.Panel Enable > debug messages for org.apache.wicket.util.resource to get a list of > all filenames tried > > TabbedHeader.html: > > <html > xmlns="http://www.w3.org/1999/xhtml" > xmlns:wicket="http://wicket.apache.org"> > <wicket:panel> > <a wicket:id="loginLink"><span wicket:id="login">Tab will > appear here</span></a> > <div wicket:id="hoverMenu"></div> > </wicket:panel> > </html> > > TabbedHeader.java: > > public TabbedHeader(String panelId){ > super(panelId); > add(new Panel("hoverMenu")); > Link link = new Link("loginLink") { > public void onClick(){ > setResponsePage(Login.class); > } > }; > add(link); > link.add(new Label("login", "Login")); > } > > Any ideas? > > Thanks, > Ryan
