I have tried to implement panelnavigation2 just like in the tomahawk examples
(the dynamic one), but when its inside a form it doesnt render the style and
it looks kinda like this:
- menu 1
- menuItem1
- menuItem2
- menu 2
- menu 3
but it works fine on clicks actionlistener gets activated and all... but it
looks like crap :(
when I remove the <h:form></h:form> around it the style rendered and it
looks great but it doesn't work???? this is just like the example??? well it
can't be I guess I have added the code below:
////////////////////////////// JSP ////////////////////////////////////////
<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>
/////////////////////////// CREATING /////////////////////////////////////
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;
}
please help, chris
--
View this message in context:
http://www.nabble.com/Im-lost..-please-help---anyone-tf1937892.html#a5309965
Sent from the MyFaces - Users forum at Nabble.com.