Re: Adding components to page (dynamically)

2009-12-22 Thread bgooren
Ok, so when you say "I need to add more than 1 window", do you mean that the type of window can differ, or that you want to add multiple windows at once? In the first case (1 window), you could go for: final WebMarkupContainer hook = new WebMarkupContainer("win1"); hook.setOutputMarkupId( true );

Re: Adding components to page (dynamically)

2009-12-22 Thread marioosh.net
bgooren wrote: > > Well, you need to have some html in the container with wicket:id="win1" > for your code to work. Wicket is (correctly) complaining that it cannot > locate html for your component. What kind of component is Window? (it's > not a standard wicket component) > Window is simple:

Re: Adding components to page (dynamically)

2009-12-22 Thread bgooren
Well, you need to have some html in the container with wicket:id="win1" for your code to work. Wicket is (correctly) complaining that it cannot locate html for your component. What kind of component is Window? (it's not a standard wicket component) marioosh.net wrote: > > > > marioosh.net wro

Re: Adding components to page (dynamically)

2009-12-22 Thread marioosh.net
marioosh.net wrote: > > I have a Window component (Panel subclass) and button to dynamic > adding new Window to Base page, > but when i click this button (AjaxLink) i get error: > > WicketMessage: Unable to find the markup for the component. That may > be due to transparent containers or compo

Adding components to page (dynamically)

2009-12-22 Thread marioosh.net
I have a Window component (Panel subclass) and button to dynamic adding new Window to Base page, but when i click this button (AjaxLink) i get error: WicketMessage: Unable to find the markup for the component. That may be due to transparent containers or components implementing IComponentResolver: