Author: ilya_shaikovsky
Date: 2009-01-06 11:34:31 -0500 (Tue, 06 Jan 2009)
New Revision: 12136
Added:
trunk/samples/richfaces-demo/src/main/resources/components.properties
trunk/samples/richfaces-demo/src/main/resources/seam.properties
trunk/samples/richfaces-demo/src/main/webapp/WEB-INF/components.xml
Modified:
trunk/samples/richfaces-demo/src/main/webapp/richfaces/editor/examples/editor.xhtml
Log:
seamText support included to livedemo
Added: trunk/samples/richfaces-demo/src/main/resources/components.properties
===================================================================
--- trunk/samples/richfaces-demo/src/main/resources/components.properties
(rev 0)
+++ trunk/samples/richfaces-demo/src/main/resources/components.properties 2009-01-06
16:34:31 UTC (rev 12136)
@@ -0,0 +1,4 @@
+#
+#Thu Jun 05 10:59:06 EEST 2008
+jndiPattern=\#{ejbName}/local
+embeddedEjb=false
Added: trunk/samples/richfaces-demo/src/main/resources/seam.properties
===================================================================
Added: trunk/samples/richfaces-demo/src/main/webapp/WEB-INF/components.xml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/WEB-INF/components.xml
(rev 0)
+++ trunk/samples/richfaces-demo/src/main/webapp/WEB-INF/components.xml 2009-01-06
16:34:31 UTC (rev 12136)
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<components
xmlns="http://jboss.com/products/seam/components"
+
xmlns:core="http://jboss.com/products/seam/core"
+
xmlns:persistence="http://jboss.com/products/seam/persistence"
+
xmlns:drools="http://jboss.com/products/seam/drools"
+
xmlns:bpm="http://jboss.com/products/seam/bpm"
+
xmlns:security="http://jboss.com/products/seam/security"
+
xmlns:mail="http://jboss.com/products/seam/mail"
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+
xmlns:pdf="http://jboss.com/products/seam/pdf"
+
xmlns:transaction="http://jboss.com/products/seam/transaction"
+ xsi:schemaLocation=
+ "http://jboss.com/products/seam/core
http://jboss.com/products/seam/core-2.0.xsd
+
http://jboss.com/products/seam/transaction
http://jboss.com/products/seam/transaction-2.1.0.xsd
+
http://jboss.com/products/seam/persistence
http://jboss.com/products/seam/persistence-2.0.xsd
+
http://jboss.com/products/seam/drools
http://jboss.com/products/seam/drools-2.0.xsd
+
http://jboss.com/products/seam/bpm
http://jboss.com/products/seam/bpm-2.0.xsd
+
http://jboss.com/products/seam/security
http://jboss.com/products/seam/security-2.0.xsd
+
http://jboss.com/products/seam/mail
http://jboss.com/products/seam/mail-2.0.xsd
+
http://jboss.com/products/seam/components
http://jboss.com/products/seam/components-2.0.xsd">
+ <core:init debug="true"
transaction-management-enabled="false"/>
+ <transaction:no-transaction/>
+ <core:manager concurrent-request-timeout="500"
+ conversation-timeout="120000"
+ conversation-id-parameter="cid"
+ parent-conversation-id-parameter="pid"/>
+
+
+</components>
Modified:
trunk/samples/richfaces-demo/src/main/webapp/richfaces/editor/examples/editor.xhtml
===================================================================
---
trunk/samples/richfaces-demo/src/main/webapp/richfaces/editor/examples/editor.xhtml 2009-01-06
16:29:13 UTC (rev 12135)
+++
trunk/samples/richfaces-demo/src/main/webapp/richfaces/editor/examples/editor.xhtml 2009-01-06
16:34:31 UTC (rev 12136)
@@ -1,10 +1,10 @@
-
<ui:composition
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">
+
xmlns:rich="http://richfaces.org/rich"
+
xmlns:s="http://jboss.com/products/seam/taglib">
<style>
.column {
width: 400px;
@@ -16,10 +16,10 @@
<h:panelGroup style="height:320px;width:400px;"
layout="block">
<rich:editor configuration="#{editorBean.currentConfiguration}"
id="editor" width="400" height="300"
- viewMode="#{editorBean.viewMode}"
value="#{editorBean.value}">
+ 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')}==null) return
false;" />
+ requestDelay="1000"
+ onsubmit="if (! #{rich:element('form:editorvalue')}) return
false;" />
</rich:editor>
</h:panelGroup>
<rich:panel>
@@ -47,6 +47,11 @@
<a4j:support event="onclick" reRender="result"
requestDelay="500"
eventsQueue="settingsQueue" similarityGroupingId="settings"
/>
</h:selectBooleanCheckbox>
+ <h:outputText value="Use Seam Text: " />
+ <h:selectBooleanCheckbox value="#{editorBean.useSeamText}">
+ <a4j:support event="onclick" reRender="editor,result"
requestDelay="500"
+ eventsQueue="settingsQueue" similarityGroupingId="settings"
/>
+ </h:selectBooleanCheckbox>
</h:panelGrid>
</rich:panel>
<a4j:outputPanel layout="block" id="result">
@@ -54,8 +59,8 @@
<f:facet name="header">
<h:outputText value="Preview" />
</f:facet>
- <h:outputText escape="false" value="#{editorBean.value}"
- id="editorvalue" />
+ <h:inputTextarea readonly="true" id="editorvalue"
value="#{editorBean.value}"
+ cols="55" rows="20"/>
</rich:panel>
</a4j:outputPanel>
</h:panelGrid>