JBoss Rich Faces SVN: r10094 - in trunk/docs/cdkguide/en/src/main: docbook/includes and 2 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: artdaw
Date: 2008-08-14 09:35:11 -0400 (Thu, 14 Aug 2008)
New Revision: 10094
Added:
trunk/docs/cdkguide/en/src/main/resources/examples/inputDate-1.0-SNAPSHOT.jar
Modified:
trunk/docs/cdkguide/en/src/main/docbook/includes/pcreate.xml
trunk/docs/cdkguide/en/src/main/docbook/includes/protoui.xml
trunk/docs/cdkguide/en/src/main/docbook/includes/register.xml
trunk/docs/cdkguide/en/src/main/docbook/includes/rendererbase.xml
trunk/docs/cdkguide/en/src/main/docbook/includes/skin.xml
trunk/docs/cdkguide/en/src/main/docbook/includes/taghandler.xml
trunk/docs/cdkguide/en/src/main/docbook/includes/template.xml
trunk/docs/cdkguide/en/src/main/docbook/includes/ui_conf.xml
trunk/docs/cdkguide/en/src/main/docbook/master.xml
trunk/docs/cdkguide/en/src/main/docbook/modules/ide.xml
trunk/docs/cdkguide/en/src/main/docbook/modules/namingconv.xml
trunk/docs/cdkguide/en/src/main/docbook/modules/overview.xml
trunk/docs/cdkguide/en/src/main/docbook/modules/ref.xml
trunk/docs/cdkguide/en/src/main/docbook/modules/setup.xml
trunk/docs/cdkguide/en/src/main/docbook/modules/temptags.xml
trunk/docs/cdkguide/en/src/main/docbook/modules/test.xml
trunk/docs/cdkguide/en/src/main/resources/examples/htmlInputDate.jspx
trunk/docs/cdkguide/en/src/main/resources/examples/inputDate.xml
trunk/docs/cdkguide/en/src/main/resources/examples/resource-config.xml
Log:
https://jira.jboss.org/jira/browse/RF-3692 - 'inputDate component development' chapter checked.
Modified: trunk/docs/cdkguide/en/src/main/docbook/includes/pcreate.xml
===================================================================
--- trunk/docs/cdkguide/en/src/main/docbook/includes/pcreate.xml 2008-08-14 12:24:54 UTC (rev 10093)
+++ trunk/docs/cdkguide/en/src/main/docbook/includes/pcreate.xml 2008-08-14 13:35:11 UTC (rev 10094)
@@ -121,14 +121,6 @@
Used to store images
</entry>
</row>
- <row>
- <entry>
- src/main/resources/org/mycompany/renderkit/html/scripts
- </entry>
- <entry>
- Used to store JavaScript files
- </entry>
- </row>
<row>
<entry>
src/main/templates/org/mycompany
Modified: trunk/docs/cdkguide/en/src/main/docbook/includes/protoui.xml
===================================================================
--- trunk/docs/cdkguide/en/src/main/docbook/includes/protoui.xml 2008-08-14 12:24:54 UTC (rev 10093)
+++ trunk/docs/cdkguide/en/src/main/docbook/includes/protoui.xml 2008-08-14 13:35:11 UTC (rev 10094)
@@ -23,7 +23,8 @@
<img class="overlay" src="inputDateOverlay.png" />
</div>
...]]> </programlisting>
- <para> As it is shown in the listing above there are three HTML attributes - <emphasis>
+
+ <!--para> As it is shown in the listing above there are three HTML attributes - <emphasis>
<property>"title"</property>
</emphasis>, <emphasis>
<property>"name"</property>
@@ -31,7 +32,7 @@
<property>"value"</property>
</emphasis> - are needed to be parameterize the generated markup. </para>
<para>
- You map the HTML attributes to the corresponding <code>UIComponent</code> attributes:
+You map the HTML attributes to the corresponding <code>UIComponent</code> attributes:
</para>
<programlisting role="XML"><![CDATA[...
<div title="[title]">
@@ -40,6 +41,7 @@
</div>
...]]>
</programlisting>
+ -->
<para>
All information about styles applied to the <emphasis role="bold">
<property><inputDate></property>
Modified: trunk/docs/cdkguide/en/src/main/docbook/includes/register.xml
===================================================================
--- trunk/docs/cdkguide/en/src/main/docbook/includes/register.xml 2008-08-14 12:24:54 UTC (rev 10093)
+++ trunk/docs/cdkguide/en/src/main/docbook/includes/register.xml 2008-08-14 13:35:11 UTC (rev 10094)
@@ -43,17 +43,6 @@
</resource>
...]]></programlisting>
</listitem>
- <listitem>
- <para>
- the <property>inputDate.js</property> file
- </para>
- <programlisting role="XML"><![CDATA[...
-<resource>
- <name>org/mycompany/renderkit/html/scripts/inputDate.js</name>
- <path>org/mycompany/renderkit/html/scripts/inputDate.js</path>
-</resource>
-...]]></programlisting>
- </listitem>
</itemizedlist>
<para>
<ulink url="examples/resource-config.xml">Here</ulink> you could find a full example of the <property>resource-config.xml</property>
Modified: trunk/docs/cdkguide/en/src/main/docbook/includes/rendererbase.xml
===================================================================
--- trunk/docs/cdkguide/en/src/main/docbook/includes/rendererbase.xml 2008-08-14 12:24:54 UTC (rev 10093)
+++ trunk/docs/cdkguide/en/src/main/docbook/includes/rendererbase.xml 2008-08-14 13:35:11 UTC (rev 10094)
@@ -14,9 +14,35 @@
After the component tree is restored on the <property>Restore View Phase </property>,
each component in the tree extracts its new value from the request parameters
by using its <code>decode()</code> method. Then the value is stored locally on the component.
- So in the <code>InputDateRendererBase</code> class you need to override
- the <code>decode()</code> method:
+ </para>
+ <para>
+ In order to create <code>InputDateRendererBase</code> class you should proceed to the
+ <property>src/main/java/org/mycompany/renderkit</property>
+ directory and create this class there:
</para>
+ <programlisting role="JAVA"><![CDATA[package org.mycompany.renderkit;
+import java.io.IOException;
+import java.util.Map;
+import java.util.TimeZone;
+import javax.faces.component.UIComponent;
+import javax.faces.context.ExternalContext;
+import javax.faces.context.FacesContext;
+import javax.faces.convert.Converter;
+import javax.faces.convert.ConverterException;
+import javax.faces.convert.DateTimeConverter;
+import org.ajax4jsf.renderkit.HeaderResourcesRendererBase;
+import org.mycompany.component.UIInputDate;
+
+public abstract class InputDateRendererBase extends HeaderResourcesRendererBase {
+ ...
+}]]></programlisting>
+<para>
+ The <code>InputDateRendererBase</code> class extends a <code>HeaderResourcesRendererBase</code>
+ class. In the <code>HeaderResourcesRendererBase</code> class all the <code>encode()</code> methods for
+ the right resources encoding
+ are already realized, so in the <code>InputDateRendererBase</code> class you need to override
+ the <code>decode()</code> method only:
+ </para>
<programlisting role="JAVA"><![CDATA[ ...
public void decode(FacesContext context, UIComponent component){
ExternalContext external = context.getExternalContext();
Modified: trunk/docs/cdkguide/en/src/main/docbook/includes/skin.xml
===================================================================
--- trunk/docs/cdkguide/en/src/main/docbook/includes/skin.xml 2008-08-14 12:24:54 UTC (rev 10093)
+++ trunk/docs/cdkguide/en/src/main/docbook/includes/skin.xml 2008-08-14 13:35:11 UTC (rev 10094)
@@ -19,6 +19,16 @@
<property>Built-in skinnability in RichFaces</property>, <property>XCSS file format</property>, <property>Plug-n-Skin feature</property>, etc. there.
</para>
<para>
+ It's time to create XCSS file. You should go to the <property>src/main/resources/org/mycompany/renderkit/html/css</property>
+ and create <property>inputDate.xcss</property> file there with the following skeleton:
+ </para>
+ <programlisting role="XML"><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
+<f:template xmlns:f='http:/jsf.exadel.com/template'
+ xmlns:u='http:/jsf.exadel.com/template/util'
+ xmlns="http://www.w3.org/1999/xhtml">
+ ...
+</f:template>]]></programlisting>
+ <para>
According to the <emphasis role="bold"><property><inputDate></property></emphasis> markup you need to
define following selectors and classes in the <property>inputDate.xcss</property>:
</para>
@@ -43,21 +53,21 @@
</u:selector>
...]]></programlisting>
</listitem>
- <listitem>
+ <listitem>
<para>
<code>.my-inputDate-input</code>, <code>.my-inputDate-icon</code>, and <code>.my-inputDate-caption</code> classes
</para>
<programlisting role="CSS"><![CDATA[...
.my-inputDate-input{
- background-color: #EBEBE4;
- border: 1px solid #7F9DB9;
- float:left;
+background-color: #EBEBE4;
+border: 1px solid #7F9DB9;
+float:left;
}
.my-inputDate-icon{
- margin-left: 3px;
+margin-left: 3px;
}
.my-inputDate-caption{
- color: #000000;
+color: #000000;
}
...]]></programlisting>
</listitem>
Modified: trunk/docs/cdkguide/en/src/main/docbook/includes/taghandler.xml
===================================================================
--- trunk/docs/cdkguide/en/src/main/docbook/includes/taghandler.xml 2008-08-14 12:24:54 UTC (rev 10093)
+++ trunk/docs/cdkguide/en/src/main/docbook/includes/taghandler.xml 2008-08-14 13:35:11 UTC (rev 10094)
@@ -42,6 +42,6 @@
</para>
<para>
Well done! The <emphasis role="bold"><property><inputDate></property></emphasis> component is created.
- The <property>inputDate-1.0-SNAPSHOT.jar</property> for the component usage could be found in the <property>inputDate/target</property> folder.
+ The <ulink url="examples/inputDate-1.0-SNAPSHOT.jar">inputDate-1.0-SNAPSHOT.jar</ulink> for the component usage could be found in the <property>inputDate/target</property> folder.
</para>
</section>
\ No newline at end of file
Modified: trunk/docs/cdkguide/en/src/main/docbook/includes/template.xml
===================================================================
--- trunk/docs/cdkguide/en/src/main/docbook/includes/template.xml 2008-08-14 12:24:54 UTC (rev 10093)
+++ trunk/docs/cdkguide/en/src/main/docbook/includes/template.xml 2008-08-14 13:35:11 UTC (rev 10094)
@@ -49,24 +49,10 @@
<para>
<emphasis role="bold"><property><div></property></emphasis>-wrapper element with
<emphasis><property>"title"</property></emphasis>,
-<emphasis><property>"value"</property></emphasis>,
-<emphasis><property>"name"</property></emphasis>,
-<emphasis><property>"type"</property></emphasis>,
<emphasis><property>"id"</property></emphasis> attributes and with
the<emphasis><property>"caption"</property></emphasis> facet
</para>
<programlisting role="XML"><![CDATA[...
-<c:object var="caption" type="javax.faces.component.UIComponent"/>
-<jsp:scriptlet>
- caption = component.getFacet("caption");
- if(caption !=null && caption.isRendered()) {
-</jsp:scriptlet>
-<div id="#{clientId}_caption" class="my-inputDate-caption #{component.attributes['captionClass']}">
- <f:insertComponent value="#{caption}"/>
-</div>
-<jsp:scriptlet>
- }
-</jsp:scriptlet>
<div id="#{clientId}" title="#{value}" x:passThruWithExclusions="value,name,type,id">
...
</div>
@@ -110,15 +96,10 @@
</listitem>
</itemizedlist>
<para>
- The <emphasis role="bold"><property><inputDate></property></emphasis> component uses styles and scripts that should
- be defined in the template with the help of <emphasis role="bold"><property><h:styles></property></emphasis> and
- <emphasis role="bold"><property><h:scripts></property></emphasis> tags:
+ The <emphasis role="bold"><property><inputDate></property></emphasis> component uses styles that should
+ be defined in the template with the help of <emphasis role="bold"><property><h:styles></property></emphasis> tag:
</para>
<programlisting role="XML"><![CDATA[...
-<h:scripts>
- new org.ajax4jsf.javascript.PrototypeScript(),
- /org/mycompany/renderkit/html/scripts/inputDate.js
-</h:scripts>
<h:styles>/org/mycompany/renderkit/html/css/inputDate.xcss</h:styles>
...]]></programlisting>
<para>
Modified: trunk/docs/cdkguide/en/src/main/docbook/includes/ui_conf.xml
===================================================================
--- trunk/docs/cdkguide/en/src/main/docbook/includes/ui_conf.xml 2008-08-14 12:24:54 UTC (rev 10093)
+++ trunk/docs/cdkguide/en/src/main/docbook/includes/ui_conf.xml 2008-08-14 13:35:11 UTC (rev 10094)
@@ -107,6 +107,13 @@
<defaultvalue>"inputDate"</defaultvalue>
</property>
<property>
+ <name>name</name>
+ <classname>java.lang.String</classname>
+ <description>
+ Defines a name of the component
+ </description>
+</property>
+<property>
<name>styleClass</name>
<classname>java.lang.String</classname>
<description>
@@ -193,6 +200,10 @@
&ui_input_attributes;
...]]></programlisting>
<para>
+ <ulink url="examples/inputDate.xml">Here</ulink> is a full example of the <property>inputDate.xml</property> for the
+ <emphasis role="bold"><property><inputDate></property></emphasis> component.
+ </para>
+ <para>
More information about the <property>common attributes</property> you could find in the
<link linkend="attr_entity">Including common attributes</link> section.
</para>
Modified: trunk/docs/cdkguide/en/src/main/docbook/master.xml
===================================================================
--- trunk/docs/cdkguide/en/src/main/docbook/master.xml 2008-08-14 12:24:54 UTC (rev 10093)
+++ trunk/docs/cdkguide/en/src/main/docbook/master.xml 2008-08-14 13:35:11 UTC (rev 10094)
@@ -29,7 +29,7 @@
<book>
<bookinfo>
<title>RichFaces CDK Developer Guide</title>
-
+ <subtitle>This documentation is work in progress, thus some mistakes or incompleteness is possible</subtitle>
<copyright>
<year>2008</year>
<holder>Red Hat</holder>
@@ -166,6 +166,6 @@
</keywordset>
</chapterinfo>
<title>Button component development</title>
- <para> Command Ajax components TBD with RichFaces CDK. </para>
+ <para> Work in progress... </para>
</chapter> &ide; &namingconv; &ref; &temptags; </book>
Modified: trunk/docs/cdkguide/en/src/main/docbook/modules/ide.xml
===================================================================
--- trunk/docs/cdkguide/en/src/main/docbook/modules/ide.xml 2008-08-14 12:24:54 UTC (rev 10093)
+++ trunk/docs/cdkguide/en/src/main/docbook/modules/ide.xml 2008-08-14 13:35:11 UTC (rev 10094)
@@ -11,7 +11,7 @@
<title>Creating projects in different IDEs</title>
<para>
- Eclipse, IDEA.
+ Work in progress...
</para>
</chapter>
\ No newline at end of file
Modified: trunk/docs/cdkguide/en/src/main/docbook/modules/namingconv.xml
===================================================================
--- trunk/docs/cdkguide/en/src/main/docbook/modules/namingconv.xml 2008-08-14 12:24:54 UTC (rev 10093)
+++ trunk/docs/cdkguide/en/src/main/docbook/modules/namingconv.xml 2008-08-14 13:35:11 UTC (rev 10094)
@@ -11,7 +11,7 @@
<title>Naming conventions</title>
<para>
- Naming
+ Work in progress...
</para>
</chapter>
\ No newline at end of file
Modified: trunk/docs/cdkguide/en/src/main/docbook/modules/overview.xml
===================================================================
--- trunk/docs/cdkguide/en/src/main/docbook/modules/overview.xml 2008-08-14 12:24:54 UTC (rev 10093)
+++ trunk/docs/cdkguide/en/src/main/docbook/modules/overview.xml 2008-08-14 13:35:11 UTC (rev 10094)
@@ -11,7 +11,7 @@
</chapterinfo>
<title>Component usage overview</title>
<para>
- overview
+ Work in progress...
</para>
<!--
TBD
Modified: trunk/docs/cdkguide/en/src/main/docbook/modules/ref.xml
===================================================================
--- trunk/docs/cdkguide/en/src/main/docbook/modules/ref.xml 2008-08-14 12:24:54 UTC (rev 10093)
+++ trunk/docs/cdkguide/en/src/main/docbook/modules/ref.xml 2008-08-14 13:35:11 UTC (rev 10094)
@@ -11,7 +11,7 @@
<title>CDK Tag Reference</title>
<para>
- Tag Reference
+ Work in progress...
</para>
</chapter>
\ No newline at end of file
Modified: trunk/docs/cdkguide/en/src/main/docbook/modules/setup.xml
===================================================================
--- trunk/docs/cdkguide/en/src/main/docbook/modules/setup.xml 2008-08-14 12:24:54 UTC (rev 10093)
+++ trunk/docs/cdkguide/en/src/main/docbook/modules/setup.xml 2008-08-14 13:35:11 UTC (rev 10094)
@@ -120,8 +120,7 @@
<listitem>
<para> Create a file named <property>pom.xml</property> in the directory with the
following content: </para>
- <programlisting role="XML"><![CDATA[...
-<?xml version="1.0" encoding="UTF-8"?>
+ <programlisting role="XML"><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
@@ -182,8 +181,7 @@
<version>3.2.1.GA</version>
</dependency>
</dependencies>
-</project>
-...]]>
+</project>]]>
</programlisting>
</listitem>
<listitem>
Modified: trunk/docs/cdkguide/en/src/main/docbook/modules/temptags.xml
===================================================================
--- trunk/docs/cdkguide/en/src/main/docbook/modules/temptags.xml 2008-08-14 12:24:54 UTC (rev 10093)
+++ trunk/docs/cdkguide/en/src/main/docbook/modules/temptags.xml 2008-08-14 13:35:11 UTC (rev 10094)
@@ -11,7 +11,7 @@
<title>Template tags overview</title>
<para>
- tags
+ Work in progress...
</para>
</chapter>
\ No newline at end of file
Modified: trunk/docs/cdkguide/en/src/main/docbook/modules/test.xml
===================================================================
--- trunk/docs/cdkguide/en/src/main/docbook/modules/test.xml 2008-08-14 12:24:54 UTC (rev 10093)
+++ trunk/docs/cdkguide/en/src/main/docbook/modules/test.xml 2008-08-14 13:35:11 UTC (rev 10094)
@@ -9,10 +9,8 @@
<keyword>Guide</keyword>
</keywordset>
</chapterinfo>
-
<title>Generating unit tests</title>
<para>
- Unit Tests
+ Work in progress...
</para>
-
</chapter>
\ No newline at end of file
Modified: trunk/docs/cdkguide/en/src/main/resources/examples/htmlInputDate.jspx
===================================================================
--- trunk/docs/cdkguide/en/src/main/resources/examples/htmlInputDate.jspx 2008-08-14 12:24:54 UTC (rev 10093)
+++ trunk/docs/cdkguide/en/src/main/resources/examples/htmlInputDate.jspx 2008-08-14 13:35:11 UTC (rev 10094)
@@ -14,18 +14,17 @@
<f:clientid var="clientId"/>
<h:styles>/org/mycompany/renderkit/html/css/inputDate.xcss</h:styles>
<f:resource name="/org/mycompany/renderkit/html/images/inputDate.png" var="icon" />
- <c:object var="caption" type="javax.faces.component.UIComponent" />
- <jsp:scriptlet>
- <![CDATA[
- caption = component.getFacet("caption");
- if(caption !=null && caption.isRendered()) {]]>
- </jsp:scriptlet>
+ <jsp:scriptlet>
+ <![CDATA[if(component.getFacet("caption")!=null && component.getFacet("caption").isRendered()) {]]>
+ </jsp:scriptlet>
<div id="#{clientId}_caption" class="my-inputDate-caption #{component.attributes['captionClass']}">
- <f:insertComponent value="#{caption}" />
- </div>
- <jsp:scriptlet>
- <![CDATA[}]]>
- </jsp:scriptlet>
+ <u:insertFacet name="caption" />
+ </div>
+ <jsp:scriptlet>
+ <![CDATA[
+ }
+ ]]>
+ </jsp:scriptlet>
<div id="#{clientId}" title="#{value}" x:passThruWithExclusions="value,name,type,id">
<input id="#{clientId}"
name="#{clientId}"
Added: trunk/docs/cdkguide/en/src/main/resources/examples/inputDate-1.0-SNAPSHOT.jar
===================================================================
(Binary files differ)
Property changes on: trunk/docs/cdkguide/en/src/main/resources/examples/inputDate-1.0-SNAPSHOT.jar
___________________________________________________________________
Name: svn:executable
+ *
Name: svn:mime-type
+ application/octet-stream
Modified: trunk/docs/cdkguide/en/src/main/resources/examples/inputDate.xml
===================================================================
--- trunk/docs/cdkguide/en/src/main/resources/examples/inputDate.xml 2008-08-14 12:24:54 UTC (rev 10093)
+++ trunk/docs/cdkguide/en/src/main/resources/examples/inputDate.xml 2008-08-14 13:35:11 UTC (rev 10094)
@@ -34,8 +34,14 @@
The value of the component
</description>
</property>
-
<property>
+ <name>name</name>
+ <classname>java.lang.String</classname>
+ <description>
+ Defines a name of the component
+ </description>
+ </property>
+ <property>
<name>title</name>
<classname>java.lang.String</classname>
<description>
Modified: trunk/docs/cdkguide/en/src/main/resources/examples/resource-config.xml
===================================================================
--- trunk/docs/cdkguide/en/src/main/resources/examples/resource-config.xml 2008-08-14 12:24:54 UTC (rev 10093)
+++ trunk/docs/cdkguide/en/src/main/resources/examples/resource-config.xml 2008-08-14 13:35:11 UTC (rev 10094)
@@ -4,10 +4,6 @@
<name>org/mycompany/renderkit/html/images/inputDate.png</name>
<path>org/mycompany/renderkit/html/images/inputDate.png</path>
</resource>
- <resource>
- <name>org/mycompany/renderkit/html/scripts/inputDate.js</name>
- <path>org/mycompany/renderkit/html/scripts/inputDate.js</path>
- </resource>
<resource>
<name>org/mycompany/renderkit/html/css/inputDate.xcss</name>
<path>org/mycompany/renderkit/html/css/inputDate.xcss</path>
16 years, 4 months
JBoss Rich Faces SVN: r10093 - trunk/ui/hotKey/src/main/config/component.
by richfaces-svn-commits@lists.jboss.org
Author: smukhina
Date: 2008-08-14 08:24:54 -0400 (Thu, 14 Aug 2008)
New Revision: 10093
Modified:
trunk/ui/hotKey/src/main/config/component/hotKey.xml
Log:
https://jira.jboss.org/jira/browse/RF-4021 - description is added to the attribute
Modified: trunk/ui/hotKey/src/main/config/component/hotKey.xml
===================================================================
--- trunk/ui/hotKey/src/main/config/component/hotKey.xml 2008-08-14 12:17:45 UTC (rev 10092)
+++ trunk/ui/hotKey/src/main/config/component/hotKey.xml 2008-08-14 12:24:54 UTC (rev 10093)
@@ -89,7 +89,8 @@
<property>
<name>disableInInputTypes</name>
<classname>java.lang.String</classname>
- <defaultvalue>""</defaultvalue>
+ <description>Defines the types of the inputs not to be influenced with hotKey component. Possible values: buttons, texts and all (default). By default it is empty and this means ALL the types.</description>
+ <defaultvalue>"all"</defaultvalue>
</property>
</component>
</components>
16 years, 4 months
JBoss Rich Faces SVN: r10092 - trunk/ui/modal-panel/src/main/java/org/richfaces/renderkit.
by richfaces-svn-commits@lists.jboss.org
Author: dmorozov
Date: 2008-08-14 08:17:45 -0400 (Thu, 14 Aug 2008)
New Revision: 10092
Modified:
trunk/ui/modal-panel/src/main/java/org/richfaces/renderkit/ModalPanelRendererBase.java
Log:
https://jira.jboss.org/jira/browse/RF-2466
Modified: trunk/ui/modal-panel/src/main/java/org/richfaces/renderkit/ModalPanelRendererBase.java
===================================================================
--- trunk/ui/modal-panel/src/main/java/org/richfaces/renderkit/ModalPanelRendererBase.java 2008-08-14 12:11:18 UTC (rev 10091)
+++ trunk/ui/modal-panel/src/main/java/org/richfaces/renderkit/ModalPanelRendererBase.java 2008-08-14 12:17:45 UTC (rev 10092)
@@ -64,11 +64,17 @@
UIModalPanel panel = (UIModalPanel)component;
ExternalContext exCtx = context.getExternalContext();
Map<String, String> rqMap = exCtx.getRequestParameterMap();
- Object clnId = rqMap.get(panel.getClientId(context) + "OpenedState");
+ Object panelOpenState = rqMap.get(panel.getClientId(context) + "OpenedState");
if (panel.isKeepVisualState()) {
- if (null != clnId) {
- panel.setShowWhenRendered(Boolean.parseBoolean((String) clnId));
+ if (null != panelOpenState) {
+ // Bug https://jira.jboss.org/jira/browse/RF-2466
+ // Incorrect old:
+ // panel.setShowWhenRendered(Boolean.parseBoolean((String) clnId));
+ // ShowWhenRendered can be settled separately with modal panel "showWhenRendered" attribute
+ // so we should combine ShowWhenRendered || KeepVisualState && (OpenedState==TRUE) against rewriting
+ boolean showWhenRendered = panel.isShowWhenRendered() || Boolean.parseBoolean((String) panelOpenState);
+ panel.setShowWhenRendered(showWhenRendered);
Map<String, Object> visualOptions = (Map<String, Object>) panel.getVisualOptions();
Iterator<Entry<String, String>> it = rqMap.entrySet().iterator();
@@ -83,7 +89,7 @@
}
}
}
-
+
protected Class getComponentClass() {
return UIModalPanel.class;
}
@@ -144,7 +150,10 @@
public String getShowScript(FacesContext context, UIModalPanel panel) {
StringBuffer result = new StringBuffer();
- if (panel.isKeepVisualState() || panel.isShowWhenRendered()) {
+ // Bug https://jira.jboss.org/jira/browse/RF-2466
+ // We are already processed KeepVisualState and current open state in
+ // doDecode, so no need to check panel.isKeepVisualState() here.
+ if (/*panel.isKeepVisualState() || */panel.isShowWhenRendered()) {
result.append("Richfaces.showModalPanel('" + panel.getClientId(context) + "', {");
Iterator<Map.Entry<String, Object>> it = ((Map<String, Object>) panel.getVisualOptions()).entrySet().iterator();
16 years, 4 months
JBoss Rich Faces SVN: r10091 - trunk/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/js.
by richfaces-svn-commits@lists.jboss.org
Author: andrei_exadel
Date: 2008-08-14 08:11:18 -0400 (Thu, 14 Aug 2008)
New Revision: 10091
Modified:
trunk/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/js/FileUpload.js
Log:
RF-4199
Modified: trunk/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/js/FileUpload.js
===================================================================
--- trunk/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/js/FileUpload.js 2008-08-14 11:55:30 UTC (rev 10090)
+++ trunk/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/js/FileUpload.js 2008-08-14 12:11:18 UTC (rev 10091)
@@ -883,7 +883,7 @@
this.clear(this.activeEntry);
}
this.activeEntry = null;
- this.resetFrame();
+ //this.resetFrame();
},
updateViewState: function (state) {
@@ -948,6 +948,7 @@
if(this.events.onuploadcomplete) {
this.element.fire("rich:onuploadcomplete", {});
}
+ this.resetFrame();
}
this._updateEntriesState();
16 years, 4 months
JBoss Rich Faces SVN: r10090 - trunk/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: smukhina
Date: 2008-08-14 07:55:30 -0400 (Thu, 14 Aug 2008)
New Revision: 10090
Modified:
trunk/docs/userguide/en/src/main/docbook/included/comboBox.xml
Log:
https://jira.jboss.org/jira/browse/RF-3638 - info on JavaScript API added to guide
Modified: trunk/docs/userguide/en/src/main/docbook/included/comboBox.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/comboBox.xml 2008-08-14 11:20:28 UTC (rev 10089)
+++ trunk/docs/userguide/en/src/main/docbook/included/comboBox.xml 2008-08-14 11:55:30 UTC (rev 10090)
@@ -287,12 +287,12 @@
<entry>Hides the popup list</entry>
</row>
<row>
- <entry role="tbi">enable()</entry>
- <entry role="tbi">Enables the control for input (to be implemented)</entry>
+ <entry> enable()</entry>
+ <entry > Enables the control for input</entry>
</row>
<row>
- <entry role="tbi">disable()</entry>
- <entry role="tbi">Disables the control for input (to be implemented)</entry>
+ <entry> disable()</entry>
+ <entry >Disables the control for input</entry>
</row>
</tbody>
</tgroup>
16 years, 4 months
JBoss Rich Faces SVN: r10089 - trunk/samples/richfaces-demo/src/main/webapp/richfaces/ajaxValidator.
by richfaces-svn-commits@lists.jboss.org
Author: smukhina
Date: 2008-08-14 07:20:28 -0400 (Thu, 14 Aug 2008)
New Revision: 10089
Modified:
trunk/samples/richfaces-demo/src/main/webapp/richfaces/ajaxValidator/usage.xhtml
Log:
https://jira.jboss.org/jira/browse/RF-4099 - language is checked
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/ajaxValidator/usage.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/ajaxValidator/usage.xhtml 2008-08-14 11:02:14 UTC (rev 10088)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/ajaxValidator/usage.xhtml 2008-08-14 11:20:28 UTC (rev 10089)
@@ -9,7 +9,7 @@
<ui:define name="sample">
<p>
- rich:ajaxValidator is a component designed in order to provide ajax validation
+ rich:ajaxValidator is a component designed to provide ajax validation
inside the inputs. It is designed like an a4j:support component but skips all JSF processing
except validation.
</p>
16 years, 4 months
JBoss Rich Faces SVN: r10088 - trunk/samples/richfaces-demo/src/main/webapp/richfaces/filteringFeature/examples.
by richfaces-svn-commits@lists.jboss.org
Author: alevkovsky
Date: 2008-08-14 07:02:14 -0400 (Thu, 14 Aug 2008)
New Revision: 10088
Modified:
trunk/samples/richfaces-demo/src/main/webapp/richfaces/filteringFeature/examples/externalFiltering.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/filteringFeature/examples/simpleFiltering.xhtml
Log:
Bug fixing(RF-4167, RF-4168)
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/filteringFeature/examples/externalFiltering.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/filteringFeature/examples/externalFiltering.xhtml 2008-08-14 09:31:37 UTC (rev 10087)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/filteringFeature/examples/externalFiltering.xhtml 2008-08-14 11:02:14 UTC (rev 10088)
@@ -39,7 +39,9 @@
</f:facet>
<h:outputText value="#{cap.timeZone}" />
</rich:column>
- </rich:dataTable>
- <rich:datascroller id="ds2" for="table" renderIfSinglePage="false"></rich:datascroller>
+ <f:facet name="footer">
+ <rich:datascroller id="ds2" renderIfSinglePage="false"></rich:datascroller>
+ </f:facet>
+ </rich:dataTable>
</h:form>
</ui:composition>
\ No newline at end of file
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/filteringFeature/examples/simpleFiltering.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/filteringFeature/examples/simpleFiltering.xhtml 2008-08-14 09:31:37 UTC (rev 10087)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/filteringFeature/examples/simpleFiltering.xhtml 2008-08-14 11:02:14 UTC (rev 10088)
@@ -28,7 +28,9 @@
<rich:column filterBy="#{cap.name}" filterEvent="onkeyup">
<h:outputText value="#{cap.name}"/>
</rich:column>
+ <f:facet name="footer">
+ <rich:datascroller id="ds" renderIfSinglePage="false"></rich:datascroller>
+ </f:facet>
</rich:dataTable>
- <rich:datascroller id="ds" for="simpletable" renderIfSinglePage="false"></rich:datascroller>
</h:form>
</ui:composition>
\ No newline at end of file
16 years, 4 months
JBoss Rich Faces SVN: r10087 - in trunk/test-applications/seleniumTest/src: test/java/org/richfaces/testng and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: dsvyatobatsko
Date: 2008-08-14 05:31:37 -0400 (Thu, 14 Aug 2008)
New Revision: 10087
Modified:
trunk/test-applications/seleniumTest/src/main/webapp/pages/inplaceInput/inplaceInputTest.xhtml
trunk/test-applications/seleniumTest/src/test/java/org/richfaces/testng/InplaceInputTest.java
Log:
InplaceInputTest fixed; see http://jira.openqa.org/browse/SRC-385
Modified: trunk/test-applications/seleniumTest/src/main/webapp/pages/inplaceInput/inplaceInputTest.xhtml
===================================================================
(Binary files differ)
Modified: trunk/test-applications/seleniumTest/src/test/java/org/richfaces/testng/InplaceInputTest.java
===================================================================
--- trunk/test-applications/seleniumTest/src/test/java/org/richfaces/testng/InplaceInputTest.java 2008-08-14 08:47:25 UTC (rev 10086)
+++ trunk/test-applications/seleniumTest/src/test/java/org/richfaces/testng/InplaceInputTest.java 2008-08-14 09:31:37 UTC (rev 10087)
@@ -127,7 +127,7 @@
writeStatus("Double-click the second component again and type a new text");
selenium.doubleClick(inplaceInputD);
- type(inplaceInputDInput, "Sky");
+ type(inplaceInputDInput, "Moon");
writeStatus("Stop editing with cancel. The input has not to be saved");
selenium.mouseDown(inplaceInputDCancel);
16 years, 4 months
JBoss Rich Faces SVN: r10086 - trunk/docs/userguide/en/src/main/resources/images.
by richfaces-svn-commits@lists.jboss.org
Author: artdaw
Date: 2008-08-14 04:47:25 -0400 (Thu, 14 Aug 2008)
New Revision: 10086
Added:
trunk/docs/userguide/en/src/main/resources/images/beanValidator1.png
Log:
https://jira.jboss.org/jira/browse/RF-3903
beanValidator picture
Added: trunk/docs/userguide/en/src/main/resources/images/beanValidator1.png
===================================================================
(Binary files differ)
Property changes on: trunk/docs/userguide/en/src/main/resources/images/beanValidator1.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
16 years, 4 months
JBoss Rich Faces SVN: r10085 - trunk/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: artdaw
Date: 2008-08-14 04:47:00 -0400 (Thu, 14 Aug 2008)
New Revision: 10085
Modified:
trunk/docs/userguide/en/src/main/docbook/included/graphValidator.desc.xml
trunk/docs/userguide/en/src/main/docbook/included/graphValidator.xml
Log:
https://jira.jboss.org/jira/browse/RF-3903
Added info about graphValidator
Modified: trunk/docs/userguide/en/src/main/docbook/included/graphValidator.desc.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/graphValidator.desc.xml 2008-08-14 08:46:44 UTC (rev 10084)
+++ trunk/docs/userguide/en/src/main/docbook/included/graphValidator.desc.xml 2008-08-14 08:47:00 UTC (rev 10085)
@@ -9,7 +9,7 @@
<title>Description</title>
<para>The<emphasis role="bold">
<property><rich:ajaxGraph></property>
- </emphasis>is a component designed to provide ajax validation inside for JSF inputs.</para>
+ </emphasis>component allows to register Hibernate Validators for multiple input components.</para>
</section>
<section>
Modified: trunk/docs/userguide/en/src/main/docbook/included/graphValidator.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/graphValidator.xml 2008-08-14 08:46:44 UTC (rev 10084)
+++ trunk/docs/userguide/en/src/main/docbook/included/graphValidator.xml 2008-08-14 08:47:00 UTC (rev 10085)
@@ -81,7 +81,57 @@
HtmlgraphValidator mygraphValidator= new HtmlgraphValidator();
...
]]></programlisting>
+
+
</section>
+
+ <para> The<emphasis role="bold">
+ <property><rich:graphValidator></property></emphasis>component behaves basically the same way as the <emphasis role="bold">
+ <property><rich:beanValidator></property></emphasis>
+ The deference between these two components is that in order to validate some input data with a <emphasis role="bold">
+ <property><rich:beanValidator></property></emphasis> component, it should be a nested element of an input component, whereas <emphasis role="bold">
+ <property><rich:graphValidator></property></emphasis> wraps multiple input components and validates the data received from them.
+ </para>
+ <para>The following example demonstrate a pattern of how the <emphasis role="bold">
+ <property><rich:graphValidator></property></emphasis> can be used.</para>
+ <programlisting role="XML"><![CDATA[...
+ <rich:graphValidator>
+ <h:panelGrid columns="3">
+ <h:outputText value="Name:" />
+ <h:inputText value="#{validationBean.name}" id="name">
+ <f:validateLength minimum="2" />
+ </h:inputText>
+ <rich:message for="name" />
+ <h:outputText value="Email:" />
+ <h:inputText value="#{validationBean.email}" id="email" />
+ <rich:message for="email" />
+ </h:panelGrid>
+ </rich:graphValidator>
+ ...
+]]></programlisting>
+
+ <para>The data validation can be also performed using Hibernate Validator, the same way as it is done with <emphasis role="bold">
+ <property><rich:beanValidator></property></emphasis>. </para>
+
+
+ <para>The components's architecture provides an option to bind the component to a managed bean, which is done with the <emphasis >
+ <property><value></property></emphasis> attribute. The attribute ensures that the entered data is valid after the model is updated by revalidating the bean properties.</para>
+ <para>Please look at the example below.</para>
+
+
+ <programlisting role="XML"><![CDATA[...
+ <rich:graphValidator value="#{dayStatistics}">
+ <h:outputText value="#{pt.title}" /><
+ <rich:inputNumberSpinne minValue="0" maxValue="24" value="#{pt.time}" id="time">
+ </rich:inputNumberSpinner>
+ <rich:message for="time" />
+</rich:graphValidator>
+ ...
+]]></programlisting>
+
+
+</section>
+
16 years, 4 months