there where seems that text is missing is 2 spans ... one contains the other
one. B contains C


Dragut Razvan wrote:
> 
> Hi everyone,
> 
> I am new to wicket and I am encountering a problem when I am trying to mix
> some panel inheritance and composition. I don't know whether I'm doing
> something wrong or it is not supposed to work like that but hope you can
> help with some advice. So here's my hierarchy :
> 
> Panel -> A -> B . This is an inheritance relationship where panel B
> extends panel A which extends Panel.
> Panel -> C .
> 
> If I add panel B and panel C to a page everything works fine.
> 
> If I am trying to add panel C to panel B ( bPanelInstance.add(C) ) and add
> panel B to the page then I am getting into problems (even if C is an
> EmptyPanel instance) :
> 
> If I have 
> 
> 
>     [C content]
> 
> 
> I get an exception saying that the end tag for panel "b" is missing,
> though the end tag is there. Here's a sample of my exception where the
> name "login" equates to "b" from my exmaple.
> 
> WicketMessage: close tag not found for tag: . Component: [MarkupContainer
> [Component id = login]]
> 
> Root cause:
> 
> org.apache.wicket.markup.MarkupException: close tag not found for tag: .
> Component: [MarkupContainer [Component id = login]]
> at
> org.apache.wicket.markup.html.panel.Panel.onComponentTagBody(Panel.java:123)
> at org.apache.wicket.Component.renderComponent(Component.java:2596)
> at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1521)
> at org.apache.wicket.Component.render(Component.java:2421)
> at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1399)
> at org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1537)
> at org.apache.wicket.Page.onRender(Page.java:1522)
> at org.apache.wicket.Component.render(Component.java:2421)
> at org.apache.wicket.Page.renderPage(Page.java:926)
> 
> Adding a panel to another one works fine unless is one of my extended
> panels, therefore I guess it's something that I am missing when I am
> extending the panels. The way I am extending the panels is standard and
> only I only override that required constructor and nothing else.
> 
> To summarize :
> I have some markup inheritance with panels which works fine. I get the
> above error when I am trying to add a panel using Panel's add method to my
> extended panels. The html markup it's correct and it's not missing any
> tags. Markup inheritance is done in the simplest way by only providing the
> panel id constructor.
> 
> Do you have any idea why this happens ? If you think it should not happen,
> you have tried it, you do not get into this and cannot reproduce the
> error, can you provide a simple working example of this scenario ?
> 
> I am using Wicket 1.4-rc2.
> 
> Thanks very much,
> 
> Kind Regards,
> 
> Razvan
> 

-- 
View this message in context: 
http://www.nabble.com/Markup-inheritance-and-composition-mix-tp22300927p22300977.html
Sent from the Wicket - User mailing list archive at Nabble.com.

Reply via email to