JBoss Rich Faces SVN: r12073 - trunk/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: cluts
Date: 2008-12-30 08:27:57 -0500 (Tue, 30 Dec 2008)
New Revision: 12073
Modified:
trunk/docs/userguide/en/src/main/docbook/included/calendar.xml
Log:
RF-5075 - info has been added
Modified: trunk/docs/userguide/en/src/main/docbook/included/calendar.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/calendar.xml 2008-12-30 13:26:17 UTC (rev 12072)
+++ trunk/docs/userguide/en/src/main/docbook/included/calendar.xml 2008-12-30 13:27:57 UTC (rev 12073)
@@ -212,7 +212,7 @@
</emphasis> attribute is used to define an event that is triggered
before date selection.</para>
<para><emphasis>
- <property>"ondateselected"</property>
+ The <property>"ondateselected"</property>
</emphasis> attribute is used to define an event that is triggered
after date selection. </para>
<para>For example, to fire some event after date selection you should use
@@ -225,7 +225,14 @@
<rich:calendar id="date" value="#{bean.dateTest}">
<a4j:support event="ondateselected" reRender="mainTable"/>
</rich:calendar>
-...]]></programlisting>
+ ...]]></programlisting>
+ <note>
+ <title>Note:</title>
+ <para>
+ When a timePicker was fulfilled, the <emphasis><property>"ondateselected"</property></emphasis> attribute does not allow you to submit a selected date. It happens because this event rose when the date is selected but the input hasn't been updated with new value yet.
+
+ </para>
+ </note>
<para><emphasis>
<property>"ondateselect"</property>
</emphasis> could be used for possibility of date selection canceling.
15 years, 12 months
JBoss Rich Faces SVN: r12072 - trunk/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: cluts
Date: 2008-12-30 08:26:17 -0500 (Tue, 30 Dec 2008)
New Revision: 12072
Modified:
trunk/docs/userguide/en/src/main/docbook/included/comboBox.xml
trunk/docs/userguide/en/src/main/docbook/included/inplaceSelect.xml
Log:
RF-4502 - corrected information about the <f:selectItem/> and <f:selectItems/> JSF components.
Modified: trunk/docs/userguide/en/src/main/docbook/included/comboBox.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/comboBox.xml 2008-12-30 13:14:13 UTC (rev 12071)
+++ trunk/docs/userguide/en/src/main/docbook/included/comboBox.xml 2008-12-30 13:26:17 UTC (rev 12072)
@@ -96,8 +96,7 @@
<listitem>
<para>
Using the <emphasis role="bold"><property><f:selectItem /></property></emphasis> or <emphasis role="bold">
- <property><f:selectItems /></property></emphasis> facets which considers only
- <emphasis><property>"value"</property></emphasis> attribute.
+ <property><f:selectItems /></property></emphasis> JSF components.
</para>
<para>
<emphasis role="bold">Example:</emphasis>
@@ -110,7 +109,13 @@
<f:selectItem itemValue="Rhode Island"/>
<f:selectItem itemValue="South Carolina"/>
</rich:comboBox>
-...]]></programlisting>
+...]]></programlisting>
+ <note>
+ <title>Note:</title>
+ <para>
+ These JSF components consider only the <emphasis><property>"value"</property></emphasis> attribute for this component.
+ </para>
+ </note>
</listitem>
</itemizedlist>
<para> Popup list content loads at page render time. No additional requests could be performed on the popup calling.
Modified: trunk/docs/userguide/en/src/main/docbook/included/inplaceSelect.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/inplaceSelect.xml 2008-12-30 13:14:13 UTC (rev 12071)
+++ trunk/docs/userguide/en/src/main/docbook/included/inplaceSelect.xml 2008-12-30 13:26:17 UTC (rev 12072)
@@ -150,7 +150,7 @@
<para>
You can form the list of the options using <emphasis role="bold"><property><f:selectItem/></property></emphasis> and
- <emphasis role="bold"><property><f:selectItems/></property></emphasis> facets.
+ <emphasis role="bold"><property><f:selectItems/></property></emphasis> JSF components.
</para>
<para>
Please, see the example below.
15 years, 12 months
JBoss Rich Faces SVN: r12071 - trunk/test-applications/realworld/web/src/main/webapp/WEB-INF.
by richfaces-svn-commits@lists.jboss.org
Author: amarkhel
Date: 2008-12-30 08:14:13 -0500 (Tue, 30 Dec 2008)
New Revision: 12071
Modified:
trunk/test-applications/realworld/web/src/main/webapp/WEB-INF/web.xml
Log:
Modified: trunk/test-applications/realworld/web/src/main/webapp/WEB-INF/web.xml
===================================================================
--- trunk/test-applications/realworld/web/src/main/webapp/WEB-INF/web.xml 2008-12-30 12:58:21 UTC (rev 12070)
+++ trunk/test-applications/realworld/web/src/main/webapp/WEB-INF/web.xml 2008-12-30 13:14:13 UTC (rev 12071)
@@ -81,7 +81,7 @@
<context-param>
<param-name>uploadRoot</param-name>
<param-value>
- /home/richfaces/upload/
+ /home/richfaces/Upload/
</param-value>
</context-param>
15 years, 12 months
JBoss Rich Faces SVN: r12070 - trunk/test-applications/realworld/web/src/main/webapp/WEB-INF.
by richfaces-svn-commits@lists.jboss.org
Author: amarkhel
Date: 2008-12-30 07:58:21 -0500 (Tue, 30 Dec 2008)
New Revision: 12070
Modified:
trunk/test-applications/realworld/web/src/main/webapp/WEB-INF/web.xml
Log:
Modified: trunk/test-applications/realworld/web/src/main/webapp/WEB-INF/web.xml
===================================================================
--- trunk/test-applications/realworld/web/src/main/webapp/WEB-INF/web.xml 2008-12-30 12:51:44 UTC (rev 12069)
+++ trunk/test-applications/realworld/web/src/main/webapp/WEB-INF/web.xml 2008-12-30 12:58:21 UTC (rev 12070)
@@ -1,107 +1,121 @@
-<?xml version="1.0" ?>
-<web-app xmlns="http://java.sun.com/xml/ns/javaee"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
- version="2.5">
-
- <!-- Ajax4jsf -->
- <filter>
- <display-name>Ajax4jsf Filter</display-name>
- <filter-name>ajax4jsf</filter-name>
- <filter-class>org.ajax4jsf.Filter</filter-class>
- <init-param>
- <param-name>createTempFiles</param-name>
- <param-value>false</param-value>
- </init-param>
- <init-param>
- <param-name>maxRequestSize</param-name>
- <param-value>20000000</param-value>
- </init-param>
- </filter>
-
- <filter-mapping>
- <filter-name>ajax4jsf</filter-name>
- <url-pattern>*.seam</url-pattern>
- </filter-mapping>
-
- <context-param>
- <param-name>org.richfaces.SKIN</param-name>
- <param-value>blueSky</param-value>
- </context-param>
-
- <context-param>
- <param-name>facelets.LIBRARIES</param-name>
- <param-value>
- /WEB-INF/tags/realWorld-taglib.xml
- </param-value>
- </context-param>
-
- <!-- Seam -->
-
- <listener>
- <listener-class>org.jboss.seam.servlet.SeamListener</listener-class>
- </listener>
-
- <filter>
- <filter-name>Seam Filter</filter-name>
- <filter-class>org.jboss.seam.servlet.SeamFilter</filter-class>
- </filter>
-
- <filter-mapping>
- <filter-name>Seam Filter</filter-name>
- <url-pattern>/*</url-pattern>
- </filter-mapping>
-
- <servlet>
- <servlet-name>Seam Resource Servlet</servlet-name>
- <servlet-class>org.jboss.seam.servlet.SeamResourceServlet</servlet-class>
- </servlet>
-
- <servlet-mapping>
- <servlet-name>Seam Resource Servlet</servlet-name>
- <url-pattern>/seam/resource/*</url-pattern>
- </servlet-mapping>
-
- <!-- Facelets development mode (disable in production) -->
-
- <context-param>
- <param-name>facelets.DEVELOPMENT</param-name>
- <param-value>true</param-value>
- </context-param>
-
- <!-- JSF -->
-
- <context-param>
- <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
- <param-value>.xhtml</param-value>
- </context-param>
-
- <context-param>
- <param-name>uploadRoot</param-name>
- <param-value>E:\richfaces\test-applications\realworld\Upload\</param-value>
-</context-param>
-
-
- <servlet>
- <servlet-name>Faces Servlet</servlet-name>
- <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
- <load-on-startup>1</load-on-startup>
- </servlet>
-
- <servlet-mapping>
- <servlet-name>Faces Servlet</servlet-name>
- <url-pattern>*.seam</url-pattern>
- </servlet-mapping>
-
- <security-constraint>
- <display-name>Restrict raw XHTML Documents</display-name>
- <web-resource-collection>
- <web-resource-name>XHTML</web-resource-name>
- <url-pattern>*.xhtml</url-pattern>
- </web-resource-collection>
- <auth-constraint/>
- </security-constraint>
-
-
-
-</web-app>
+<?xml version="1.0" ?>
+<web-app xmlns="http://java.sun.com/xml/ns/javaee"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
+ version="2.5">
+
+ <!-- Ajax4jsf -->
+ <filter>
+ <display-name>Ajax4jsf Filter</display-name>
+ <filter-name>ajax4jsf</filter-name>
+ <filter-class>org.ajax4jsf.Filter</filter-class>
+ <init-param>
+ <param-name>createTempFiles</param-name>
+ <param-value>false</param-value>
+ </init-param>
+ <init-param>
+ <param-name>maxRequestSize</param-name>
+ <param-value>20000000</param-value>
+ </init-param>
+ </filter>
+
+ <filter-mapping>
+ <filter-name>ajax4jsf</filter-name>
+ <url-pattern>*.seam</url-pattern>
+ </filter-mapping>
+
+ <context-param>
+ <param-name>org.richfaces.SKIN</param-name>
+ <param-value>blueSky</param-value>
+ </context-param>
+
+ <context-param>
+ <param-name>facelets.LIBRARIES</param-name>
+ <param-value>/WEB-INF/tags/realWorld-taglib.xml</param-value>
+ </context-param>
+
+ <!-- Seam -->
+
+ <listener>
+ <listener-class>
+ org.jboss.seam.servlet.SeamListener
+ </listener-class>
+ </listener>
+
+ <filter>
+ <filter-name>Seam Filter</filter-name>
+ <filter-class>org.jboss.seam.servlet.SeamFilter</filter-class>
+ </filter>
+
+ <filter-mapping>
+ <filter-name>Seam Filter</filter-name>
+ <url-pattern>/*</url-pattern>
+ </filter-mapping>
+
+ <servlet>
+ <servlet-name>Seam Resource Servlet</servlet-name>
+ <servlet-class>
+ org.jboss.seam.servlet.SeamResourceServlet
+ </servlet-class>
+ </servlet>
+
+ <servlet-mapping>
+ <servlet-name>Seam Resource Servlet</servlet-name>
+ <url-pattern>/seam/resource/*</url-pattern>
+ </servlet-mapping>
+
+ <!-- Facelets development mode (disable in production) -->
+
+ <context-param>
+ <param-name>facelets.DEVELOPMENT</param-name>
+ <param-value>true</param-value>
+ </context-param>
+
+ <!-- JSF -->
+
+ <context-param>
+ <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
+ <param-value>.xhtml</param-value>
+ </context-param>
+
+ <context-param>
+ <param-name>uploadRoot</param-name>
+ <param-value>
+ /home/richfaces/upload/
+ </param-value>
+ </context-param>
+
+
+ <servlet>
+ <servlet-name>Faces Servlet</servlet-name>
+ <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
+ <load-on-startup>1</load-on-startup>
+ </servlet>
+
+ <servlet-mapping>
+ <servlet-name>Faces Servlet</servlet-name>
+ <url-pattern>*.seam</url-pattern>
+ </servlet-mapping>
+
+ <servlet>
+ <servlet-name>Picture Servlet</servlet-name>
+ <servlet-class>org.richfaces.realworld.servlet.PictureServlet</servlet-class>
+ <load-on-startup>2</load-on-startup>
+ </servlet>
+ <servlet-mapping>
+ <servlet-name>Picture Servlet</servlet-name>
+ <url-pattern>/picture/*</url-pattern>
+ </servlet-mapping>
+
+ <security-constraint>
+ <display-name>Restrict raw XHTML Documents</display-name>
+ <web-resource-collection>
+ <web-resource-name>XHTML</web-resource-name>
+ <url-pattern>*.xhtml</url-pattern>
+ </web-resource-collection>
+ <auth-constraint />
+ </security-constraint>
+
+
+
+</web-app>
15 years, 12 months
JBoss Rich Faces SVN: r12069 - trunk/docs/userguide/en/src/main/resources/images.
by richfaces-svn-commits@lists.jboss.org
Author: atsebro
Date: 2008-12-30 07:51:44 -0500 (Tue, 30 Dec 2008)
New Revision: 12069
Removed:
trunk/docs/userguide/en/src/main/resources/images/GettingStarted_RFGreeterApp.png.png
Log:
RF-4056: Getting Started with RichFaces chapter should be updated
Deleted: trunk/docs/userguide/en/src/main/resources/images/GettingStarted_RFGreeterApp.png.png
===================================================================
(Binary files differ)
15 years, 12 months
JBoss Rich Faces SVN: r12068 - trunk/docs/userguide/en/src/main/resources/images.
by richfaces-svn-commits@lists.jboss.org
Author: atsebro
Date: 2008-12-30 07:51:18 -0500 (Tue, 30 Dec 2008)
New Revision: 12068
Added:
trunk/docs/userguide/en/src/main/resources/images/GettingStarted_RFGreeterApp.png
Log:
RF-4056: Getting Started with RichFaces chapter should be updated
Added: trunk/docs/userguide/en/src/main/resources/images/GettingStarted_RFGreeterApp.png
===================================================================
(Binary files differ)
Property changes on: trunk/docs/userguide/en/src/main/resources/images/GettingStarted_RFGreeterApp.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
15 years, 12 months
JBoss Rich Faces SVN: r12067 - trunk/docs/userguide/en/src/main/resources/images.
by richfaces-svn-commits@lists.jboss.org
Author: atsebro
Date: 2008-12-30 07:50:19 -0500 (Tue, 30 Dec 2008)
New Revision: 12067
Added:
trunk/docs/userguide/en/src/main/resources/images/GettingStarted_RFGreeterApp.png.png
Removed:
trunk/docs/userguide/en/src/main/resources/images/GettingStarted_RFGreeterApp.png
Log:
RF-4056: Getting Started with RichFaces chapter should be updated
Deleted: trunk/docs/userguide/en/src/main/resources/images/GettingStarted_RFGreeterApp.png
===================================================================
(Binary files differ)
Added: trunk/docs/userguide/en/src/main/resources/images/GettingStarted_RFGreeterApp.png.png
===================================================================
(Binary files differ)
Property changes on: trunk/docs/userguide/en/src/main/resources/images/GettingStarted_RFGreeterApp.png.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
15 years, 12 months
JBoss Rich Faces SVN: r12066 - in trunk: ui/suggestionbox/src/main/resources/org/richfaces/renderkit/html/scripts and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: ilya_shaikovsky
Date: 2008-12-30 06:55:15 -0500 (Tue, 30 Dec 2008)
New Revision: 12066
Modified:
trunk/samples/richfaces-demo/src/main/webapp/richfaces/suggestionBox/examples/objects.xhtml
trunk/ui/suggestionbox/src/main/resources/org/richfaces/renderkit/html/scripts/suggestionbox.js
Log:
https://jira.jboss.org/jira/browse/RF-5453
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/suggestionBox/examples/objects.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/suggestionBox/examples/objects.xhtml 2008-12-30 11:40:12 UTC (rev 12065)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/suggestionBox/examples/objects.xhtml 2008-12-30 11:55:15 UTC (rev 12066)
@@ -1,38 +1,43 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml"
- xmlns:ui="http://java.sun.com/jsf/facelets"
- xmlns:h="http://java.sun.com/jsf/html"
- xmlns:f="http://java.sun.com/jsf/core"
- xmlns:a4j="http://richfaces.org/a4j"
- xmlns:rich="http://richfaces.org/rich">
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:rich="http://richfaces.org/rich">
- <ui:composition>
- <script type="text/javascript">
+<ui:composition>
+ <script type="text/javascript">
function printObjectsSelected(output, sgcomponent){
output.innerHTML=sgcomponent.getSelectedItems().pluck('state');
}
</script>
-
- <h:form id="form">
+
+ <h:form id="form">
<h:panelGrid columns="2">
- <h:outputText value="Input with states names suggestions"/>
+ <h:outputText value="Input with states names suggestions" />
<h:panelGrid columns="2" border="0" cellpadding="0" cellspacing="0">
- <h:inputText id="statesinput"/>
- <h:graphicImage value="/images/icons/arrow.png" onclick="#{rich:component('suggestion')}.callSuggestion(true)"/>
- </h:panelGrid>
- <h:outputText value="States capitals for suggested capitals"/>
- <h:outputText id="objects" style="font-weight:bold"/>
+ <h:inputText style="margin:0px;" id="statesinput" />
+ <h:graphicImage value="/images/icons/arrow.png"
+ onclick="#{rich:component('suggestion')}.callSuggestion(true)"
+ alt="" />
+ </h:panelGrid>
+ <h:outputText value="States capitals for suggested capitals" />
+ <h:outputText id="objects" style="font-weight:bold" />
</h:panelGrid>
- <rich:suggestionbox height="200" width="200" usingSuggestObjects="true" onobjectchange="printObjectsSelected(#{rich:element('objects')}, #{rich:component('suggestion')});"
- suggestionAction="#{capitalsBean.autocomplete}" var="cap" for="statesinput" fetchValue="#{cap.name}" id="suggestion" tokens=",">
+ <rich:suggestionbox height="200" width="200"
+ usingSuggestObjects="true"
+ onobjectchange="printObjectsSelected(#{rich:element('objects')}, #{rich:component('suggestion')});"
+ suggestionAction="#{capitalsBean.autocomplete}" var="cap"
+ for="statesinput" fetchValue="#{cap.name}" id="suggestion" tokens=",">
<h:column>
<h:graphicImage value="#{cap.stateFlag}" />
</h:column>
<h:column>
- <h:outputText value="#{cap.name}"/>
+ <h:outputText value="#{cap.name}" />
</h:column>
</rich:suggestionbox>
- </h:form>
- </ui:composition>
+ </h:form>
+</ui:composition>
</html>
\ No newline at end of file
Modified: trunk/ui/suggestionbox/src/main/resources/org/richfaces/renderkit/html/scripts/suggestionbox.js
===================================================================
--- trunk/ui/suggestionbox/src/main/resources/org/richfaces/renderkit/html/scripts/suggestionbox.js 2008-12-30 11:40:12 UTC (rev 12065)
+++ trunk/ui/suggestionbox/src/main/resources/org/richfaces/renderkit/html/scripts/suggestionbox.js 2008-12-30 11:55:15 UTC (rev 12066)
@@ -772,6 +772,8 @@
callSuggestion: function (ignoreMinChars)
{
+ if (this.active) return;
+
if (!this.hasFocus)
{
this.element.focus();
15 years, 12 months
JBoss Rich Faces SVN: r12065 - trunk/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: atsebro
Date: 2008-12-30 06:40:12 -0500 (Tue, 30 Dec 2008)
New Revision: 12065
Modified:
trunk/docs/userguide/en/src/main/docbook/included/toolTip.xml
Log:
RF-5467: error in code sample in <rich:toolTip> chapter
Modified: trunk/docs/userguide/en/src/main/docbook/included/toolTip.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/toolTip.xml 2008-12-30 11:15:02 UTC (rev 12064)
+++ trunk/docs/userguide/en/src/main/docbook/included/toolTip.xml 2008-12-30 11:40:12 UTC (rev 12065)
@@ -43,15 +43,11 @@
<section id="tab_ccpt">
<title>Creating the Component with a Page Tag</title>
- <para>To create the simplest variant of <emphasis role="bold"><property><rich:toolTip></property></emphasis>
- component on a page, use the following syntax:</para>
-
- <para>
- <emphasis role="bold">Example:</emphasis>
- </para>
+ <para>The simplest way to create the <emphasis role="bold"><property><rich:toolTip></property></emphasis> component on a page is as following:</para>
+
<programlisting role="XML"><![CDATA[...
<rich:panel>
- <rich:toolTip value="toolTip content"/>
+ <rich:toolTip value="Hello, I am the content of this tooltip!"/>
</rich:panel>
...
]]></programlisting>
@@ -72,74 +68,74 @@
<section>
<title>Details of Usage</title>
<para>
- To specify text information, labeled on a <emphasis role="bold"><property><rich:toolTip></property></emphasis>, use <emphasis><property>"value"</property></emphasis> attribute.
- Images, links, buttons and other RichFaces components also may be put and composed inside <emphasis role="bold"><property><rich:toolTip></property></emphasis>.
- Text, specified between <property>tooltip's</property> start and end tags will be rendered in browser as simple text.
- <emphasis role="bold"><property><rich:toolTip></property></emphasis> borders stretch to enclose it contents.
+ Text information, labeled on the <emphasis role="bold"><property><rich:toolTip></property></emphasis>, is specified with <emphasis><property>"value"</property></emphasis> attribute.
+ Text that is put between tooltip start and end tags will also be rendered as tooltip content and could be marked with HTML tags.
+ Images, links, buttons and other RichFaces components are also may be put and composed inside the <emphasis role="bold"><property><rich:toolTip></property></emphasis>.
+ The <emphasis role="bold"><property><rich:toolTip></property></emphasis> borders are stretched automatically to enclose the contents.
</para>
<para>
- There are three ways to attach a <emphasis role="bold"><property><rich:toolTip></property></emphasis> to a page element.
- One of them uses nesting (this way is shown on example <link linkend="tab_ccpt">above</link>).
- In such cases <emphasis role="bold"><property><rich:toolTip></property></emphasis> is attached to the parent component by default.
+ There are three ways to attach the <emphasis role="bold"><property><rich:toolTip></property></emphasis> to a page element.
+ The first and simplest one is when the <emphasis role="bold"><property><rich:toolTip></property></emphasis> is nested into a page element the tooltip is applied to.
+ This way is shown on example in the <link linkend="tab_ccpt">Creating the Component with a Page Tag</link> section.
+ The <emphasis><property>"attached"</property></emphasis> attribute is "true" by default in this case,
+ which means that the tolltip will be invoked automatically when the mouse cursor is hovered above the parent component.
</para>
- <note>
- <title>Note:</title>
- <para>
- It is recommended to specify <emphasis><property>"id"</property></emphasis> for parent page element to ensure <property>tooltip's</property> correct work.
- </para>
- </note>
- <note>
- <title>Note:</title>
- <para>
- If parent component contains more than one child, it is recommended to define <emphasis role="bold"><property><rich:toolTip></property></emphasis> as the last one.
- </para>
- </note>
+
<para>
- <emphasis role="bold"><property><rich:toolTip></property></emphasis> may be attached to a page element by the use of <emphasis><property>"for"</property></emphasis> attribute. In this case a <emphasis role="bold"><property><rich:toolTip></property></emphasis> may be defined separately from a page element it is applied to.
- <emphasis><property>"id"</property></emphasis> for page element is necessary (see the example below).
+ The second one uses <emphasis role="bold"><property><rich:toolTip></property></emphasis> <emphasis><property>"for"</property></emphasis> attribute.
+ In this case the <emphasis role="bold"><property><rich:toolTip></property></emphasis> is defined separately from a component it is applied to.
</para>
+
<para>
<emphasis role="bold">Example:</emphasis>
</para>
- <programlisting role="XML"><![CDATA[...
-<rich:panel id="panelId">
+ <programlisting role="XML"><![CDATA[<rich:panel id="panelId">
...
</rich:panel>
-<rich:toolTip value="This is a tooltip content" for="panelId"/>
-...
-]]></programlisting>
+<rich:toolTip value="This is a tooltip." for="panelId"/>]]></programlisting>
+
+ <para>These two ways are also applicable for HTML elements that are not presented in components tree built by facelets.
+ Use <emphasis><property>"for"</property></emphasis> attribute to attach the <emphasis role="bold"><property><rich:toolTip></property></emphasis> in both cases.
+ </para>
<para>
- Because HTML elements are not presented in components tree built by facelets,
- use the attribute <emphasis><property>"for"</property></emphasis> with HTML elements as shown in example below.
- </para>
- <para>
<emphasis role="bold">Example:</emphasis>
</para>
- <programlisting role="XML"><![CDATA[...
-<div id="elementId">
- <rich:toolTip for="elementId">Using a toolTip</rich:toolTip>
- <p>The first simple example</p>
+ <programlisting role="XML"><![CDATA[<!-- The <rich:toolTip> is nested into the parent HTML element -->
+<div id="para1">
+ <p>This paragraph and tooltip are nested into the same <div> element.</p>
+ <rich:toolTip for="para1">This is a tooltip.</rich:toolTip>
</div>
-...
-<div id="elementId">
- <p>The second simple example</p>
+
+<!-- The <rich:toolTip> is defined separately -->
+<div id="para2">
+ <p>The tooltip for this paragraph is defined separately.</p>
</div>
-<rich:toolTip for="elementId">Using a toolTip</rich:toolTip>
-...
-]]></programlisting>
- <para>
- <emphasis role="bold"><property><rich:toolTip></property></emphasis> may also be invoked by JS API function.
+<rich:toolTip for="para2">This is a tooltip.</rich:toolTip>]]></programlisting>
+
+ <para>The third way to invoke the <emphasis role="bold"><property><rich:toolTip></property></emphasis> uses JS API function.
List of JS API functions available for <emphasis role="bold"><property><rich:toolTip></property></emphasis> is listed <link linkend="tab_jsapi">below</link>.
- JS API functions are defined for a page element, the <emphasis role="bold"><property><rich:toolTip></property></emphasis> is applied to. Thus, <emphasis role="bold"><property><rich:toolTip></property></emphasis> can be defined separately from that page element.
- It is necessary to specify <emphasis><property>"ids"</property></emphasis> for both and set <emphasis role="bold"><property><rich:toolTip></property></emphasis> <emphasis><property>"attached"</property></emphasis> attribute's value to "false" (see the example below).
+ JS API functions are defined for a component the <emphasis role="bold"><property><rich:toolTip></property></emphasis> is applied to.
+ The <emphasis role="bold"><property><rich:toolTip></property></emphasis> <emphasis><property>"attached"</property></emphasis> attribute should be set to "false" in this case.
</para>
- <programlisting role="XML"><![CDATA[...
-<rich:panel id="paneld" onclick="#{rich:component("tooltipId")}.show();">
-...
-</rich:panel>
-<rich:toolTip id="tooltipId" attached="false" value="This is a tooltip content"/>
-...
-]]></programlisting>
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
+ <programlisting role="XML"><![CDATA[<rich:panel id="panelId" onclick="#{rich:component("tooltipId")}.show(event);" />
+<a4j:form>
+ <rich:toolTip id="tooltipId" attached="false" value="This is a tooltip."/>
+</a4j:form>]]></programlisting>
+
+ <note>
+ <title>Notes:</title>
+ <para>To provide <emphasis role="bold"><property><rich:toolTip></property></emphasis> component proper work in complex cases do the following:
+ <itemizedlist>
+ <listitem><para>specify <emphasis><property>"id's"</property></emphasis> for both <emphasis role="bold"><property><rich:toolTip></property></emphasis> and component it is applied to;</para></listitem>
+ <listitem><para>define the <emphasis role="bold"><property><rich:toolTip></property></emphasis> as last child, when nesting it into the component the <emphasis role="bold"><property><rich:toolTip></property></emphasis> is applied to;</para></listitem>
+ <listitem><para>put the <emphasis role="bold"><property><rich:toolTip></property></emphasis> into <emphasis role="bold"><property><a4j:form></property></emphasis> when invoking it with JS API function.</para></listitem>
+ </itemizedlist>
+ </para>
+ </note>
+
<para>
The <emphasis><property>"mode"</property></emphasis> attribute is provided you to control the way of data loading to <emphasis role="bold"><property><rich:toolTip></property></emphasis>.
The component works properly in client and Ajax modes.
15 years, 12 months
JBoss Rich Faces SVN: r12064 - trunk/samples/richfaces-demo/src/main/webapp/richfaces/dataTable/examples.
by richfaces-svn-commits@lists.jboss.org
Author: ilya_shaikovsky
Date: 2008-12-30 06:15:02 -0500 (Tue, 30 Dec 2008)
New Revision: 12064
Modified:
trunk/samples/richfaces-demo/src/main/webapp/richfaces/dataTable/examples/editTable.xhtml
Log:
https://jira.jboss.org/jira/browse/RF-5400
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/dataTable/examples/editTable.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/dataTable/examples/editTable.xhtml 2008-12-30 11:08:48 UTC (rev 12063)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/dataTable/examples/editTable.xhtml 2008-12-30 11:15:02 UTC (rev 12064)
@@ -90,6 +90,7 @@
</h:panelGroup>
</f:facet>
<h:form>
+ <rich:messages style="color:red;"></rich:messages>
<h:panelGrid columns="1">
<a4j:outputPanel ajaxRendered="true">
<h:panelGrid columns="2">
15 years, 12 months