JBoss Rich Faces SVN: r2327 - trunk/ui/effect/src/main/java/org/richfaces/renderkit.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2007-08-17 13:08:52 -0400 (Fri, 17 Aug 2007)
New Revision: 2327
Modified:
trunk/ui/effect/src/main/java/org/richfaces/renderkit/EffectRendererBase.java
Log:
Quotes missing added in EffectRendererBase
Modified: trunk/ui/effect/src/main/java/org/richfaces/renderkit/EffectRendererBase.java
===================================================================
--- trunk/ui/effect/src/main/java/org/richfaces/renderkit/EffectRendererBase.java 2007-08-17 17:06:21 UTC (rev 2326)
+++ trunk/ui/effect/src/main/java/org/richfaces/renderkit/EffectRendererBase.java 2007-08-17 17:08:52 UTC (rev 2327)
@@ -103,7 +103,7 @@
}
- s.replace(idx, x.getMyIndex(), "'id': " + value);
+ s.replace(idx, x.getMyIndex(), "'id': '" + value + "'");
return ;
} else {
18 years, 8 months
JBoss Rich Faces SVN: r2326 - trunk/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: vkorluzhenko
Date: 2007-08-17 13:06:21 -0400 (Fri, 17 Aug 2007)
New Revision: 2326
Modified:
trunk/docs/userguide/en/src/main/docbook/included/portlet.xml
Log:
http://jira.jboss.com/jira/browse/RF-623
Modified: trunk/docs/userguide/en/src/main/docbook/included/portlet.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/portlet.xml 2007-08-17 17:04:45 UTC (rev 2325)
+++ trunk/docs/userguide/en/src/main/docbook/included/portlet.xml 2007-08-17 17:06:21 UTC (rev 2326)
@@ -13,7 +13,7 @@
<tbody>
<row>
<entry>component-type</entry>
- <entry>org.ajax4jsf.component.Portlet</entry>
+ <entry>org.ajax4jsf.Portlet</entry>
</row>
<row>
<entry>component-family</entry>
@@ -21,7 +21,7 @@
</row>
<row>
<entry>component-class</entry>
- <entry>org.ajax4jsf.component.UIPortlet</entry>
+ <entry>org.ajax4jsf.component.html.HtmlPortlet</entry>
</row>
<row>
<entry>renderer-type</entry>
18 years, 8 months
JBoss Rich Faces SVN: r2325 - trunk/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: vkorluzhenko
Date: 2007-08-17 13:04:45 -0400 (Fri, 17 Aug 2007)
New Revision: 2325
Modified:
trunk/docs/userguide/en/src/main/docbook/included/actionparam.xml
trunk/docs/userguide/en/src/main/docbook/included/calendar.xml
trunk/docs/userguide/en/src/main/docbook/included/commandButton.xml
trunk/docs/userguide/en/src/main/docbook/included/commandLink.xml
trunk/docs/userguide/en/src/main/docbook/included/dropDownMenu.xml
trunk/docs/userguide/en/src/main/docbook/included/form.xml
trunk/docs/userguide/en/src/main/docbook/included/include.xml
trunk/docs/userguide/en/src/main/docbook/included/insert.xml
trunk/docs/userguide/en/src/main/docbook/included/jsFunction.xml
trunk/docs/userguide/en/src/main/docbook/included/loadScript.xml
trunk/docs/userguide/en/src/main/docbook/included/loadStyle.xml
trunk/docs/userguide/en/src/main/docbook/included/log.xml
trunk/docs/userguide/en/src/main/docbook/included/mediaOutput.xml
trunk/docs/userguide/en/src/main/docbook/included/menuGroup.xml
trunk/docs/userguide/en/src/main/docbook/included/menuItem.xml
trunk/docs/userguide/en/src/main/docbook/included/menuSeparator.xml
trunk/docs/userguide/en/src/main/docbook/included/outputPanel.xml
trunk/docs/userguide/en/src/main/docbook/included/page.xml
trunk/docs/userguide/en/src/main/docbook/included/panelMenu.xml
trunk/docs/userguide/en/src/main/docbook/included/panelMenuGroup.xml
trunk/docs/userguide/en/src/main/docbook/included/panelMenuItem.xml
trunk/docs/userguide/en/src/main/docbook/included/poll.xml
trunk/docs/userguide/en/src/main/docbook/included/push.xml
trunk/docs/userguide/en/src/main/docbook/included/region.xml
trunk/docs/userguide/en/src/main/docbook/included/repeat.xml
trunk/docs/userguide/en/src/main/docbook/included/status.xml
trunk/docs/userguide/en/src/main/docbook/included/support.xml
Log:
http://jira.jboss.com/jira/browse/RF-623
Modified: trunk/docs/userguide/en/src/main/docbook/included/actionparam.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/actionparam.xml 2007-08-17 16:01:48 UTC (rev 2324)
+++ trunk/docs/userguide/en/src/main/docbook/included/actionparam.xml 2007-08-17 17:04:45 UTC (rev 2325)
@@ -13,7 +13,7 @@
<tbody>
<row>
<entry>component-type</entry>
- <entry>org.ajax4jsf.ajax.ActionParameter</entry>
+ <entry>org.ajax4jsf.ActionParameter</entry>
</row>
<row>
<entry>component-family</entry>
@@ -21,7 +21,7 @@
</row>
<row>
<entry>component-class</entry>
- <entry>org.ajax4jsf.ajax.html.HtmlActionParameter</entry>
+ <entry>org.ajax4jsf.component.html.HtmlActionParameter</entry>
</row>
<row>
<entry>renderer-type</entry>
@@ -44,7 +44,7 @@
<para>
<emphasis role="bold">Example:</emphasis>
</para>
- <programlisting role="JAVA"><![CDATA[import org.ajax4jsf.ajax.html.HtmlActionParameter;
+ <programlisting role="JAVA"><![CDATA[import org.ajax4jsf.component.html.HtmlActionParameter;
...
HtmlActionParameter myActionParameter = new HtmlActionParameter();
...
Modified: trunk/docs/userguide/en/src/main/docbook/included/calendar.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/calendar.xml 2007-08-17 16:01:48 UTC (rev 2324)
+++ trunk/docs/userguide/en/src/main/docbook/included/calendar.xml 2007-08-17 17:04:45 UTC (rev 2325)
@@ -72,9 +72,11 @@
<para>
<emphasis role="bold">Example:</emphasis>
</para>
- <programlisting role="java">...
- org.richfaces.component.html.HtmlCalendar myCalendar = new org.richfaces.component.html.HtmlCalendar ();
-...</programlisting>
+ <programlisting role="java"><![CDATA[import org.richfaces.component.html.HtmlCalendar;
+...
+HtmlCalendar myCalendar = new HtmlCalendar();
+...
+]]></programlisting>
</section>
<section>
Modified: trunk/docs/userguide/en/src/main/docbook/included/commandButton.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/commandButton.xml 2007-08-17 16:01:48 UTC (rev 2324)
+++ trunk/docs/userguide/en/src/main/docbook/included/commandButton.xml 2007-08-17 17:04:45 UTC (rev 2325)
@@ -12,19 +12,19 @@
<tbody>
<row>
<entry>component-type</entry>
- <entry>org.ajax4jsf.ajax.CommandButton</entry>
+ <entry>org.ajax4jsf.CommandButton</entry>
</row>
<row>
<entry>component-family</entry>
- <entry>javax.faces.Command </entry>
+ <entry>javax.faces.Command</entry>
</row>
<row>
<entry>component-class</entry>
- <entry>org.ajax4jsf.ajax.html.HtmlCommandButton</entry>
+ <entry>org.ajax4jsf.component.html.HtmlAjaxCommandButton</entry>
</row>
<row>
<entry>renderer-type</entry>
- <entry>org.ajax4jsf.components.AjaxCommandButtonRenderer </entry>
+ <entry>org.ajax4jsf.components.AjaxCommandButtonRenderer</entry>
</row>
</tbody>
</tgroup>
@@ -41,7 +41,7 @@
<para>
<emphasis role="bold">Example:</emphasis>
</para>
- <programlisting role="JAVA"><![CDATA[import org.ajax4jsf.ajax.html.HtmlAjaxCommandButton;
+ <programlisting role="JAVA"><![CDATA[import org.ajax4jsf.component.html.HtmlAjaxCommandButton;
...
HtmlAjaxCommandButton myButton = new HtmlAjaxCommandButton();
...
Modified: trunk/docs/userguide/en/src/main/docbook/included/commandLink.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/commandLink.xml 2007-08-17 16:01:48 UTC (rev 2324)
+++ trunk/docs/userguide/en/src/main/docbook/included/commandLink.xml 2007-08-17 17:04:45 UTC (rev 2325)
@@ -13,7 +13,7 @@
<tbody>
<row>
<entry>component-type</entry>
- <entry>org.ajax4jsf.ajax.CommandLink</entry>
+ <entry>org.ajax4jsf.CommandLink</entry>
</row>
<row>
<entry>component-family</entry>
@@ -21,7 +21,7 @@
</row>
<row>
<entry>component-class</entry>
- <entry>org.ajax4jsf.ajax.html.HtmlCommandLink</entry>
+ <entry>org.ajax4jsf.component.html.HtmlAjaxCommandLink</entry>
</row>
<row>
<entry>renderer-type</entry>
@@ -45,7 +45,7 @@
<para>
<emphasis role="bold">Example:</emphasis>
</para>
- <programlisting role="JAVA"><![CDATA[import org.ajax4jsf.ajax.html.HtmlAjaxCommandLink;
+ <programlisting role="JAVA"><![CDATA[import org.ajax4jsf.component.html.HtmlAjaxCommandLink;
...
HtmlAjaxCommandLink myLink = new HtmlAjaxCommandLink();
...
Modified: trunk/docs/userguide/en/src/main/docbook/included/dropDownMenu.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/dropDownMenu.xml 2007-08-17 16:01:48 UTC (rev 2324)
+++ trunk/docs/userguide/en/src/main/docbook/included/dropDownMenu.xml 2007-08-17 17:04:45 UTC (rev 2325)
@@ -76,9 +76,11 @@
<para>
<emphasis role="bold">Example:</emphasis>
</para>
- <programlisting role="java">...
- org.richfaces.component.html.HtmlDropDownMenu myMenu = new org.richfaces.component.html.HtmlDropDownMenu();
-...</programlisting>
+ <programlisting role="java"><![CDATA[import org.richfaces.component.html.HtmlDropDownMenu;
+...
+HtmlDropDownMenu myDropDownMenu = new HtmlDropDownMenu();
+...
+]]></programlisting>
</section>
<section>
Modified: trunk/docs/userguide/en/src/main/docbook/included/form.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/form.xml 2007-08-17 16:01:48 UTC (rev 2324)
+++ trunk/docs/userguide/en/src/main/docbook/included/form.xml 2007-08-17 17:04:45 UTC (rev 2325)
@@ -13,7 +13,7 @@
<tbody>
<row>
<entry>component-type</entry>
- <entry>org.ajax4jsf.ajax.Form</entry>
+ <entry>org.ajax4jsf.Form</entry>
</row>
<row>
<entry>component-family</entry>
@@ -21,7 +21,7 @@
</row>
<row>
<entry>component-class</entry>
- <entry>org.ajax4jsf.ajax.html.AjaxForm</entry>
+ <entry>org.ajax4jsf.component.html.AjaxForm</entry>
</row>
<row>
<entry>renderer-type</entry>
@@ -45,7 +45,7 @@
<para>
<emphasis role="bold">Example:</emphasis>
</para>
- <programlisting role="JAVA"><![CDATA[import org.ajax4jsf.ajax.html.AjaxForm;
+ <programlisting role="JAVA"><![CDATA[import org.ajax4jsf.component.html.AjaxForm;
...
AjaxForm myForm = new AjaxForm();
...
Modified: trunk/docs/userguide/en/src/main/docbook/included/include.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/include.xml 2007-08-17 16:01:48 UTC (rev 2324)
+++ trunk/docs/userguide/en/src/main/docbook/included/include.xml 2007-08-17 17:04:45 UTC (rev 2325)
@@ -13,19 +13,19 @@
<tbody>
<row>
<entry>component-type</entry>
- <entry>org.ajax4jsf.ajax.Include</entry>
+ <entry>org.ajax4jsf.Include</entry>
</row>
<row>
<entry>component-family</entry>
- <entry>org.ajax4jsf.ajax.Output</entry>
+ <entry>javax.faces.Output</entry>
</row>
<row>
<entry>component-class</entry>
- <entry>org.ajax4jsf.ajax.html.Include</entry>
+ <entry>org.ajax4jsf.component.html.Include</entry>
</row>
<row>
<entry>renderer-type</entry>
- <entry>org.ajax4jsf.AjaxIncludeRenderer</entry>
+ <entry>org.ajax4jsf.components.AjaxIncludeRenderer</entry>
</row>
</tbody>
</tgroup>
@@ -69,9 +69,10 @@
</section>
<section>
<title>Dynamical creation of a component from Java code</title>
- <programlisting role="XML"><![CDATA[<a4j:outputPanel ajaxRendered="true">
- <a4j:include viewId="/pages/include/first.xhtml"/>
-</a4j:outputPanel>
+ <programlisting role="JAVA"><![CDATA[<import org.ajax4jsf.component.html.Include;
+...
+Include myInclude = new Include();
+...
]]></programlisting>
<para>If <emphasis role="bold">
<property><a4j:include></property>
Modified: trunk/docs/userguide/en/src/main/docbook/included/insert.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/insert.xml 2007-08-17 16:01:48 UTC (rev 2324)
+++ trunk/docs/userguide/en/src/main/docbook/included/insert.xml 2007-08-17 17:04:45 UTC (rev 2325)
@@ -72,9 +72,11 @@
<para>
<emphasis role="bold">Example:</emphasis>
</para>
- <programlisting role="java">...
- org.richfaces.ui.component.html.HtmlInsert myInsert = new org.richfaces.ui.component.html.HtmlInsert ();
-...</programlisting>
+ <programlisting role="java"><![CDATA[import org.richfaces.ui.component.html.HtmlInsert;
+...
+HtmlInsert myInsert = new HtmlInsert();
+...
+]]></programlisting>
</section>
<section>
Modified: trunk/docs/userguide/en/src/main/docbook/included/jsFunction.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/jsFunction.xml 2007-08-17 16:01:48 UTC (rev 2324)
+++ trunk/docs/userguide/en/src/main/docbook/included/jsFunction.xml 2007-08-17 17:04:45 UTC (rev 2325)
@@ -13,7 +13,7 @@
<tbody>
<row>
<entry>component-type</entry>
- <entry>org.ajax4jsf.ajax.Function</entry>
+ <entry>org.ajax4jsf.Function</entry>
</row>
<row>
<entry>component-family</entry>
@@ -21,7 +21,7 @@
</row>
<row>
<entry>component-class</entry>
- <entry>org.ajax4jsf.ajax.html.HtmlAjaxFunction</entry>
+ <entry>org.ajax4jsf.component.html.HtmlAjaxFunction</entry>
</row>
<row>
<entry>renderer-type</entry>
@@ -59,7 +59,7 @@
<para>
<emphasis role="bold">Example:</emphasis>
</para>
- <programlisting role="JAVA"><![CDATA[import org.ajax4jsf.ajax.html.HtmlAjaxFunction;
+ <programlisting role="JAVA"><![CDATA[import org.ajax4jsf.component.html.HtmlAjaxFunction;
...
HtmlAjaxFunction myFunction = new HtmlAjaxFunction();
...
Modified: trunk/docs/userguide/en/src/main/docbook/included/loadScript.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/loadScript.xml 2007-08-17 16:01:48 UTC (rev 2324)
+++ trunk/docs/userguide/en/src/main/docbook/included/loadScript.xml 2007-08-17 17:04:45 UTC (rev 2325)
@@ -20,7 +20,7 @@
</row>
<row>
<entry>component-class</entry>
- <entry>org.ajax4jsf.ajax.html.HtmlLoadScript</entry>
+ <entry>org.ajax4jsf.component.html.HtmlLoadScript</entry>
</row>
<row>
<entry>renderer-type</entry>
@@ -46,7 +46,7 @@
<para>
<emphasis role="bold">Example:</emphasis>
</para>
- <programlisting role="JAVA"><![CDATA[import org.ajax4jsf.ajax.html.HtmlLoadScript;
+ <programlisting role="JAVA"><![CDATA[import org.ajax4jsf.component.html.HtmlLoadScript;
...
HtmlLoadScript myScript = new HtmlLoadScript();
...
Modified: trunk/docs/userguide/en/src/main/docbook/included/loadStyle.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/loadStyle.xml 2007-08-17 16:01:48 UTC (rev 2324)
+++ trunk/docs/userguide/en/src/main/docbook/included/loadStyle.xml 2007-08-17 17:04:45 UTC (rev 2325)
@@ -20,7 +20,7 @@
</row>
<row>
<entry>component-class</entry>
- <entry>org.ajax4jsf.ajax.html.HtmlLoadStyle</entry>
+ <entry>org.ajax4jsf.component.html.HtmlLoadStyle</entry>
</row>
<row>
<entry>renderer-type</entry>
@@ -46,7 +46,7 @@
<para>
<emphasis role="bold">Example:</emphasis>
</para>
- <programlisting role="JAVA"><![CDATA[import org.ajax4jsf.ajax.html.HtmlLoadStyle;
+ <programlisting role="JAVA"><![CDATA[import org.ajax4jsf.component.html.HtmlLoadStyle;
...
HtmlLoadScript myStyle = new HtmlLoadStyle();
...
Modified: trunk/docs/userguide/en/src/main/docbook/included/log.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/log.xml 2007-08-17 16:01:48 UTC (rev 2324)
+++ trunk/docs/userguide/en/src/main/docbook/included/log.xml 2007-08-17 17:04:45 UTC (rev 2325)
@@ -13,15 +13,15 @@
<tbody>
<row>
<entry>component-type</entry>
- <entry>org.ajax4jsf.ajax.Log</entry>
+ <entry>org.ajax4jsf.Log</entry>
</row>
<row>
<entry>component-family</entry>
- <entry>org.ajax4jsf.ajax.Log</entry>
+ <entry>org.ajax4jsf.Log</entry>
</row>
<row>
<entry>component-class</entry>
- <entry>org.ajax4jsf.ajax.html.AjaxLog</entry>
+ <entry>org.ajax4jsf.component.html.AjaxLog</entry>
</row>
<row>
<entry>renderer-type</entry>
@@ -42,7 +42,7 @@
<para>
<emphasis role="bold">Example:</emphasis>
</para>
- <programlisting role="JAVA"><![CDATA[import org.ajax4jsf.ajax.html.AjaxLog;
+ <programlisting role="JAVA"><![CDATA[import org.ajax4jsf.component.html.AjaxLog;
...
AjaxLog myLog = new AjaxLog();
...]]></programlisting>
Modified: trunk/docs/userguide/en/src/main/docbook/included/mediaOutput.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/mediaOutput.xml 2007-08-17 16:01:48 UTC (rev 2324)
+++ trunk/docs/userguide/en/src/main/docbook/included/mediaOutput.xml 2007-08-17 17:04:45 UTC (rev 2325)
@@ -20,7 +20,7 @@
</row>
<row>
<entry>component-class</entry>
- <entry>org.ajax4jsf.ajax.html.MediaOutput</entry>
+ <entry>org.ajax4jsf.component.html.MediaOutput</entry>
</row>
<row>
<entry>renderer-type</entry>
@@ -73,7 +73,7 @@
<para>
<emphasis role="bold">Example:</emphasis>
</para>
- <programlisting role="JAVA"><![CDATA[import org.ajax4jsf.ajax.html.MediaOutput;
+ <programlisting role="JAVA"><![CDATA[import org.ajax4jsf.component.html.MediaOutput;
...
MediaOutput myMedia = new MediaOutput ();
...
Modified: trunk/docs/userguide/en/src/main/docbook/included/menuGroup.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/menuGroup.xml 2007-08-17 16:01:48 UTC (rev 2324)
+++ trunk/docs/userguide/en/src/main/docbook/included/menuGroup.xml 2007-08-17 17:04:45 UTC (rev 2325)
@@ -22,7 +22,7 @@
</row>
<row>
<entry>component-class</entry>
- <entry>oorg.richfaces.component.html.HtmlMenuGroup</entry>
+ <entry>org.richfaces.component.html.HtmlMenuGroup</entry>
</row>
<row>
<entry>component-family</entry>
@@ -65,9 +65,10 @@
<para>
<emphasis role="bold">Example:</emphasis>
</para>
- <programlisting role="java"><![CDATA[...
-org.richfaces.component.html.HtmlMenuGroup myGroup = new org.richfaces.component.html.HtmlMenuGroup ();
+ <programlisting role="java"><![CDATA[import org.richfaces.component.html.HtmlMenuGroup;
...
+HtmlMenuGroup myMenuGroup = new HtmlMenuGroup();
+...
]]></programlisting>
</section>
Modified: trunk/docs/userguide/en/src/main/docbook/included/menuItem.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/menuItem.xml 2007-08-17 16:01:48 UTC (rev 2324)
+++ trunk/docs/userguide/en/src/main/docbook/included/menuItem.xml 2007-08-17 17:04:45 UTC (rev 2325)
@@ -63,9 +63,11 @@
<para>
<emphasis role="bold">Example:</emphasis>
</para>
- <programlisting role="java"><![CDATA[...
-org.richfaces.component.html.HtmlMenuItem myItem = new org.richfaces.component.html.HtmlMenuItem ();
-...]]></programlisting>
+ <programlisting role="java"><![CDATA[import org.richfaces.component.html.HtmlMenuItem;
+...
+HtmlMenuItem myMenuItem = new HtmlMenuItem();
+...
+]]></programlisting>
</section>
<section>
Modified: trunk/docs/userguide/en/src/main/docbook/included/menuSeparator.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/menuSeparator.xml 2007-08-17 16:01:48 UTC (rev 2324)
+++ trunk/docs/userguide/en/src/main/docbook/included/menuSeparator.xml 2007-08-17 17:04:45 UTC (rev 2325)
@@ -63,9 +63,11 @@
<para>
<emphasis role="bold">Example:</emphasis>
</para>
- <programlisting role="java"><![CDATA[...
-org.richfaces.component.html.HtmlMenuSeparator mySep = new org.richfaces.component.html.HtmlMenuSeparator ();
-...]]></programlisting>
+ <programlisting role="java"><![CDATA[import org.richfaces.component.html.HtmlMenuSeparator;
+...
+HtmlMenuSeparator myMenuSeparator = new HtmlMenuSeparator();
+...
+]]></programlisting>
</section>
<section>
Modified: trunk/docs/userguide/en/src/main/docbook/included/outputPanel.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/outputPanel.xml 2007-08-17 16:01:48 UTC (rev 2324)
+++ trunk/docs/userguide/en/src/main/docbook/included/outputPanel.xml 2007-08-17 17:04:45 UTC (rev 2325)
@@ -13,7 +13,7 @@
<tbody>
<row>
<entry>component-type</entry>
- <entry>org.ajax4jsf.ajax.OutputPanel</entry>
+ <entry>org.ajax4jsf.OutputPanel</entry>
</row>
<row>
<entry>component-family</entry>
@@ -25,7 +25,7 @@
</row>
<row>
<entry>component-class</entry>
- <entry>org.ajax4jsf.ajax.html.HtmlAjaxOutputPanel</entry>
+ <entry>org.ajax4jsf.component.html.HtmlAjaxOutputPanel</entry>
</row>
<row>
<entry>renderer-type</entry>
@@ -53,7 +53,7 @@
<para>
<emphasis role="bold">Example:</emphasis>
</para>
- <programlisting role="JAVA"><![CDATA[import org.ajax4jsf.ajax.html.HtmlAjaxOutputPanel;
+ <programlisting role="JAVA"><![CDATA[import org.ajax4jsf.component.html.HtmlAjaxOutputPanel;
...
HtmlAjaxOutputPanel myPanel = new HtmlAjaxOutputPanel();
]]></programlisting>
Modified: trunk/docs/userguide/en/src/main/docbook/included/page.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/page.xml 2007-08-17 16:01:48 UTC (rev 2324)
+++ trunk/docs/userguide/en/src/main/docbook/included/page.xml 2007-08-17 17:04:45 UTC (rev 2325)
@@ -17,15 +17,15 @@
</row>
<row>
<entry>component-family</entry>
- <entry>org.ajax4jsf.components.AjaxRegion.</entry>
+ <entry>org.ajax4jsf.components.AjaxRegion</entry>
</row>
<row>
<entry>component-class</entry>
- <entry>org.ajax4jsf.components.Page</entry>
+ <entry>org.ajax4jsf.component.html.HtmlPage</entry>
</row>
<row>
<entry>renderer-type</entry>
- <entry>org.ajax4jsf.components.PageRenderer</entry>
+ <entry>org.ajax4jsf.components.AjaxPageRenderer</entry>
</row>
</tbody>
</tgroup>
@@ -65,9 +65,9 @@
<para>
<emphasis role="bold">Example:</emphasis>
</para>
- <programlisting role="JAVA"><![CDATA[import org.ajax4jsf.components.Page;
+ <programlisting role="JAVA"><![CDATA[import org.ajax4jsf.component.html.HtmlPage;
...
-Page myPage = new Page();
+HtmlPage myPage = new HtmlPage();
...
]]></programlisting>
</section>
Modified: trunk/docs/userguide/en/src/main/docbook/included/panelMenu.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/panelMenu.xml 2007-08-17 16:01:48 UTC (rev 2324)
+++ trunk/docs/userguide/en/src/main/docbook/included/panelMenu.xml 2007-08-17 17:04:45 UTC (rev 2325)
@@ -74,9 +74,11 @@
<para>
<emphasis role="bold">Example:</emphasis>
</para>
- <programlisting role="java">...
- org.richfaces.component.html.HtmlpanelMenu mypanelMenu = new org.richfaces.component.html.HtmlpanelMenu();
-...</programlisting>
+ <programlisting role="java"><![CDATA[import org.richfaces.component.html.HtmlPanelMenu;
+...
+HtmlPanelMenu myPanelMenu = new HtmlPanelMenu();
+...
+]]></programlisting>
</section>
<section>
Modified: trunk/docs/userguide/en/src/main/docbook/included/panelMenuGroup.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/panelMenuGroup.xml 2007-08-17 16:01:48 UTC (rev 2324)
+++ trunk/docs/userguide/en/src/main/docbook/included/panelMenuGroup.xml 2007-08-17 17:04:45 UTC (rev 2325)
@@ -76,9 +76,11 @@
<para>
<emphasis role="bold">Example:</emphasis>
</para>
- <programlisting role="java">...
- org.richfaces.component.html.HtmlPanelMenuGroup mypanelMenuGroup = new org.richfaces.component.html.HtmlPanelMenuGroup();
-...</programlisting>
+ <programlisting role="java"><![CDATA[import org.richfaces.component.html.HtmlPanelMenuGroup;
+...
+HtmlPanelMenuGroup myPanelMenuGroup = new HtmlPanelMenuGroup();
+...
+]]></programlisting>
</section>
<section>
Modified: trunk/docs/userguide/en/src/main/docbook/included/panelMenuItem.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/panelMenuItem.xml 2007-08-17 16:01:48 UTC (rev 2324)
+++ trunk/docs/userguide/en/src/main/docbook/included/panelMenuItem.xml 2007-08-17 17:04:45 UTC (rev 2325)
@@ -76,9 +76,11 @@
<para>
<emphasis role="bold">Example:</emphasis>
</para>
- <programlisting role="java">...
- org.richfaces.component.html.HtmlPanelMenuItem mypanelMenuItem = new org.richfaces.component.html.HtmlPanelMenuItem();
-...</programlisting>
+ <programlisting role="java"><![CDATA[import org.richfaces.component.html.HtmlPanelMenuItem;
+...
+HtmlPanelMenuItem myPanelMenuItem = new HtmlPanelMenuItem();
+...
+]]></programlisting>
</section>
<section>
Modified: trunk/docs/userguide/en/src/main/docbook/included/poll.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/poll.xml 2007-08-17 16:01:48 UTC (rev 2324)
+++ trunk/docs/userguide/en/src/main/docbook/included/poll.xml 2007-08-17 17:04:45 UTC (rev 2325)
@@ -13,7 +13,7 @@
<tbody>
<row>
<entry>component-type</entry>
- <entry>org.ajax4jsf.components.Poll</entry>
+ <entry>org.ajax4jsf.Poll</entry>
</row>
<row>
<entry>component-family</entry>
@@ -21,7 +21,7 @@
</row>
<row>
<entry>component-class</entry>
- <entry>org.ajax4jsf.components.AjaxPoll</entry>
+ <entry>org.ajax4jsf.component.html.AjaxPoll</entry>
</row>
<row>
<entry>renderer-type</entry>
@@ -52,7 +52,7 @@
<para>
<emphasis role="bold">Example:</emphasis>
</para>
- <programlisting role="JAVA"><![CDATA[import org.ajax4jsf.ajax.html.AjaxPoll;
+ <programlisting role="JAVA"><![CDATA[import org.ajax4jsf.component.html.AjaxPoll;
...
AjaxPoll myPoll = new AjaxPoll();
...
Modified: trunk/docs/userguide/en/src/main/docbook/included/push.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/push.xml 2007-08-17 16:01:48 UTC (rev 2324)
+++ trunk/docs/userguide/en/src/main/docbook/included/push.xml 2007-08-17 17:04:45 UTC (rev 2325)
@@ -13,7 +13,7 @@
<tbody>
<row>
<entry>component-type</entry>
- <entry>org.ajax4jsf.components.Push</entry>
+ <entry>org.ajax4jsf.Push</entry>
</row>
<row>
<entry>component-family</entry>
@@ -21,7 +21,7 @@
</row>
<row>
<entry>component-class</entry>
- <entry>org.ajax4jsf.components.AjaxPush</entry>
+ <entry>org.ajax4jsf.component.html.AjaxPush</entry>
</row>
<row>
<entry>renderer-type</entry>
@@ -39,8 +39,7 @@
<section>
<title>Dynamical creation of a component from Java code</title>
- <programlisting role="JAVA"><![CDATA[
-import org.ajax4jsf.ajax.html.AjaxPush;
+ <programlisting role="JAVA"><![CDATA[import org.ajax4jsf.component.html.AjaxPush;
...
AjaxPush myPush = new AjaxPush();
...]]></programlisting>
Modified: trunk/docs/userguide/en/src/main/docbook/included/region.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/region.xml 2007-08-17 16:01:48 UTC (rev 2324)
+++ trunk/docs/userguide/en/src/main/docbook/included/region.xml 2007-08-17 17:04:45 UTC (rev 2325)
@@ -13,15 +13,15 @@
<tbody>
<row>
<entry>component-type</entry>
- <entry>org.ajax4jsf.ajax.AjaxRegion</entry>
+ <entry>org.ajax4jsf.AjaxRegion</entry>
</row>
<row>
<entry>component-family</entry>
- <entry>org.ajax4jsf.components.AjaxRegion.</entry>
+ <entry>org.ajax4jsf.AjaxRegion</entry>
</row>
<row>
<entry>component-class</entry>
- <entry>org.ajax4jsf.ajax.html.HtmlAjaxRegion</entry>
+ <entry>org.ajax4jsf.component.html.HtmlAjaxRegion</entry>
</row>
<row>
<entry>renderer-type</entry>
@@ -44,7 +44,7 @@
<para>
<emphasis role="bold">Example:</emphasis>
</para>
- <programlisting role="JAVA"><![CDATA[import org.ajax4jsf.ajax.html.HtmlAjaxRegion;
+ <programlisting role="JAVA"><![CDATA[import org.ajax4jsf.component.html.HtmlAjaxRegion;
...
HtmlAjaxRegion newRegion = new HtmlAjaxRegion();
...
Modified: trunk/docs/userguide/en/src/main/docbook/included/repeat.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/repeat.xml 2007-08-17 16:01:48 UTC (rev 2324)
+++ trunk/docs/userguide/en/src/main/docbook/included/repeat.xml 2007-08-17 17:04:45 UTC (rev 2325)
@@ -13,19 +13,19 @@
<tbody>
<row>
<entry>component-type</entry>
- <entry>org.ajax4jsf.ajax.Repeat </entry>
+ <entry>org.ajax4jsf.Repeat</entry>
</row>
<row>
<entry>component-family</entry>
- <entry>javax.faces.Data </entry>
+ <entry>javax.faces.Data</entry>
</row>
<row>
<entry>component-class</entry>
- <entry>org.ajax4jsf.ajax.html.HtmlAjaxRepeat </entry>
+ <entry>org.ajax4jsf.component.html.HtmlAjaxRepeat</entry>
</row>
<row>
<entry>renderer-type</entry>
- <entry>org.ajax4jsf.components.RepeatRenderer </entry>
+ <entry>org.ajax4jsf.components.RepeatRenderer</entry>
</row>
</tbody>
</tgroup>
@@ -49,7 +49,7 @@
<para>
<emphasis role="bold">Example:</emphasis>
</para>
- <programlisting role="JAVA"><![CDATA[import org.ajax4jsf.ajax.html.HtmlAjaxRepeat;
+ <programlisting role="JAVA"><![CDATA[import org.ajax4jsf.component.html.HtmlAjaxRepeat;
...
HtmlAjaxRepeat repeater = new HtmlAjaxRepeat ();
...
Modified: trunk/docs/userguide/en/src/main/docbook/included/status.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/status.xml 2007-08-17 16:01:48 UTC (rev 2324)
+++ trunk/docs/userguide/en/src/main/docbook/included/status.xml 2007-08-17 17:04:45 UTC (rev 2325)
@@ -13,19 +13,19 @@
<tbody>
<row>
<entry>component-type</entry>
- <entry>org.ajax4jsf.ajax.Status </entry>
+ <entry>org.ajax4jsf.Status</entry>
</row>
<row>
<entry>component-family</entry>
- <entry>javax.faces.Panel </entry>
+ <entry>javax.faces.Panel</entry>
</row>
<row>
<entry>component-class</entry>
- <entry>org.ajax4jsf.ajax.html.HtmlAjaxStatus </entry>
+ <entry>org.ajax4jsf.component.html.HtmlAjaxStatus</entry>
</row>
<row>
<entry>renderer-type</entry>
- <entry>org.ajax4jsf.components.AjaxStatusRenderer </entry>
+ <entry>org.ajax4jsf.components.AjaxStatusRenderer</entry>
</row>
</tbody>
</tgroup>
@@ -64,7 +64,7 @@
<para>
<emphasis role="bold">Example:</emphasis>
</para>
- <programlisting role="JAVA"><![CDATA[import org.ajax4jsf.ajax.html.HtmlAjaxStatus;
+ <programlisting role="JAVA"><![CDATA[import org.ajax4jsf.component.html.HtmlAjaxStatus;
...
HtmlAjaxStatus myStatus = new HtmlAjaxStatus();
...]]></programlisting>
Modified: trunk/docs/userguide/en/src/main/docbook/included/support.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/support.xml 2007-08-17 16:01:48 UTC (rev 2324)
+++ trunk/docs/userguide/en/src/main/docbook/included/support.xml 2007-08-17 17:04:45 UTC (rev 2325)
@@ -13,15 +13,15 @@
<tbody>
<row>
<entry>component-type</entry>
- <entry>org.ajax4jsf.ajax.Support</entry>
+ <entry>org.ajax4jsf.Support</entry>
</row>
<row>
<entry>component-family</entry>
- <entry>org.ajax4jsf.components.AjaxSupport</entry>
+ <entry>org.ajax4jsf.AjaxSupport</entry>
</row>
<row>
<entry>component-class</entry>
- <entry>org.ajax4jsf.ajax.html.HtmlAjaxSupport</entry>
+ <entry>org.ajax4jsf.component.html.HtmlAjaxSupport</entry>
</row>
<row>
<entry>renderer-type</entry>
@@ -53,7 +53,7 @@
<para>
<emphasis role="bold">Example:</emphasis>
</para>
- <programlisting role="JAVA"><![CDATA[import org.ajax4jsf.ajax.html.HtmlAjaxSupport;
+ <programlisting role="JAVA"><![CDATA[import org.ajax4jsf.component.html.HtmlAjaxSupport;
...
HtmlAjaxSupport mySupport = new HtmlAjaxSupport();>]]></programlisting>
</section>
18 years, 8 months
JBoss Rich Faces SVN: r2324 - in trunk/ui/calendar/src/main: templates/org/richfaces and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: pyaschenko
Date: 2007-08-17 12:01:48 -0400 (Fri, 17 Aug 2007)
New Revision: 2324
Modified:
trunk/ui/calendar/src/main/resources/org/richfaces/renderkit/html/css/calendar.xcss
trunk/ui/calendar/src/main/templates/org/richfaces/htmlCalendar.jspx
Log:
RF-614
Modified: trunk/ui/calendar/src/main/resources/org/richfaces/renderkit/html/css/calendar.xcss
===================================================================
--- trunk/ui/calendar/src/main/resources/org/richfaces/renderkit/html/css/calendar.xcss 2007-08-17 15:01:51 UTC (rev 2323)
+++ trunk/ui/calendar/src/main/resources/org/richfaces/renderkit/html/css/calendar.xcss 2007-08-17 16:01:48 UTC (rev 2324)
@@ -227,5 +227,11 @@
<u:style name="font-size" skin="generalSizeFont"/>
<u:style name="font-family" skin="generalFamilyFont"/>
</u:selector>
+
+ <u:selector name=".calendar_popupicon">
+ <u:style name="cursor" value="pointer"/>
+ <u:style name="vertical-align" value="middle"/>
+ </u:selector>
+}
</f:template>
Modified: trunk/ui/calendar/src/main/templates/org/richfaces/htmlCalendar.jspx
===================================================================
--- trunk/ui/calendar/src/main/templates/org/richfaces/htmlCalendar.jspx 2007-08-17 15:01:51 UTC (rev 2323)
+++ trunk/ui/calendar/src/main/templates/org/richfaces/htmlCalendar.jspx 2007-08-17 16:01:48 UTC (rev 2324)
@@ -108,9 +108,8 @@
</jsp:scriptlet>
<f:resource name="org.richfaces.renderkit.html.iconimages.CalendarIcon" var="icon" />
- <span
- id="#{clientId}Popup"
- > <input
+ <span id="#{clientId}Popup" >
+ <input
x:passThruWithExclusions="name"
id="#{clientId}InputDate"
name="#{clientId}InputDate"
@@ -125,21 +124,19 @@
onfocus="#{component.attributes['onfocus']}"
onblur="#{component.attributes['onblur']}"
size="#{component.attributes['inputSize']}"
- style="#{component.attributes['style']}"
+ style="vertical-align: middle; #{component.attributes['style']}"
tabindex="#{component.attributes['tabindex']}"
onclick="#{onclick}">
- </input>
- <input id="#{clientId}PopupButton"
+ </input>
+ <image id="#{clientId}PopupButton"
+ class="calendar_popupicon"
+ src="#{icon}"
accesskey="#{component.attributes['accesskey']}"
- name="#{clientId}"
- onclick="$('#{clientId}').component.doExpand();return false;"
- style="#{component.attributes['style']}"
- tabindex="#{component.attributes['tabindex']}"
- type="image"
- disabled="#{component.attributes['disabled']}"
- src="#{icon}">
-
- </input>
+ name="#{clientId}"
+ onclick="$('#{clientId}').component.doExpand();return false;"
+ style="vertical-align: middle; #{component.attributes['style']}"
+ tabindex="#{component.attributes['tabindex']}">
+ </image>
</span>
<jsp:scriptlet>
<![CDATA[
18 years, 8 months
JBoss Rich Faces SVN: r2323 - trunk/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: vkorluzhenko
Date: 2007-08-17 11:01:51 -0400 (Fri, 17 Aug 2007)
New Revision: 2323
Modified:
trunk/docs/userguide/en/src/main/docbook/included/calendar.xml
Log:
http://jira.jboss.com/jira/browse/RF-446
Modified: trunk/docs/userguide/en/src/main/docbook/included/calendar.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/calendar.xml 2007-08-17 14:41:49 UTC (rev 2322)
+++ trunk/docs/userguide/en/src/main/docbook/included/calendar.xml 2007-08-17 15:01:51 UTC (rev 2323)
@@ -81,9 +81,7 @@
<title>Details of Usage</title>
<para>The <emphasis>
<property>"popup"</property>
- </emphasis> attribute defines calendar representation mode on a page. Default value for the <emphasis>
- <property>"popup"</property>
- </emphasis> attribute is "false". If it's "true"
+ </emphasis> attribute defines calendar representation mode on a page. If it's "true"
the calendar is represented on a page as an input field and a button. Clicking on the button
calls the calendar popup as it's shown on the picture below. </para>
<figure>
@@ -237,11 +235,8 @@
</section>
- <!--section>
+ <section>
<title>JavaScript API</title>
- <para>In Java Script code for expanding/collapsing group element creation it's
- necessary to use doExpand()/doCollapse() function.</para>
-
<table>
<title>JavaScript API</title>
@@ -255,16 +250,119 @@
</thead>
<tbody>
+
<row>
- <entry>doExpand()</entry>
+ <entry>selectDate(date)</entry>
+
+ <entry>Select the date specified. If the date isn't in current month - performs request to select</entry>
+ </row>
+
+ <row>
+ <entry>isDateEnabled(date)</entry>
+
+ <entry>Check if given date is selectable</entry>
+ </row>
+
+ <row>
+ <entry>enableDate(date)</entry>
+
+ <entry>Enables date cell control on the calendar</entry>
+ </row>
+
+ <row>
+ <entry>disableDate(date)</entry>
+
+ <entry>Disables date cell control on the calendar</entry>
+ </row>
+
+ <row>
+ <entry>enableDates(date[])</entry>
+
+ <entry>Enables dates cell controls set on the calendar</entry>
+ </row>
+
+ <row>
+ <entry>disableDates(date[])</entry>
+
+ <entry>Disables dates cell controls set on the calendar</entry>
+ </row>
+
+ <row>
+ <entry>nextMonth()</entry>
+
+ <entry>Navigate to next month</entry>
+ </row>
+
+ <row>
+ <entry>nextYear()</entry>
+
+ <entry>Navigate to next year</entry>
+ </row>
+
+ <row>
+ <entry>prevMonth()</entry>
+
+ <entry>Navigate to previous month </entry>
+ </row>
+
+ <row>
+ <entry>prevYear()</entry>
+
+ <entry>Navigate to previous year</entry>
+ </row>
+
+ <row>
+ <entry>today()</entry>
+
+ <entry>Select today date</entry>
+ </row>
+
+ <row>
+ <entry>getSelectedDate()</entry>
+
+ <entry>Return currently selected date</entry>
+ </row>
+
+ <row>
+ <entry>Object getData()</entry>
+
+ <entry>Return additional data for the date</entry>
+ </row>
+
+ <row>
+ <entry>enable()</entry>
+
+ <entry>enables calendar</entry>
+ </row>
+
+ <row>
+ <entry>disable()</entry>
+
+ <entry>disables calendar</entry>
+ </row>
+
+ <row>
+ <entry>getCurrentMonth()</entry>
+
+ <entry>Returns number of the month currently being viewed</entry>
+ </row>
+
+ <row>
+ <entry>getCurrentYear()</entry>
+
+ <entry>Returns number of the year currently being viewed</entry>
+ </row>
+
+ <row>
+ <entry>doCollapse()</entry>
- <entry>Expand group element</entry>
+ <entry>Collapse calendar element</entry>
</row>
<row>
- <entry>doCollapse()</entry>
+ <entry>doExpand()</entry>
- <entry>Collapse group element</entry>
+ <entry>Expand calendar element</entry>
</row>
</tbody>
</tgroup>
@@ -273,7 +371,7 @@
</section>
- <section>
+ <!--section>
<title>Look-and-Feel Customization</title>
<para>As this component is just a wrapper for its children its provide the only
18 years, 8 months
JBoss Rich Faces SVN: r2322 - in trunk/test-applications/facelets/src/main/webapp: pages and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: ayanul
Date: 2007-08-17 10:41:49 -0400 (Fri, 17 Aug 2007)
New Revision: 2322
Modified:
trunk/test-applications/facelets/src/main/webapp/Effect/Effect.xhtml
trunk/test-applications/facelets/src/main/webapp/pages/main.xhtml
Log:
has added "<rich:effect />" on richface components
Modified: trunk/test-applications/facelets/src/main/webapp/Effect/Effect.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/Effect/Effect.xhtml 2007-08-17 14:41:41 UTC (rev 2321)
+++ trunk/test-applications/facelets/src/main/webapp/Effect/Effect.xhtml 2007-08-17 14:41:49 UTC (rev 2322)
@@ -7,201 +7,289 @@
<f:view contentType="text/html">
- <body onload="hideFrm1(),hideFrm2(),hideFrm3(),hideFrm4()">
+ <body onload="hideFrm1(),hideFrm2(),hideFrm3(),hideFrm4(),hideFrm5()">
<h:messages />
- <h:form id="indexID">
- <h:outputText value="Menu:" />
- <h:panelGrid columns="2">
- <h:outputText value="1." />
- <f:verbatim>
- <span onclick="showFrm1(),hideIndexID()"><font color="blue">JSF Components</font></span>
- </f:verbatim>
+ <h:form id="indexID">
+ <h:outputText value="Menu:" />
+ <h:panelGrid columns="2">
+ <h:outputText value="1." />
+ <f:verbatim>
+ <span onclick="showFrm1(),hideIndexID()"><font color="blue">JSF
+ Components</font></span>
+ </f:verbatim>
- <h:outputText value="2." />
- <f:verbatim>
- <span onclick="showFrm2(),hideIndexID()"><font color="blue">JSF Component with Event and non-jsf target</font></span>
- </f:verbatim>
+ <h:outputText value="2." />
+ <f:verbatim>
+ <span onclick="showFrm2(),hideIndexID()"><font color="blue">JSF
+ Component with Event and non-jsf target</font></span>
+ </f:verbatim>
- <h:outputText value="3." />
- <f:verbatim>
- <span onclick="showFrm3(),hideIndexID()"><font color="blue">JSF Component with Event and jsf target</font></span>
- </f:verbatim>
+ <h:outputText value="3." />
+ <f:verbatim>
+ <span onclick="showFrm3(),hideIndexID()"><font color="blue">JSF
+ Component with Event and jsf target</font></span>
+ </f:verbatim>
- <h:outputText value="4." />
- <f:verbatim>
- <span onclick="showFrm4(),hideIndexID()"><font color="blue">JSF Component with Event.</font></span>
- </f:verbatim>
- </h:panelGrid>
- </h:form>
+ <h:outputText value="4." />
+ <f:verbatim>
+ <span onclick="showFrm4(),hideIndexID()"><font color="blue">JSF
+ Component with Event.</font></span>
+ </f:verbatim>
- <h:form id="frm1">
- <h:outputText value="JSF Components:" />
+ <h:outputText value="5." />
+ <f:verbatim>
+ <span onclick="showFrm5(),hideIndexID()"><font color="blue">RichFace
+ Components.</font></span>
+ </f:verbatim>
+ </h:panelGrid>
+ </h:form>
- <h:panelGrid id="panGrID" columns="2">
- <h:outputText value="Time:" />
- <h:inputText value="#{effect.time}" />
+ <h:form id="frm1">
+ <h:outputText value="JSF Components:" />
- <f:verbatim>
- <span onclick="hidePanel1(), hedeImage1()"><font
- color="blue">Hide</font> </span>
- </f:verbatim>
- <h:graphicImage value="/pics/fatal.gif"
- onclick="hidePanel1(), hedeImage1()" />
+ <h:panelGrid id="panGrID" columns="2">
+ <h:outputText value="Time:" />
+ <h:inputText value="#{effect.time}" />
- <f:verbatim>
- <span onclick="showPanel1(), showImage1()"><font
- color="blue">Show</font> </span>
- </f:verbatim>
- <h:graphicImage value="/pics/warn.gif"
- onclick="showPanel1(), showImage1()" />
+ <f:verbatim>
+ <span onclick="hidePanel1(), hedeImage1()"><font color="blue">Hide Panel</font>
+ </span>
+ </f:verbatim>
+ <h:graphicImage value="/pics/fatal.gif"
+ onclick="hidePanel1(), hedeImage1()" />
+ <f:verbatim>
+ <span onclick="showPanel1(), showImage1()"><font color="blue">Show</font>
+ </span>
+ </f:verbatim>
+ <h:graphicImage value="/pics/warn.gif"
+ onclick="showPanel1(), showImage1()" />
- <h:outputText value="Event (onclick):" />
- <f:verbatim></f:verbatim>
+ <h:outputText value="Event (onclick):" />
- <h:outputText value="No" />
- <h:outputText value="Yes" />
+ <f:verbatim></f:verbatim>
- <h:panelGroup id="form_1a_ID">
- <h:panelGrid id="panel_1_ID" border="1"
- style="background-color:#CCC">
- <f:facet name="header">
- <h:outputText value="Panel Header" />
- </f:facet>
+ <h:outputText value="No" />
+ <h:outputText value="Yes" />
- <h:outputText value="Panel Content" />
- </h:panelGrid>
- </h:panelGroup>
+ <h:panelGroup id="form_1a_ID">
+ <h:panelGrid id="panel_1_ID" border="1"
+ style="background-color:#CCC">
+ <f:facet name="header">
+ <h:outputText value="Panel Header" />
+ </f:facet>
- <h:graphicImage id="asusID" value="/pics/asus.jpg" height="100px"
- width="125px" onclick="hideImage1()" />
+ <h:outputText value="Panel Content" />
+ </h:panelGrid>
+ </h:panelGroup>
- <h:panelGroup id="form_1b_ID">
- <h:inputText value="onmouse and onclick">
- <rich:effect event="onclick" type="Opacity"
- params="duration:0.5,from:0.4,to:1.0" />
- <rich:effect event="onmouseout" type="Opacity"
- params="duration:0.5,from:1.0,to:0.4" />
- </h:inputText>
- </h:panelGroup>
- </h:panelGrid>
+ <h:graphicImage id="asusID" value="/pics/asus.jpg" height="100px"
+ width="125px" onclick="hideImage1()" />
- <rich:effect for="panel_1_ID" name="hidePanel1" type="Fade"
- params="duration:#{effect.time}" />
- <rich:effect for="panel_1_ID" name="showPanel1" type="Appear" />
+ <h:panelGroup id="form_1b_ID">
+ <h:inputText value="onmouse and onclick">
+ <rich:effect event="onclick" type="Opacity"
+ params="duration:0.5,from:0.4,to:1.0" />
+ <rich:effect event="onmouseout" type="Opacity"
+ params="duration:0.5,from:1.0,to:0.4" />
+ </h:inputText>
+ </h:panelGroup>
+ </h:panelGrid>
- <rich:effect for="asusID" name="hideImage1" type="Fade"
- params="duration:#{effect.time}" />
- <rich:effect for="asusID" name="showImage1" type="Appear" />
-
- <f:verbatim>
- <br />
- <span onclick="hideFrm1(),showIndexID()"><font color="blue">Close</font></span>
- </f:verbatim>
- </h:form>
+ <rich:effect for="panel_1_ID" name="hidePanel1" type="Fade"
+ params="duration:#{effect.time}" />
+ <rich:effect for="panel_1_ID" name="showPanel1" type="Appear" />
- <h:form id="frm2">
- <h:outputText
- value="JSF Component with Event and non-jsf target (onclick, onmouseout)" />
+ <rich:effect for="asusID" name="hideImage1" type="Fade"
+ params="duration:#{effect.time}" />
+ <rich:effect for="asusID" name="showImage1" type="Appear" />
- <h:panelGrid columns="2">
- <h:graphicImage id="imageID" value="/pics/podb109_61.jpg"
- width="100" height="50">
- <rich:effect event="onclick" targetId="divID" type="Opacity"
- params="duration:0.5,from:0.4,to:1.0" />
- <rich:effect event="onmouseout" type="Opacity"
- params="targetId:'divID',duration:0.5,from:1.0,to:0.4" />
- </h:graphicImage>
+ <f:verbatim>
+ <br />
+ <span onclick="hideFrm1(),showIndexID()"><font color="blue">Close</font></span>
+ </f:verbatim>
+ </h:form>
- <f:verbatim>
- <div id="divID"
- style="width: 100px; height: 50px; background-color: red"><rich:effect
- event="onclick" targetId="imageID" type="Opacity"
- params="duration:0.5,from:0.4,to:1.0" /> <rich:effect
- event="onmouseout" type="Opacity"
- params="targetId:'imageID',duration:0.5,from:1.0,to:0.4" /></div>
- </f:verbatim>
- </h:panelGrid>
+ <h:form id="frm2">
+ <h:outputText
+ value="JSF Component with Event and non-jsf target (onclick, onmouseout)" />
+ <h:panelGrid columns="2">
+ <h:graphicImage id="imageID" value="/pics/podb109_61.jpg" width="100"
+ height="50">
+ <rich:effect event="onclick" targetId="divID" type="Opacity"
+ params="duration:0.5,from:0.4,to:1.0" />
+ <rich:effect event="onmouseout" type="Opacity"
+ params="targetId:'divID',duration:0.5,from:1.0,to:0.4" />
+ </h:graphicImage>
+
<f:verbatim>
- <br />
- <span onclick="hideFrm2(),showIndexID()"><font color="blue">Close</font></span>
+ <div id="divID"
+ style="width: 100px; height: 50px; background-color: red"><rich:effect
+ event="onclick" targetId="imageID" type="Opacity"
+ params="duration:0.5,from:0.4,to:1.0" /> <rich:effect
+ event="onmouseout" type="Opacity"
+ params="targetId:'imageID',duration:0.5,from:1.0,to:0.4" /></div>
</f:verbatim>
- </h:form>
+ </h:panelGrid>
- <h:form id="frm3">
- <h:outputText
- value="JSF Component with Event and jsf target (onclick, onmouseout)" />
+ <f:verbatim>
+ <br />
+ <span onclick="hideFrm2(),showIndexID()"><font color="blue">Close</font></span>
+ </f:verbatim>
+ </h:form>
- <h:panelGrid id="gridID" border="1" style="background-color:green">
- <h:outputText value="Panel Content" />
- <rich:effect event="onclick" targetId="imgID" type="Opacity"
- params="duration:0.5,from:0.4,to:1.0" />
- <rich:effect event="onmouseout" targetId="imgID" type="Opacity"
- params="duration:0.5,from:1.0,to:0.4" />
- </h:panelGrid>
+ <h:form id="frm3">
+ <h:outputText
+ value="JSF Component with Event and jsf target (onclick, onmouseout)" />
- <h:graphicImage id="imgID" value="/pics/podb109_61.jpg" width="93"
- height="30px">
- <rich:effect event="onmouseout" targetId="gridID" type="Opacity"
- params="duration:0.5,from:0.4,to:1.0" />
- <rich:effect event="onclick" targetId="gridID" type="Opacity"
- params="duration:0.5,from:1.0,to:0.4" />
- </h:graphicImage>
+ <h:panelGrid id="gridID" border="1" style="background-color:green">
+ <h:outputText value="Panel Content" />
+ <rich:effect event="onclick" targetId="imgID" type="Opacity"
+ params="duration:0.5,from:0.4,to:1.0" />
+ <rich:effect event="onmouseout" targetId="imgID" type="Opacity"
+ params="duration:0.5,from:1.0,to:0.4" />
+ </h:panelGrid>
+ <h:graphicImage id="imgID" value="/pics/podb109_61.jpg" width="93"
+ height="30px">
+ <rich:effect event="onmouseout" targetId="gridID" type="Opacity"
+ params="duration:0.5,from:0.4,to:1.0" />
+ <rich:effect event="onclick" targetId="gridID" type="Opacity"
+ params="duration:0.5,from:1.0,to:0.4" />
+ </h:graphicImage>
+
+ <f:verbatim>
+ <br />
+ <span onclick="hideFrm3(),showIndexID()"><font color="blue">Close</font></span>
+ </f:verbatim>
+ </h:form>
+
+ <h:form id="frm4">
+ <h:graphicImage id="img_1_ID" value="/pics/asus.jpg" width="200px"
+ height="150px" />
+ <f:verbatim>
+ <br />
+ </f:verbatim>
+ <h:graphicImage id="img_2_ID" value="/pics/benq.jpg" width="200px"
+ height="150px" />
+ <f:verbatim>
+ <br />
+ </f:verbatim>
+ <h:graphicImage id="img_3_ID" value="/pics/toshiba.jpg" width="200px"
+ height="150px" />
+
+ <rich:effect event="onclick" for="img_1_ID" targetId="img_2_ID"
+ type="BlindDown" params="duration:0.8" />
+ <rich:effect event="onclick" for="img_2_ID" targetId="img_1_ID"
+ type="BlindUp" params="duration:0.8" />
+ <rich:effect event="onclick" for="img_3_ID" targetId="img_1_ID"
+ type="Appear" params="duration:0.8" />
+
+ <f:verbatim>
+ <br />
+ <span onclick="hideFrm4(),showIndexID()"><font color="blue">Close</font></span>
+ </f:verbatim>
+ </h:form>
+
+ <h:form id="frm5">
+ <h:panelGrid id="panGrID" columns="2">
<f:verbatim>
- <br />
- <span onclick="hideFrm3(),showIndexID()"><font color="blue">Close</font></span>
+ <span onclick="hideRichPanel()"><font color="blue">Hide
+ Panel</font> </span>
</f:verbatim>
- </h:form>
+ <h:graphicImage value="/pics/fatal.gif" onclick="hideRichPanel()" />
- <h:form id="frm4">
- <h:graphicImage id="img_1_ID" value="/pics/asus.jpg" width="200px"
- height="150px" />
<f:verbatim>
- <br />
+ <span onclick="showRichPanel()"><font color="blue">Show
+ Panel</font> </span>
</f:verbatim>
- <h:graphicImage id="img_2_ID" value="/pics/benq.jpg" width="200px"
- height="150px" />
+ <h:graphicImage value="/pics/warn.gif" onclick="showRichPanel()" />
+
<f:verbatim>
- <br />
+ <span onclick="hideRichTabPanel()"><font color="blue">Hide Tab
+ Panel</font> </span>
</f:verbatim>
- <h:graphicImage id="img_3_ID" value="/pics/toshiba.jpg" width="200px"
- height="150px" />
+ <h:graphicImage value="/pics/fatal.gif" onclick="hideRichTabPanel()" />
- <rich:effect event="onclick" for="img_1_ID" targetId="img_2_ID"
- type="BlindDown" params="duration:0.8" />
- <rich:effect event="onclick" for="img_2_ID" targetId="img_1_ID"
- type="BlindUp" params="duration:0.8" />
- <rich:effect event="onclick" for="img_3_ID" targetId="img_1_ID"
- type="Appear" params="duration:0.8" />
-
<f:verbatim>
- <br />
- <span onclick="hideFrm4(),showIndexID()"><font color="blue">Close</font></span>
+ <span onclick="showRichTabPanel()"><font color="blue">Show Tab
+ Panel</font> </span>
</f:verbatim>
- </h:form>
+ <h:graphicImage value="/pics/warn.gif" onclick="showRichTabPanel()" />
+ </h:panelGrid>
+ <rich:panel id="richPanelID">
+ <f:facet name="header">
+ <h:outputText value="Header of the Panel" />
+ </f:facet>
+ <f:verbatim>
+ This is a panel. This is a panel. This is a panel. This is a panel. <br />
+ This is a panel. This is a panel. This is a panel. This is a panel.
+ </f:verbatim>
+ <rich:effect event="onclick" type="Opacity"
+ params="duration:0.6,from:0.3,to:1.0" />
+ <rich:effect event="onmouseout" type="Opacity"
+ params="duration:0.6,from:1.0,to:0.3" />
+ </rich:panel>
- <rich:effect for="indexID" name="hideIndexID" type="BlindUp" />
- <rich:effect for="indexID" name="showIndexID" type="BlindDown" />
+ <rich:tabPanel id="tabPanelID"
+ headerAlignment="Header of the tabPanel" height="200px"
+ switchType="ajax" rendered="true" title="Title">
- <rich:effect for="frm1" name="hideFrm1" type="Fade" />
- <rich:effect for="frm1" name="showFrm1" type="Appear" />
+ <rich:tab id="tab1" label="label 1">
+ <h:outputText value="This is tab panel 1" styleClass="text1"></h:outputText>
+ </rich:tab>
- <rich:effect for="frm2" name="hideFrm2" type="Fade" />
- <rich:effect for="frm2" name="showFrm2" type="Appear" />
+ <rich:tab id="tab2" label="label 2">
+ <h:outputText value="This is tab panel 2" styleClass="text1"></h:outputText>
+ </rich:tab>
- <rich:effect for="frm3" name="hideFrm3" type="Fade" />
- <rich:effect for="frm3" name="showFrm3" type="Appear" />
+ <rich:tab id="tab3" label="label 3">
+ <h:outputText value="This is tab panel 3" styleClass="text1"></h:outputText>
+ </rich:tab>
- <rich:effect for="frm4" name="hideFrm4" type="Fade" />
- <rich:effect for="frm4" name="showFrm4" type="Appear" />
+ <rich:effect event="onclick" type="Opacity"
+ params="duration:0.5,from:0.4,to:1.0" />
+ <rich:effect event="onmouseout" type="Opacity"
+ params="duration:0.5,from:1.0,to:0.4" />
+ </rich:tabPanel>
- <rich:effect for="backFrmID" name="hideBackFrm" type="Fade" />
- <rich:effect for="backFrmID" name="showBackFrm" type="Appear" />
+ <rich:effect for="richPanelID" name="hideRichPanel" type="Fade" />
+ <rich:effect for="richPanelID" name="showRichPanel" type="Appear" />
+ <rich:effect for="tabPanelID" name="hideRichTabPanel" type="Fade" />
+ <rich:effect for="tabPanelID" name="showRichTabPanel" type="Appear" />
+
+ <f:verbatim>
+ <br />
+ <span onclick="hideFrm5(),showIndexID()"><font color="blue">Close</font></span>
+ </f:verbatim>
+ </h:form>
+
+
+ <rich:effect for="indexID" name="hideIndexID" type="BlindUp" />
+ <rich:effect for="indexID" name="showIndexID" type="BlindDown" />
+
+ <rich:effect for="frm1" name="hideFrm1" type="Fade" />
+ <rich:effect for="frm1" name="showFrm1" type="Appear" />
+
+ <rich:effect for="frm2" name="hideFrm2" type="Fade" />
+ <rich:effect for="frm2" name="showFrm2" type="Appear" />
+
+ <rich:effect for="frm3" name="hideFrm3" type="Fade" />
+ <rich:effect for="frm3" name="showFrm3" type="Appear" />
+
+ <rich:effect for="frm4" name="hideFrm4" type="Fade" />
+ <rich:effect for="frm4" name="showFrm4" type="Appear" />
+
+ <rich:effect for="frm5" name="hideFrm5" type="Fade" />
+ <rich:effect for="frm5" name="showFrm5" type="Appear" />
+
+ <rich:effect for="backFrmID" name="hideBackFrm" type="Fade" />
+ <rich:effect for="backFrmID" name="showBackFrm" type="Appear" />
+
<h:form id="backFrmID">
<h:commandLink value="Back" action="main"></h:commandLink>
Modified: trunk/test-applications/facelets/src/main/webapp/pages/main.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/pages/main.xhtml 2007-08-17 14:41:41 UTC (rev 2321)
+++ trunk/test-applications/facelets/src/main/webapp/pages/main.xhtml 2007-08-17 14:41:49 UTC (rev 2322)
@@ -13,38 +13,40 @@
<h:selectOneRadio binding="#{skinBean.component}" />
<h:commandLink action="#{skinBean.change}" value="set skin" />
</rich:panel>
-
+
<div align="center"><h:outputText
value="VCP 3.1.0 Test Application (JSF 1.1RI with Facelets)"
style="font-size: 30px"></h:outputText></div>
- <h:panelGrid columns="2" cellpadding="5px" cellspacing="5px">
- <h:commandLink value="inputNumberSpinner" action="Spinner"></h:commandLink>
- <h:commandLink value="inputNumberSlider" action="Slide"></h:commandLink>
- <h:commandLink value="Panel" action="Panel"></h:commandLink>
- <h:commandLink value="PanelBar" action="PanelBar"></h:commandLink>
- <h:commandLink value="Gmap" action="Gmap"></h:commandLink>
- <h:commandLink value="Virtual Earth" action="VirtualEarth"></h:commandLink>
- <h:commandLink action="Separ" value="Separator"></h:commandLink>
- <h:commandLink value="Spacer" action="Spacer"></h:commandLink>
- <h:commandLink value="SimpleTogglePanel" action="sTP"></h:commandLink>
- <h:commandLink value="TabPanel" action="TabPanel"></h:commandLink>
- <h:commandLink value="SuggestionBox" action="Suggest"></h:commandLink>
- <h:commandLink value="Paint2D" action="Paint"></h:commandLink>
- <h:commandLink value="Tree" action="Tree"></h:commandLink>
- <h:commandLink value="TogglePanel" action="TogglePanel"></h:commandLink>
- <h:commandLink value="ToolBar" action="ToolBar"></h:commandLink>
- <h:commandLink value="Drag and Drop" action="dnd"></h:commandLink>
- <h:commandLink value="Data Scroller" action="DS"></h:commandLink>
- <h:commandLink value="Drop Down Menu" action="DDMenu"></h:commandLink>
- <h:commandLink value="Data Filter Slider" action="DFS"></h:commandLink>
- <h:commandLink value="Panel Menu" action="PanelMenu"></h:commandLink>
- <h:commandLink value="Modal Panel" action="ModalPanel"></h:commandLink>
- <h:commandLink value="Tooltip" action="Tooltip"></h:commandLink>
- <h:commandLink value="Calendar" action="Calendar"></h:commandLink>
- <h:commandLink value="Message" action="Message"></h:commandLink>
- <h:commandLink value="Effect" action="Effect"></h:commandLink>
- </h:panelGrid>
- </h:form>
+ <rich:panel>
+ <h:panelGrid columns="2" cellpadding="5px" cellspacing="5px">
+ <h:commandLink value="inputNumberSpinner" action="Spinner"></h:commandLink>
+ <h:commandLink value="inputNumberSlider" action="Slide"></h:commandLink>
+ <h:commandLink value="Panel" action="Panel"></h:commandLink>
+ <h:commandLink value="PanelBar" action="PanelBar"></h:commandLink>
+ <h:commandLink value="Gmap" action="Gmap"></h:commandLink>
+ <h:commandLink value="Virtual Earth" action="VirtualEarth"></h:commandLink>
+ <h:commandLink action="Separ" value="Separator"></h:commandLink>
+ <h:commandLink value="Spacer" action="Spacer"></h:commandLink>
+ <h:commandLink value="SimpleTogglePanel" action="sTP"></h:commandLink>
+ <h:commandLink value="TabPanel" action="TabPanel"></h:commandLink>
+ <h:commandLink value="SuggestionBox" action="Suggest"></h:commandLink>
+ <h:commandLink value="Paint2D" action="Paint"></h:commandLink>
+ <h:commandLink value="Tree" action="Tree"></h:commandLink>
+ <h:commandLink value="TogglePanel" action="TogglePanel"></h:commandLink>
+ <h:commandLink value="ToolBar" action="ToolBar"></h:commandLink>
+ <h:commandLink value="Drag and Drop" action="dnd"></h:commandLink>
+ <h:commandLink value="Data Scroller" action="DS"></h:commandLink>
+ <h:commandLink value="Drop Down Menu" action="DDMenu"></h:commandLink>
+ <h:commandLink value="Data Filter Slider" action="DFS"></h:commandLink>
+ <h:commandLink value="Panel Menu" action="PanelMenu"></h:commandLink>
+ <h:commandLink value="Modal Panel" action="ModalPanel"></h:commandLink>
+ <h:commandLink value="Tooltip" action="Tooltip"></h:commandLink>
+ <h:commandLink value="Calendar" action="Calendar"></h:commandLink>
+ <h:commandLink value="Message" action="Message"></h:commandLink>
+ <h:commandLink value="Effect" action="Effect"></h:commandLink>
+ </h:panelGrid>
+ </rich:panel>
+ </h:form>
</body>
</f:view>
</html>
18 years, 8 months
JBoss Rich Faces SVN: r2321 - trunk/test-applications/jsp/src/main/webapp/Effect.
by richfaces-svn-commits@lists.jboss.org
Author: ayanul
Date: 2007-08-17 10:41:41 -0400 (Fri, 17 Aug 2007)
New Revision: 2321
Modified:
trunk/test-applications/jsp/src/main/webapp/Effect/Effect.jsp
Log:
has added "<rich:effect />" on richface components
Modified: trunk/test-applications/jsp/src/main/webapp/Effect/Effect.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/Effect/Effect.jsp 2007-08-17 14:28:01 UTC (rev 2320)
+++ trunk/test-applications/jsp/src/main/webapp/Effect/Effect.jsp 2007-08-17 14:41:41 UTC (rev 2321)
@@ -8,7 +8,7 @@
<head>
<title></title>
</head>
- <body onload="hideFrm1(),hideFrm2(),hideFrm3(),hideFrm4()">
+ <body onload="hideFrm1(),hideFrm2(),hideFrm3(),hideFrm4(),hideFrm5()">
<h:messages />
<h:form id="indexID">
<h:outputText value="Menu:" />
@@ -32,6 +32,11 @@
<f:verbatim>
<span onclick="showFrm4(),hideIndexID()"><font color="blue">JSF Component with Event.</font></span>
</f:verbatim>
+
+ <h:outputText value="5." />
+ <f:verbatim>
+ <span onclick="showFrm5(),hideIndexID()"><font color="blue">RichFace Components.</font></span>
+ </f:verbatim>
</h:panelGrid>
</h:form>
@@ -184,6 +189,80 @@
</f:verbatim>
</h:form>
+ <h:form id="frm5">
+ <h:panelGrid id="panGrID" columns="2">
+ <f:verbatim>
+ <span onclick="hideRichPanel()"><font color="blue">Hide
+ Panel</font> </span>
+ </f:verbatim>
+ <h:graphicImage value="/pics/fatal.gif" onclick="hideRichPanel()" />
+
+ <f:verbatim>
+ <span onclick="showRichPanel()"><font color="blue">Show
+ Panel</font> </span>
+ </f:verbatim>
+ <h:graphicImage value="/pics/warn.gif" onclick="showRichPanel()" />
+
+ <f:verbatim>
+ <span onclick="hideRichTabPanel()"><font color="blue">Hide Tab
+ Panel</font> </span>
+ </f:verbatim>
+ <h:graphicImage value="/pics/fatal.gif" onclick="hideRichTabPanel()" />
+
+ <f:verbatim>
+ <span onclick="showRichTabPanel()"><font color="blue">Show Tab
+ Panel</font> </span>
+ </f:verbatim>
+ <h:graphicImage value="/pics/warn.gif" onclick="showRichTabPanel()" />
+ </h:panelGrid>
+
+ <rich:panel id="richPanelID">
+ <f:facet name="header">
+ <h:outputText value="Header of the Panel" />
+ </f:facet>
+ <f:verbatim>
+ This is a panel. This is a panel. This is a panel. This is a panel. <br />
+ This is a panel. This is a panel. This is a panel. This is a panel.
+ </f:verbatim>
+ <rich:effect event="onclick" type="Opacity"
+ params="duration:0.6,from:0.3,to:1.0" />
+ <rich:effect event="onmouseout" type="Opacity"
+ params="duration:0.6,from:1.0,to:0.3" />
+ </rich:panel>
+
+ <rich:tabPanel id="tabPanelID"
+ headerAlignment="Header of the tabPanel" height="200px"
+ switchType="ajax" rendered="true" title="Title">
+
+ <rich:tab id="tab1" label="label 1">
+ <h:outputText value="This is tab panel 1" styleClass="text1"></h:outputText>
+ </rich:tab>
+
+ <rich:tab id="tab2" label="label 2">
+ <h:outputText value="This is tab panel 2" styleClass="text1"></h:outputText>
+ </rich:tab>
+
+ <rich:tab id="tab3" label="label 3">
+ <h:outputText value="This is tab panel 3" styleClass="text1"></h:outputText>
+ </rich:tab>
+
+ <rich:effect event="onclick" type="Opacity"
+ params="duration:0.5,from:0.4,to:1.0" />
+ <rich:effect event="onmouseout" type="Opacity"
+ params="duration:0.5,from:1.0,to:0.4" />
+ </rich:tabPanel>
+
+ <rich:effect for="richPanelID" event="" name="hideRichPanel" type="Fade" />
+ <rich:effect for="richPanelID" event="" name="showRichPanel" type="Appear" />
+
+ <rich:effect for="tabPanelID" event="" name="hideRichTabPanel" type="Fade" />
+ <rich:effect for="tabPanelID" event="" name="showRichTabPanel" type="Appear" />
+
+ <f:verbatim>
+ <br />
+ <span onclick="hideFrm5(),showIndexID()"><font color="blue">Close</font></span>
+ </f:verbatim>
+ </h:form>
<rich:effect for="indexID" event="" name="hideIndexID" type="BlindUp" />
<rich:effect for="indexID" event="" name="showIndexID" type="BlindDown" />
@@ -200,9 +279,11 @@
<rich:effect for="frm4" event="" name="hideFrm4" type="Fade" />
<rich:effect for="frm4" event="" name="showFrm4" type="Appear" />
+ <rich:effect for="frm5" event="" name="hideFrm5" type="Fade" />
+ <rich:effect for="frm5" event="" name="showFrm5" type="Appear" />
+
<rich:effect for="backFrmID" event="" name="hideBackFrm" type="Fade" />
<rich:effect for="backFrmID" event="" name="showBackFrm" type="Appear" />
-
<h:form id="backFrmID">
<h:commandLink value="Back" action="main"></h:commandLink>
</h:form>
18 years, 8 months
JBoss Rich Faces SVN: r2320 - trunk/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: vkorluzhenko
Date: 2007-08-17 10:28:01 -0400 (Fri, 17 Aug 2007)
New Revision: 2320
Modified:
trunk/docs/userguide/en/src/main/docbook/included/insert.xml
Log:
http://jira.jboss.com/jira/browse/RF-589
Modified: trunk/docs/userguide/en/src/main/docbook/included/insert.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/insert.xml 2007-08-17 14:20:25 UTC (rev 2319)
+++ trunk/docs/userguide/en/src/main/docbook/included/insert.xml 2007-08-17 14:28:01 UTC (rev 2320)
@@ -62,7 +62,7 @@
<emphasis role="bold">Example:</emphasis>
</para>
<programlisting role="xml">...
- <rich:insert src="#{sourcepath}" highlight="#{empty sourcetype? 'xhtml' : sourcetype }"/>
+ <rich:insert src="/pages/sourcePage.xhtml" highlight="xhtml"/>
...</programlisting>
</section>
@@ -79,10 +79,35 @@
<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 a language.</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>
+ <figure>
+ <para>The result of using <emphasis role="bold">
+ <property><rich:insert></property>
+ </emphasis> component is shown on the picture:</para>
+ <title>Source code highlighting</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/insert.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
<para>The <emphasis role="bold">
<property><rich:insert></property>
</emphasis> component provides the same functionalitity as <ulink
- url="https://jhighlight.dev.java.net/"> JHighlight.</ulink></para>
+ 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 user names, wich are
+ used by the <ulink url="https://jhighlight.dev.java.net/">JHighlight</ulink> library.</para>
</section>
</section>
18 years, 8 months
JBoss Rich Faces SVN: r2319 - trunk/docs/xslt/en/src/main.
by richfaces-svn-commits@lists.jboss.org
Author: smukhina
Date: 2007-08-17 10:20:25 -0400 (Fri, 17 Aug 2007)
New Revision: 2319
Removed:
trunk/docs/xslt/en/src/main/css/
trunk/docs/xslt/en/src/main/images/
Log:
The folders are empty and aren't used, so they were deleted
18 years, 8 months
JBoss Rich Faces SVN: r2318 - in trunk: samples/effect-sample and 2 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2007-08-17 09:52:50 -0400 (Fri, 17 Aug 2007)
New Revision: 2318
Modified:
trunk/framework/impl/src/main/java/org/richfaces/json/JSONTokener.java
trunk/samples/effect-sample/
trunk/ui/effect/src/main/java/org/richfaces/renderkit/EffectRendererBase.java
trunk/ui/effect/src/main/templates/effect.jspx
Log:
http://jira.jboss.com/jira/browse/RF-586 fixed
Modified: trunk/framework/impl/src/main/java/org/richfaces/json/JSONTokener.java
===================================================================
--- trunk/framework/impl/src/main/java/org/richfaces/json/JSONTokener.java 2007-08-17 13:18:25 UTC (rev 2317)
+++ trunk/framework/impl/src/main/java/org/richfaces/json/JSONTokener.java 2007-08-17 13:52:50 UTC (rev 2318)
@@ -478,4 +478,11 @@
public String toString() {
return " at character " + this.myIndex + " of " + this.mySource;
}
+
+ /**
+ * @return current index
+ */
+ public int getMyIndex() {
+ return myIndex;
+ }
}
\ No newline at end of file
Property changes on: trunk/samples/effect-sample
___________________________________________________________________
Name: svn:ignore
- target
+ target
.settings
.classpath
.project
Modified: trunk/ui/effect/src/main/java/org/richfaces/renderkit/EffectRendererBase.java
===================================================================
--- trunk/ui/effect/src/main/java/org/richfaces/renderkit/EffectRendererBase.java 2007-08-17 13:18:25 UTC (rev 2317)
+++ trunk/ui/effect/src/main/java/org/richfaces/renderkit/EffectRendererBase.java 2007-08-17 13:52:50 UTC (rev 2318)
@@ -4,18 +4,14 @@
package org.richfaces.renderkit;
import java.io.IOException;
-import java.util.regex.Matcher;
import java.util.regex.Pattern;
import javax.faces.component.UIComponent;
import javax.faces.context.FacesContext;
-import org.ajax4jsf.javascript.JSEncoder;
-import org.ajax4jsf.renderkit.ComponentsVariableResolver;
import org.ajax4jsf.renderkit.HeaderResourcesRendererBase;
import org.richfaces.component.UIEffect;
-import org.richfaces.json.JSONException;
-import org.richfaces.json.JSONMap;
+import org.richfaces.json.JSONTokener;
/**
* @author Nick Belaevski
@@ -46,32 +42,91 @@
}
public String convertParameters(FacesContext context, UIEffect effect) throws IOException {
- JSEncoder encoder = new JSEncoder();
String params = effect.getParams();
if (params == null) {
return null;
}
+ StringBuffer buffer = new StringBuffer("{" + params + "}");
try {
- JSONMap map = new JSONMap("{" + params + "}");
- Object id = map.get("id");
- if (id != null) {
- UIComponent component = effect.findComponent(id.toString());
- if (component != null) {
- id = component.getClientId(context);
- }
-
- map.put("id", null);
- }
-
- ComponentsVariableResolver.getVariables(this, effect).setVariable("pmId", id);
-
- return map.getString();
- } catch (JSONException e) {
+ replace(context, effect, buffer);
+ return buffer.toString();
+ } catch (Exception e) {
IOException exception = new IOException(e.getMessage());
exception.initCause(e);
throw exception;
}
}
+
+ private static void replace(FacesContext context, UIComponent effect, StringBuffer s) throws Exception {
+ JSONTokener x = new JSONTokener(s.toString());
+ char c;
+ String key;
+
+ if (x.nextClean() != '{') {
+ throw x.syntaxError("A JSONObject text must begin with '{'");
+ }
+ for (;;) {
+ int idx;
+ c = x.nextClean();
+ switch (c) {
+ case 0:
+ throw x.syntaxError("A JSONObject text must end with '}'");
+ case '}':
+ return;
+ default:
+ x.back();
+ idx = x.getMyIndex();
+ //System.out.println(s.substring(x.getMyIndex()));
+ key = x.nextValue().toString();
+ }
+
+ /*
+ * The key is followed by ':'. We will also tolerate '=' or '=>'.
+ */
+
+ c = x.nextClean();
+ if (c == '=') {
+ if (x.next() != '>') {
+ x.back();
+ }
+ } else if (c != ':') {
+ throw x.syntaxError("Expected a ':' after a key");
+ }
+
+ if ("id".equals(key)) {
+ Object value = x.nextValue();
+ UIComponent component = effect.findComponent(value.toString());
+ if (component != null) {
+ value = component.getClientId(context);
+ }
+
+
+ s.replace(idx, x.getMyIndex(), "'id': " + value);
+
+ return ;
+ } else {
+ x.nextValue();
+ }
+
+ /*
+ * Pairs are separated by ','. We will also tolerate ';'.
+ */
+
+ switch (x.nextClean()) {
+ case ';':
+ case ',':
+ if (x.nextClean() == '}') {
+ return;
+ }
+ x.back();
+ break;
+ case '}':
+ return;
+ default:
+ throw x.syntaxError("Expected a ',' or '}'");
+ }
+ }
+ }
}
Modified: trunk/ui/effect/src/main/templates/effect.jspx
===================================================================
--- trunk/ui/effect/src/main/templates/effect.jspx 2007-08-17 13:18:25 UTC (rev 2317)
+++ trunk/ui/effect/src/main/templates/effect.jspx 2007-08-17 13:52:50 UTC (rev 2318)
@@ -16,7 +16,7 @@
<c:set var="name" value="#{component.attributes['name']}"/>
<c:set var="type" value="#{component.attributes['type']}"/>
<c:set var="targetId" value="#{component.attributes['targetId']}"/>
- <c:set var="params" value="#{component.attributes['params']}"/>
+ <c:set var="params" value="#{this:convertParameters(context, component)}"/>
<h:scripts>new org.ajax4jsf.javascript.PrototypeScript(),scripts/scriptaculous/scriptaculous.js,scripts/scriptaculous/effects.js,/org/richfaces/renderkit/html/script/processEffect.js</h:scripts>
@@ -63,13 +63,6 @@
variables.setVariable("typePart","{}");
}
- String params = (String) variables.getVariable("params");
- if (!"".equals(params)) {
- variables.setVariable("paramsPart","{"+params+"}");
- } else {
- variables.setVariable("paramsPart","{}");
- }
-
String event = (String) variables.getVariable("event");
String name = (String)variables.getVariable("name");
Boolean needsFunction = new Boolean(! "".equals(name) && "".equals(event));
@@ -82,7 +75,7 @@
<c:if test="#{needsFunction}">
<script type="text/javascript" x:passThruWithExclusions="name,type,for">
//<![CDATA[
-#{name} = function () { return Richfaces.processEffect(Object.extend(Object.extend( Object.extend(#{typePart},#{forPart}), Object.extend (#{targetPart},#{paramsPart})), arguments[0]||{})); };
+#{name} = function () { return Richfaces.processEffect(Object.extend(Object.extend( Object.extend(#{typePart},#{forPart}), Object.extend (#{targetPart},#{params})), arguments[0]||{})); };
//]]>
</script>
</c:if>
@@ -95,7 +88,7 @@
//pm.id = #{this:convertElementParameter(pmId)};
if (typeof #{attachObj} == 'object') {pm.attachId= #{attachObj};if (#{targetObj}=='') pm.targetId=#{attachObj}; };
if (typeof #{targetObj} == 'object') pm.targetId= #{targetObj};
-pm = Object.extend(pm, {#{params}});
+pm = Object.extend(pm, #{params});
var ename = Richfaces.effectEventOnOut('#{event}');
var bindedFunction = function(event){ return Richfaces.processEffect(this); }.bindAsEventListener(pm);
Event.observe(pm.attachId,ename, bindedFunction, pm.useCapture||false);
18 years, 8 months