with panels?

a.k.a

Panel myPanel;
if(showPanel1)
myPanel = new Panel1();
else
myPanel = new Panel2();

each panel has its own markup so this way your wicket:ids are only those
from the correct panel.

On 4/23/07, Ralf Eichinger <[EMAIL PROTECTED]> wrote:

thank you Jean-Baptiste.
ok, I see there is another solution.

but nevertheless I want to learn how things can be done.
and I couldn't figure out how I can add dynamically gui-components.
when I do a if/else in java I get exceptions because of wicket:ids in html
not
finding their component in java model.

it will be a great help (not only for me) in learning how to develop a new

component.
so again, how can the javascript generated solution (se first post) be
replaced
with wicket-java-code?

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to