t:jscookMenu t:panelNavigation2 及 t:jscookMenu不能够使用action跳转
来源:互联网 发布:C语言程序算法 pdf 编辑:程序博客网 时间:2024/06/06 13:31
* 在jscookMenu所在的form里面添加:<input id="jscook_action" name="jscook_action" type="hidden"/>
不加这句的话,就只会显示cookMenu,但是不能够使用action跳转
(这在网上找了N久才找到的。。。
http://chinabin.bokee.com/6741696.html 貌似是这个地方。。。。哈哈
)
<h:form id="popup_form">
<input id="jscook_action" name="jscook_action" type="hidden"/>
<h:panelGrid columns="1" style="border: solid 1px blue" >
<t:jscookMenu layout="hbr" theme="ThemeOffice">
<t:navigationMenuItems value="#{userManager.vo.navItems}" />
</t:jscookMenu>
// public NavigationMenuItem[] getNavItems() {
// NavigationMenuItem[] subItems = new NavigationMenuItem[2];
// subItems[0] = new NavigationMenuItem("Subitem 2_1 Label","/index.jsf","/img/img_01.jpg",false); //可以跳转
// subItems[1] = new NavigationMenuItem("Subitem 2_2 Label","index.jsf","img/img_01.jpg",false); //这种方式不能跳转
//
// // item 2
// NavigationMenuItem itemWithChildren = new NavigationMenuItem("Item 2 Label", "action2");
// itemWithChildren.setNavigationMenuItems(subItems);
//
// // root items
// navItems = new NavigationMenuItem[3];
// navItems[0] = new NavigationMenuItem("Item 1 Label","index"); //可以跳转
// navItems[1] = itemWithChildren;
// navItems[2] = new NavigationMenuItem("Item 3 Label","action3");
//
// System.out.println("00000000000");
//
// return navItems;
// }
<t:jscookMenu layout="hbr" theme="ThemeOffice">
<t:navigationMenuItem itemLabel="File">
<t:navigationMenuItem action="new-file" itemLabel="New">
<t:navigationMenuItem action="open-file" itemLabel="new_1"/>
<t:navigationMenuItem action="open-file" itemLabel="new_2"/>
</t:navigationMenuItem>
<t:navigationMenuItem action="open-file" itemLabel="Open"/>
<t:navigationMenuItem action="open-file" itemLabel="Close" rendered="#{menuBean.closeFileAvailable}"/>
<t:navigationMenuItem action="index" itemLabel="返回"/>
</t:navigationMenuItem>
<t:navigationMenuItem itemLabel="Edit">
<t:navigationMenuItem action="#{userManager.goTo}" itemLabel="New"/>
<t:navigationMenuItem actionListener="#{userManager.goTo}" action="index" itemLabel="返回"/>
</t:navigationMenuItem>
</t:jscookMenu>
<t:panelNavigation2>
<t:commandNavigation2>
<h:outputText value="网站"/>
<t:commandNavigation2 externalLink="http://www.baidu.com">
<h:outputText value="百度"/>
</t:commandNavigation2>
<t:commandNavigation2 externalLink="http://www.sina.com">
<h:outputText value="新浪"/>
</t:commandNavigation2>
</t:commandNavigation2>
</t:panelNavigation2>
</h:panelGrid>
</h:form>
- t:jscookMenu t:panelNavigation2 及 t:jscookMenu不能够使用action跳转
- C# Action<T> 使用
- Action<T> Delegate 使用
- Action<T>、Func<T>委托
- t
- t
- t
- t
- T
- T
- t
- t
- t
- T
- t
- t
- t
- t
- 关闭或删除 MyeElipse 自带的 Derby 服务器
- 在ssh项目中hibernate的动态映射
- typedef用法 与#define
- SQL SERVER 2005 递归查询
- winform的FindControl
- t:jscookMenu t:panelNavigation2 及 t:jscookMenu不能够使用action跳转
- 高效人士的八个习惯
- 判断区域B是否在区域A内部的快速算法
- ubuntu下面无网络的情况下安装 emacs
- jsoup 1.4.1 发布,超棒的 HTML 解析器
- 如何使wicket中id不发生变化
- Openssl函数i2d_X509应该注意的地方
- ABAP--如何获取ABAP的程序的调用堆栈
- Spring中的IOC和AOP(转)