JBoss Rich Faces SVN: r15345 - branches/community/3.3.X/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: atsebro
Date: 2009-08-27 11:04:02 -0400 (Thu, 27 Aug 2009)
New Revision: 15345
Modified:
branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/rich_insert.xml
Log:
RF-7756: Rich Miscellaneous component group description review --> rich:Insert
Modified: branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/rich_insert.xml
===================================================================
--- branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/rich_insert.xml 2009-08-27 15:03:05 UTC (rev 15344)
+++ branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/rich_insert.xml 2009-08-27 15:04:02 UTC (rev 15345)
@@ -106,7 +106,7 @@
<section>
<title>Relevant Resources Links</title>
<para>
- Visit the <ulink url="http://livedemo.exadel.com/richfaces-demo/richfaces/insert.jsf?c=insert">Insert page</ulink> at RichFaces LiveDemo page for examples of component usage and their sources.
+ Visit the <ulink url="http://livedemo.exadel.com/richfaces-demo/richfaces/insert.jsf?c=insert">Insert page</ulink> at RichFaces LiveDemo for examples of component usage and their sources.
</para>
</section>
</section>
\ No newline at end of file
15 years, 4 months
JBoss Rich Faces SVN: r15344 - branches/community/3.3.X/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: atsebro
Date: 2009-08-27 11:03:05 -0400 (Thu, 27 Aug 2009)
New Revision: 15344
Modified:
branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/rich_insert.xml
Log:
RF-7756: Rich Miscellaneous component group description review --> rich:Insert
Modified: branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/rich_insert.xml
===================================================================
--- branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/rich_insert.xml 2009-08-27 14:15:58 UTC (rev 15343)
+++ branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/rich_insert.xml 2009-08-27 15:03:05 UTC (rev 15344)
@@ -49,8 +49,8 @@
to your names, which are used by the <ulink url="https://jhighlight.dev.java.net/">JHighlight</ulink> library.
</para>
<para>
- The <property>"errorContent"</property> attribute defines the alternative content that will be shown in case the <emphasis role="bold"><property><rich:insert></property></emphasis> cannot read the resource defined with <property>"src"</property> attribute.
- If <property>"errorContent"</property> attribute is not defined, the component shown the actual error message in the place where the content is expected.
+ The <emphasis><property>"errorContent"</property></emphasis> attribute defines the alternative content that will be shown in case the <emphasis role="bold"><property><rich:insert></property></emphasis> cannot read the resource defined with <emphasis><property>"src"</property></emphasis> attribute.
+ If <emphasis><property>"errorContent"</property></emphasis> attribute is not defined, the component shown the actual error message in the place where the content is expected.
</para>
</section>
<section>
15 years, 4 months
JBoss Rich Faces SVN: r15343 - root/framework/trunk/impl/src/main/java/org/richfaces/util.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2009-08-27 10:15:58 -0400 (Thu, 27 Aug 2009)
New Revision: 15343
Modified:
root/framework/trunk/impl/src/main/java/org/richfaces/util/Util.java
Log:
Added missing log statements
Modified: root/framework/trunk/impl/src/main/java/org/richfaces/util/Util.java
===================================================================
--- root/framework/trunk/impl/src/main/java/org/richfaces/util/Util.java 2009-08-27 14:10:08 UTC (rev 15342)
+++ root/framework/trunk/impl/src/main/java/org/richfaces/util/Util.java 2009-08-27 14:15:58 UTC (rev 15343)
@@ -70,7 +70,10 @@
import javax.faces.context.ExternalContext;
import javax.faces.context.FacesContext;
+import org.ajax4jsf.Messages;
import org.ajax4jsf.util.base64.Codec;
+import org.richfaces.log.RichfacesLogger;
+import org.slf4j.Logger;
/**
* @author Nick Belaevski
@@ -78,6 +81,8 @@
*/
public class Util {
+ private static final Logger resourceLogger = RichfacesLogger.RESOURCE.getLogger();
+
private Util() {}
/* HTTP Date format required by the HTTP/1.1 RFC */
@@ -221,9 +226,7 @@
// String(Base64.encodeBase64(objectData),
// / "ISO-8859-1"));
} catch (Exception e) {
- // Ignore errors, log it
-// log.error(Messages
-// .getMessage(Messages.QUERY_STRING_BUILDING_ERROR), e);
+ resourceLogger.error(Messages.getMessage(Messages.QUERY_STRING_BUILDING_ERROR), e);
}
}
@@ -276,11 +279,11 @@
String dataString = null;
Matcher matcher = DATA_SEPARATOR_PATTERN.matcher(resourceUri);
if (matcher.find()) {
-// if (log.isDebugEnabled()) {
-// log.debug(Messages.getMessage(
-// Messages.RESTORE_DATA_FROM_RESOURCE_URI_INFO, resourceUri,
-// dataString));
-// }
+ if (resourceLogger.isDebugEnabled()) {
+ resourceLogger.debug(Messages.getMessage(
+ Messages.RESTORE_DATA_FROM_RESOURCE_URI_INFO, resourceUri,
+ dataString));
+ }
dataString = matcher.group(DATA_SEPARATOR_DATA_GROUP_INDEX);
byte[] objectArray = null;
byte[] dataArray;
@@ -298,18 +301,17 @@
new ByteArrayInputStream(objectArray));
data = in.readObject();
} catch (StreamCorruptedException e) {
-// log.error(Messages
-// .getMessage(Messages.STREAM_CORRUPTED_ERROR), e);
+ resourceLogger.error(Messages
+ .getMessage(Messages.STREAM_CORRUPTED_ERROR), e);
} catch (IOException e) {
-// log.error(Messages
-// .getMessage(Messages.DESERIALIZE_DATA_INPUT_ERROR),
-// e);
+ resourceLogger.error(Messages
+ .getMessage(Messages.DESERIALIZE_DATA_INPUT_ERROR),
+ e);
} catch (ClassNotFoundException e) {
-// log
-// .error(
-// Messages
-// .getMessage(Messages.DATA_CLASS_NOT_FOUND_ERROR),
-// e);
+ resourceLogger.error(
+ Messages
+ .getMessage(Messages.DATA_CLASS_NOT_FOUND_ERROR),
+ e);
}
}
}
15 years, 4 months
JBoss Rich Faces SVN: r15342 - branches/community/3.3.X/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: atsebro
Date: 2009-08-27 10:10:08 -0400 (Thu, 27 Aug 2009)
New Revision: 15342
Modified:
branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/rich_insert.xml
Log:
RF-7756: Rich Miscellaneous component group description review --> rich:Insert
Modified: branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/rich_insert.xml
===================================================================
--- branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/rich_insert.xml 2009-08-27 12:57:54 UTC (rev 15341)
+++ branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/rich_insert.xml 2009-08-27 14:10:08 UTC (rev 15342)
@@ -31,19 +31,12 @@
<para>If <emphasis>
<property>"highlight"</property>
</emphasis> attribute is defined and <ulink url="https://jhighlight.dev.java.net/"> JHighlight</ulink> open source library is in the classpath, the text from the file is formated and colorized.</para>
- <para>An example is placed below.</para>
- <para>
- <emphasis role="bold">Example:</emphasis>
- </para>
- <programlisting role="XML">...
-<rich:insert src="/pages/sourcePage.xhtml" highlight="xhtml"/>
-...</programlisting>
+ <para>An example is placed below:</para>
+ <programlisting role="XML"><rich:insert src="/pages/sourcePage.xhtml" highlight="xhtml"/></programlisting>
- <para>The result of using <emphasis role="bold">
- <property><rich:insert></property>
- </emphasis> component is shown on the picture:</para>
+ <para>The result of using <emphasis role="bold"><property><rich:insert></property></emphasis> component is shown on the picture:</para>
<figure>
- <title>Source code highlighting</title>
+ <title>Source code highlighting with the help of <rich:Insert>></title>
<mediaobject>
<imageobject>
<imagedata fileref="images/insert_init.png"/>
@@ -53,7 +46,12 @@
<para>The <emphasis role="bold">
<property><rich:insert></property>
</emphasis> component provides the same functionality as <ulink url="https://jhighlight.dev.java.net/">JHighlight</ulink>. Thus, all names of highlight style classes for source code of particular language could be changed
- to your names, which are used by the <ulink url="https://jhighlight.dev.java.net/">JHighlight</ulink> library.</para>
+ to your names, which are used by the <ulink url="https://jhighlight.dev.java.net/">JHighlight</ulink> library.
+ </para>
+ <para>
+ The <property>"errorContent"</property> attribute defines the alternative content that will be shown in case the <emphasis role="bold"><property><rich:insert></property></emphasis> cannot read the resource defined with <property>"src"</property> attribute.
+ If <property>"errorContent"</property> attribute is not defined, the component shown the actual error message in the place where the content is expected.
+ </para>
</section>
<section>
<title>Reference Data</title>
15 years, 4 months
JBoss Rich Faces SVN: r15341 - in root: ui/trunk/components/core/src/main/java/org/richfaces/renderkit and 1 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2009-08-27 08:57:54 -0400 (Thu, 27 Aug 2009)
New Revision: 15341
Modified:
root/framework/trunk/impl/src/main/java/org/ajax4jsf/renderkit/AjaxEventOptions.java
root/framework/trunk/impl/src/main/java/org/ajax4jsf/renderkit/AjaxRendererUtils.java
root/ui/trunk/components/core/src/main/java/org/richfaces/renderkit/AjaxCommandRendererBase.java
root/ui/trunk/components/core/src/main/java/org/richfaces/renderkit/AjaxFunctionRendererBase.java
root/ui/trunk/components/core/src/main/java/org/richfaces/renderkit/html/AjaxPushRenderer.java
Log:
Ajax functions parameters optimization
Modified: root/framework/trunk/impl/src/main/java/org/ajax4jsf/renderkit/AjaxEventOptions.java
===================================================================
--- root/framework/trunk/impl/src/main/java/org/ajax4jsf/renderkit/AjaxEventOptions.java 2009-08-27 12:15:13 UTC (rev 15340)
+++ root/framework/trunk/impl/src/main/java/org/ajax4jsf/renderkit/AjaxEventOptions.java 2009-08-27 12:57:54 UTC (rev 15341)
@@ -61,8 +61,15 @@
options.remove(optionName);
}
- @SuppressWarnings("unchecked")
+ public boolean hasParameters() {
+ @SuppressWarnings("unchecked")
+ Map<String, Object> parameters = (Map<String, Object>) options.get(PARAMETERS);
+ return parameters != null && !parameters.isEmpty();
+ }
+
+ //TODO: optimize rendered data
public Map<String, Object> getParameters() {
+ @SuppressWarnings("unchecked")
Map<String, Object> parameters = (Map<String, Object>) options.get(PARAMETERS);
if (parameters == null) {
parameters = new LinkedHashMap<String, Object>();
@@ -72,9 +79,9 @@
return parameters;
}
- @SuppressWarnings("unchecked")
public Object getParameter(String parameterName) {
Object result = null;
+ @SuppressWarnings("unchecked")
Map<String, Object> parameters = (Map<String, Object>) options.get(PARAMETERS);
if (parameters != null) {
result = parameters.get(parameterName);
@@ -87,8 +94,8 @@
getParameters().put(parameterName, parameterValue);
}
- @SuppressWarnings("unchecked")
public void removeParameter(String parameterName) {
+ @SuppressWarnings("unchecked")
Map<String, Object> parameters = (Map<String, Object>) options.get(PARAMETERS);
if (parameters != null) {
parameters.remove(parameterName);
Modified: root/framework/trunk/impl/src/main/java/org/ajax4jsf/renderkit/AjaxRendererUtils.java
===================================================================
--- root/framework/trunk/impl/src/main/java/org/ajax4jsf/renderkit/AjaxRendererUtils.java 2009-08-27 12:15:13 UTC (rev 15340)
+++ root/framework/trunk/impl/src/main/java/org/ajax4jsf/renderkit/AjaxRendererUtils.java 2009-08-27 12:57:54 UTC (rev 15341)
@@ -327,9 +327,11 @@
if (ajaxStatusName != null && ajaxStatusName.length() != 0) {
ajaxEventOptions.set(STATUS_ATTR_NAME, ajaxStatusName);
}
-
- ajaxEventOptions.getParameters().putAll(parametersMap);
+ if (!parametersMap.isEmpty()) {
+ ajaxEventOptions.getParameters().putAll(parametersMap);
+ }
+
return ajaxEventOptions;
}
Modified: root/ui/trunk/components/core/src/main/java/org/richfaces/renderkit/AjaxCommandRendererBase.java
===================================================================
--- root/ui/trunk/components/core/src/main/java/org/richfaces/renderkit/AjaxCommandRendererBase.java 2009-08-27 12:15:13 UTC (rev 15340)
+++ root/ui/trunk/components/core/src/main/java/org/richfaces/renderkit/AjaxCommandRendererBase.java 2009-08-27 12:57:54 UTC (rev 15341)
@@ -34,6 +34,7 @@
import javax.faces.event.ActionEvent;
import org.ajax4jsf.javascript.JSFunction;
+import org.ajax4jsf.renderkit.AjaxEventOptions;
import org.ajax4jsf.renderkit.HandlersChain;
import org.ajax4jsf.renderkit.RendererBase;
import org.richfaces.log.RichfacesLogger;
@@ -84,7 +85,10 @@
handlersChain.addBehaviors(context, "click");
JSFunction ajaxFunction = buildAjaxFunction(context, component, AJAX_FUNCTION_NAME);
- ajaxFunction.addParameter(buildEventOptions(context, component));
+ AjaxEventOptions eventOptions = buildEventOptions(context, component);
+ if (!eventOptions.isEmpty()) {
+ ajaxFunction.addParameter(eventOptions);
+ }
handlersChain.addInlineHandlerAsValue(context, ajaxFunction.toScript());
String handlerScript = handlersChain.toScript();
Modified: root/ui/trunk/components/core/src/main/java/org/richfaces/renderkit/AjaxFunctionRendererBase.java
===================================================================
--- root/ui/trunk/components/core/src/main/java/org/richfaces/renderkit/AjaxFunctionRendererBase.java 2009-08-27 12:15:13 UTC (rev 15340)
+++ root/ui/trunk/components/core/src/main/java/org/richfaces/renderkit/AjaxFunctionRendererBase.java 2009-08-27 12:57:54 UTC (rev 15341)
@@ -55,32 +55,37 @@
JSFunction ajaxFunction = AjaxRendererUtils.buildAjaxFunction(
context, component, AjaxRendererUtils.AJAX_FUNCTION_NAME);
AjaxEventOptions options = AjaxRendererUtils.buildEventOptions(context, component);
- ajaxFunction.addParameter(options);
- Map<String, Object> parameters = options.getParameters();
-// if (null == parameters) {
-// parameters = new HashMap<String, Object>();
-// options.put("parameters", parameters);
-// }
- // Fill parameters.
- for (Iterator<UIComponent> it = component.getChildren().iterator(); it.hasNext();) {
- UIComponent child = it.next();
- if (child instanceof UIParameter) {
- UIParameter parameter = ((UIParameter) child);
- String name = parameter.getName();
- func.addParameter(name);
- // Put parameter name to AJAX.Submit parameter, with default value.
- JSReference reference = new JSReference(name);
- if (null != parameter.getValue()) {
- reference = new JSReference(name + "||"
- + ScriptUtils.toScript(parameters.get(name)));
+ if (options.hasParameters()) {
+ Map<String, Object> parameters = options.getParameters();
+// if (null == parameters) {
+// parameters = new HashMap<String, Object>();
+// options.put("parameters", parameters);
+// }
+ // Fill parameters.
+ for (Iterator<UIComponent> it = component.getChildren().iterator(); it.hasNext();) {
+ UIComponent child = it.next();
+ if (child instanceof UIParameter) {
+ UIParameter parameter = ((UIParameter) child);
+ String name = parameter.getName();
+ func.addParameter(name);
+ // Put parameter name to AJAX.Submit parameter, with default value.
+ JSReference reference = new JSReference(name);
+ if (null != parameter.getValue()) {
+ reference = new JSReference(name + "||"
+ + ScriptUtils.toScript(parameters.get(name)));
+ }
+ // Replace parameter value to reference.
+ parameters.put(name, reference);
}
- // Replace parameter value to reference.
- parameters.put(name, reference);
}
}
+ if (!options.isEmpty()) {
+ ajaxFunction.addParameter(options);
+ }
+
//TODO - added in 4.0 - ?
func.addParameter(JSReference.EVENT);
Modified: root/ui/trunk/components/core/src/main/java/org/richfaces/renderkit/html/AjaxPushRenderer.java
===================================================================
--- root/ui/trunk/components/core/src/main/java/org/richfaces/renderkit/html/AjaxPushRenderer.java 2009-08-27 12:15:13 UTC (rev 15340)
+++ root/ui/trunk/components/core/src/main/java/org/richfaces/renderkit/html/AjaxPushRenderer.java 2009-08-27 12:57:54 UTC (rev 15341)
@@ -35,6 +35,7 @@
import org.ajax4jsf.javascript.JSFunction;
import org.ajax4jsf.javascript.JSFunctionDefinition;
import org.ajax4jsf.javascript.JSReference;
+import org.ajax4jsf.renderkit.AjaxEventOptions;
import org.ajax4jsf.renderkit.AjaxRendererUtils;
import org.ajax4jsf.renderkit.HandlersChain;
import org.ajax4jsf.renderkit.RendererBase;
@@ -106,7 +107,10 @@
if (!handlersChain.hasSubmittingBehavior()) {
JSFunction ajaxFunction = AjaxRendererUtils.buildAjaxFunction(context, push, AjaxRendererUtils.AJAX_FUNCTION_NAME);
- ajaxFunction.addParameter(AjaxRendererUtils.buildEventOptions(context, push));
+ AjaxEventOptions eventOptions = AjaxRendererUtils.buildEventOptions(context, push);
+ if (!eventOptions.isEmpty()) {
+ ajaxFunction.addParameter(eventOptions);
+ }
handlersChain.addInlineHandlerAsValue(context, ajaxFunction.toScript());
}
15 years, 4 months
JBoss Rich Faces SVN: r15340 - branches/community/3.3.X/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: atsebro
Date: 2009-08-27 08:15:13 -0400 (Thu, 27 Aug 2009)
New Revision: 15340
Modified:
branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/rich_insert.xml
Log:
RF-7756: Rich Miscellaneous component group description review --> rich:Insert
Modified: branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/rich_insert.xml
===================================================================
--- branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/rich_insert.xml 2009-08-27 12:00:50 UTC (rev 15339)
+++ branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/rich_insert.xml 2009-08-27 12:15:13 UTC (rev 15340)
@@ -1,125 +1,114 @@
<section role="NotInToc" id="rich_insert">
- <title>
- <
- rich:insert
- >
- <emphasis role="since">
- <superscript> available since <emphasis role="version">3.1.0</emphasis>
- </superscript>
- </emphasis>
- </title>
- <section>
- <title>Description</title>
- <para>The <emphasis role="bold">
- <property><rich:insert></property>
- </emphasis> component is used for highlighting, source code inserting and, optionally, format the file from the application context into the page.</para>
- </section>
- <section>
- <title>Key Features</title>
- <itemizedlist>
- <listitem>
- <para>Source code highlighting</para>
- </listitem>
- <listitem>
- <para>Variety of formats for source code highlighting</para>
- </listitem>
- </itemizedlist>
- </section>
- <section>
- <title>Details of Usage</title>
- <para>The are two basic attributes. The <emphasis>
- <property>"src"</property>
- </emphasis> attribute defines the path to the file with source code. The <emphasis>
- <property>"highlight"</property>
- </emphasis> attribute defines the type of a syntax highlighting.</para>
- <para>If <emphasis>
- <property>"highlight"</property>
- </emphasis> attribute is defined and <ulink url="https://jhighlight.dev.java.net/">
- JHighlight</ulink> open source library is in the classpath, the text from the file is
- formated and colorized.</para>
- <para>An example is placed below.</para>
- <para>
- <emphasis role="bold">Example:</emphasis>
- </para>
- <programlisting role="XML">...
+ <title> < rich:insert > <emphasis role="since">
+ <superscript> available since <emphasis role="version">3.1.0</emphasis>
+ </superscript>
+ </emphasis>
+ </title>
+ <section>
+ <title>Description</title>
+ <para>The <emphasis role="bold">
+ <property><rich:insert></property>
+ </emphasis> component is used for highlighting, source code inserting and, optionally, format the file from the application context into the page.</para>
+ </section>
+ <section>
+ <title>Key Features</title>
+ <itemizedlist>
+ <listitem>
+ <para>Source code highlighting</para>
+ </listitem>
+ <listitem>
+ <para>Variety of formats for source code highlighting</para>
+ </listitem>
+ </itemizedlist>
+ </section>
+ <section>
+ <title>Details of Usage</title>
+ <para>The are two basic attributes. The <emphasis>
+ <property>"src"</property>
+ </emphasis> attribute defines the path to the file with source code. The <emphasis>
+ <property>"highlight"</property>
+ </emphasis> attribute defines the type of a syntax highlighting.</para>
+ <para>If <emphasis>
+ <property>"highlight"</property>
+ </emphasis> attribute is defined and <ulink url="https://jhighlight.dev.java.net/"> JHighlight</ulink> open source library is in the classpath, the text from the file is formated and colorized.</para>
+ <para>An example is placed below.</para>
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
+ <programlisting role="XML">...
<rich:insert src="/pages/sourcePage.xhtml" highlight="xhtml"/>
...</programlisting>
-
- <para>The result of using <emphasis role="bold">
- <property><rich:insert></property>
- </emphasis> component is shown on the picture:</para>
- <figure>
- <title>Source code highlighting</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/insert_init.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- <para>The <emphasis role="bold">
- <property><rich:insert></property>
- </emphasis> component provides the same functionality as <ulink url="https://jhighlight.dev.java.net/">JHighlight</ulink>. Thus, all names of highlight
- style classes for source code of particular language could be changed to your names, which are
- used by the <ulink url="https://jhighlight.dev.java.net/">JHighlight</ulink> library.</para>
- </section>
- <section>
- <title>Reference Data</title>
- <para>
- <ulink url="&tlddoc;rich/insert.html">Table of
- <rich:insert>
- attributes</ulink>.
- </para>
- <table>
- <title>Component Identification Parameters</title>
- <tgroup cols="2">
- <thead>
- <row>
- <entry>Name</entry>
+ <para>The result of using <emphasis role="bold">
+ <property><rich:insert></property>
+ </emphasis> component is shown on the picture:</para>
+ <figure>
+ <title>Source code highlighting</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/insert_init.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para>The <emphasis role="bold">
+ <property><rich:insert></property>
+ </emphasis> component provides the same functionality as <ulink url="https://jhighlight.dev.java.net/">JHighlight</ulink>. Thus, all names of highlight style classes for source code of particular language could be changed
+ to your names, which are used by the <ulink url="https://jhighlight.dev.java.net/">JHighlight</ulink> library.</para>
+ </section>
+ <section>
+ <title>Reference Data</title>
+ <para>
+ <ulink url="&tlddoc;rich/insert.html">Table of <rich:insert> attributes</ulink>. </para>
+ <table>
+ <title>Component Identification Parameters</title>
- <entry>Value</entry>
- </row>
- </thead>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>Name</entry>
- <tbody>
- <row>
- <entry>component-type</entry>
+ <entry>Value</entry>
+ </row>
+ </thead>
- <entry>org.richfaces.ui.Insert</entry>
- </row>
+ <tbody>
+ <row>
+ <entry>component-type</entry>
- <row>
- <entry>component-class</entry>
+ <entry>org.richfaces.ui.Insert</entry>
+ </row>
- <entry>org.richfaces.ui.component.html.HtmlInsert</entry>
- </row>
+ <row>
+ <entry>component-class</entry>
- <row>
- <entry>component-family</entry>
+ <entry>org.richfaces.ui.component.html.HtmlInsert</entry>
+ </row>
- <entry>org.richfaces.ui.Insert</entry>
- </row>
+ <row>
+ <entry>component-family</entry>
- <row>
- <entry>renderer-type</entry>
+ <entry>org.richfaces.ui.Insert</entry>
+ </row>
- <entry>org.richfaces.ui.InsertRenderer</entry>
- </row>
+ <row>
+ <entry>renderer-type</entry>
- <row>
- <entry>tag-class</entry>
+ <entry>org.richfaces.ui.InsertRenderer</entry>
+ </row>
- <entry>org.richfaces.ui.taglib.InsertTag</entry>
- </row>
- </tbody>
- </tgroup>
- </table>
- </section>
- <section>
- <title>Relevant Resources Links</title>
- <para>
- <ulink url="http://livedemo.exadel.com/richfaces-demo/richfaces/insert.jsf?c=insert">On RichFaces LiveDemo page </ulink> you can found some additional information for <emphasis role="bold">
- <property><rich:insert></property>
- </emphasis> component usage. </para>
- </section>
+ <row>
+ <entry>tag-class</entry>
+
+ <entry>org.richfaces.ui.taglib.InsertTag</entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
+ </section>
+ <section>
+ <title>Relevant Resources Links</title>
+ <para>
+ Visit the <ulink url="http://livedemo.exadel.com/richfaces-demo/richfaces/insert.jsf?c=insert">Insert page</ulink> at RichFaces LiveDemo page for examples of component usage and their sources.
+ </para>
+ </section>
</section>
\ No newline at end of file
15 years, 4 months
JBoss Rich Faces SVN: r15339 - branches/community/3.3.X/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: atsebro
Date: 2009-08-27 08:00:50 -0400 (Thu, 27 Aug 2009)
New Revision: 15339
Modified:
branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/rich_jQuery.xml
Log:
RF-7756: Rich Miscellaneous component group description review --> rich:jQuery
Modified: branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/rich_jQuery.xml
===================================================================
--- branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/rich_jQuery.xml 2009-08-27 11:30:06 UTC (rev 15338)
+++ branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/rich_jQuery.xml 2009-08-27 12:00:50 UTC (rev 15339)
@@ -87,7 +87,7 @@
<programlisting role="XML"><rich:dataTable id="customList" ...>
...
- </rich:table>
+</rich:dataTable>
<rich:jQuery selector="#customList tr:odd" timing="onload" query="addClass(odd)" /></programlisting>
<para>The <emphasis>
<property>"selector"</property>
15 years, 4 months
JBoss Rich Faces SVN: r15338 - in root/examples/trunk/components/core-demo/src/main: webapp and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2009-08-27 07:30:06 -0400 (Thu, 27 Aug 2009)
New Revision: 15338
Added:
root/examples/trunk/components/core-demo/src/main/java/org/richfaces/demo/SupportBean.java
root/examples/trunk/components/core-demo/src/main/webapp/support.xhtml
Removed:
root/examples/trunk/components/core-demo/src/main/webapp/pages/
Log:
developers sample a4j:ajax
Added: root/examples/trunk/components/core-demo/src/main/java/org/richfaces/demo/SupportBean.java
===================================================================
--- root/examples/trunk/components/core-demo/src/main/java/org/richfaces/demo/SupportBean.java (rev 0)
+++ root/examples/trunk/components/core-demo/src/main/java/org/richfaces/demo/SupportBean.java 2009-08-27 11:30:06 UTC (rev 15338)
@@ -0,0 +1,36 @@
+package org.richfaces.demo;
+
+import javax.faces.bean.ManagedBean;
+import javax.faces.bean.SessionScoped;
+import javax.faces.event.AjaxBehaviorEvent;
+import javax.faces.event.BehaviorEvent;
+
+@SessionScoped
+@ManagedBean(name="supportBean")
+public class SupportBean {
+
+ private String text1;
+
+ private String text2;
+
+ public String getText1() {
+ return text1;
+ }
+
+ public void setText1(String text1) {
+ this.text1 = text1;
+ }
+
+ public String getText2() {
+ return text2;
+ }
+
+ public void setText2(String text2) {
+ this.text2 = text2;
+ }
+
+ public void behaviorListener(AjaxBehaviorEvent event) {
+ System.out.println("SupportBean.behaviorListener()");
+ }
+
+}
Added: root/examples/trunk/components/core-demo/src/main/webapp/support.xhtml
===================================================================
--- root/examples/trunk/components/core-demo/src/main/webapp/support.xhtml (rev 0)
+++ root/examples/trunk/components/core-demo/src/main/webapp/support.xhtml 2009-08-27 11:30:06 UTC (rev 15338)
@@ -0,0 +1,66 @@
+<!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:f="http://java.sun.com/jsf/core"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:a="http://richfaces.org/a4j">
+ <h:head>
+ Richfaces Ajax Sample
+
+ </h:head>
+ <h:body>
+ <script type="text/javascript">
+ function selectEventSource(source, borderStyle) {
+ jQuery(source).css('border', borderStyle);
+ }
+ </script>
+
+ <h:form>
+ <a:status name="ilStatus" startText="...start..." stopText="...stop..." />
+ <h:panelGrid columns="2">
+ <h:outputText value="a:ajax attached fires ajax submit on 'keyup' event"/>
+ <h:inputText value="#{supportBean.text1}">
+ <a:ajax event="keyup" render="text1" statusId="ilStatus" listener="#{supportBean.behaviorListener}"/>
+ </h:inputText>
+ </h:panelGrid>
+
+
+
+ <h:panelGrid columns="2" style="border: 1px solid green;">
+ <h:outputText value="reRender text1: "/>
+ <h:outputText id="text1" value="#{supportBean.text1}" />
+
+ <h:outputText value="Ajax Panel ajaxRendered='true':"/>
+ <a:outputPanel ajaxRendered="true" style="border: 1px solid red;">
+ <f:facet name="header">test</f:facet>
+ <h:outputText value="Ajax Panel ajaxRendered='true':" />
+ <h:panelGroup style="padding: 2px;">
+ <h:outputText value="#{supportBean.text1}"/>
+ </h:panelGroup>
+ </a:outputPanel>
+ </h:panelGrid>
+
+ <h:panelGrid columns="2">
+ <h:outputText value="a:ajax attached fires ajax submit on default event"/>
+ <h:inputText value="#{supportBean.text2}">
+ <a:ajax render="text2" statusId="ilStatus" limitRender="true"/>
+ </h:inputText>
+ </h:panelGrid>
+
+ <h:panelGrid columns="2" style="border: 1px solid green;">
+ <h:outputText value="reRender text2 limitRender='true': "/>
+ <h:outputText id="text2" value="#{supportBean.text2}" />
+
+ <h:outputText value="Ajax Panel shouldn't work coz < a:ajax limitRender='true' /> :"/>
+ <a:outputPanel ajaxRendered="true" style="border: 1px solid red;">
+ <h:outputText value="Ajax Panel ajaxRendered='true':" />
+ <h:panelGroup style="padding: 2px;">
+ <h:outputText value="#{supportBean.text2}"/>
+ </h:panelGroup>
+ </a:outputPanel>
+ </h:panelGrid>
+
+
+ </h:form>
+ </h:body>
+</html>
\ No newline at end of file
15 years, 4 months
JBoss Rich Faces SVN: r15337 - branches/community/3.3.X/samples/richfaces-demo/src/main/webapp/richfaces/editor/examples.
by richfaces-svn-commits@lists.jboss.org
Author: ilya_shaikovsky
Date: 2009-08-27 06:39:28 -0400 (Thu, 27 Aug 2009)
New Revision: 15337
Modified:
branches/community/3.3.X/samples/richfaces-demo/src/main/webapp/richfaces/editor/examples/editor.xhtml
Log:
https://jira.jboss.org/jira/browse/RF-7721
Modified: branches/community/3.3.X/samples/richfaces-demo/src/main/webapp/richfaces/editor/examples/editor.xhtml
===================================================================
--- branches/community/3.3.X/samples/richfaces-demo/src/main/webapp/richfaces/editor/examples/editor.xhtml 2009-08-27 10:27:19 UTC (rev 15336)
+++ branches/community/3.3.X/samples/richfaces-demo/src/main/webapp/richfaces/editor/examples/editor.xhtml 2009-08-27 10:39:28 UTC (rev 15337)
@@ -71,7 +71,7 @@
<h:outputText value="Preview" />
</f:facet>
<h:inputTextarea readonly="true" id="editorvalue" value="#{editorBean.value}"
- style="width:375px;"/>
+ style="width:375px;" rows="10"/>
</rich:panel>
</a4j:outputPanel>
<h:outputText />
15 years, 4 months
JBoss Rich Faces SVN: r15336 - branches/community/3.3.X/samples/richfaces-demo/src/main/webapp/richfaces/outputPanel/examples.
by richfaces-svn-commits@lists.jboss.org
Author: ilya_shaikovsky
Date: 2009-08-27 06:27:19 -0400 (Thu, 27 Aug 2009)
New Revision: 15336
Modified:
branches/community/3.3.X/samples/richfaces-demo/src/main/webapp/richfaces/outputPanel/examples/noneLayout.xhtml
Log:
https://jira.jboss.org/jira/browse/RF-7712
Modified: branches/community/3.3.X/samples/richfaces-demo/src/main/webapp/richfaces/outputPanel/examples/noneLayout.xhtml
===================================================================
--- branches/community/3.3.X/samples/richfaces-demo/src/main/webapp/richfaces/outputPanel/examples/noneLayout.xhtml 2009-08-27 09:43:15 UTC (rev 15335)
+++ branches/community/3.3.X/samples/richfaces-demo/src/main/webapp/richfaces/outputPanel/examples/noneLayout.xhtml 2009-08-27 10:27:19 UTC (rev 15336)
@@ -44,7 +44,7 @@
</h:form>
</a4j:outputPanel>
- <h:outputText id="out1" rendered="#{not empty rsBean.text1}" value="Approved Text: #{rsBean.text2}" />
+ <h:outputText id="out1" rendered="#{not empty rsBean.text1}" value="Approved Text: #{rsBean.text1}" />
</a4j:outputPanel>
@@ -59,7 +59,7 @@
<a4j:outputPanel layout="block">
<h:form>
<h:outputText style="font-weight: bold;" value="Enter Text: "/>
- <h:inputText id="text2" label="text1" value="#{rsBean.text2}">
+ <h:inputText id="text2" label="text2" value="#{rsBean.text2}">
<f:validateLength maximum="10"/>
<a4j:support event="onkeyup" reRender="out2" />
</h:inputText>
15 years, 4 months