JBoss Rich Faces SVN: r12100 - trunk/test-applications/seamApp/web/src/main/webapp/CustomizePage.
by richfaces-svn-commits@lists.jboss.org
Author: mvitenkov
Date: 2009-01-05 10:32:50 -0500 (Mon, 05 Jan 2009)
New Revision: 12100
Modified:
trunk/test-applications/seamApp/web/src/main/webapp/CustomizePage/CustomizePage.xhtml
Log:
add seam tag support.
Modified: trunk/test-applications/seamApp/web/src/main/webapp/CustomizePage/CustomizePage.xhtml
===================================================================
--- trunk/test-applications/seamApp/web/src/main/webapp/CustomizePage/CustomizePage.xhtml 2009-01-05 15:30:56 UTC (rev 12099)
+++ trunk/test-applications/seamApp/web/src/main/webapp/CustomizePage/CustomizePage.xhtml 2009-01-05 15:32:50 UTC (rev 12100)
@@ -4,20 +4,27 @@
xmlns:f="http://java.sun.com/jsf/core"
xmlns:a="http://richfaces.org/a4j"
xmlns:c="http://java.sun.com/jstl/core"
- xmlns:rich="http://richfaces.org/rich">
+ xmlns:rich="http://richfaces.org/rich"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:s="http://jboss.com/products/seam/taglib">
<body>
<f:view>
<h:form id="form">
- <rich:extendedDataTable value="#{testBean.rows}" var="row">
- <rich:columns value="#{testBean.columns}" var="column" index="ind">
- <f:facet name="header">
- <h:outputText value="#{column.name}" />
- </f:facet>
- <h:outputText value="#{row[ind]}" />
- </rich:columns>
- </rich:extendedDataTable>
- <a:commandButton value="Add column" action="#{testBean.addAColumn}" reRender="form" />
+ <s:link value="Begin conversation" propagation="begin" />
+ <br />
+ <s:link value="End conversation" propagation="end" />
+ <br />
+
+ <h:panelGroup id="group">
+ <a4j:jsFunction name="setActiveLayer" ajaxSingle="true"
+ eventsQueue="epigraphQueue" reRender="group">
+ <s:conversationId />
+ </a4j:jsFunction>
+ </h:panelGroup>
+
+ <button onclick="setActiveLayer(); return false;">setActiveLayer</button>
+ <a4j:log popup="false" />
</h:form>
</f:view>
</body>
16 years
JBoss Rich Faces SVN: r12099 - trunk/framework/impl/src/main/resources/org/richfaces/renderkit/html/scripts.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2009-01-05 10:30:56 -0500 (Mon, 05 Jan 2009)
New Revision: 12099
Modified:
trunk/framework/impl/src/main/resources/org/richfaces/renderkit/html/scripts/events.js
Log:
https://jira.jboss.org/jira/browse/RF-5503
Modified: trunk/framework/impl/src/main/resources/org/richfaces/renderkit/html/scripts/events.js
===================================================================
--- trunk/framework/impl/src/main/resources/org/richfaces/renderkit/html/scripts/events.js 2009-01-05 15:25:33 UTC (rev 12098)
+++ trunk/framework/impl/src/main/resources/org/richfaces/renderkit/html/scripts/events.js 2009-01-05 15:30:56 UTC (rev 12099)
@@ -117,12 +117,21 @@
return {
event: eventObj,
+
fire: function() {
if (component.fireEvent) {
component.fireEvent("on" + type, this.event);
} else {
component.dispatchEvent(this.event);
}
+ },
+
+ destroy: function() {
+ if (props) {
+ for (var name in props) {
+ this.event[name] = undefined;
+ }
+ }
}
};
}
16 years
JBoss Rich Faces SVN: r12098 - trunk/ui/assembly.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2009-01-05 10:25:33 -0500 (Mon, 05 Jan 2009)
New Revision: 12098
Modified:
trunk/ui/assembly/pom.xml
Log:
Added to pom.xml:
- cdkguide
- migration
Modified: trunk/ui/assembly/pom.xml
===================================================================
--- trunk/ui/assembly/pom.xml 2009-01-05 14:12:27 UTC (rev 12097)
+++ trunk/ui/assembly/pom.xml 2009-01-05 15:25:33 UTC (rev 12098)
@@ -330,6 +330,34 @@
${project.build.directory}/docs/faq/en
</outputDirectory>
</artifactItem>
+ <artifactItem>
+ <groupId>
+ org.richfaces.docs.cdkguide
+ </groupId>
+ <artifactId>en</artifactId>
+ <version>
+ ${project.version}
+ </version>
+ <type>jar</type>
+ <!--classifier>pdf</classifier-->
+ <outputDirectory>
+ ${project.build.directory}/docs/cdkguide/en
+ </outputDirectory>
+ </artifactItem>
+ <artifactItem>
+ <groupId>
+ org.richfaces.docs.migration
+ </groupId>
+ <artifactId>en</artifactId>
+ <version>
+ ${project.version}
+ </version>
+ <type>jar</type>
+ <!--classifier>pdf</classifier-->
+ <outputDirectory>
+ ${project.build.directory}/docs/migration/en
+ </outputDirectory>
+ </artifactItem>
</artifactItems>
<outputDirectory>
${project.build.directory}/docs
16 years
JBoss Rich Faces SVN: r12097 - trunk/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/scripts.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2009-01-05 09:12:27 -0500 (Mon, 05 Jan 2009)
New Revision: 12097
Modified:
trunk/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceselect.js
Log:
fix showValueInView support
Modified: trunk/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceselect.js
===================================================================
--- trunk/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceselect.js 2009-01-05 14:11:33 UTC (rev 12096)
+++ trunk/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceselect.js 2009-01-05 14:12:27 UTC (rev 12097)
@@ -201,7 +201,11 @@
setValue : function(e, param) {
var item = {};
item.itemValue = this.getParameters(e,param,"value");
- item.itemLabel = this.findLabel(this.comboList.itemsText,item.itemValue);
+ if(this.showValueInView) {
+ item.itemLabel = item.itemValue;
+ } else {
+ item.itemLabel = this.findLabel(this.comboList.itemsText,item.itemValue);
+ }
if (!item.itemLabel) {
item.itemValue = this.currentItemValue;
16 years
JBoss Rich Faces SVN: r12096 - trunk/ui/inplaceInput/src/main/resources/org/richfaces/renderkit/html/scripts.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2009-01-05 09:11:33 -0500 (Mon, 05 Jan 2009)
New Revision: 12096
Modified:
trunk/ui/inplaceInput/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceinputstyles.js
Log:
remove unnecessary css classes
Modified: trunk/ui/inplaceInput/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceinputstyles.js
===================================================================
--- trunk/ui/inplaceInput/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceinputstyles.js 2009-01-05 13:36:27 UTC (rev 12095)
+++ trunk/ui/inplaceInput/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceinputstyles.js 2009-01-05 14:11:33 UTC (rev 12096)
@@ -14,7 +14,7 @@
normal:"rich-inplace rich-inplace-changed",
hovered:"rich-inplace-input-changed-hover"
},
- editable:"rich-inplace rich-inplace-edit editClass"
+ editable:"rich-inplace rich-inplace-edit"
}
}
},
16 years
JBoss Rich Faces SVN: r12095 - trunk/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: msorokin
Date: 2009-01-05 08:36:27 -0500 (Mon, 05 Jan 2009)
New Revision: 12095
Modified:
trunk/docs/userguide/en/src/main/docbook/included/support.xml
Log:
Corrected a mistake
Modified: trunk/docs/userguide/en/src/main/docbook/included/support.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/support.xml 2009-01-05 13:17:49 UTC (rev 12094)
+++ trunk/docs/userguide/en/src/main/docbook/included/support.xml 2009-01-05 13:36:27 UTC (rev 12095)
@@ -211,7 +211,7 @@
interval in seconds minimally permissible between
responses. </para>
<para><emphasis>
- <property>"eventQueue"</property>
+ <property>"eventsQueue"</property>
</emphasis> is an attribute for naming of the
queue where the next response is kept in till its
processing, but if the next event comes in till
16 years
JBoss Rich Faces SVN: r12094 - trunk/samples/richfaces-demo/src/main/webapp/richfaces/queue/examples.
by richfaces-svn-commits@lists.jboss.org
Author: ilya_shaikovsky
Date: 2009-01-05 08:17:49 -0500 (Mon, 05 Jan 2009)
New Revision: 12094
Modified:
trunk/samples/richfaces-demo/src/main/webapp/richfaces/queue/examples/repeater.xhtml
Log:
markup fix. horizontal scroll in FF removed.
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 11:13:58 UTC (rev 12093)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/queue/examples/repeater.xhtml 2009-01-05 13:17:49 UTC (rev 12094)
@@ -11,7 +11,7 @@
disabled="#{queueBean.disabled}" size="#{queueBean.size}"
sizeExceededBehavior="#{queueBean.sizeExceededBehavior}"
onsubmit="addRequest();" />
- <h:panelGrid columns="1" width="800px">
+ <h:panelGrid columns="1" width="100%">
<rich:panel>
<h:panelGrid columns="2">
<h:outputText value="Type here:" />
16 years
JBoss Rich Faces SVN: r12093 - Reports/3.3.0 and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: adubovsky
Date: 2009-01-05 06:13:58 -0500 (Mon, 05 Jan 2009)
New Revision: 12093
Modified:
trunk/test-applications/qa/Test Reports/3.3.0/ComponentsAssignment3.3.0.CR1.xls
Log:
Modified: trunk/test-applications/qa/Test Reports/3.3.0/ComponentsAssignment3.3.0.CR1.xls
===================================================================
(Binary files differ)
16 years
JBoss Rich Faces SVN: r12092 - trunk/ui/columns/src/main/java/org/richfaces/taglib.
by richfaces-svn-commits@lists.jboss.org
Author: andrei_exadel
Date: 2009-01-05 06:07:37 -0500 (Mon, 05 Jan 2009)
New Revision: 12092
Modified:
trunk/ui/columns/src/main/java/org/richfaces/taglib/ColumnsHandler.java
Log:
RF-5300
Modified: trunk/ui/columns/src/main/java/org/richfaces/taglib/ColumnsHandler.java
===================================================================
--- trunk/ui/columns/src/main/java/org/richfaces/taglib/ColumnsHandler.java 2009-01-05 10:24:20 UTC (rev 12091)
+++ trunk/ui/columns/src/main/java/org/richfaces/taglib/ColumnsHandler.java 2009-01-05 11:07:37 UTC (rev 12092)
@@ -28,6 +28,7 @@
package org.richfaces.taglib;
import java.io.IOException;
+import java.util.ArrayList;
import java.util.Collection;
import java.util.Enumeration;
import java.util.Iterator;
@@ -41,6 +42,7 @@
import javax.faces.component.UIComponent;
import javax.servlet.jsp.JspTagException;
+import org.richfaces.component.UIColumn;
import org.richfaces.el.ELBuilder;
import org.richfaces.iterator.ForEachIterator;
import org.richfaces.iterator.SimpleForEachIterator;
@@ -65,6 +67,8 @@
public class ColumnsHandler extends MetaTagHandler {
com.sun.facelets.tag.jsf.ComponentHandler handler;
+
+ static final String DYNAMIC_COLUMN_MARKER = "_richfaces_columns";
/** value attribute */
private TagAttribute value;
@@ -181,6 +185,13 @@
});
return ruleset;
}
+
+ @Override
+ protected void applyNextHandler(FaceletContext ctx, UIComponent c)
+ throws IOException, FacesException, ELException {
+ c.getAttributes().put(DYNAMIC_COLUMN_MARKER, Boolean.TRUE);
+ super.applyNextHandler(ctx, c);
+ }
};
}
@@ -188,12 +199,12 @@
/**
* Extracts tags attributes values
*/
- private void initVariables(FaceletContext ctx/*, IterationContext itContext*/) {
- initColumnsCount(ctx/*, itContext*/);
- initIndex(ctx/*, itContext*/);
- initVar(ctx/*, itContext*/);
- initBegin(ctx/*, itContext*/);
- initEnd(ctx/*, itContext*/);
+ private void initVariables(FaceletContext ctx) {
+ initColumnsCount(ctx);
+ initIndex(ctx);
+ initVar(ctx);
+ initBegin(ctx);
+ initEnd(ctx);
}
/**
@@ -201,9 +212,9 @@
*
* @throws JspTagException
*/
- private void prepare(FaceletContext ctx/*, IterationContext itContext*/) {
+ private void prepare(FaceletContext ctx) {
- initVariables(ctx/*, itContext*/);
+ initVariables(ctx);
IterationContext itContext = getIterationContext();
@@ -231,20 +242,20 @@
// TODO: handle exception
}
- correctFirst(ctx/*, itContext*/);
+ correctFirst(ctx);
}
/**
* Inits first iteration item
*/
- private void correctFirst(FaceletContext ctx/*, IterationContext itContext*/) {
+ private void correctFirst(FaceletContext ctx) {
IterationContext itContext = getIterationContext();
if (itContext.items != null) {
if (itContext._begin > 0 && (itContext._index < itContext._begin)) {
- while ((itContext._index < itContext._begin && hasNext(/*itContext*/))) {
- next(ctx/*, itContext*/);
+ while ((itContext._index < itContext._begin && hasNext())) {
+ next(ctx);
}
- if (!hasNext(/*itContext*/)) {
+ if (!hasNext()) {
itContext._index = 0;
}
}
@@ -257,7 +268,7 @@
* @return
* @throws JspTagException
*/
- private boolean hasNext(/*IterationContext itContext*/) {
+ private boolean hasNext() {
IterationContext itContext = getIterationContext();
try {
if (itContext._end != 0) {
@@ -277,7 +288,7 @@
* @return
* @throws JspTagException
*/
- private Object next(FaceletContext ctx/*, IterationContext itContext*/) {
+ private Object next(FaceletContext ctx) {
IterationContext itContext = getIterationContext();
try {
Object o = itContext.items.next();
@@ -291,7 +302,7 @@
/**
* Extracts integer value from end attr
*/
- private void initColumnsCount(FaceletContext ctx/*, IterationContext itContext*/) {
+ private void initColumnsCount(FaceletContext ctx) {
IterationContext itContext = getIterationContext();
this.columns = getAttribute("columns");
if (columns != null) {
@@ -311,7 +322,7 @@
/**
* Extracts integer value from begin attr
*/
- private void initBegin(FaceletContext ctx/*, IterationContext itContext*/) {
+ private void initBegin(FaceletContext ctx) {
IterationContext itContext = getIterationContext();
this.begin = getAttribute("begin");
if (begin != null) {
@@ -337,7 +348,7 @@
/**
* Extracts integer value from end attr
*/
- private void initEnd(FaceletContext ctx/*, IterationContext itContext*/) {
+ private void initEnd(FaceletContext ctx) {
IterationContext itContext = getIterationContext();
this.end = getAttribute("end");
if (end != null) {
@@ -362,7 +373,7 @@
/**
* Extracts string value from var attr
*/
- private void initVar(FaceletContext ctx/*, IterationContext itContext*/) {
+ private void initVar(FaceletContext ctx) {
IterationContext itContext = getIterationContext();
this.var = getAttribute("var");
if (var != null) {
@@ -378,7 +389,7 @@
/**
* Extracts string value from index attr
*/
- private void initIndex(FaceletContext ctx/*, IterationContext itContext*/) {
+ private void initIndex(FaceletContext ctx) {
IterationContext itContext = getIterationContext();
this.index = getAttribute("index");
if (index != null) {
@@ -420,42 +431,52 @@
IterationContext iterationContext = new IterationContext();
iterationContextLocal.set(iterationContext);
- prepare(ctx/*, iterationContext*/); // prepare data
+ clearOldColumns(parent);
+ prepare(ctx); // prepare data
try {
- while (hasNext(/*iterationContext*/)) { // for each
- exposeVariables(ctx/*, iterationContext*/);
- //super.apply(ctx, parent);
+ while (hasNext()) { // for each
+ exposeVariables(ctx);
handler.apply(ctx, parent);
- next(ctx/*, iterationContext*/);
+ next(ctx);
}
} catch (Exception e) {
// TODO: handle exception
} finally {
- release(/*iterationContext*/);
- unExposeVariables(ctx/*, iterationContext*/);
+ release();
+ unExposeVariables(ctx);
}
}
- protected void applyNextHandler(FaceletContext ctx, UIComponent c)
- throws IOException, FacesException, ELException {
- // TODO Auto-generated method stub
- //super.applyNextHandler(ctx, c);
-
+
+ private void clearOldColumns (UIComponent parent) {
+ if (parent.getChildren() != null) {
+ Iterator<UIComponent> childrenIt = parent.getChildren().iterator();
+ List<UIComponent> forDelete = new ArrayList<UIComponent>();
+ while (childrenIt.hasNext()) {
+ UIComponent c = childrenIt.next();
+ if (c instanceof UIColumn && c.getAttributes().get(DYNAMIC_COLUMN_MARKER) != null
+ && (Boolean)c.getAttributes().get(DYNAMIC_COLUMN_MARKER)) {
+ forDelete.add(c);
+ }
+ }
+ if (forDelete.size() > 0) {
+ Iterator<UIComponent> it = forDelete.iterator();
+ while (it.hasNext()) {
+ parent.getChildren().remove(it.next());
+ }
+ }
+ }
+
}
-
- private void onComponentCreated(UIComponent c) {
-
- }
-
/**
* Sets page request variables
*
* @throws JspTagException
*/
- private void exposeVariables(FaceletContext ctx/*, IterationContext itContext*/) {
+ private void exposeVariables(FaceletContext ctx) {
IterationContext itContext = getIterationContext();
VariableMapper vm = ctx.getVariableMapper();
int k = itContext._index;
@@ -465,7 +486,7 @@
if (value != null) {
ValueExpression srcVE = value.getValueExpression(ctx,
Object.class);
- ValueExpression ve = getVarExpression(ctx, srcVE/*, itContext*/);
+ ValueExpression ve = getVarExpression(ctx, srcVE);
vm.setVariable(itContext._itemId, ve);
}
}
@@ -488,7 +509,7 @@
* Removes page attributes that we have exposed and, if applicable, restores
* them to their prior values (and scopes).
*/
- private void unExposeVariables(FaceletContext ctx/*, IterationContext itContext*/) {
+ private void unExposeVariables(FaceletContext ctx) {
IterationContext itContext = getIterationContext();
VariableMapper vm = ctx.getVariableMapper();
// "nested" variables are now simply removed
@@ -533,7 +554,7 @@
/**
* Release iteration variables
*/
- private void release(/*IterationContext itContext*/) {
+ private void release() {
IterationContext itContext = getIterationContext();
itContext.items = null;
itContext._index = 0;
16 years
JBoss Rich Faces SVN: r12091 - trunk/samples/richfaces-demo/src/main/webapp/richfaces/editor/examples.
by richfaces-svn-commits@lists.jboss.org
Author: ilya_shaikovsky
Date: 2009-01-05 05:24:20 -0500 (Mon, 05 Jan 2009)
New Revision: 12091
Modified:
trunk/samples/richfaces-demo/src/main/webapp/richfaces/editor/examples/editor.xhtml
Log:
markup corrected in order to remove flickering during updates. unnesessary reRendering removed.
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-05 10:18:50 UTC (rev 12090)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/editor/examples/editor.xhtml 2009-01-05 10:24:20 UTC (rev 12091)
@@ -1,53 +1,64 @@
- <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">
- <style>
- .column{
- width:50%;
- vertical-align:top;
- }
- </style>
- <h:form>
- <h:panelGrid columns="2" width="100%" columnClasses="column,column">
- <h:panelGroup style="height:320px;" layout="block">
- <rich:editor configuration="#{editorBean.currentConfiguration}" id="editor" width="400" height="300" viewMode = "#{editorBean.viewMode}" value="#{editorBean.value}">
- <a4j:support event="onchange" reRender="result" ajaxSingle="true" requestDelay="1000" rendered="#{editorBean.liveUpdatesEnabled}"/>
+
+<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">
+ <style>
+.column {
+ width: 400px;
+ vertical-align: top;
+}
+</style>
+ <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"
+ viewMode="#{editorBean.viewMode}" value="#{editorBean.value}">
+ <a4j:support event="onchange" reRender="result" ajaxSingle="true"
+ requestDelay="1000"
+ onsubmit="if (#{rich:element('form:editorvalue')}==null) return false;" />
</rich:editor>
</h:panelGroup>
<rich:panel>
<f:facet name="header">
- <h:outputText value="Editor Settings"/>
+ <h:outputText value="Editor Settings" />
</f:facet>
<h:panelGrid columns="2">
- <h:outputText value="Select Editor Theme"/>
- <h:selectOneRadio value="#{editorBean.currentConfiguration}" layout="pageDirection">
- <f:selectItems value="#{editorBean.configurations}"/>
- <a4j:support event="onclick" reRender="editor"/>
+ <h:outputText value="Select Editor Theme" />
+ <h:selectOneRadio value="#{editorBean.currentConfiguration}"
+ layout="pageDirection">
+ <f:selectItems value="#{editorBean.configurations}" />
+ <a4j:support event="onclick" reRender="editor" requestDelay="500"
+ eventsQueue="settingsQueue" similarityGroupingId="settings" />
</h:selectOneRadio>
- <h:outputText value="Toggle Modes"/>
- <h:selectOneRadio value="#{editorBean.viewMode}" layout="pageDirection">
- <f:selectItem itemLabel="WYSIWYG mode" itemValue="visual"/>
- <f:selectItem itemLabel="Simple Text Area" itemValue="source"/>
- <a4j:support event="onclick" reRender="editor"/>
+ <h:outputText value="Toggle Modes" />
+ <h:selectOneRadio value="#{editorBean.viewMode}"
+ layout="pageDirection">
+ <f:selectItem itemLabel="WYSIWYG mode" itemValue="visual" />
+ <f:selectItem itemLabel="Simple Text Area" itemValue="source" />
+ <a4j:support event="onclick" reRender="editor" requestDelay="500"
+ eventsQueue="settingsQueue" similarityGroupingId="settings" />
</h:selectOneRadio>
<h:outputText value="Toggle Preview: " />
- <h:selectBooleanCheckbox value="#{editorBean.liveUpdatesEnabled}" >
- <a4j:support event="onclick" reRender="editor, result"/>
+ <h:selectBooleanCheckbox value="#{editorBean.liveUpdatesEnabled}">
+ <a4j:support event="onclick" reRender="result" requestDelay="500"
+ eventsQueue="settingsQueue" similarityGroupingId="settings" />
</h:selectBooleanCheckbox>
</h:panelGrid>
</rich:panel>
<a4j:outputPanel layout="block" id="result">
<rich:panel rendered="#{editorBean.liveUpdatesEnabled}">
<f:facet name="header">
- <h:outputText value="Preview"/>
+ <h:outputText value="Preview" />
</f:facet>
- <h:outputText escape="false" value="#{editorBean.value}"/>
+ <h:outputText escape="false" value="#{editorBean.value}"
+ id="editorvalue" />
</rich:panel>
</a4j:outputPanel>
- </h:panelGrid>
-
- </h:form>
- </ui:composition>
+ </h:panelGrid>
+
+ </h:form>
+</ui:composition>
16 years