Andreas Bürgel (Bucyrus) wrote:
> 
> Im using a org.apache.wicket.extensions.markup.html.tree.Tree now instead
> of a LinkTree. This seems to work.
> Don't forget to call "setOutputMarkupId ( true)" for all panels before
> they get displayed.
> 

I forgot to say that had to add the panel to the AjaxRequestTarget to make
it really work: 

-----------------------------8<---------------------------------------------
protected void onNodeLinkClicked ( AjaxRequestTarget pTarget, TreeNode
pNode) {
    NavigationTreeNode lNode = (NavigationTreeNode) pNode;
    switch ( lNode.getType ()) {
    case PANEL:
        System.out.println ( "PANEL_NODE");
        Object lPayLoad = lNode.getPayLoad ();
        setMainPanel ( lMMCSystemPanel);        
                                                
        if ( null != pTarget) {
            pTarget.addComponent ( lMMCSystemPanel);
        }
        break;
----------------------------->8----------------------------------------------

Enough said on this issue, I hope.
-- 
View this message in context: 
http://www.nabble.com/Panel-switching-in-LinkTree.onNodeLinkClicked%28%29-doesn%27t-work-tp23708299p23738707.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to