I did something like this on the homapage class

signInPanel = new MemberSignInPanel("loginFrame");
       add(signInPanel);
       loggedInPanel = new AfterSignPanel("loggedInFrame");
       add(loggedInPanel);

       if (isSignedIn()) {
           signInPanel.setVisible(false);
           loggedInPanel.setVisible(true);
       } else {
           signInPanel.setVisible(true);
           loggedInPanel.setVisible(false);
       }

and....what could cause this even though their is no component with the same
id in the markup. What is AutoLinkResolver?

WicketMessage: The component [MarkupContainer [Component id = _autolink_6,
page = com.nairanet.project.newhome.NewHomePage, path =
1:_<body>:_autolink_6.AutoLinkResolver$AutolinkExternalLink, isVisible =
true, isVersioned = true]] has the same wicket:id as another component
already added at the same level

Root cause:

wicket.markup.MarkupException: The component [MarkupContainer [Component id
= _autolink_6, page = com.nairanet.nelx.project.NewHomePage, path =
1:_<body>:_autolink_6.AutoLinkResolver$AutolinkExternalLink, isVisible =
true, isVersioned = true]] has the same wicket:id as another component
already added at the same level
at wicket.Page.componentRendered(Page.java:940)
at wicket.Component.rendered(Component.java:1762)
at wicket.Component.render(Component.java:1541)
at wicket.MarkupContainer.renderNext(MarkupContainer.java:1334)
at wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:982)
at wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:917)
at wicket.Component.renderComponent(Component.java:1719)
at wicket.MarkupContainer.onRender(MarkupContainer.java:927)
at wicket.Component.render(Component.java:1533)
at wicket.MarkupContainer.renderNext(MarkupContainer.java:1334)
at wicket.MarkupContainer.renderAll(MarkupContainer.java:9
-------------------------------------------------------------------------
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