You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by sc...@apache.org on 2005/04/08 15:01:00 UTC
cvs commit: incubator-myfaces/webapps/wap/web index.jsp
schof 2005/04/08 06:01:00
Modified: build build.xml
Added: webapps/wap/WEB-INF beans.xml navigation.xml
wap-faces-config.xml
webapps/wap/WEB-INF/classes .cvsignore
webapps/wap commandButton.jsp commandButtonProcess.jsp
commandLink.jsp commandLinkProcess.jsp
dataTable.jsp graphicImage.jsp index.jsp
inputFields.jsp inputFieldsProcess.jsp message.jsp
messageProcess.jsp messages.jsp messagesProcess.jsp
myfaces_header_logo.wbmp outputText.jsp
panelGrid.jsp selectBoolean.jsp
selectBooleanProcess.jsp selectMany.jsp
selectManyProcess.jsp selectOne.jsp
selectOneProcess.jsp
Removed: webapps/wap/web/WEB-INF beans.xml navigation.xml
wap-faces-config.xml
webapps/wap/web/WEB-INF/classes .cvsignore
webapps/wap/web/examples commandButton.jsp
commandButtonProcess.jsp commandLink.jsp
commandLinkProcess.jsp dataTable.jsp
graphicImage.jsp index.jsp inputFields.jsp
inputFieldsProcess.jsp message.jsp
messageProcess.jsp messages.jsp messagesProcess.jsp
myfaces_header_logo.wbmp outputText.jsp
panelGrid.jsp selectBoolean.jsp
selectBooleanProcess.jsp selectMany.jsp
selectManyProcess.jsp selectOne.jsp
selectOneProcess.jsp
webapps/wap/web index.jsp
Log:
Fixes MYFACES-170 (Thanks to Jiri for finding and fixing.)
Revision Changes Path
1.93 +33 -45 incubator-myfaces/build/build.xml
Index: build.xml
===================================================================
RCS file: /home/cvs/incubator-myfaces/build/build.xml,v
retrieving revision 1.92
retrieving revision 1.93
diff -u -r1.92 -r1.93
--- build.xml 7 Apr 2005 13:52:31 -0000 1.92
+++ build.xml 8 Apr 2005 13:00:59 -0000 1.93
@@ -280,7 +280,7 @@
includes="**/*.class"/>
<fileset dir="${components.classes}"
includes="**/*.class"/>
-
+
<!-- properties, DTDs, XMLs -->
<fileset dir="${myfaces.src}"
includes="**"
@@ -339,29 +339,29 @@
<copy todir="${temp.dir}/${bin.release.bundle}/doc">
<fileset dir="${doc.dir}"/>
- </copy>
+ </copy>
<copy todir="${temp.dir}/${bin.release.bundle}/conf">
<fileset dir="${conf.dir}"/>
- </copy>
+ </copy>
<copy file="${commons-codec.jar}" todir="${temp.dir}/${bin.release.bundle}/lib"/>
- <copy file="${commons-logging.jar}" todir="${temp.dir}/${bin.release.bundle}/lib"/>
+ <copy file="${commons-logging.jar}" todir="${temp.dir}/${bin.release.bundle}/lib"/>
<copy file="${commons-el.jar}" todir="${temp.dir}/${bin.release.bundle}/lib"/>
<copy file="${commons-fileupload.jar}" todir="${temp.dir}/${bin.release.bundle}/lib"/>
<copy file="${commons-validator.jar}" todir="${temp.dir}/${bin.release.bundle}/lib"/>
<copy file="${jakarta-oro.jar}" todir="${temp.dir}/${bin.release.bundle}/lib"/>
<copy file="${commons-codec.jar}" todir="${temp.dir}/${bin.release.bundle}/lib"/>
<copy file="${jstl.jar}" todir="${temp.dir}/${bin.release.bundle}/lib"/>
- <copy file="${jsp-2.0.jar}" todir="${temp.dir}/${bin.release.bundle}/lib"/>
+ <copy file="${jsp-2.0.jar}" todir="${temp.dir}/${bin.release.bundle}/lib"/>
<copy file="${commons-digester.jar}" todir="${temp.dir}/${bin.release.bundle}/lib"/>
<copy file="${commons-beanutils.jar}" todir="${temp.dir}/${bin.release.bundle}/lib"/>
<copy file="${commons-collections.jar}" todir="${temp.dir}/${bin.release.bundle}/lib"/>
<copy file="${myfaces-jsf-api.jar}" todir="${temp.dir}/${bin.release.bundle}/lib"/>
<copy file="${myfaces-impl.jar}" todir="${temp.dir}/${bin.release.bundle}/lib"/>
- <copy file="${myfaces-extensions.jar}" todir="${temp.dir}/${bin.release.bundle}/lib"/>
+ <copy file="${myfaces-extensions.jar}" todir="${temp.dir}/${bin.release.bundle}/lib"/>
<copy file="${myfaces.jar}" todir="${temp.dir}/${bin.release.bundle}/lib"/>
<copy file="${myfaces-wap.jar}" todir="${temp.dir}/${bin.release.bundle}/lib"/>
<copy file="${myfaces-xdoclet.jar}" todir="${temp.dir}/${bin.release.bundle}/lib"/>
-
+
</target>
<target name="bin-release"
@@ -380,53 +380,53 @@
<!-- get all the files in one location so they can be bundled -->
<target name="prepare-src-release" depends="prepare">
<copy todir="${temp.dir}/${src.release.bundle}/build">
- <fileset dir="${build.dir}"
- excludes= "**/codegen/**,
- **/develop/**,
- **/temp/**,
- **tmp/**,
- **/nightly/**,
- **/release/**,
- **/dist/**,
- **/site/**,
+ <fileset dir="${build.dir}"
+ excludes= "**/codegen/**,
+ **/develop/**,
+ **/temp/**,
+ **tmp/**,
+ **/nightly/**,
+ **/release/**,
+ **/dist/**,
+ **/site/**,
**/webapp/**"/>
</copy>
<copy todir="${temp.dir}/${src.release.bundle}/conf">
<fileset dir="${conf.dir}" excludes="develop-web.xml"/>
- </copy>
+ </copy>
<copy todir="${temp.dir}/${src.release.bundle}/doc">
<fileset dir="${doc.dir}" excludes="javadoc/**/*,tlddoc/**/*"/>
- </copy>
+ </copy>
<copy todir="${temp.dir}/${src.release.bundle}/src/jsfapi">
<fileset dir="${jsfapi.src}"/>
- </copy>
+ </copy>
<copy todir="${temp.dir}/${src.release.bundle}/src/share">
<fileset dir="${share.src}"/>
- </copy>
+ </copy>
<copy todir="${temp.dir}/${src.release.bundle}/src/myfaces">
<fileset dir="${myfaces.src}"/>
- </copy>
+ </copy>
<copy todir="${temp.dir}/${src.release.bundle}/src/wml">
<fileset dir="${wml.src}"/>
- </copy>
+ </copy>
<copy todir="${temp.dir}/${src.release.bundle}/src/xdoclet">
<fileset dir="${xdoclet.src}"/>
- </copy>
+ </copy>
<copy todir="${temp.dir}/${src.release.bundle}/src/components">
<fileset dir="${components.src}"/>
- </copy>
+ </copy>
<copy todir="${temp.dir}/${src.release.bundle}/src/cactus">
<fileset dir="${cactus.src}"/>
- </copy>
+ </copy>
<copy todir="${temp.dir}/${src.release.bundle}/src/junit">
<fileset dir="${junit.src}"/>
- </copy>
+ </copy>
<copy todir="${temp.dir}/${src.release.bundle}/tlds">
<fileset dir="${tlds.dir}"/>
- </copy>
+ </copy>
<copy todir="${temp.dir}/${src.release.bundle}/webapps">
<fileset dir="${apps.dir}" excludes="**/lib/**, **/classes/**"/>
- </copy>
+ </copy>
</target>
<target name="src-release"
@@ -742,7 +742,7 @@
<property name="web.dir" location="${apps.dir}/examples"/>
<property name="webapp.dist.dir" location="${webapp.dist.dir}"/>
</ant>
-
+
<!-- build wap webapp -->
<copy file="${conf.dir}/wap/web.xml" todir="${apps.dir}/wap/WEB-INF"/>
<ant antfile="build-webapps.xml" inheritall="false" target="war">
@@ -751,9 +751,8 @@
<property name="web.dir" location="${apps.dir}/wap"/>
<property name="webapp.dist.dir" location="${webapp.dist.dir}"/>
<property name="src.dir" location="${apps.dir}/src/wap"/>
- <property name="myfaces-wap.jar" location="${myfaces-wap.jar}">
- </property>
- </ant>
+ <property name="myfaces-wap.jar" location="${myfaces-wap.jar}"/>
+ </ant>
</target>
@@ -762,25 +761,14 @@
<tar destfile="${release.dir}/${app.release.bundle}.tgz" compression="gzip" >
<tarfileset dir="${webapp.dist.dir}"/>
</tar>
-
+
<zip destfile="${release.dir}/${app.release.bundle}.zip" compress="true">
<zipfileset dir="${webapp.dist.dir}"/>
</zip>
</target>
- <target name="release" depends="prepare, src-release, bin-release, app-release">
-
- <!-- copy resulting builds to nightly directory -->
-<!--
- <copy file="${release.dir}/${src.release.bundle}.tgz" todir="${release.dir}"/>
- <copy file="${release.dir}/${bin.release.bundle}.tgz" todir="${release.dir}"/>
- <copy file="${release.dir}/${app.release.bundle}.tgz" todir="${release.dir}"/>
- <copy file="${release.dir}/${src.release.bundle}.zip" todir="${release.dir}"/>
- <copy file="${release.dir}/${bin.release.bundle}.zip" todir="${release.dir}"/>
- <copy file="${release.dir}/${app.release.bundle}.zip" todir="${release.dir}"/>
--->
- </target>
+ <target name="release" depends="prepare, src-release, bin-release, app-release"/>
</project>
1.1 incubator-myfaces/webapps/wap/WEB-INF/beans.xml
Index: beans.xml
===================================================================
<managed-bean>
<managed-bean-name>stringBean</managed-bean-name>
<managed-bean-class>StringBean</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
<managed-property>
<property-name>name</property-name>
<value></value>
</managed-property>
<managed-property>
<property-name>password</property-name>
<value></value>
</managed-property>
</managed-bean>
<managed-bean>
<managed-bean-name>integerBean</managed-bean-name>
<managed-bean-class>IntegerBean</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
</managed-bean>
<managed-bean>
<managed-bean-name>statistic</managed-bean-name>
<managed-bean-class>Statistic</managed-bean-class>
<managed-bean-scope>application</managed-bean-scope>
</managed-bean>
<managed-bean>
<managed-bean-name>todayDate</managed-bean-name>
<managed-bean-class>TodayDate</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
</managed-bean>
<managed-bean>
<managed-bean-name>selectBean</managed-bean-name>
<managed-bean-class>SelectBean</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
</managed-bean>
<managed-bean>
<managed-bean-name>items</managed-bean-name>
<managed-bean-class>Items</managed-bean-class>
<managed-bean-scope>application</managed-bean-scope>
</managed-bean>
<managed-bean>
<managed-bean-name>languages</managed-bean-name>
<managed-bean-class>ListBean</managed-bean-class>
<managed-bean-scope>application</managed-bean-scope>
<managed-property>
<property-name>list</property-name>
<list-entries>
<value-class>javax.faces.model.SelectItem</value-class>
<value>#{language1}</value>
<value>#{language2}</value>
<value>#{language3}</value>
</list-entries>
</managed-property>
</managed-bean>
<managed-bean>
<managed-bean-name>language1</managed-bean-name>
<managed-bean-class>javax.faces.model.SelectItem</managed-bean-class>
<managed-bean-scope>none</managed-bean-scope>
<managed-property>
<property-name>label</property-name>
<value>english</value>
</managed-property>
<managed-property>
<property-name>value</property-name>
<value>english</value>
</managed-property>
</managed-bean>
<managed-bean>
<managed-bean-name>language2</managed-bean-name>
<managed-bean-class>javax.faces.model.SelectItem</managed-bean-class>
<managed-bean-scope>none</managed-bean-scope>
<managed-property>
<property-name>label</property-name>
<value>germany</value>
</managed-property>
<managed-property>
<property-name>value</property-name>
<value>germany</value>
</managed-property>
</managed-bean>
<managed-bean>
<managed-bean-name>language3</managed-bean-name>
<managed-bean-class>javax.faces.model.SelectItem</managed-bean-class>
<managed-bean-scope>none</managed-bean-scope>
<managed-property>
<property-name>label</property-name>
<value>czech</value>
</managed-property>
<managed-property>
<property-name>value</property-name>
<value>czech</value>
</managed-property>
</managed-bean>
1.1 incubator-myfaces/webapps/wap/WEB-INF/navigation.xml
Index: navigation.xml
===================================================================
<navigation-rule>
<from-view-id>/examples/index.jsp</from-view-id>
<navigation-case>
<from-outcome>commandButton</from-outcome>
<to-view-id>/examples/commandButton.jsp</to-view-id>
</navigation-case>
<navigation-case>
<from-outcome>commandLink</from-outcome>
<to-view-id>/examples/commandLink.jsp</to-view-id>
</navigation-case>
<navigation-case>
<from-outcome>dataTable</from-outcome>
<to-view-id>/examples/dataTable.jsp</to-view-id>
</navigation-case>
<navigation-case>
<from-outcome>graphicImage</from-outcome>
<to-view-id>/examples/graphicImage.jsp</to-view-id>
</navigation-case>
<navigation-case>
<from-outcome>inputFields</from-outcome>
<to-view-id>/examples/inputFields.jsp</to-view-id>
</navigation-case>
<navigation-case>
<from-outcome>message</from-outcome>
<to-view-id>/examples/message.jsp</to-view-id>
</navigation-case>
<navigation-case>
<from-outcome>messages</from-outcome>
<to-view-id>/examples/messages.jsp</to-view-id>
</navigation-case>
<navigation-case>
<from-outcome>outputText</from-outcome>
<to-view-id>/examples/outputText.jsp</to-view-id>
</navigation-case>
<navigation-case>
<from-outcome>panelGrid</from-outcome>
<to-view-id>/examples/panelGrid.jsp</to-view-id>
</navigation-case>
<navigation-case>
<from-outcome>selectBoolean</from-outcome>
<to-view-id>/examples/selectBoolean.jsp</to-view-id>
</navigation-case>
<navigation-case>
<from-outcome>selectMany</from-outcome>
<to-view-id>/examples/selectMany.jsp</to-view-id>
</navigation-case>
<navigation-case>
<from-outcome>selectOne</from-outcome>
<to-view-id>/examples/selectOne.jsp</to-view-id>
</navigation-case>
</navigation-rule>
<navigation-rule>
<from-view-id>/examples/commandButton.jsp</from-view-id>
<navigation-case>
<from-outcome>ok</from-outcome>
<to-view-id>/examples/commandButtonProcess.jsp</to-view-id>
</navigation-case>
<navigation-case>
<from-outcome>backToIndex</from-outcome>
<to-view-id>/examples/index.jsp</to-view-id>
</navigation-case>
</navigation-rule>
<navigation-rule>
<from-view-id>/examples/commandButtonProcess.jsp</from-view-id>
<navigation-case>
<from-outcome>back</from-outcome>
<to-view-id>/examples/commandButton.jsp</to-view-id>
</navigation-case>
</navigation-rule>
<navigation-rule>
<from-view-id>/examples/commandLink.jsp</from-view-id>
<navigation-case>
<from-outcome>ok</from-outcome>
<to-view-id>/examples/commandLinkProcess.jsp</to-view-id>
</navigation-case>
<navigation-case>
<from-outcome>commandButton</from-outcome>
<to-view-id>/examples/commandButton.jsp</to-view-id>
</navigation-case>
<navigation-case>
<from-outcome>backToIndex</from-outcome>
<to-view-id>/examples/index.jsp</to-view-id>
</navigation-case>
</navigation-rule>
<navigation-rule>
<from-view-id>/examples/commandLinkProcess.jsp</from-view-id>
<navigation-case>
<from-outcome>back</from-outcome>
<to-view-id>/examples/commandLink.jsp</to-view-id>
</navigation-case>
</navigation-rule>
<navigation-rule>
<from-view-id>/examples/dataTable.jsp</from-view-id>
<navigation-case>
<from-outcome>backToIndex</from-outcome>
<to-view-id>/examples/index.jsp</to-view-id>
</navigation-case>
</navigation-rule>
<navigation-rule>
<from-view-id>/examples/graphicImage.jsp</from-view-id>
<navigation-case>
<from-outcome>backToIndex</from-outcome>
<to-view-id>/examples/index.jsp</to-view-id>
</navigation-case>
</navigation-rule>
<navigation-rule>
<from-view-id>/examples/inputFields.jsp</from-view-id>
<navigation-case>
<from-outcome>login</from-outcome>
<to-view-id>/examples/inputFieldsProcess.jsp</to-view-id>
</navigation-case>
<navigation-case>
<from-outcome>backToIndex</from-outcome>
<to-view-id>/examples/index.jsp</to-view-id>
</navigation-case>
</navigation-rule>
<navigation-rule>
<from-view-id>/examples/inputFieldsProcess.jsp</from-view-id>
<navigation-case>
<from-outcome>back</from-outcome>
<to-view-id>/examples/inputFields.jsp</to-view-id>
</navigation-case>
</navigation-rule>
<navigation-rule>
<from-view-id>/examples/message.jsp</from-view-id>
<navigation-case>
<from-outcome>success</from-outcome>
<to-view-id>/examples/messageProcess.jsp</to-view-id>
</navigation-case>
<navigation-case>
<from-outcome>backToIndex</from-outcome>
<to-view-id>/examples/index.jsp</to-view-id>
</navigation-case>
</navigation-rule>
<navigation-rule>
<from-view-id>/examples/messageProcess.jsp</from-view-id>
<navigation-case>
<from-outcome>back</from-outcome>
<to-view-id>/examples/message.jsp</to-view-id>
</navigation-case>
</navigation-rule>
<navigation-rule>
<from-view-id>/examples/messages.jsp</from-view-id>
<navigation-case>
<from-outcome>success</from-outcome>
<to-view-id>/examples/messagesProcess.jsp</to-view-id>
</navigation-case>
<navigation-case>
<from-outcome>backToIndex</from-outcome>
<to-view-id>/examples/index.jsp</to-view-id>
</navigation-case>
</navigation-rule>
<navigation-rule>
<from-view-id>/examples/messagesProcess.jsp</from-view-id>
<navigation-case>
<from-outcome>back</from-outcome>
<to-view-id>/examples/messages.jsp</to-view-id>
</navigation-case>
</navigation-rule>
<navigation-rule>
<from-view-id>/examples/outputText.jsp</from-view-id>
<navigation-case>
<from-outcome>backToIndex</from-outcome>
<to-view-id>/examples/index.jsp</to-view-id>
</navigation-case>
</navigation-rule>
<navigation-rule>
<from-view-id>/examples/panelGrid.jsp</from-view-id>
<navigation-case>
<from-outcome>backToIndex</from-outcome>
<to-view-id>/examples/index.jsp</to-view-id>
</navigation-case>
</navigation-rule>
<navigation-rule>
<from-view-id>/examples/selectBoolean.jsp</from-view-id>
<navigation-case>
<from-outcome>ok</from-outcome>
<to-view-id>/examples/selectBooleanProcess.jsp</to-view-id>
</navigation-case>
<navigation-case>
<from-outcome>backToIndex</from-outcome>
<to-view-id>/examples/index.jsp</to-view-id>
</navigation-case>
</navigation-rule>
<navigation-rule>
<from-view-id>/examples/selectBooleanProcess.jsp</from-view-id>
<navigation-case>
<from-outcome>back</from-outcome>
<to-view-id>/examples/selectBoolean.jsp</to-view-id>
</navigation-case>
</navigation-rule>
<navigation-rule>
<from-view-id>/examples/selectOne.jsp</from-view-id>
<navigation-case>
<from-outcome>ok</from-outcome>
<to-view-id>/examples/selectOneProcess.jsp</to-view-id>
</navigation-case>
<navigation-case>
<from-outcome>backToIndex</from-outcome>
<to-view-id>/examples/index.jsp</to-view-id>
</navigation-case>
</navigation-rule>
<navigation-rule>
<from-view-id>/examples/selectOneProcess.jsp</from-view-id>
<navigation-case>
<from-outcome>back</from-outcome>
<to-view-id>/examples/selectOne.jsp</to-view-id>
</navigation-case>
</navigation-rule>
<navigation-rule>
<from-view-id>/examples/selectMany.jsp</from-view-id>
<navigation-case>
<from-outcome>ok</from-outcome>
<to-view-id>/examples/selectManyProcess.jsp</to-view-id>
</navigation-case>
<navigation-case>
<from-outcome>backToIndex</from-outcome>
<to-view-id>/examples/index.jsp</to-view-id>
</navigation-case>
</navigation-rule>
<navigation-rule>
<from-view-id>/examples/selectManyProcess.jsp</from-view-id>
<navigation-case>
<from-outcome>back</from-outcome>
<to-view-id>/examples/selectMany.jsp</to-view-id>
</navigation-case>
</navigation-rule>
<!-- HTML navigation -->
<navigation-rule>
<from-view-id>/html.jsp</from-view-id>
<navigation-case>
<from-outcome>ok</from-outcome>
<to-view-id>/processHtml.jsp</to-view-id>
</navigation-case>
</navigation-rule>
<navigation-rule>
<from-view-id>/processHtml.jsp</from-view-id>
<navigation-case>
<from-outcome>back</from-outcome>
<to-view-id>/html.jsp</to-view-id>
</navigation-case>
</navigation-rule>
1.1 incubator-myfaces/webapps/wap/WEB-INF/wap-faces-config.xml
Index: wap-faces-config.xml
===================================================================
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE faces-config PUBLIC
"-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
"http://java.sun.com/dtd/web-facesconfig_1_1.dtd"[
<!ENTITY beans SYSTEM "beans.xml">
<!ENTITY navigation SYSTEM "navigation.xml">
]>
<faces-config>
<application>
<!--<default-render-kit-id>WML_BASIC</default-render-kit-id>-->
<default-render-kit-id>WML_BASIC</default-render-kit-id>
</application>
<converter>
<converter-id>MyConv</converter-id>
<converter-class>javax.faces.convert.DateTimeConverter</converter-class>
</converter>
<!--<validator>
<validator-id>LRValidator</validator-id>
<validator-class>javax.faces.validator.LongRangeValidator</validator-class>
</validator>-->
&beans;
&navigation;
</faces-config>
1.1 incubator-myfaces/webapps/wap/WEB-INF/classes/.cvsignore
Index: .cvsignore
===================================================================
*.class
1.1 incubator-myfaces/webapps/wap/commandButton.jsp
Index: commandButton.jsp
===================================================================
<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<%@ page contentType="text/vnd.wap.wml" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="http://myfaces.apache.org/wap" prefix="wap" %>
<wml>
<card id="cart1" title="CommandButton example">
<p>
<f:view>
<wap:form>
<i>Name:</i>
<wap:inputText value="#{stringBean.name}" />
<wap:commandButton action="ok" value="send" />
<wap:commandButton value="reset" type="reset" />
<wap:commandButton action="backToIndex" type="prev" value="examples" />
</wap:form>
</f:view>
</p>
</card>
</wml>
1.1 incubator-myfaces/webapps/wap/commandButtonProcess.jsp
Index: commandButtonProcess.jsp
===================================================================
<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<%@ page contentType="text/vnd.wap.wml" %>
<%@ 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/wap" prefix="wap" %>
<wml>
<card id="card1" title="commandButton">
<p>
<f:view>
<wap:form>
<i>Your name is:</i><br/>
<wap:outputText value="#{stringBean.name}" /><br/><br/>
<wap:commandLink action="back" ><wap:outputText value="back"/></wap:commandLink>
</wap:form>
</f:view>
</p>
</card>
</wml>
1.1 incubator-myfaces/webapps/wap/commandLink.jsp
Index: commandLink.jsp
===================================================================
<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<%@ page contentType="text/vnd.wap.wml" %>
<%@ 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/wap" prefix="wap" %>
<wml>
<card id="cart1" title="CommandLink example">
<p>
<f:view>
<wap:form>
<i>Name:</i>
<wap:inputText value="#{stringBean.name}" />
<wap:commandLink action="ok">
<b><wap:outputText value="send"/></b>
</wap:commandLink><br/>
<wap:commandLink action="commandButton"><wap:outputText value="commandButton example"/></wap:commandLink>
<wap:commandButton action="backToIndex" type="prev" value="examples" />
</wap:form>
</f:view>
</p>
</card>
</wml>
1.1 incubator-myfaces/webapps/wap/commandLinkProcess.jsp
Index: commandLinkProcess.jsp
===================================================================
<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<%@ page contentType="text/vnd.wap.wml" %>
<%@ 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/wap" prefix="wap" %>
<wml>
<card id="card1" title="commandLink">
<p>
<f:view>
<wap:form>
<i>Your name is:</i><br/>
<wap:outputText value="#{stringBean.name}" /><br/><br/>
<wap:commandLink action="back" ><wap:outputText value="back"/></wap:commandLink>
</wap:form>
</f:view>
</p>
</card>
</wml>
1.1 incubator-myfaces/webapps/wap/dataTable.jsp
Index: dataTable.jsp
===================================================================
<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<%@ page contentType="text/vnd.wap.wml" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="http://myfaces.apache.org/wap" prefix="wap" %>
<wml>
<card id="card1" title="dataTable example">
<p>
<f:view>
<wap:form>
<wap:dataTable title="Number of users:" value="#{statistic.records}" var="record" >
<wap:column>
<f:facet name="header">
<wap:outputText value="day:" />
</f:facet>
<b><wap:outputText value="#{record.date}" >
<f:convertDateTime dateStyle="short" />
</wap:outputText></b>
</wap:column>
<wap:column>
<f:facet name="header">
<wap:outputText value="no of visitors:" />
</f:facet>
<wap:outputText value="#{record.visitors}" />
<f:facet name="footer">
<wap:outputText value="#{statistic.summary}" />
</f:facet>
</wap:column>
</wap:dataTable>
<wap:commandButton action="backToIndex" type="prev" value="examples" />
</wap:form>
</f:view>
</p>
</card>
</wml>
1.1 incubator-myfaces/webapps/wap/graphicImage.jsp
Index: graphicImage.jsp
===================================================================
<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<%@ page contentType="text/vnd.wap.wml" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="http://myfaces.apache.org/wap" prefix="wap" %>
<wml>
<card id="card1" title="graphicImage example">
<p>
<f:view>
This is a wbmp image:
<wap:graphicImage url="./myfaces_header_logo.wbmp" alt="Apache MyFaces" />
<wap:form>
<wap:commandButton action="backToIndex" type="prev" value="examples" />
</wap:form>
</f:view>
</p>
</card>
</wml>
1.1 incubator-myfaces/webapps/wap/index.jsp
Index: index.jsp
===================================================================
<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<%@ page contentType="text/vnd.wap.wml" %>
<%@ 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/wap" prefix="wap" %>
<wml>
<card id="cart1" title="Examples">
<p>
<f:view>
<wap:form>
<i>Examples:</i>
<wap:commandLink action="commandButton"><wap:outputText value="commandButton"/></wap:commandLink><br/>
<wap:commandLink action="commandLink"><wap:outputText value="commandLink"/></wap:commandLink><br/>
<wap:commandLink action="dataTable"><wap:outputText value="dataTable"/></wap:commandLink><br/>
<wap:commandLink action="graphicImage"><wap:outputText value="graphicImage"/></wap:commandLink><br/>
<wap:commandLink action="inputFields"><wap:outputText value="inputFields"/></wap:commandLink><br/>
<wap:commandLink action="message"><wap:outputText value="message"/></wap:commandLink><br/>
<wap:commandLink action="messages"><wap:outputText value="messages"/></wap:commandLink><br/>
<wap:commandLink action="outputText"><wap:outputText value="outputText"/></wap:commandLink><br/>
<wap:commandLink action="panelGrid"><wap:outputText value="panelGrid"/></wap:commandLink><br/>
<wap:commandLink action="selectBoolean"><wap:outputText value="selectBoolean"/></wap:commandLink><br/>
<wap:commandLink action="selectMany"><wap:outputText value="selectMany"/></wap:commandLink><br/>
<wap:commandLink action="selectOne"><wap:outputText value="selectOne"/></wap:commandLink><br/>
</wap:form>
</f:view>
</p>
</card>
</wml>
1.1 incubator-myfaces/webapps/wap/inputFields.jsp
Index: inputFields.jsp
===================================================================
<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<%@ page contentType="text/vnd.wap.wml" %>
<%@ 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/wap" prefix="wap" %>
<wml>
<card id="card1" title="inputFields example">
<p>
<f:view>
<wap:form>
<i>Name:</i><br/>
<wap:inputText id="name1" value="#{stringBean.name}" required="true" />
<i>Password:</i><br/>
<wap:inputSecret value="#{stringBean.password}" />
<wap:message for="name1" />
<wap:commandButton action="login" value="login" />
<wap:commandButton value="reset" type="reset" />
<wap:commandButton action="backToIndex" type="prev" value="examples" />
</wap:form>
</f:view>
</p>
</card>
</wml>
1.1 incubator-myfaces/webapps/wap/inputFieldsProcess.jsp
Index: inputFieldsProcess.jsp
===================================================================
<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<%@ page contentType="text/vnd.wap.wml" %>
<%@ 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/wap" prefix="wap" %>
<wml>
<card id="card1" title="commandLink">
<p>
<f:view>
<wap:form>
<i>name:</i><br/>
<wap:outputText value="#{stringBean.name}" /><br/><br/>
<i>password:</i><br/>
<wap:outputText value="#{stringBean.password}" /><br/><br/>
<wap:commandLink action="back" ><wap:outputText value="back"/></wap:commandLink>
</wap:form>
</f:view>
</p>
</card>
</wml>
1.1 incubator-myfaces/webapps/wap/message.jsp
Index: message.jsp
===================================================================
<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<%@ page contentType="text/vnd.wap.wml" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="http://myfaces.apache.org/wap" prefix="wap" %>
<wml>
<card id="card1" title="message example">
<p>
<f:view>
<wap:form>
Enter number from 0 to 10:
<wap:inputText id="inputNumber1" value="#{integerBean.number}" format="2N">
<f:validateLongRange minimum="0" maximum="10" />
</wap:inputText>
<wap:message for="inputNumber1" />
<br/>
<wap:commandLink action="success" ><wap:outputText value="submit" /></wap:commandLink>
<wap:commandButton action="backToIndex" type="prev" value="examples" />
</wap:form>
</f:view>
</p>
</card>
</wml>
1.1 incubator-myfaces/webapps/wap/messageProcess.jsp
Index: messageProcess.jsp
===================================================================
<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<%@ page contentType="text/vnd.wap.wml" %>
<%@ 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/wap" prefix="wap" %>
<wml>
<card id="card1" title="message example">
<p>
<f:view>
<wap:form>
Number <wap:outputText value="#{integerBean.number}" /> is valid.
<br/><br/>
<wap:commandLink action="back" ><wap:outputText value="back"/></wap:commandLink>
<wap:commandButton action="backToIndex" type="prev" value="go back" />
</wap:form>
</f:view>
</p>
</card>
</wml>
1.1 incubator-myfaces/webapps/wap/messages.jsp
Index: messages.jsp
===================================================================
<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<%@ page contentType="text/vnd.wap.wml" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="http://myfaces.apache.org/wap" prefix="wap" %>
<wml>
<card id="card1" title="messages example">
<p>
<f:view>
<wap:form>
Enter number from 0 to 10:
<wap:inputText id="inputNumber1" value="#{integerBean.number}" format="2N" >
<f:validateLongRange minimum="0" maximum="10" />
</wap:inputText>
This value is required:
<wap:inputText id="inputString1" value="#{stringBean.name}" required="true" />
<wap:messages />
<br/>
<wap:commandLink action="success" ><wap:outputText value="submit" /></wap:commandLink>
<wap:commandButton action="backToIndex" type="prev" value="examples" />
</wap:form>
</f:view>
</p>
</card>
</wml>
1.1 incubator-myfaces/webapps/wap/messagesProcess.jsp
Index: messagesProcess.jsp
===================================================================
<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<%@ page contentType="text/vnd.wap.wml" %>
<%@ 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/wap" prefix="wap" %>
<wml>
<card id="card1" title="messages example">
<p>
<f:view>
<wap:form>
Number <wap:outputText value="#{integerBean.number}" /> is valid.<br/>
Entered string: <wap:outputText value="#{stringBean.name}" /><br/>
<wap:commandLink action="back" ><wap:outputText value="back"/></wap:commandLink>
</wap:form>
</f:view>
</p>
</card>
</wml>
1.1 incubator-myfaces/webapps/wap/myfaces_header_logo.wbmp
<<Binary file>>
1.1 incubator-myfaces/webapps/wap/outputText.jsp
Index: outputText.jsp
===================================================================
<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<%@ page contentType="text/vnd.wap.wml" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="http://myfaces.apache.org/wap" prefix="wap" %>
<wml>
<card id="card1" title="outputText example">
<p>
<f:view>
<i>Today is:</i><br/>
<wap:outputText value="#{todayDate.date}" >
<f:convertDateTime dateStyle="full" />
</wap:outputText>
<wap:form>
<wap:commandButton action="backToIndex" type="prev" value="examples" />
</wap:form>
</f:view>
</p>
</card>
</wml>
1.1 incubator-myfaces/webapps/wap/panelGrid.jsp
Index: panelGrid.jsp
===================================================================
<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<%@ page contentType="text/vnd.wap.wml" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="http://myfaces.apache.org/wap" prefix="wap" %>
<wml>
<card id="card1" title="panelGrid example">
<p>
<f:view>
<wap:form>
<wap:panelGrid title="title" columns="2">
<f:facet name="header">
<wap:panelGroup>
<wap:outputText value="column1" />
<wap:outputText value="column2" />
</wap:panelGroup>
</f:facet>
<wap:panelGroup>
<!-- grid nested in one panel cell -->
<wap:panelGrid columns="3">
<wap:outputText value="Grid" />
<wap:outputText value=" in " />
<wap:outputText value="grid" />
</wap:panelGrid>
</wap:panelGroup>
<!-- elements nested in panelGroup will be rendered to one cell -->
<wap:panelGroup>
<wap:outputText value="1" />
<wap:outputText value="2" />
<wap:outputText value="3" />
</wap:panelGroup>
<wap:outputText value="column1" />
<wap:outputText value="column2" />
<wap:outputText value="column1" />
<wap:outputText value="column2" />
<f:facet name="footer">
<wap:panelGroup>
<wap:outputText value="footer1" />
<wap:outputText value="footer2" />
</wap:panelGroup>
</f:facet>
</wap:panelGrid>
<wap:commandButton action="backToIndex" type="prev" value="examples" />
</wap:form>
</f:view>
</p>
</card>
</wml>
1.1 incubator-myfaces/webapps/wap/selectBoolean.jsp
Index: selectBoolean.jsp
===================================================================
<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<%@ page contentType="text/vnd.wap.wml" %>
<%@ 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/wap" prefix="wap" %>
<wml>
<card id="card1" title="selectBoolean example">
<p>
<f:view>
<wap:form>
Example:<br/>
<wap:selectBoolean value="#{selectBean.boolValue}">
<wap:outputText value="value" />
</wap:selectBoolean>
<br/>
<wap:commandLink action="ok"><wap:outputText value="submit"/></wap:commandLink>
<wap:commandButton action="backToIndex" type="prev" value="examples" />
</wap:form>
</f:view>
</p>
</card>
</wml>
1.1 incubator-myfaces/webapps/wap/selectBooleanProcess.jsp
Index: selectBooleanProcess.jsp
===================================================================
<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<%@ page contentType="text/vnd.wap.wml" %>
<%@ 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/wap" prefix="wap" %>
<wml>
<card id="card1" title="commandLink">
<p>
<f:view>
<wap:form>
Your choise:
<wap:outputText value="#{selectBean.boolValue}" />
<br/>
<wap:commandLink action="back" ><wap:outputText value="back"/></wap:commandLink>
</wap:form>
</f:view>
</p>
</card>
</wml>
1.1 incubator-myfaces/webapps/wap/selectMany.jsp
Index: selectMany.jsp
===================================================================
<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<%@ page contentType="text/vnd.wap.wml" %>
<%@ 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/wap" prefix="wap" %>
<wml>
<card id="card1" title="selectMany example">
<p>
<f:view>
<wap:form>
<wap:selectMany value="#{selectBean.equipments}" required="true" >
<f:selectItems value="#{items.equipments}" />
</wap:selectMany>
<wap:commandLink action="ok"><wap:outputText value="submit" /></wap:commandLink>
<wap:commandButton action="backToIndex" type="prev" value="examples" />
</wap:form>
</f:view>
</p>
</card>
</wml>
1.1 incubator-myfaces/webapps/wap/selectManyProcess.jsp
Index: selectManyProcess.jsp
===================================================================
<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<%@ page contentType="text/vnd.wap.wml" %>
<%@ 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/wap" prefix="wap" %>
<wml>
<card id="card1" title="commandLink">
<p>
<f:view>
<wap:form>
Your choiseses:
<wap:dataTable value="#{selectBean.equipments}" var="equipments" >
<wap:column>
<wap:outputText value="#{equipments}" />
</wap:column>
</wap:dataTable>
<br/>
<wap:commandLink action="back" ><wap:outputText value="back"/></wap:commandLink>
</wap:form>
</f:view>
</p>
</card>
</wml>
1.1 incubator-myfaces/webapps/wap/selectOne.jsp
Index: selectOne.jsp
===================================================================
<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<%@ page contentType="text/vnd.wap.wml" %>
<%@ 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/wap" prefix="wap" %>
<wml>
<card id="card1" title="selectOne example">
<p>
<f:view>
<wap:form>
<wap:selectOne id="languageList1" value="#{stringBean.language}">
<f:selectItems value="#{languages.list}" />
</wap:selectOne>
<wap:commandLink action="ok"><wap:outputText value="submit" /></wap:commandLink>
<wap:commandButton action="backToIndex" type="prev" value="examples" />
</wap:form>
</f:view>
</p>
</card>
</wml>
1.1 incubator-myfaces/webapps/wap/selectOneProcess.jsp
Index: selectOneProcess.jsp
===================================================================
<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<%@ page contentType="text/vnd.wap.wml" %>
<%@ 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/wap" prefix="wap" %>
<wml>
<card id="card1" title="selectOne example">
<p>
<f:view>
<wap:form>
Your prefered language is: <wap:outputText value="#{stringBean.language}" />
<br/>
<wap:commandLink action="back" ><wap:outputText value="back"/></wap:commandLink>
</wap:form>
</f:view>
</p>
</card>
</wml>