Does this mean the Panel class itsself can not contain another Panel
component inside its own class?
For instance,

A.html
<wicket:panel>
    <div wicket:id="accordionMenu"/>
</wicket:panel>

A.class

public class A extends Panel{
    public A(String id){
        super(id);
        ...
        AccordionPanel panel = new AccordionMenu("accordionMenu"); //
extends another panel
        ...
    }
}

I encounter the same problem. Then I solve it by extending
WebMarkupContainer instead of Panel directly (i.e., class A exnteds
WebMarkupCintainer); as below:

A.html
<wicket:webMarkupContainer>
    <div wicket:id="accordionMenu"/>
</wicket:webMarkupContainer>

public class A extends WebMarkupContainer{
    public A(String id){
        super(id);
        ...
        AccordionPanel panel = new AccordionMenu("accordionMenu"); //
extends another panel
        ...
    }
}




However, I do not understand the reason why it has to do so. Hope someone
can give me more detail explanation or point me where there has such explain
because the java doc Panel 
(http://wicket.apache.org/docs/wicket-1.3.2/wicket/apidocs/org/apache/wicket/markup/html/panel/Panel.html)
seemingly does not explain this.

Thanks for help.


Timo Rantalaiho wrote:
> 
> On Tue, 25 Mar 2008, Ryan O'Hara wrote:
>> 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]]
> ...
>> 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"));
>> }
> 
> Put add(new WebMarkupContainer("hoverMenu")); instead of 
> Panel.
> 
> ...or better yet remove the whole hoverMenu component if it 
> contains nothing? Or are you going to replace it with 
> something with content?
> 
> Best wishes,
> Timo
> 
> -- 
> Timo Rantalaiho           
> Reaktor Innovations Oy    <URL: http://www.ri.fi/ >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Panel-problem-tp16289023p16800071.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to