myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From caga...@apache.org
Subject svn commit: r492568 - in /myfaces/tomahawk/trunk: examples/simple/src/main/java/org/apache/myfaces/examples/selectitems/ examples/simple/src/main/webapp/ examples/simple/src/main/webapp/WEB-INF/ sandbox/examples/src/main/java/org/apache/myfaces/example...
Date Thu, 04 Jan 2007 13:57:11 GMT
Author: cagatay
Date: Thu Jan  4 05:57:10 2007
New Revision: 492568

URL: http://svn.apache.org/viewvc?view=rev&rev=492568
Log:
svn move of sandbox selectitems examples related to TOMAHAWK-805

Added:
    myfaces/tomahawk/trunk/examples/simple/src/main/java/org/apache/myfaces/examples/selectitems/
      - copied from r492483, myfaces/tomahawk/trunk/sandbox/examples/src/main/java/org/apache/myfaces/examples/selectitems/
    myfaces/tomahawk/trunk/examples/simple/src/main/webapp/selectItems.jsp
      - copied, changed from r492483, myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/selectItems.jsp
Removed:
    myfaces/tomahawk/trunk/sandbox/examples/src/main/java/org/apache/myfaces/examples/selectitems/
    myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/selectItems.jsp
Modified:
    myfaces/tomahawk/trunk/examples/simple/src/main/java/org/apache/myfaces/examples/selectitems/SelectItemsBean.java
    myfaces/tomahawk/trunk/examples/simple/src/main/webapp/WEB-INF/examples-config.xml
    myfaces/tomahawk/trunk/examples/simple/src/main/webapp/home.jsp
    myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/WEB-INF/examples-config.xml
    myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/home.jsp

Modified: myfaces/tomahawk/trunk/examples/simple/src/main/java/org/apache/myfaces/examples/selectitems/SelectItemsBean.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple/src/main/java/org/apache/myfaces/examples/selectitems/SelectItemsBean.java?view=diff&rev=492568&r1=492483&r2=492568
==============================================================================
--- myfaces/tomahawk/trunk/examples/simple/src/main/java/org/apache/myfaces/examples/selectitems/SelectItemsBean.java
(original)
+++ myfaces/tomahawk/trunk/examples/simple/src/main/java/org/apache/myfaces/examples/selectitems/SelectItemsBean.java
Thu Jan  4 05:57:10 2007
@@ -22,7 +22,7 @@
 import java.util.ArrayList;
 import java.util.List;
 
-import org.apache.myfaces.examples.selectOneRow.SimpleCar;
+import org.apache.myfaces.examples.listexample.SimpleCar;
 
 public class SelectItemsBean {
 

Modified: myfaces/tomahawk/trunk/examples/simple/src/main/webapp/WEB-INF/examples-config.xml
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple/src/main/webapp/WEB-INF/examples-config.xml?view=diff&rev=492568&r1=492567&r2=492568
==============================================================================
--- myfaces/tomahawk/trunk/examples/simple/src/main/webapp/WEB-INF/examples-config.xml (original)
+++ myfaces/tomahawk/trunk/examples/simple/src/main/webapp/WEB-INF/examples-config.xml Thu
Jan  4 05:57:10 2007
@@ -377,6 +377,13 @@
     	<managed-bean-class>java.util.Date</managed-bean-class>
     	<managed-bean-scope>application</managed-bean-scope>
     </managed-bean>
+	
+	<!--  Managed bean for the selectItems component -->
+	<managed-bean>
+		<managed-bean-name>selectItemsBean</managed-bean-name>
+		<managed-bean-class>org.apache.myfaces.examples.selectitems.SelectItemsBean</managed-bean-class>
+		<managed-bean-scope>request</managed-bean-scope>
+	</managed-bean>
 
     <managed-bean>
     	<managed-bean-name>scheduleModel1</managed-bean-name>

Modified: myfaces/tomahawk/trunk/examples/simple/src/main/webapp/home.jsp
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple/src/main/webapp/home.jsp?view=diff&rev=492568&r1=492567&r2=492568
==============================================================================
--- myfaces/tomahawk/trunk/examples/simple/src/main/webapp/home.jsp (original)
+++ myfaces/tomahawk/trunk/examples/simple/src/main/webapp/home.jsp Thu Jan  4 05:57:10 2007
@@ -65,6 +65,7 @@
                 <h:outputLink value="inputHtml.jsf" ><f:verbatim>Html Editor</f:verbatim></h:outputLink>
                 <h:outputLink value="htmlTag.jsf" ><f:verbatim>Html Tag</f:verbatim></h:outputLink>
                 <h:outputLink value="dataList.jsf" ><f:verbatim>Dynamic Lists</f:verbatim></h:outputLink>
+                <h:outputLink value="selectItems.jsf" ><f:verbatim>Auto-generated
SelectItems</f:verbatim></h:outputLink>
                 <h:outputLink value="selectOneCountry.jsf" ><f:verbatim>Select
one Country</f:verbatim></h:outputLink>
                 <h:outputLink value="selectOneLanguage.jsf" ><f:verbatim>Select
one Language</f:verbatim></h:outputLink>
                 <h:outputLink value="tree.jsf" ><f:verbatim>Tree</f:verbatim></h:outputLink>

Copied: myfaces/tomahawk/trunk/examples/simple/src/main/webapp/selectItems.jsp (from r492483,
myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/selectItems.jsp)
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple/src/main/webapp/selectItems.jsp?view=diff&rev=492568&p1=myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/selectItems.jsp&r1=492483&p2=myfaces/tomahawk/trunk/examples/simple/src/main/webapp/selectItems.jsp&r2=492568
==============================================================================
--- myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/selectItems.jsp (original)
+++ myfaces/tomahawk/trunk/examples/simple/src/main/webapp/selectItems.jsp Thu Jan  4 05:57:10
2007
@@ -2,7 +2,6 @@
 <%@ 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/tomahawk" prefix="t"%>
-<%@ taglib uri="http://myfaces.apache.org/sandbox" prefix="s"%>
 <html>
 
 <!--
@@ -34,15 +33,15 @@
 
     <h:form>
 		<h:selectOneMenu id="menu1" value="#{selectItemsBean.selectedCarColor}">
-   			<s:selectItems value="#{selectItemsBean.carList}" var="Car" itemLabel="#{Car.type}"
itemValue="#{Car.color}" />
+   			<t:selectItems value="#{selectItemsBean.carList}" var="Car" itemLabel="#{Car.type}"
itemValue="#{Car.color}" />
 		</h:selectOneMenu>
 		
         <h:selectOneRadio id="radio1" value="#{selectItemsBean.selectedCarColor}">
-   			<s:selectItems value="#{selectItemsBean.carList}" var="Car" itemLabel="#{Car.type}"
itemValue="#{Car.color}" />
+   			<t:selectItems value="#{selectItemsBean.carList}" var="Car" itemLabel="#{Car.type}"
itemValue="#{Car.color}" />
         </h:selectOneRadio>
         
         <h:selectOneListbox id="list1" value="#{selectItemsBean.selectedCarColor}">
-   			<s:selectItems value="#{selectItemsBean.carList}" var="Car" itemLabel="#{Car.type}"
itemValue="#{Car.color}" />
+   			<t:selectItems value="#{selectItemsBean.carList}" var="Car" itemLabel="#{Car.type}"
itemValue="#{Car.color}" />
         </h:selectOneListbox>
     </h:form>
 </f:view>

Modified: myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/WEB-INF/examples-config.xml
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/WEB-INF/examples-config.xml?view=diff&rev=492568&r1=492567&r2=492568
==============================================================================
--- myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/WEB-INF/examples-config.xml (original)
+++ myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/WEB-INF/examples-config.xml Thu
Jan  4 05:57:10 2007
@@ -354,14 +354,6 @@
 		<managed-bean-scope>session</managed-bean-scope>
 	</managed-bean>
 
-
-	<!--  Managed bean for the selectItems component -->
-	<managed-bean>
-		<managed-bean-name>selectItemsBean</managed-bean-name>
-		<managed-bean-class>org.apache.myfaces.examples.selectitems.SelectItemsBean</managed-bean-class>
-		<managed-bean-scope>request</managed-bean-scope>
-	</managed-bean>
-
     <!-- Managed beans for the scope shop  -->
 	<managed-bean>
 		<managed-bean-name>ScopeBean</managed-bean-name>

Modified: myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/home.jsp
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/home.jsp?view=diff&rev=492568&r1=492567&r2=492568
==============================================================================
--- myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/home.jsp (original)
+++ myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/home.jsp Thu Jan  4 05:57:10 2007
@@ -90,7 +90,6 @@
             <h:outputText value="Selection Lists"/>
             <h:panelGrid style="padding-left:25px">
                <h:outputLink value="picklist.jsf"><f:verbatim>selectManyPicklist
- A picklist, where you select components from a list and the selected items are displayed
in another list</f:verbatim></h:outputLink>
-               <h:outputLink value="selectItems.jsf"><f:verbatim>selectitems
- An extended version of the UISelectItems, implicitly populates the SelectItem collection
from the given value</f:verbatim></h:outputLink>
             </h:panelGrid>
 
             <h:outputText value="Messages"/>



Mime
View raw message