I have now made a simple test page where only the panelnavigation2 exist, but
it still doesn't work?

see below:

navigationtest.jsp

<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsf/html"; prefix="h" %> 
<%@ taglib uri="http://java.sun.com/jsf/core"; prefix="f" %>
<%@ taglib uri="http://myfaces.apache.org/tomahawk"; prefix="t"%>
<%@ taglib uri="http://myfaces.apache.org/sandbox"; prefix="s"%>

<html>
<head>
        <title>TEST PAGE</title>
        <link rel="stylesheet" type="text/css"
href="resources/stylesheets/myfaces_ex_basic.css" />
</head>
<body>
<f:view>
        
<t:div id="subnavigation_outer">        
<t:div id="subnavigation">      
<t:panelNavigation2 id="nav1" layout="list" itemClass="mypage"
activeItemClass="selected">     
    <t:navigationMenuItems id="navitems"
value="#{MpSubscriberProxy.panelNavigationItems}" />    
</t:panelNavigation2>   
</t:div>        
</t:div> 
                                        
</f:view>
</body>
</html>

MpSubscriberProxy.java

// --------------------------------------------------------- PanalNavigation
menu Settings
        public List getPanelNavigationItems() {
        List menu = new ArrayList();
        // Bruger oplysninger
        NavigationMenuItem subscriberInfo = getMenuNaviagtionItem("Bruger
oplysninger", null);
        menu.add(subscriberInfo);
        NavigationMenuItem itemInfo = getMenuNaviagtionItem("Ret dine bruger
oplysninger", "#{MpSubscriberProxy.showSubscriberChangeData}");
        itemInfo.setActive(true);
        itemInfo.setOpen(true);
        subscriberInfo.add(itemInfo);
       
        subscriberInfo.add(getMenuNaviagtionItem("Slet din backup konto",
"#{MpSubscriberProxy.showSubscriberDelete}"));
        NavigationMenuItem item = getMenuNaviagtionItem("Backup historie",
"#{MpSubscriberProxy.showSubcriberHistory}");
        
        subscriberInfo.add(item);
        // Mobiltelefon
        menu.add(getMenuNaviagtionItem("Skift mobiltelefon",
"#{MpSubscriberProxy.showSubcriberChangePhoneModel}"));
        // Data
        NavigationMenuItem data = getMenuNaviagtionItem("Dine data", null);
        menu.add(data);
        data.add(getMenuNaviagtionItem("Eksport dine kontakter",
"#{MpSubscriberProxy.showSubscriberExportContacts}"));
        data.add(getMenuNaviagtionItem("Eksport din kalender",
"#{MpSubscriberProxy.showSubscriberExportCalendar}"));
        
        return menu;
    }


        private static NavigationMenuItem getMenuNaviagtionItem(String label,
String action) {
                
        NavigationMenuItem item = new NavigationMenuItem(label, action);
        item.setActionListener("#{MpSubscriberProxy.TestAction}");
        item.setValue(label);
        return item;
    }
        
        public void TestAction(ActionEvent e)
        {
                String test = e.toString();
                test.endsWith("blah");
        }

public void showSubscriberChangeData(){
                divRenderFalse();
                divSettingsChangeSubData.setRendered(true);     
        }

---
---
---

Thanks again, chris
-- 
View this message in context: 
http://www.nabble.com/Im-lost..-please-help---anyone-tf1937892.html#a5318098
Sent from the MyFaces - Users forum at Nabble.com.

Reply via email to