Author: artdaw
Date: 2009-09-10 07:20:36 -0400 (Thu, 10 Sep 2009)
New Revision: 15523
Added:
branches/community/3.3.X/test-applications/richfaces-docs/src/main/java/org/docs/richfaces/ActionparamBean.java
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/a4j/actionparam.xhtml
Modified:
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/WEB-INF/faces-config.xml
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/layout/mainMenu.xhtml
Log:
https://jira.jboss.org/jira/browse/RF-7275 - <a4j:actionparam> sample is added
Added:
branches/community/3.3.X/test-applications/richfaces-docs/src/main/java/org/docs/richfaces/ActionparamBean.java
===================================================================
---
branches/community/3.3.X/test-applications/richfaces-docs/src/main/java/org/docs/richfaces/ActionparamBean.java
(rev 0)
+++
branches/community/3.3.X/test-applications/richfaces-docs/src/main/java/org/docs/richfaces/ActionparamBean.java 2009-09-10
11:20:36 UTC (rev 15523)
@@ -0,0 +1,14 @@
+package org.docs.richfaces;
+
+
+public class ActionparamBean {
+ private String name = "John";
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+}
Modified:
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/WEB-INF/faces-config.xml
===================================================================
---
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/WEB-INF/faces-config.xml 2009-09-10
11:19:50 UTC (rev 15522)
+++
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/WEB-INF/faces-config.xml 2009-09-10
11:20:36 UTC (rev 15523)
@@ -173,6 +173,11 @@
<managed-bean-scope>session</managed-bean-scope>
</managed-bean>
<managed-bean>
+ <managed-bean-name>actionparamBean</managed-bean-name>
+
<managed-bean-class>org.docs.richfaces.ActionparamBean</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+ <managed-bean>
<managed-bean-name>caledar</managed-bean-name>
<managed-bean-class>org.docs.richfaces.Caledar</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
Copied:
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/a4j/actionparam.xhtml
(from rev 15521,
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/a4j/ajaxListener.xhtml)
===================================================================
---
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/a4j/actionparam.xhtml
(rev 0)
+++
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/a4j/actionparam.xhtml 2009-09-10
11:20:36 UTC (rev 15523)
@@ -0,0 +1,23 @@
+<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<ui:composition
xmlns="http://www.w3.org/1999/xhtml"
+
xmlns:s="http://jboss.com/products/seam/taglib"
+
xmlns:ui="http://java.sun.com/jsf/facelets"
+
xmlns:f="http://java.sun.com/jsf/core"
+
xmlns:h="http://java.sun.com/jsf/html"
+
xmlns:rich="http://richfaces.org/rich"
+ template="../layout/template.xhtml"
+
xmlns:a4j="http://richfaces.org/a4j">
+
+ <ui:define name="body">
+ <rich:panel>
+ <h:form id="form" ajaxSubmit="true">
+ <a4j:commandButton value="Set Name to Alex"
reRender="rep">
+ <a4j:actionparam name="username" value="Alex"
assignTo="#{actionparamBean.name}"/>
+ </a4j:commandButton>
+ <br/>
+ <h:outputText id="rep" value="Name:
#{actionparamBean.name}"/>
+ </h:form>
+ </rich:panel>
+ </ui:define>
+</ui:composition>
Modified:
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/layout/mainMenu.xhtml
===================================================================
---
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/layout/mainMenu.xhtml 2009-09-10
11:19:50 UTC (rev 15522)
+++
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/layout/mainMenu.xhtml 2009-09-10
11:20:36 UTC (rev 15523)
@@ -1,113 +1,137 @@
<!-- mainMenu -->
-<rich:panelMenu
-xmlns="http://www.w3.org/1999/xhtml"
-
xmlns:s="http://jboss.com/products/seam/taglib"
-
xmlns:ui="http://java.sun.com/jsf/facelets"
-
xmlns:f="http://java.sun.com/jsf/core"
-
xmlns:h="http://java.sun.com/jsf/html"
-
xmlns:rich="http://richfaces.org/rich"
-
- mode="client"
- iconExpandedGroup="disc"
- iconCollapsedGroup="disc"
- iconExpandedTopGroup="chevronUp"
- iconGroupTopPosition="right"
- iconCollapsedTopGroup="chevronDown"
- iconCollapsedTopPosition="right"
- id="mainMenu">
- <rich:panelMenuGroup label="Rich Components" id="group1"
value="#{menuState.menu['group1']}" >
-
- <rich:panelMenuItem actionListener="#{menuBean.select}"
mode="server">
- <h:outputLink
value="#{facesContext.externalContext.requestContextPath}/rich/calendar.xhtml"
>rich:calendar</h:outputLink>
- </rich:panelMenuItem>
-
- <rich:panelMenuItem actionListener="#{menuBean.select}"
mode="server">
- <h:outputLink
value="#{facesContext.externalContext.requestContextPath}/rich/colorPicker.xhtml"
>rich:colorPicker</h:outputLink>
- </rich:panelMenuItem>
-
- <rich:panelMenuItem actionListener="#{menuBean.select}"
mode="server">
- <h:outputLink
value="#{facesContext.externalContext.requestContextPath}/rich/comboBox.xhtml"
>rich:comboBox</h:outputLink>
- </rich:panelMenuItem>
-
- <rich:panelMenuItem actionListener="#{menuBean.select}"
mode="server">
- <h:outputLink
value="#{facesContext.externalContext.requestContextPath}/rich/contextMenu.xhtml"
>rich:contextMenu</h:outputLink>
- </rich:panelMenuItem>
-
- <rich:panelMenuItem actionListener="#{menuBean.select}"
mode="server">
- <h:outputLink
value="#{facesContext.externalContext.requestContextPath}/rich/editor.xhtml"
>rich:editor</h:outputLink>
- </rich:panelMenuItem>
-
- <rich:panelMenuItem actionListener="#{menuBean.select}"
mode="server">
- <h:outputLink
value="#{facesContext.externalContext.requestContextPath}/rich/fileUpload.xhtml"
>rich:fileUpload</h:outputLink>
- </rich:panelMenuItem>
-
- <rich:panelMenuItem actionListener="#{menuBean.select}"
mode="server">
- <h:outputLink
value="#{facesContext.externalContext.requestContextPath}/rich/jQuery.xhtml"
>rich:jQuery</h:outputLink>
- </rich:panelMenuItem>
-
- <rich:panelMenuItem actionListener="#{menuBean.select}"
mode="server">
- <h:outputLink
value="#{facesContext.externalContext.requestContextPath}/rich/inplaceInput.xhtml"
>rich:inplaceInput</h:outputLink>
- </rich:panelMenuItem>
-
- <rich:panelMenuItem actionListener="#{menuBean.select}"
mode="server">
- <h:outputLink
value="#{facesContext.externalContext.requestContextPath}/rich/modalPanel.xhtml"
>rich:modalPanel</h:outputLink>
- </rich:panelMenuItem>
+<rich:panelMenu
+
xmlns="http://www.w3.org/1999/xhtml"
+
xmlns:s="http://jboss.com/products/seam/taglib"
+
xmlns:ui="http://java.sun.com/jsf/facelets"
+
xmlns:f="http://java.sun.com/jsf/core"
+
xmlns:h="http://java.sun.com/jsf/html"
+
xmlns:rich="http://richfaces.org/rich"
- <rich:panelMenuItem actionListener="#{menuBean.select}"
mode="server">
- <h:outputLink
value="#{facesContext.externalContext.requestContextPath}/rich/layout.xhtml"
>rich:layout</h:outputLink>
- </rich:panelMenuItem>
-
- <rich:panelMenuItem actionListener="#{menuBean.select}"
mode="server">
- <h:outputLink
value="#{facesContext.externalContext.requestContextPath}/rich/page.xhtml"
>rich:page</h:outputLink>
- </rich:panelMenuItem>
-
- <rich:panelMenuItem actionListener="#{menuBean.select}"
mode="server">
- <h:outputLink
value="#{facesContext.externalContext.requestContextPath}/rich/pickList.xhtml"
>rich:pickList</h:outputLink>
- </rich:panelMenuItem>
-
- <rich:panelMenuItem actionListener="#{menuBean.select}"
mode="server">
- <h:outputLink
value="#{facesContext.externalContext.requestContextPath}/rich/progressBar.xhtml"
>rich:progressBar</h:outputLink>
- </rich:panelMenuItem>
-
- <rich:panelMenuItem actionListener="#{menuBean.select}"
mode="server">
- <h:outputLink
value="#{facesContext.externalContext.requestContextPath}/rich/tree.xhtml"
>rich:tree</h:outputLink>
- </rich:panelMenuItem>
+ mode="client"
+ iconExpandedGroup="disc"
+ iconCollapsedGroup="disc"
+ iconExpandedTopGroup="chevronUp"
+ iconGroupTopPosition="right"
+ iconCollapsedTopGroup="chevronDown"
+ iconCollapsedTopPosition="right"
+ id="mainMenu">
+ <rich:panelMenuGroup label="Rich Components" id="group1"
value="#{menuState.menu['group1']}">
- </rich:panelMenuGroup>
-
-<rich:panelMenuGroup label="A4J Components" id="group2"
value="#{menuState.menu['group2']}">
-<rich:panelMenuItem actionListener="#{menuBean.select}"
mode="server">
- <h:outputLink
value="#{facesContext.externalContext.requestContextPath}/a4j/ajaxListener.xhtml"
>a4j:ajaxListener</h:outputLink>
-</rich:panelMenuItem>
-<rich:panelMenuItem actionListener="#{menuBean.select}"
mode="server">
- <h:outputLink
value="#{facesContext.externalContext.requestContextPath}/a4j/queue.xhtml"
>a4j:queue</h:outputLink>
-</rich:panelMenuItem>
+ <rich:panelMenuItem actionListener="#{menuBean.select}"
mode="server">
+ <h:outputLink
+
value="#{facesContext.externalContext.requestContextPath}/rich/calendar.xhtml">rich:calendar</h:outputLink>
+ </rich:panelMenuItem>
-<rich:panelMenuItem actionListener="#{menuBean.select}"
mode="server">
- <h:outputLink
value="#{facesContext.externalContext.requestContextPath}/a4j/support.xhtml"
>a4j:support</h:outputLink>
-</rich:panelMenuItem>
+ <rich:panelMenuItem actionListener="#{menuBean.select}"
mode="server">
+ <h:outputLink
+
value="#{facesContext.externalContext.requestContextPath}/rich/colorPicker.xhtml">rich:colorPicker</h:outputLink>
+ </rich:panelMenuItem>
-<rich:panelMenuItem actionListener="#{menuBean.select}"
mode="server">
- <h:outputLink
value="#{facesContext.externalContext.requestContextPath}/a4j/media.xhtml"
>a4j:mediaOutput</h:outputLink>
-</rich:panelMenuItem>
+ <rich:panelMenuItem actionListener="#{menuBean.select}"
mode="server">
+ <h:outputLink
+
value="#{facesContext.externalContext.requestContextPath}/rich/comboBox.xhtml">rich:comboBox</h:outputLink>
+ </rich:panelMenuItem>
+ <rich:panelMenuItem actionListener="#{menuBean.select}"
mode="server">
+ <h:outputLink
+
value="#{facesContext.externalContext.requestContextPath}/rich/contextMenu.xhtml">rich:contextMenu</h:outputLink>
+ </rich:panelMenuItem>
-</rich:panelMenuGroup>
-<rich:panelMenuGroup label="Framework" id="group3"
value="#{menuState.menu['group3']}">
+ <rich:panelMenuItem actionListener="#{menuBean.select}"
mode="server">
+ <h:outputLink
+
value="#{facesContext.externalContext.requestContextPath}/rich/editor.xhtml">rich:editor</h:outputLink>
+ </rich:panelMenuItem>
-<rich:panelMenuItem actionListener="#{menuBean.select}"
mode="server">
-<h:outputLink
value="#{facesContext.externalContext.requestContextPath}/framework/framework.xhtml"
>Framework</h:outputLink>
-</rich:panelMenuItem>
+ <rich:panelMenuItem actionListener="#{menuBean.select}"
mode="server">
+ <h:outputLink
+
value="#{facesContext.externalContext.requestContextPath}/rich/fileUpload.xhtml">rich:fileUpload</h:outputLink>
+ </rich:panelMenuItem>
-</rich:panelMenuGroup>
+ <rich:panelMenuItem actionListener="#{menuBean.select}"
mode="server">
+ <h:outputLink
+
value="#{facesContext.externalContext.requestContextPath}/rich/jQuery.xhtml">rich:jQuery</h:outputLink>
+ </rich:panelMenuItem>
-<rich:panelMenuGroup label="Skinnability" id="group4"
value="#{menuState.menu['group4']}">
+ <rich:panelMenuItem actionListener="#{menuBean.select}"
mode="server">
+ <h:outputLink
+
value="#{facesContext.externalContext.requestContextPath}/rich/inplaceInput.xhtml">rich:inplaceInput</h:outputLink>
+ </rich:panelMenuItem>
-<rich:panelMenuItem actionListener="#{menuBean.select}"
mode="server">
-<h:outputLink
value="#{facesContext.externalContext.requestContextPath}/skinning/stskinning.xhtml"
>Standard Skinning</h:outputLink>
-</rich:panelMenuItem>
+ <rich:panelMenuItem actionListener="#{menuBean.select}"
mode="server">
+ <h:outputLink
+
value="#{facesContext.externalContext.requestContextPath}/rich/modalPanel.xhtml">rich:modalPanel</h:outputLink>
+ </rich:panelMenuItem>
-</rich:panelMenuGroup>
+ <rich:panelMenuItem actionListener="#{menuBean.select}"
mode="server">
+ <h:outputLink
+
value="#{facesContext.externalContext.requestContextPath}/rich/layout.xhtml">rich:layout</h:outputLink>
+ </rich:panelMenuItem>
+ <rich:panelMenuItem actionListener="#{menuBean.select}"
mode="server">
+ <h:outputLink
+
value="#{facesContext.externalContext.requestContextPath}/rich/page.xhtml">rich:page</h:outputLink>
+ </rich:panelMenuItem>
+
+ <rich:panelMenuItem actionListener="#{menuBean.select}"
mode="server">
+ <h:outputLink
+
value="#{facesContext.externalContext.requestContextPath}/rich/pickList.xhtml">rich:pickList</h:outputLink>
+ </rich:panelMenuItem>
+
+ <rich:panelMenuItem actionListener="#{menuBean.select}"
mode="server">
+ <h:outputLink
+
value="#{facesContext.externalContext.requestContextPath}/rich/progressBar.xhtml">rich:progressBar</h:outputLink>
+ </rich:panelMenuItem>
+
+ <rich:panelMenuItem actionListener="#{menuBean.select}"
mode="server">
+ <h:outputLink
+
value="#{facesContext.externalContext.requestContextPath}/rich/tree.xhtml">rich:tree</h:outputLink>
+ </rich:panelMenuItem>
+
+ </rich:panelMenuGroup>
+
+ <rich:panelMenuGroup label="A4J Components" id="group2"
value="#{menuState.menu['group2']}">
+ <rich:panelMenuItem actionListener="#{menuBean.select}"
mode="server">
+ <h:outputLink
+
value="#{facesContext.externalContext.requestContextPath}/a4j/ajaxListener.xhtml">a4j:ajaxListener</h:outputLink>
+ </rich:panelMenuItem>
+ <rich:panelMenuItem actionListener="#{menuBean.select}"
mode="server">
+ <h:outputLink
+
value="#{facesContext.externalContext.requestContextPath}/a4j/actionparam.xhtml">a4j:actionparam</h:outputLink>
+ </rich:panelMenuItem>
+ <rich:panelMenuItem actionListener="#{menuBean.select}"
mode="server">
+ <h:outputLink
+
value="#{facesContext.externalContext.requestContextPath}/a4j/queue.xhtml">a4j:queue</h:outputLink>
+ </rich:panelMenuItem>
+
+ <rich:panelMenuItem actionListener="#{menuBean.select}"
mode="server">
+ <h:outputLink
+
value="#{facesContext.externalContext.requestContextPath}/a4j/support.xhtml">a4j:support</h:outputLink>
+ </rich:panelMenuItem>
+
+ <rich:panelMenuItem actionListener="#{menuBean.select}"
mode="server">
+ <h:outputLink
+
value="#{facesContext.externalContext.requestContextPath}/a4j/media.xhtml">a4j:mediaOutput</h:outputLink>
+ </rich:panelMenuItem>
+
+
+ </rich:panelMenuGroup>
+ <rich:panelMenuGroup label="Framework" id="group3"
value="#{menuState.menu['group3']}">
+
+ <rich:panelMenuItem actionListener="#{menuBean.select}"
mode="server">
+ <h:outputLink
+
value="#{facesContext.externalContext.requestContextPath}/framework/framework.xhtml">Framework</h:outputLink>
+ </rich:panelMenuItem>
+
+ </rich:panelMenuGroup>
+
+ <rich:panelMenuGroup label="Skinnability" id="group4"
value="#{menuState.menu['group4']}">
+
+ <rich:panelMenuItem actionListener="#{menuBean.select}"
mode="server">
+ <h:outputLink
+
value="#{facesContext.externalContext.requestContextPath}/skinning/stskinning.xhtml">Standard
Skinning</h:outputLink>
+ </rich:panelMenuItem>
+
+ </rich:panelMenuGroup>
+
</rich:panelMenu>
\ No newline at end of file