Author: dbiatenia
Date: 2007-06-11 11:43:54 -0400 (Mon, 11 Jun 2007)
New Revision: 1122
Modified:
trunk/sandbox-samples/panelmenu-sample/src/main/java/org/richfaces/Bean.java
trunk/sandbox-samples/panelmenu-sample/src/main/webapp/WEB-INF/faces-config.xml
trunk/sandbox-samples/panelmenu-sample/src/main/webapp/WEB-INF/web.xml
trunk/sandbox-samples/panelmenu-sample/src/main/webapp/pages/index.jsp
Log:
Modified: trunk/sandbox-samples/panelmenu-sample/src/main/java/org/richfaces/Bean.java
===================================================================
---
trunk/sandbox-samples/panelmenu-sample/src/main/java/org/richfaces/Bean.java 2007-06-11
15:32:00 UTC (rev 1121)
+++
trunk/sandbox-samples/panelmenu-sample/src/main/java/org/richfaces/Bean.java 2007-06-11
15:43:54 UTC (rev 1122)
@@ -26,4 +26,34 @@
*/
public class Bean {
+ public String executeServer(){
+ System.out.println("executed server");
+ return null;
+ }
+
+ public String executeAjax(){
+ System.out.println("executed ajax");
+ return null;
+ }
+
+
+
+ public String executeItem1(){
+ System.out.println("item1 executed ");
+ return null;
+
+ }
+
+ public String executeItem2(){
+ System.out.println("item2 executed ");
+ return null;
+
+ }
+
+ public String executeItem3(){
+ System.out.println("item3 executed ");
+ return null;
+
+ }
+
}
\ No newline at end of file
Modified: trunk/sandbox-samples/panelmenu-sample/src/main/webapp/WEB-INF/faces-config.xml
===================================================================
---
trunk/sandbox-samples/panelmenu-sample/src/main/webapp/WEB-INF/faces-config.xml 2007-06-11
15:32:00 UTC (rev 1121)
+++
trunk/sandbox-samples/panelmenu-sample/src/main/webapp/WEB-INF/faces-config.xml 2007-06-11
15:43:54 UTC (rev 1122)
@@ -12,6 +12,7 @@
<managed-bean-class>org.richfaces.Bean</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
</managed-bean>
+
</faces-config>
Modified: trunk/sandbox-samples/panelmenu-sample/src/main/webapp/WEB-INF/web.xml
===================================================================
--- trunk/sandbox-samples/panelmenu-sample/src/main/webapp/WEB-INF/web.xml 2007-06-11
15:32:00 UTC (rev 1121)
+++ trunk/sandbox-samples/panelmenu-sample/src/main/webapp/WEB-INF/web.xml 2007-06-11
15:43:54 UTC (rev 1122)
@@ -22,6 +22,11 @@
<display-name>Ajax4jsf Filter</display-name>
<filter-name>ajax4jsf</filter-name>
<filter-class>org.ajax4jsf.Filter</filter-class>
+ <init-param>
+ <param-name>forceparser</param-name>
+ <param-value>false</param-value>
+ </init-param>
+
</filter>
<filter-mapping>
<filter-name>ajax4jsf</filter-name>
Modified: trunk/sandbox-samples/panelmenu-sample/src/main/webapp/pages/index.jsp
===================================================================
--- trunk/sandbox-samples/panelmenu-sample/src/main/webapp/pages/index.jsp 2007-06-11
15:32:00 UTC (rev 1121)
+++ trunk/sandbox-samples/panelmenu-sample/src/main/webapp/pages/index.jsp 2007-06-11
15:43:54 UTC (rev 1122)
@@ -1,33 +1,42 @@
<%@ taglib
uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib
uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib
uri="http://richfaces.ajax4jsf.org/panelmenu"
prefix="pm" %>
+<%@ taglib
uri="https://ajax4jsf.dev.java.net/ajax"
prefix="a4j"%>
<html>
- <head>
- <title></title>
- </head>
+
<body>
<f:view>
- <pm:panelMenu iconItemTopPosition="left"
iconItemPosition="left">
- <pm:panelMenuGroup label="Group 1" iconExpanded="disc"
iconCollapsed="disc">
+ <pm:panelMenu iconItemTopPosition="right"
iconItemPosition="right" iconGroupPosition="left"
iconGroupTopPosition="left" expandSingle="false"
iconExpandedGroup="grid" iconCollapsedGroup="chevron"
iconItem="disc" iconTopItem="triangle"
iconDisabledItem="grid" iconDisabledGroup="disc"
iconTopDisableGroup="triangleDown" iconExpandedTopGroup="chevron">
+ <pm:panelMenuGroup label="Group 1" iconExpanded="disc"
iconCollapsed="chevron">
<pm:panelMenuItem value="Item 1" icon="chevronUp">
</pm:panelMenuItem>
- <pm:panelMenuItem value="Item 2" />
- <pm:panelMenuGroup label="Group 2" iconCollapsed="chevron"
>
+ <pm:panelMenuItem value="Item "/>
+ <pm:panelMenuGroup label="Group 2" >
<pm:panelMenuItem icon="triangleDown">
- <h:outputText value="Item 3" />
+ <f:verbatim>Item 3</f:verbatim>
</pm:panelMenuItem>
+ <pm:panelMenuGroup label="Group 33" expanded="true">
+ <pm:panelMenuItem icon="triangleDown">
+ <f:verbatim>Item 3333</f:verbatim>
+ </pm:panelMenuItem>
+ </pm:panelMenuGroup>
</pm:panelMenuGroup>
</pm:panelMenuGroup>
- <pm:panelMenuGroup label="Group 3" iconExpanded=""
iconCollapsed="">
- <pm:panelMenuItem value="Item 4">
+ <pm:panelMenuGroup label="Group 3">
+ <pm:panelMenuItem value="Item 4" >
</pm:panelMenuItem>
</pm:panelMenuGroup>
- <pm:panelMenuGroup label="Group 4"
iconExpanded="triangleDown" iconCollapsed="triangle"
expanded="true">
+ <pm:panelMenuGroup label="Group 4" disabled="true">
<pm:panelMenuItem value="Item 5" disabled="true"/>
- <pm:panelMenuItem value="Item 6"/>
+ <pm:panelMenuItem value="Item 66" mode="server" />
</pm:panelMenuGroup>
+ <pm:panelMenuItem value="Top item"/>
+ <pm:panelMenuItem value="Top item2" disabled="true"/>
</pm:panelMenu>
</f:view>
+
+
+
</body>
</html>