[richfaces-svn-commits] JBoss Rich Faces SVN: r4932 - in trunk/test-applications/facelets/src/main/webapp: Calendar and 5 other directories.

richfaces-svn-commits at lists.jboss.org richfaces-svn-commits at lists.jboss.org
Thu Dec 20 03:26:27 EST 2007


Author: ayanul
Date: 2007-12-20 03:26:27 -0500 (Thu, 20 Dec 2007)
New Revision: 4932

Removed:
   trunk/test-applications/facelets/src/main/webapp/DradAndDrop/
   trunk/test-applications/facelets/src/main/webapp/Rich/
Modified:
   trunk/test-applications/facelets/src/main/webapp/Calendar/Calendar.xhtml
   trunk/test-applications/facelets/src/main/webapp/Calendar/CalendarProperty.xhtml
   trunk/test-applications/facelets/src/main/webapp/ComponentControl/ComponentControl.xhtml
   trunk/test-applications/facelets/src/main/webapp/ContextMenu/ContextMenu.xhtml
   trunk/test-applications/facelets/src/main/webapp/DataOrderedList/DataOrderedList.xhtml
   trunk/test-applications/facelets/src/main/webapp/DragAndDrop/DragAndDrop.xhtml
   trunk/test-applications/facelets/src/main/webapp/WEB-INF/faces-config.xml
Log:
update

Modified: trunk/test-applications/facelets/src/main/webapp/Calendar/Calendar.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/Calendar/Calendar.xhtml	2007-12-19 18:12:29 UTC (rev 4931)
+++ trunk/test-applications/facelets/src/main/webapp/Calendar/Calendar.xhtml	2007-12-20 08:26:27 UTC (rev 4932)
@@ -29,7 +29,7 @@
 				</f:facet>
 
 				<f:facet name="optionalHeader">
-					<h:outputText value="optionalHeader Facet" />
+					<h:outputText value="optionalHeader Facet #{headerFacet}" />
 				</f:facet>
 
 				<f:facet name="optionalFooter">

Modified: trunk/test-applications/facelets/src/main/webapp/Calendar/CalendarProperty.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/Calendar/CalendarProperty.xhtml	2007-12-19 18:12:29 UTC (rev 4931)
+++ trunk/test-applications/facelets/src/main/webapp/Calendar/CalendarProperty.xhtml	2007-12-20 08:26:27 UTC (rev 4932)
@@ -6,22 +6,16 @@
 	  xmlns:ui="http://java.sun.com/jsf/facelets">
 		<rich:simpleTogglePanel id="calendarPropertyID" switchType="client" opened="true" label="calendar property">
 			<h:panelGrid columns="2">
-				<h:panelGroup>
-					<a4j:commandButton value="reRender" reRender="calendarClientID,calendarAjaxID"></a4j:commandButton>
-					<a4j:commandButton action="submit();" immediate="true" value="immediate submit(); (a4j)"></a4j:commandButton>
-					<h:commandButton action="submit();" value="submit();" />
-					<h:commandButton action="submit();" immediate="true" value="immediate submit();" />
-				</h:panelGroup>
-				<h:column></h:column>
-				
+			
 				<h:outputText value="Mode" />
 				<h:selectOneRadio value="#{calendarBean.mode}" onchange="submit();">
 					<f:selectItem itemLabel="client" itemValue="client"/>
 					<f:selectItem itemLabel="ajax" itemValue="ajax"/>
 				</h:selectOneRadio>
-								
+				
+				
 				<h:outputText value="Select Locale:" />
-				<h:selectOneRadio onchange="submit()" value="en/US" valueChangeListener="#{calendarBean.selectLocale}">
+				<h:selectOneRadio onchange="submit()" valueChangeListener="#{calendarBean.selectLocale}">
 					<f:selectItem itemLabel="US" itemValue="en/US" />
 					<f:selectItem itemLabel="DE" itemValue="de/DE" />
 					<f:selectItem itemLabel="FR" itemValue="fr/FR" />

Modified: trunk/test-applications/facelets/src/main/webapp/ComponentControl/ComponentControl.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/ComponentControl/ComponentControl.xhtml	2007-12-19 18:12:29 UTC (rev 4931)
+++ trunk/test-applications/facelets/src/main/webapp/ComponentControl/ComponentControl.xhtml	2007-12-20 08:26:27 UTC (rev 4932)
@@ -84,17 +84,21 @@
 			<h:outputText value="click text" />
 		</rich:panelMenu>
 
-		<rich:contextMenu id="ccContextMenuID" submitMode="ajax"  onexpand="alert(event.parameters.expand)">
-			<rich:menuItem icon="/pics/header.png" value="tab1">
+		<rich:contextMenu id="ccContextMenuID" submitMode="ajax">
+			<rich:menuItem icon="/pics/header.png" value="tab1" reRender="cmInfoID">
+				<f:param name="cmdParam" value="menu" />
 			</rich:menuItem>
 			<rich:menuSeparator />
-			<rich:menuItem icon="/pics/info.gif" value="a">
+			<rich:menuItem icon="/pics/info.gif" value="a" reRender="cmInfoID">
+				<f:param name="cmdParam" value="a" />
 			</rich:menuItem>
-			<rich:menuItem icon="/pics/info.gif" value="b">
+			<rich:menuItem icon="/pics/info.gif" value=" b" reRender="cmInfoID">
+				<f:param name="cmdParam" value="b" />
 			</rich:menuItem>
-			<rich:menuItem icon="/pics/info.gif" value="c">
+			<rich:menuItem icon="/pics/info.gif" value="c" reRender="cmInfoID">
+				<f:param name="cmdParam" value="c" />
 			</rich:menuItem>
 		</rich:contextMenu>
-		<rich:componentControl event="oncontextmenu" attachTo="ccContextMenuPanelMenuID" for="ccContextMenuID" 
-			operation="show" params="expand:'show work'" />	</h:form>
+		<rich:componentControl event="oncontextmenu" attachTo="ccContextMenuPanelMenuID" for="ccContextMenuID" operation="doShow" />
+	</h:form>
 </f:subview>
\ No newline at end of file

Modified: trunk/test-applications/facelets/src/main/webapp/ContextMenu/ContextMenu.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/ContextMenu/ContextMenu.xhtml	2007-12-19 18:12:29 UTC (rev 4931)
+++ trunk/test-applications/facelets/src/main/webapp/ContextMenu/ContextMenu.xhtml	2007-12-20 08:26:27 UTC (rev 4932)
@@ -42,7 +42,7 @@
 			<rich:contextMenu id="contextMenuID" attached="#{contextMenu.attached}" submitMode="#{contextMenu.submitMode}"
 				event="#{contextMenu.event}" disableDefaultMenu="#{contextMenu.disableDefaultMenu}" rendered="#{contextMenu.rendered}"
 				hideDelay="#{contextMenu.hideDelay}" showDelay="#{contextMenu.showDelay}" popupWidth="#{contextMenu.popupWidth}">
-				<rich:menuItem icon="/pics/header.png" value="abc" reRender="cmInfoID" >
+				<rich:menuItem icon="/pics/header.png" value="abc">
 					<f:param name="cmdParam" value="abc" />
 				</rich:menuItem>
 				<rich:menuSeparator />

Modified: trunk/test-applications/facelets/src/main/webapp/DataOrderedList/DataOrderedList.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/DataOrderedList/DataOrderedList.xhtml	2007-12-19 18:12:29 UTC (rev 4931)
+++ trunk/test-applications/facelets/src/main/webapp/DataOrderedList/DataOrderedList.xhtml	2007-12-20 08:26:27 UTC (rev 4932)
@@ -1,7 +1,7 @@
 <f:subview id="dataOrderedListSubviewID" xmlns:f="http://java.sun.com/jsf/core" xmlns:a4j="http://richfaces.org/a4j"
 	xmlns:h="http://java.sun.com/jsf/html" xmlns:rich="http://richfaces.org/rich" xmlns:ui="http://java.sun.com/jsf/facelets">
 		<rich:dataOrderedList id="doListID" value="#{dataOrderedList.arr}" var="arr" first="#{dataOrderedList.first}"
-			rendered="#{dataOrderedList.rendered}" title="#{dataOrderedList.title}" type="#{dataOrderedList.type}" dir="#{dataOrderedList.dir}"
+			rendered="#{dataOrderedList.rendered}" title="#{dataOrderedList.title}" type="disc" dir="#{dataOrderedList.dir}"
 			rows="#{dataOrderedList.rows}">
 			<f:facet name="header">
 				<h:outputText value="Africa(header):" />

Modified: trunk/test-applications/facelets/src/main/webapp/DragAndDrop/DragAndDrop.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/DragAndDrop/DragAndDrop.xhtml	2007-12-19 18:12:29 UTC (rev 4931)
+++ trunk/test-applications/facelets/src/main/webapp/DragAndDrop/DragAndDrop.xhtml	2007-12-20 08:26:27 UTC (rev 4932)
@@ -1,11 +1,7 @@
 <f:subview id="DtadAndDropSubviewID" xmlns:a4j="http://richfaces.org/a4j" xmlns:f="http://java.sun.com/jsf/core"
 	xmlns:rich="http://richfaces.org/rich" xmlns:h="http://java.sun.com/jsf/html">
 	
-	<a4j:outputPanel ajaxRendered="true">
-		<h:messages />
-	</a4j:outputPanel>
-	
-	<script>
+	<script type="text/javascript">
 		DnD.CLIENT_VALIDATION_OFF = false;
 	</script>
 	
@@ -193,4 +189,10 @@
 			<h:graphicImage id="dragImage" value="/pics/masshtaby_01.jpg" width="200px" height="200px" />
 			<f:verbatim>dragSupport</f:verbatim>
 		</h:panelGrid>
+
+		
+
+		<a4j:outputPanel ajaxRendered="true">
+			<h:messages />
+		</a4j:outputPanel>
 </f:subview>

Modified: trunk/test-applications/facelets/src/main/webapp/WEB-INF/faces-config.xml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/WEB-INF/faces-config.xml	2007-12-19 18:12:29 UTC (rev 4931)
+++ trunk/test-applications/facelets/src/main/webapp/WEB-INF/faces-config.xml	2007-12-20 08:26:27 UTC (rev 4932)
@@ -163,11 +163,14 @@
   </navigation-case>
  </navigation-rule>
  <application>
-  <locale-config>
-   <default-locale>en</default-locale>
-  </locale-config>
+  <view-handler>com.sun.facelets.FaceletViewHandler</view-handler>
  </application>
  <lifecycle>
   <phase-listener id="phaseTracker">util.phaseTracker.PhaseTracker</phase-listener>
  </lifecycle>
+  <application>
+  	<locale-config>
+  		<default-locale>en</default-locale>
+  	</locale-config>
+ </application>
 </faces-config>




More information about the richfaces-svn-commits mailing list