Re: [jira] Resolved: (WICKET-1712) Inheritance inside a Container throws WicketRuntimeException

2009-02-03 Thread smallufo
not really nest them. i would suggest using a border instead because it is meant for usecases just like this Inheritance inside a Container throws WicketRuntimeException Key: WICKET-1712 URL: https

Re: [jira] Resolved: (WICKET-1712) Inheritance inside a Container throws WicketRuntimeException

2009-02-03 Thread Igor Vaynberg
because it is meant for usecases just like this Inheritance inside a Container throws WicketRuntimeException Key: WICKET-1712 URL: https://issues.apache.org/jira/browse/WICKET-1712

Re: [jira] Resolved: (WICKET-1712) Inheritance inside a Container throws WicketRuntimeException

2009-02-03 Thread Timo Rantalaiho
On Wed, 04 Feb 2009, smallufo wrote: When traversalling the nodes , it cannot find any Component that implements ExpandCollapseListener. But the Panel that wrapped by the Border indeed implements ExpandCollapseListener PulldownBorder.this.visitChildren(new IVisitor() ... Here is

Re: [jira] Resolved: (WICKET-1712) Inheritance inside a Container throws WicketRuntimeException

2009-02-03 Thread smallufo
2009/2/4 Igor Vaynberg igor.vaynb...@gmail.com PulldownBorder border = new PulldownBorder(border , Test Title , true); border.setTransparentResolver(true); add(border); ^ that is all wrong you should create a border and to it add a panel that will be expanded/collapsed. so the panel

Re: [jira] Resolved: (WICKET-1712) Inheritance inside a Container throws WicketRuntimeException

2009-02-03 Thread Igor Vaynberg
PulldownBorder border = new PulldownBorder(border , Test Title , true); border.setTransparentResolver(true); add(border); ^ that is all wrong you should create a border and to it add a panel that will be expanded/collapsed. so the panel that is the content should be inside the border.

Re: [jira] Resolved: (WICKET-1712) Inheritance inside a Container throws WicketRuntimeException

2009-02-03 Thread smallufo
Thank you for such a practical IVisitor tutorial. But I have another problem : When traversalling the nodes , it cannot find any Component that implements ExpandCollapseListener. But the Panel that wrapped by the Border indeed implements ExpandCollapseListener Can you check where goes wrong ?

Re: Inheritance inside a Container

2008-06-22 Thread smallufo
Hello , I created a new issue containing the codes : WICKET-1712 https://issues.apache.org/jira/browse/WICKET-1712 Thanks. 2008/6/22 Maurice Marrink [EMAIL PROTECTED]: Sounds Like a bug. Could you open up a jira request please and attach a quickstart showing this behavior. Thanks.

Re: Inheritance inside a Container

2008-06-21 Thread Maurice Marrink
Sounds Like a bug. Could you open up a jira request please and attach a quickstart showing this behavior. Thanks. Maurice On Fri, Jun 20, 2008 at 10:52 PM, smallufo [EMAIL PROTECTED] wrote: Hi , after a few try and errors , I can conclude how the problem occurs In the ChildPanel , if my code

Re: Inheritance inside a Container

2008-06-20 Thread smallufo
ok...here is the error message (very long) summary : abstrac class AbstractPullDownPanel (the Parent Panel , abstract , containing a title bar and a content WebMarkupContainer) , the full code is shown in the previous post. class SelectPlanetsPanel extends AbstractPullDownPanel : containing a

Re: Inheritance inside a Container

2008-06-20 Thread smallufo
Hi , after a few try and errors , I can conclude how the problem occurs In the ChildPanel , if my code is as follows : wicket:extend span wicket:id=selectDeselectGroup /span blah... /wicket:extend and code : RadioGroup selectDeselectGroup = new RadioGroup(selectDeselectGroup);

Re: Inheritance inside a Container

2008-06-19 Thread smallufo
Hello , I had exactly the same problem , and solved by searching to this post. Thanks a lot. BUT , today , I have another problem... Today , the ChildPanel can accept a new parameter : boolean defaultVisible if true , the content will be shown; if false , the content will be invisible , only the

Re: Inheritance inside a Container

2008-06-19 Thread Maurice Marrink
What wicket version are you on? There was a bug about this but is has long been fixed. https://issues.apache.org/jira/browse/WICKET-1095 Maurice On Thu, Jun 19, 2008 at 9:40 PM, smallufo [EMAIL PROTECTED] wrote: Hello , I had exactly the same problem , and solved by searching to this post.

Re: Inheritance inside a Container

2008-06-19 Thread smallufo
Hi... I am using 1.3.3 2008/6/20 Maurice Marrink [EMAIL PROTECTED]: What wicket version are you on? There was a bug about this but is has long been fixed. https://issues.apache.org/jira/browse/WICKET-1095 Maurice On Thu, Jun 19, 2008 at 9:40 PM, smallufo [EMAIL PROTECTED] wrote: Hello ,

Re: Inheritance inside a Container

2008-06-19 Thread smallufo
Well , let me describe more detail When the user enters the page , he can successfully show/hide the content (ChildPanel) without problems. The state is stored in wicket's session. If the ChildPanel is open(expand/show) , and he reloads the page , everything works fine. BUT... If he close

Re: Inheritance inside a Container

2008-06-19 Thread smallufo
I tried to pull up the boolean defaultVisible parameter to the ParentPanel , but still the same error public abstract class AbstractPullDownPanel extends Panel { private final WebMarkupContainer content; public AbstractPullDownPanel(String id , String title , final boolean

Inheritance inside a Container

2008-04-05 Thread Oliver Sawade
Hi everyone, my first mail to the list, i hope this wasn`t answered million times before, but the wicket users faq is empty so i couldn`t find it there ;) I'm using wicket1.3 to create a generic panel with the option to hide everything inside when clicking an ajax-button. While the actual

Re: Inheritance inside a Container

2008-04-05 Thread Martijn Dashorst
You should do this: WMC wmc = new WMC(childContainer) { @override boolean isTransparentResolver() { return true; } }; This is not a bug. If you do add() in the subclass's constructor, you add to the page itself. Which is how the hierarchy is constructed. By telling the WMC that it is a

Re: Inheritance inside a Container

2008-04-05 Thread Maurice Marrink
In other words, what you should have done in the first place was public class testChildPanel extends testSuperPanel { public testChildPanel(String id) { super(id); get(childContainer).add(new Label(childLabel,Test!)); } } So that the label would have actually been attached to the