[richfaces-svn-commits] JBoss Rich Faces SVN: r8918 - trunk/test-applications/jsp/src/main/webapp/CustomizePage.

richfaces-svn-commits at lists.jboss.org richfaces-svn-commits at lists.jboss.org
Thu Jun 5 11:50:23 EDT 2008


Author: mvitenkov
Date: 2008-06-05 11:50:23 -0400 (Thu, 05 Jun 2008)
New Revision: 8918

Modified:
   trunk/test-applications/jsp/src/main/webapp/CustomizePage/CustomizePage.jsp
Log:
modal Panel with binding

Modified: trunk/test-applications/jsp/src/main/webapp/CustomizePage/CustomizePage.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/CustomizePage/CustomizePage.jsp	2008-06-05 15:49:48 UTC (rev 8917)
+++ trunk/test-applications/jsp/src/main/webapp/CustomizePage/CustomizePage.jsp	2008-06-05 15:50:23 UTC (rev 8918)
@@ -11,48 +11,53 @@
 	<body>
 	<rich:modalPanel id="modalPanel2ID" minHeight="100" minWidth="200"
 		resizeable="true" keepVisualState="true" showWhenRendered="true" binding="#{modalPanel.myModalPanel}">
-
+		<h:form>
+		
+		<h:commandButton actionListener="#{modalPanel.checkBinding}" value="Binding"></h:commandButton>
+		<h:outputText value="#{modalPanel.bindLabel}"/>
+		
 		<h:outputLink
 			onclick="Richfaces.hideModalPanel('modalPanel2ID');return false;"
 			value="Close">
 			<f:verbatim>Close</f:verbatim>
 		</h:outputLink>
-		<br />
-		<h:form>
-			<h:inputText value="#{sb.property}" id="text" />
-			<rich:suggestionbox id="suggestionBoxId"
-				suggestionAction="#{sb.autocomplete}" frame="below"
-				value="#{sb.value}" for="text" var="result" width="500" height="500"
-				fetchValue="#{result.text}" minChars="#{sb.minchars}"
-				tokens="#{sb.tokens}" param="param:#{result.text}"
-				eventsQueue="myEventsQueue" ajaxSingle="#{sb.ajaxSingle}"
-				dir="#{sb.dir}" rendered="#{sb.rendered}">
-				<h:column>
-					<h:outputText value="#{result.city}" />
-				</h:column>
-				<h:column>
-					<h:outputText value="#{result.contry}" />
-				</h:column>
-				<h:column>
-					<h:outputText value="#{result.flag}" />
-				</h:column>
+		</h:form>		
+	</rich:modalPanel>
 
-			</rich:suggestionbox>
-			<br />
-			<h:commandButton actionListener="#{modalPanel.checkBinding}"
-				value="Binding[Modal Panel]"></h:commandButton>
-			<h:outputText value="#{modalPanel.bindLabel}"></h:outputText>
-		</h:form>
+	<rich:modalPanel id="mpm" width="500" height="300">
+		<f:facet name="header">
+			<h:outputText value="Modal Panel" />
+		</f:facet>
+		<f:facet name="controls">
+			<h:graphicImage value="/pics/error.gif" style="cursor:pointer"
+				onclick="Richfaces.hideModalPanel('mpm')" />
+		</f:facet>
+
+		<rich:fileUpload fileUploadListener="#{fileUpload.fileUploadListener}"
+			disabled="false" addControlLabel="Legg til fil..."
+			clearAllControlLabel="Ta bort alle" clearControlLabel="Ta bort"
+			cancelEntryControlLabel="Ta bort"
+			stopEntryControlLabel="Stoppe opplasting"
+			stopControlLabel="Stoppe opplasting"
+			uploadControlLabel="Last opp fil" listWidth="480" listHeight="230"
+			onuploadcomplete="this.disabled=false" immediateUpload="false"
+			autoclear="false">
+			<f:facet name="label">
+				<h:outputText value="{_KB}KB from {KB}KB uploaded --- {mm}:{ss}" />
+			</f:facet>
+		</rich:fileUpload>
 	</rich:modalPanel>
 
 
-
 	<h:form id="test">
 		<rich:inputNumberSlider></rich:inputNumberSlider>
 
 
 		<a onclick="Richfaces.showModalPanel('modalPanel2ID');" href="#">Show
-		MP</a>
+		MP(binding)</a>
+		<br/>
+		<a onclick="Richfaces.showModalPanel('mpm');" href="#">Show
+		MP(fileUpload)</a>
 
 	</h:form>
 	</body>




More information about the richfaces-svn-commits mailing list