[richfaces-svn-commits] JBoss Rich Faces SVN: r12088 - trunk/samples/richfaces-demo/src/main/webapp/richfaces/queue/examples.

richfaces-svn-commits at lists.jboss.org richfaces-svn-commits at lists.jboss.org
Mon Jan 5 04:25:14 EST 2009


Author: ilya_shaikovsky
Date: 2009-01-05 04:25:14 -0500 (Mon, 05 Jan 2009)
New Revision: 12088

Modified:
   trunk/samples/richfaces-demo/src/main/webapp/richfaces/queue/examples/repeater.xhtml
Log:
https://jira.jboss.org/jira/browse/RF-5505

Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/queue/examples/repeater.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/queue/examples/repeater.xhtml	2009-01-05 09:03:24 UTC (rev 12087)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/queue/examples/repeater.xhtml	2009-01-05 09:25:14 UTC (rev 12088)
@@ -9,16 +9,17 @@
 		<a4j:queue requestDelay="#{queueBean.requestDelay}"
 			ignoreDupResponses="#{queueBean.ignoreDupResponces}"
 			disabled="#{queueBean.disabled}" size="#{queueBean.size}"
-			sizeExceededBehavior="#{queueBean.sizeExceededBehavior}" onsubmit="addRequest();"/>
+			sizeExceededBehavior="#{queueBean.sizeExceededBehavior}"
+			onsubmit="addRequest();" />
 		<h:panelGrid columns="1" width="800px">
 			<rich:panel>
 				<h:panelGrid columns="2">
-					<h:outputText value="Type here:" /> 
-					<h:inputText id="myinput" value="#{queueBean.text}">
+					<h:outputText value="Type here:" />
+					<h:inputText id="myinput" value="#{queueBean.text}"
+						disabled="#{not (facesContext.maximumSeverity==null)}">
 						<a4j:support event="onkeyup" reRender="outtext"
 							onsubmit="addEvent();" ajaxSingle="true"
-							oncomplete="printCounts()"
-							onbeforedomupdate="addUpdate()"/>
+							oncomplete="printCounts()" onbeforedomupdate="addUpdate()" />
 					</h:inputText>
 					<h:outputText value="Repeated text:" />
 					<h:outputText value="#{queueBean.text}" id="outtext"
@@ -32,19 +33,19 @@
 				</h:panelGrid>
 			</rich:panel>
 			<rich:panel>
+				<rich:message for="form:delay" style="color:red;" />
 				<h:panelGrid columns="2">
 					<h:outputText value="Request delay:" />
-					<h:inputText value="#{queueBean.requestDelay}">
+					<h:inputText value="#{queueBean.requestDelay}" id="delay"
+						converterMessage="Delay field should be a number (Demo input disabled till this resolved)">
 						<f:convertNumber integerOnly="true" maxIntegerDigits="5" />
 					</h:inputText>
-
 					<h:outputText value="Ignore Duplicated Responces" />
 					<h:selectBooleanCheckbox value="#{queueBean.ignoreDupResponces}" />
-
 					<h:outputText value="Disable Queue" />
 					<h:selectBooleanCheckbox value="#{queueBean.disabled}" />
 					<f:facet name="footer">
-						<h:commandButton value="Apply" action="#{queueBean.resetText}"/>
+						<h:commandButton value="Apply" action="#{queueBean.resetText}" />
 					</f:facet>
 				</h:panelGrid>
 			</rich:panel>




More information about the richfaces-svn-commits mailing list