[richfaces-svn-commits] JBoss Rich Faces SVN: r14292 - branches/community/3.3.X/test-applications/regressionArea/regressionArea-web/src/main/webapp/pages.

richfaces-svn-commits at lists.jboss.org richfaces-svn-commits at lists.jboss.org
Mon May 25 04:26:25 EDT 2009


Author: mvitenkov
Date: 2009-05-25 04:26:25 -0400 (Mon, 25 May 2009)
New Revision: 14292

Added:
   branches/community/3.3.X/test-applications/regressionArea/regressionArea-web/src/main/webapp/pages/rf7064.xhtml
Log:
RF-7064 page added.

Added: branches/community/3.3.X/test-applications/regressionArea/regressionArea-web/src/main/webapp/pages/rf7064.xhtml
===================================================================
--- branches/community/3.3.X/test-applications/regressionArea/regressionArea-web/src/main/webapp/pages/rf7064.xhtml	                        (rev 0)
+++ branches/community/3.3.X/test-applications/regressionArea/regressionArea-web/src/main/webapp/pages/rf7064.xhtml	2009-05-25 08:26:25 UTC (rev 14292)
@@ -0,0 +1,89 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"
+	xmlns:ui="http://java.sun.com/jsf/facelets"
+	xmlns:h="http://java.sun.com/jsf/html"
+	xmlns:f="http://java.sun.com/jsf/core"
+	xmlns:a4j="http://richfaces.org/a4j"
+	xmlns:rich="http://richfaces.org/rich">
+
+<ui:composition template="/layout/layout.xhtml">
+	<ui:define name="template">
+		<h:form id="form">
+			<h:panelGrid columns="2" width="100%" columnClasses="column,column">
+				<h:panelGroup style="height:320px;width:400px;" layout="block">
+					<rich:editor configuration="#{editorBean.currentConfiguration}"
+						id="editor" width="400" height="300"
+						validator="#{editorBean.validate}"
+						viewMode="#{editorBean.viewMode}" value="#{editorBean.value}"
+						useSeamText="#{editorBean.useSeamText}">
+						<a4j:support event="onchange" reRender="result" ajaxSingle="true"
+							requestDelay="1000"
+							onsubmit="if (!#{rich:element('form:editorvalue')} &amp;&amp; !#{editorBean.useSeamText}) return false;" />
+					</rich:editor>
+				</h:panelGroup>
+				<rich:panel id="controls">
+					<f:facet name="header">
+						<h:outputText value="Editor Settings" />
+					</f:facet>
+					<h:panelGrid columns="2">
+						<h:outputText value="Select Editor Theme" />
+						<h:selectOneRadio value="#{editorBean.currentConfiguration}"
+							layout="pageDirection"
+							valueChangeListener="#{inputResetBean.processValueChange}">
+							<f:selectItems value="#{editorBean.configurations}" />
+							<a4j:support event="onclick" reRender="editor,controls"
+								requestDelay="500" eventsQueue="settingsQueue"
+								similarityGroupingId="settings" />
+						</h:selectOneRadio>
+						<h:outputText value="Toggle Modes" escape="false" />
+						<h:selectOneRadio value="#{editorBean.viewMode}"
+							layout="pageDirection"
+							valueChangeListener="#{inputResetBean.processValueChange}" id="toogleModes">
+							<f:selectItem itemLabel="WYSIWYG mode" itemValue="visual" id="wysiwyg"/>
+							<f:selectItem itemLabel="Text Area(Disables Preview)"
+								itemValue="source" id="textArea" />
+							<a4j:support event="onclick" reRender="editor,controls"
+								requestDelay="500" eventsQueue="settingsQueue"
+								similarityGroupingId="settings" />
+						</h:selectOneRadio>
+						<h:outputText value="Toggle Preview: " />
+						<h:selectBooleanCheckbox value="#{editorBean.liveUpdatesEnabled}"
+							valueChangeListener="#{inputResetBean.processValueChange}">
+							<a4j:support event="onclick" reRender="result,controls"
+								requestDelay="500" eventsQueue="settingsQueue"
+								similarityGroupingId="settings" />
+						</h:selectBooleanCheckbox>
+						<h:outputText value="Use Seam Text: " />
+						<h:selectBooleanCheckbox value="#{editorBean.useSeamText}" id="useSeamText">
+							<a4j:support event="onclick" reRender="editor,result,controls"
+								requestDelay="500" ajaxSingle="true" eventsQueue="settingsQueue"
+								similarityGroupingId="settings"
+								action="#{editorBean.resetValue}" />
+						</h:selectBooleanCheckbox>
+					</h:panelGrid>
+				</rich:panel>
+
+				<a4j:outputPanel layout="block" id="result">
+
+					<a4j:outputPanel style="color: red;"
+						rendered="#{facesContext.maximumSeverity != null and editorBean.useSeamText}">
+						<h:outputText value="SeamText: " />
+					</a4j:outputPanel>
+					<rich:message for="editor" style="color: red;" />
+
+					<rich:panel rendered="#{editorBean.liveUpdatesEnabled}"
+						style="#{facesContext.maximumSeverity != null ? 'display: none;' : ''}">
+						<f:facet name="header">
+							<h:outputText value="Preview" />
+						</f:facet>
+						<h:inputTextarea readonly="true" id="editorvalue"
+							value="#{editorBean.value}" cols="55" rows="20" />
+					</rich:panel>
+				</a4j:outputPanel>
+				<h:outputText />
+			</h:panelGrid>
+		</h:form>
+
+	</ui:define>
+</ui:composition>
+</html>
\ No newline at end of file




More information about the richfaces-svn-commits mailing list