myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lof...@apache.org
Subject svn commit: r810552 - in /myfaces/tobago/branches/tobago-1.0.x/example/experimental/src/main: java/org/apache/myfaces/tobago/example/test/Immediate.java webapp/WEB-INF/faces-config.xml webapp/immediate.jsp
Date Wed, 02 Sep 2009 15:18:36 GMT
Author: lofwyr
Date: Wed Sep  2 15:18:36 2009
New Revision: 810552

URL: http://svn.apache.org/viewvc?rev=810552&view=rev
Log:
looking for problems with immediate and selectOneChoice

Added:
    myfaces/tobago/branches/tobago-1.0.x/example/experimental/src/main/java/org/apache/myfaces/tobago/example/test/Immediate.java
    myfaces/tobago/branches/tobago-1.0.x/example/experimental/src/main/webapp/immediate.jsp
      - copied, changed from r810499, myfaces/tobago/branches/tobago-1.0.x/example/experimental/src/main/webapp/layout.jsp
Modified:
    myfaces/tobago/branches/tobago-1.0.x/example/experimental/src/main/webapp/WEB-INF/faces-config.xml

Added: myfaces/tobago/branches/tobago-1.0.x/example/experimental/src/main/java/org/apache/myfaces/tobago/example/test/Immediate.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-1.0.x/example/experimental/src/main/java/org/apache/myfaces/tobago/example/test/Immediate.java?rev=810552&view=auto
==============================================================================
--- myfaces/tobago/branches/tobago-1.0.x/example/experimental/src/main/java/org/apache/myfaces/tobago/example/test/Immediate.java
(added)
+++ myfaces/tobago/branches/tobago-1.0.x/example/experimental/src/main/java/org/apache/myfaces/tobago/example/test/Immediate.java
Wed Sep  2 15:18:36 2009
@@ -0,0 +1,46 @@
+package org.apache.myfaces.tobago.example.test;
+
+import javax.faces.model.SelectItem;
+
+public class Immediate {
+
+  private String in;
+  private int selectOne;
+  private Integer[] selectMany;
+
+  private SelectItem[] selectItems = new SelectItem[] {
+        new SelectItem(0, "Zero"),
+        new SelectItem(1, "One"),
+        new SelectItem(2, "Two"),
+        new SelectItem(3, "Tree"),
+        new SelectItem(4, "Four"),
+    };
+
+  public String getIn() {
+    return in;
+  }
+
+  public void setIn(String in) {
+    this.in = in;
+  }
+
+  public int getSelectOne() {
+    return selectOne;
+  }
+
+  public void setSelectOne(int selectOne) {
+    this.selectOne = selectOne;
+  }
+
+  public SelectItem[] getSelectItems() {
+    return selectItems;
+  }
+
+  public void setSelectMany(Integer[] selectMany) {
+    this.selectMany = selectMany;
+  }
+
+  public Integer[] getSelectMany() {
+    return selectMany;
+  }
+}

Modified: myfaces/tobago/branches/tobago-1.0.x/example/experimental/src/main/webapp/WEB-INF/faces-config.xml
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-1.0.x/example/experimental/src/main/webapp/WEB-INF/faces-config.xml?rev=810552&r1=810551&r2=810552&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-1.0.x/example/experimental/src/main/webapp/WEB-INF/faces-config.xml
(original)
+++ myfaces/tobago/branches/tobago-1.0.x/example/experimental/src/main/webapp/WEB-INF/faces-config.xml
Wed Sep  2 15:18:36 2009
@@ -18,8 +18,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">
+    "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
+    "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
 
 <faces-config>
 
@@ -39,27 +39,31 @@
     <managed-bean-scope>session</managed-bean-scope>
   </managed-bean>
 
-   <managed-bean>
+  <managed-bean>
     <managed-bean-name>tomahawk</managed-bean-name>
     <managed-bean-class>org.apache.myfaces.tobago.example.test.Tomahawk</managed-bean-class>
     <managed-bean-scope>session</managed-bean-scope>
   </managed-bean>
 
   <managed-bean>
-      <managed-bean-name>controller</managed-bean-name>
-      <managed-bean-class>
-        org.apache.myfaces.tobago.example.test.SessionController
-      </managed-bean-class>
-      <managed-bean-scope>session</managed-bean-scope>
-    </managed-bean>
-
-    <lifecycle>
-      <phase-listener>
-        org.apache.myfaces.tobago.util.DebugPhaseListener
-      </phase-listener>
+    <managed-bean-name>controller</managed-bean-name>
+    <managed-bean-class>
+      org.apache.myfaces.tobago.example.test.SessionController
+    </managed-bean-class>
+    <managed-bean-scope>session</managed-bean-scope>
+  </managed-bean>
 
-    </lifecycle>
+  <managed-bean>
+    <managed-bean-name>immediate</managed-bean-name>
+    <managed-bean-class>org.apache.myfaces.tobago.example.test.Immediate</managed-bean-class>
+    <managed-bean-scope>session</managed-bean-scope>
+  </managed-bean>
 
+  <lifecycle>
+    <phase-listener>
+      org.apache.myfaces.tobago.util.DebugPhaseListener
+    </phase-listener>
+  </lifecycle>
 
   <navigation-rule>
     <navigation-case>

Copied: myfaces/tobago/branches/tobago-1.0.x/example/experimental/src/main/webapp/immediate.jsp
(from r810499, myfaces/tobago/branches/tobago-1.0.x/example/experimental/src/main/webapp/layout.jsp)
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-1.0.x/example/experimental/src/main/webapp/immediate.jsp?p2=myfaces/tobago/branches/tobago-1.0.x/example/experimental/src/main/webapp/immediate.jsp&p1=myfaces/tobago/branches/tobago-1.0.x/example/experimental/src/main/webapp/layout.jsp&r1=810499&r2=810552&rev=810552&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-1.0.x/example/experimental/src/main/webapp/layout.jsp (original)
+++ myfaces/tobago/branches/tobago-1.0.x/example/experimental/src/main/webapp/immediate.jsp
Wed Sep  2 15:18:36 2009
@@ -19,43 +19,27 @@
 <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
 <%@ page contentType="text/html;charset=UTF-8" language="java" %>
 <f:view>
-  <tc:page >
+  <tc:page id="page" width="300px" height="300px">
+    <f:facet name="layout">
+      <tc:gridLayout rows="fixed;*;*;fixed"/>
+    </f:facet>
+
+    <tc:in value="#{immediate.in}" required="true"/>
+    <tc:selectOneListbox value="#{immediate.selectOne}">
+      <tc:selectItems value="#{immediate.selectItems}"/>
+    </tc:selectOneListbox>
+    <tc:selectManyListbox value="#{immediate.selectMany}">
+      <tc:selectItems value="#{immediate.selectItems}"/>
+    </tc:selectManyListbox>
+
     <tc:panel>
       <f:facet name="layout">
-        <tc:gridLayout margin="10px" rows="1*;fixed;1*" />
+        <tc:gridLayout columns="*;*"/>
       </f:facet>
 
-      <tc:box label="the outer box">
-
-        <f:facet name="layout">
-          <tc:gridLayout margin="10px" rows="fixed;fixed;fixed;fixed" />
-        </f:facet>
-
-        <tc:messages />
-
-        <tx:date label="SearchCriteria" value="#{test.date}" >
-          <f:convertDateTime pattern="dd/MM/yyyy" />
-           <%--f:facet name="change">
-            <tc:command action="#{test.layout}" />
-          </f:facet --%>
-        </tx:date>
-        <tx:in value="#{test.date1}" >
-          <f:convertDateTime pattern="dd/MM/yyyy" />
-        </tx:in>
-
-        <tc:panel>
-          <f:facet name="layout">
-            <tc:gridLayout margin="10px" columns="100px;1*;100px;1*;100px" />
-          </f:facet>
-
-          <tc:in />
-          <tc:button id="test" action="#{test.layout}" label="Search"  />
-          <tc:in />
-          <tc:button label="suppe" />
-          <tc:in />
-        </tc:panel>
-
-      </tc:box>
+      <tc:button label="immediate" immediate="true"/>
+      <tc:button label="normal"/>
     </tc:panel>
+
   </tc:page>
 </f:view>



Mime
View raw message