JBoss Rich Faces SVN: r3304 - in trunk/ui: jQuery and 15 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: SergeySmirnov
Date: 2007-10-09 21:09:00 -0400 (Tue, 09 Oct 2007)
New Revision: 3304
Added:
trunk/ui/jQuery/
trunk/ui/jQuery/pom.xml
trunk/ui/jQuery/src/
trunk/ui/jQuery/src/main/
trunk/ui/jQuery/src/main/config/
trunk/ui/jQuery/src/main/config/component/
trunk/ui/jQuery/src/main/config/component/jQuery.xml
trunk/ui/jQuery/src/main/java/
trunk/ui/jQuery/src/main/java/org/
trunk/ui/jQuery/src/main/java/org/richfaces/
trunk/ui/jQuery/src/main/java/org/richfaces/component/
trunk/ui/jQuery/src/main/java/org/richfaces/component/UIJQuery.java
trunk/ui/jQuery/src/main/java/org/richfaces/renderkit/
trunk/ui/jQuery/src/main/java/org/richfaces/renderkit/JQueryRendererBase.java
trunk/ui/jQuery/src/main/templates/
trunk/ui/jQuery/src/main/templates/jQuery.jspx
trunk/ui/jQuery/src/test/
trunk/ui/jQuery/src/test/java/
trunk/ui/jQuery/src/test/java/org/
trunk/ui/jQuery/src/test/java/org/richfaces/
trunk/ui/jQuery/src/test/java/org/richfaces/component/
trunk/ui/jQuery/src/test/java/org/richfaces/component/JQueryComponentTest.java
Log:
jQuery component has been added. init version
Property changes on: trunk/ui/jQuery
___________________________________________________________________
Name: svn:ignore
+ .classpath
.project
.settings
Added: trunk/ui/jQuery/pom.xml
===================================================================
--- trunk/ui/jQuery/pom.xml (rev 0)
+++ trunk/ui/jQuery/pom.xml 2007-10-10 01:09:00 UTC (rev 3304)
@@ -0,0 +1,45 @@
+<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/maven-v4_0_0.xsd">
+ <parent>
+ <artifactId>ui</artifactId>
+ <groupId>org.richfaces</groupId>
+ <version>3.2.0-SNAPSHOT</version>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.richfaces.ui</groupId>
+ <artifactId>jQuery</artifactId>
+ <name>jQuery Selectors</name>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.richfaces.cdk</groupId>
+ <artifactId>maven-cdk-plugin</artifactId>
+ <version>3.2.0-SNAPSHOT</version>
+ <executions>
+ <execution>
+ <phase>generate-sources</phase>
+ <goals>
+ <goal>generate</goal>
+ </goals>
+ </execution>
+ <execution>
+ <id>generate-test-sources</id>
+ <phase>generate-test-sources</phase>
+ <goals>
+ <goal>generate-tests</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <library>
+ <prefix>org.richfaces</prefix>
+ <taglib>
+ <shortName>jQuery</shortName>
+ </taglib>
+ </library>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ <dependencies>
+ </dependencies>
+</project>
\ No newline at end of file
Added: trunk/ui/jQuery/src/main/config/component/jQuery.xml
===================================================================
--- trunk/ui/jQuery/src/main/config/component/jQuery.xml (rev 0)
+++ trunk/ui/jQuery/src/main/config/component/jQuery.xml 2007-10-10 01:09:00 UTC (rev 3304)
@@ -0,0 +1,69 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE components PUBLIC "-//AJAX4JSF//CDK Generator config/EN" "https://ajax4jsf.dev.java.net/nonav/dtds/component-config.dtd" >
+<components>
+ <component>
+ <name>org.richfaces.JQuery</name>
+ <family>org.richfaces.JQuery</family>
+ <classname>org.richfaces.component.html.HtmlJQuery</classname>
+ <superclass>org.richfaces.component.UIJQuery</superclass>
+ <description>
+ <![CDATA[
+ It presents the google map in JSF applications
+ ]]>
+ </description>
+ <test />
+ <renderer generate="true" override="true">
+ <name>org.richfaces.JQueryRenderer</name>
+ <template>jQuery.jspx</template>
+ </renderer>
+ <tag>
+ <name>jQuery</name>
+ <classname>org.richfaces.taglib.JQueryTag</classname>
+ <superclass>
+ org.ajax4jsf.webapp.taglib.HtmlComponentTagBase
+ </superclass>
+ </tag>
+ &ui_component_attributes;
+
+ <property>
+ <name>name</name>
+ <classname>java.lang.String</classname>
+ <description>
+ The name of the function that will be generated to execute the query. If name is
+ not defined explicitly it will be pre-generated from the id of the component where
+ colon is replaced with underscore and "jq_" prefix is added. The name attribute is required
+ if timing attribute equals to "onJScall"
+ </description>
+ <defaultvalue>""</defaultvalue>
+ </property>
+ <property>
+ <name>selector</name>
+ <classname>java.lang.String</classname>
+ <description>
+ Selector for query. The component id as well as any html element id might
+ be used inside.
+ </description>
+ <defaultvalue>""</defaultvalue>
+ </property>
+ <property required="true">
+ <name>query</name>
+ <classname>java.lang.String</classname>
+ <description>
+ The query string that will be executed for given selector.
+ </description>
+ <defaultvalue>""</defaultvalue>
+ </property>
+ <property>
+ <name>timing</name>
+ <classname>java.lang.String</classname>
+ <description>
+ When to peform the query. Two possible values are "immediate","onload" and "onJScall".
+ "immediate" performs the query right away. "onload" adds the task to the
+ time when document is loaded (the DOM tree is created). "onJScall" allows to invoke the
+ query by Javascipt function name defined with "name" attribute. The default value is
+ "immediate".
+ </description>
+ <defaultvalue>"immediate"</defaultvalue>
+ </property>
+ </component>
+</components>
Added: trunk/ui/jQuery/src/main/java/org/richfaces/component/UIJQuery.java
===================================================================
--- trunk/ui/jQuery/src/main/java/org/richfaces/component/UIJQuery.java (rev 0)
+++ trunk/ui/jQuery/src/main/java/org/richfaces/component/UIJQuery.java 2007-10-10 01:09:00 UTC (rev 3304)
@@ -0,0 +1,36 @@
+/**
+ * License Agreement.
+ *
+ * JBoss RichFaces - Ajax4jsf Component Library
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+package org.richfaces.component;
+
+import javax.faces.component.UIComponentBase;
+
+/**
+ * JSF component class
+ *
+ */
+public abstract class UIJQuery extends UIComponentBase {
+
+ public static final String COMPONENT_TYPE = "org.richfaces.JQuery";
+
+ private static final String COMPONENT_FAMILY = "org.richfaces.JQuery";
+
+}
Added: trunk/ui/jQuery/src/main/java/org/richfaces/renderkit/JQueryRendererBase.java
===================================================================
--- trunk/ui/jQuery/src/main/java/org/richfaces/renderkit/JQueryRendererBase.java (rev 0)
+++ trunk/ui/jQuery/src/main/java/org/richfaces/renderkit/JQueryRendererBase.java 2007-10-10 01:09:00 UTC (rev 3304)
@@ -0,0 +1,55 @@
+package org.richfaces.renderkit;
+
+import java.io.IOException;
+import java.util.regex.Pattern;
+
+import javax.faces.component.UIComponent;
+import javax.faces.context.FacesContext;
+import javax.faces.FacesException;
+import org.richfaces.renderkit.JQueryRendererBase;
+import org.ajax4jsf.renderkit.ComponentVariables;
+import org.ajax4jsf.renderkit.HeaderResourcesRendererBase;
+import org.richfaces.component.UIJQuery;
+
+
+public class JQueryRendererBase extends HeaderResourcesRendererBase {
+
+ protected Class getComponentClass() {
+ return UIJQuery.class;
+ }
+
+
+
+ protected void checkValidity(String clientId, String name, String timing, String query) {
+
+ if ( ! "onJScall".equals(timing) &&
+ ! "onload".equals(timing) &&
+ ! "immediate".equals(timing) ) {
+ throw new FacesException(
+ "The timing attribute of the jQuery component (id='"+clientId+"') has an invalid value:'"+ timing +
+ "'. It may have only the following values: 'immediate', 'onload', 'onJScall'");
+ }
+
+ if ( name == null ) {
+ throw new FacesException(
+ "The name attribute of the jQuery component (id='"+clientId+"') might not be null" );
+
+ }
+
+ if ( "".equals(name.trim()) && "onJScall".equals(timing) ) {
+ throw new FacesException(
+ "The name attribute of the jQuery component (id='"+clientId+"') must be specified when timing attribute equals to 'onJScall'" );
+ }
+
+ if ( "".equals(query.trim()) || query==null ) {
+ throw new FacesException(
+ "The query attribute of the jQuery component (id='"+clientId+"') must be specified" );
+ }
+
+ }
+ protected String replaceClientIds(String selector) {
+ return selector;
+ }
+
+
+}
Added: trunk/ui/jQuery/src/main/templates/jQuery.jspx
===================================================================
--- trunk/ui/jQuery/src/main/templates/jQuery.jspx (rev 0)
+++ trunk/ui/jQuery/src/main/templates/jQuery.jspx 2007-10-10 01:09:00 UTC (rev 3304)
@@ -0,0 +1,62 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<f:root
+ xmlns:f="http://ajax4jsf.org/cdk/template"
+ xmlns:c=" http://java.sun.com/jsf/core"
+ xmlns:ui=" http://ajax4jsf.org/cdk/ui"
+ xmlns:u=" http://ajax4jsf.org/cdk/u"
+ xmlns:x=" http://ajax4jsf.org/cdk/x"
+ class="org.richfaces.renderkit.html.JQueryRenderer"
+ baseclass="org.richfaces.renderkit.JQueryRendererBase"
+ component="org.richfaces.component.UIJQuery">
+ <f:clientid var="clientId"/>
+
+
+ <c:set var="selector" value="#{component.attributes['selector']}"/>
+ <c:set var="name" value="#{component.attributes['name']}"/>
+ <c:set var="timing" value="#{component.attributes['timing']}"/>
+ <c:set var="query" value="#{component.attributes['query']}"/>
+ <h:scripts>/org/richfaces/renderkit/html/scripts/jquery/jquery.js</h:scripts>
+
+
+<jsp:scriptlet>
+<![CDATA[
+ String name = (String) variables.getVariable("name");
+ String timing = (String) variables.getVariable("timing");
+ String query = (String) variables.getVariable("query");
+ String selector = (String) variables.getVariable("selector");
+
+ checkValidity(clientId, name, timing, query);
+ variables.setVariable("selector", replaceClientIds(selector));
+]]>
+</jsp:scriptlet>
+
+<jsp:scriptlet><![CDATA[ if (! "".equals(name.trim()) ) { ]]></jsp:scriptlet>
+<script type="text/javascript">
+ //<![CDATA[
+function #{name}(elm, param) {
+ jQuery(elm || '#{selector}').#{query};
+}
+//]]>
+</script>
+<jsp:scriptlet><![CDATA[ } ]]></jsp:scriptlet>
+
+<jsp:scriptlet><![CDATA[ if ( "immediate".equals(timing) ) { ]]></jsp:scriptlet>
+<script type="text/javascript">
+ //<![CDATA[
+ jQuery('#{selector}').#{query};
+//]]>
+</script>
+<jsp:scriptlet><![CDATA[ } ]]></jsp:scriptlet>
+
+<jsp:scriptlet><![CDATA[ if ( "onload".equals(timing) ) { ]]></jsp:scriptlet>
+<script type="text/javascript">
+ //<![CDATA[
+ jQuery(document).ready(function() {
+ jQuery('#{selector}').#{query};
+ });
+//]]>
+</script>
+<jsp:scriptlet><![CDATA[ } ]]></jsp:scriptlet>
+
+
+</f:root>
\ No newline at end of file
Added: trunk/ui/jQuery/src/test/java/org/richfaces/component/JQueryComponentTest.java
===================================================================
--- trunk/ui/jQuery/src/test/java/org/richfaces/component/JQueryComponentTest.java (rev 0)
+++ trunk/ui/jQuery/src/test/java/org/richfaces/component/JQueryComponentTest.java 2007-10-10 01:09:00 UTC (rev 3304)
@@ -0,0 +1,92 @@
+/**
+ * License Agreement.
+ *
+ * JBoss RichFaces - Ajax4jsf Component Library
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+package org.richfaces.component;
+
+import java.util.HashSet;
+import java.util.Iterator;
+import java.util.List;
+import java.util.Set;
+
+import javax.faces.component.UIComponent;
+import javax.faces.component.UIForm;
+import javax.faces.component.html.HtmlForm;
+
+import org.ajax4jsf.tests.AbstractAjax4JsfTestCase;
+import org.apache.commons.lang.StringUtils;
+
+import com.gargoylesoftware.htmlunit.html.HtmlElement;
+import com.gargoylesoftware.htmlunit.html.HtmlPage;
+import com.gargoylesoftware.htmlunit.html.HtmlScript;
+
+/**
+ * Unit test for simple Component.
+ */
+public class JQueryComponentTest extends AbstractAjax4JsfTestCase {
+ private UIForm form = null;
+ private UIComponent jq = null;
+ private static Set javaScripts = new HashSet();
+
+
+ static {
+ javaScripts.add("org.ajax4jsf.javascript.AjaxScript");
+ javaScripts.add("script/query.js");
+ }
+
+ /**
+ * Create the test case
+ *
+ * @param testName name of the test case
+ */
+ public JQueryComponentTest( String testName )
+ {
+ super( testName );
+ }
+
+ public void setUp() throws Exception {
+ super.setUp();
+ form = new HtmlForm();
+ facesContext.getViewRoot().getChildren().add(form);
+
+ jq = application.createComponent(UIJQuery.COMPONENT_TYPE);
+ jq.setId("jq");
+ }
+
+ public void tearDown() throws Exception {
+ super.tearDown();
+ jq = null;
+ form = null;
+ }
+
+ public void testRendcerComponent() throws Exception {
+ HtmlPage renderedView = renderView();
+
+ HtmlElement htmlGmap = renderedView.getHtmlElementById(jq.getClientId(facesContext));
+
+
+ }
+
+ public void testRenderStyle() throws Exception {
+ }
+
+ public void testRenderScript() throws Exception {
+ }
+}
17 years, 2 months
JBoss Rich Faces SVN: r3303 - trunk/framework/impl/src/main/java/org/richfaces/renderkit.
by richfaces-svn-commits@lists.jboss.org
Author: maksimkaszynski
Date: 2007-10-09 13:31:48 -0400 (Tue, 09 Oct 2007)
New Revision: 3303
Modified:
trunk/framework/impl/src/main/java/org/richfaces/renderkit/MacroDefinitionJSContentHandler.java
Log:
http://jira.jboss.com/jira/browse/RF-912
Modified: trunk/framework/impl/src/main/java/org/richfaces/renderkit/MacroDefinitionJSContentHandler.java
===================================================================
--- trunk/framework/impl/src/main/java/org/richfaces/renderkit/MacroDefinitionJSContentHandler.java 2007-10-09 16:09:31 UTC (rev 3302)
+++ trunk/framework/impl/src/main/java/org/richfaces/renderkit/MacroDefinitionJSContentHandler.java 2007-10-09 17:31:48 UTC (rev 3303)
@@ -3,6 +3,7 @@
*/
package org.richfaces.renderkit;
+import java.io.FilterWriter;
import java.io.IOException;
import java.io.StringReader;
import java.io.Writer;
@@ -22,6 +23,49 @@
private String prolog;
private String epilog;
+ /**
+ * Writer will not output duplicate commas
+ * @author Maksim Kaszynski
+ *
+ */
+ static class WellFormedWriter extends FilterWriter {
+
+ private char lastChar;
+
+ public WellFormedWriter(Writer out) {
+ super(out);
+ }
+
+ public void write(char[] cbuf, int off, int len) throws IOException {
+
+
+ //Skip comma
+ while (cbuf[off] == lastChar && lastChar == ',' && len > 0) {
+ off++;
+ len--;
+ }
+
+ while(len > 1 && cbuf[off] == cbuf[off+1] && cbuf[off] == ','){
+ len--;
+ off++;
+ }
+
+
+ super.write(cbuf, off, len);
+
+ lastChar = cbuf[off + len - 1];
+
+ }
+
+ public void write(int c) throws IOException {
+ if (c != lastChar || lastChar != ',') {
+ super.write(c);
+ lastChar = (char) c;
+ }
+ }
+
+ }
+
public MacroDefinitionJSContentHandler(Writer writer, String prolog,
String epilog) {
super(writer);
@@ -102,52 +146,62 @@
if (isProcessingCdata()) {
super.characters(ch, start, length);
} else {
- List parsedExpression = parseExpressiion(new String(ch, start, length));
- for (Iterator iterator = parsedExpression.iterator(); iterator
- .hasNext();) {
+ Writer oldWriter = outputWriter;
+ outputWriter = new WellFormedWriter(oldWriter);
+
+ try {
+ List parsedExpression = parseExpressiion(new String(ch, start,
+ length));
+ for (Iterator iterator = parsedExpression.iterator(); iterator
+ .hasNext();) {
- Object next = iterator.next();
-
- if (next instanceof Expression) {
- Expression expression = (Expression) next;
-
- if (this.isBeforeDocumentStart() || level < 0)
- return;
- try {
- if (level != 0 && !this.closeElement(false) && this.isProcessingCdata() == false) {
- this.outputWriter.write(',');
- }
+ Object next = iterator.next();
- if (this.isProcessingCdata() == false) {
- this.outputWriter.write("new ET(");
- }
-
- this.outputWriter.write("function (context) { return ");
- this.outputWriter.write(prolog);
- this.encode(expression.getExpression().toString());
- this.outputWriter.write(epilog);
- this.outputWriter.write("}");
+ if (next instanceof Expression) {
+ Expression expression = (Expression) next;
- if (this.isProcessingCdata() == false) {
- this.outputWriter.write(")");
- }
- } catch (IOException e) {
- throw new SAXException("Write error",e);
- }
+ if (this.isBeforeDocumentStart() || level < 0)
+ return;
+ try {
+ if (level != 0 && !this.closeElement(false)
+ && this.isProcessingCdata() == false) {
+ this.outputWriter.write(',');
+ }
- } else {
- char[] cs = next.toString().toCharArray();
- super.characters(cs, 0, cs.length);
- }
+ if (this.isProcessingCdata() == false) {
+ this.outputWriter.write("new ET(");
+ }
- if (iterator.hasNext()) {
- try {
- this.outputWriter.write(',');
- } catch (IOException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
+ this.outputWriter
+ .write("function (context) { return ");
+ this.outputWriter.write(prolog);
+ this.encode(expression.getExpression().toString());
+ this.outputWriter.write(epilog);
+ this.outputWriter.write("}");
+
+ if (this.isProcessingCdata() == false) {
+ this.outputWriter.write(")");
+ }
+ } catch (IOException e) {
+ throw new SAXException("Write error", e);
+ }
+
+ } else {
+ char[] cs = next.toString().toCharArray();
+ super.characters(cs, 0, cs.length);
}
- }
+
+ if (iterator.hasNext()) {
+ try {
+ this.outputWriter.write(',');
+ } catch (IOException e) {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ }
+ }
+ }
+ } finally {
+ outputWriter = oldWriter;
}
}
}
17 years, 2 months
JBoss Rich Faces SVN: r3302 - trunk/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: vkorluzhenko
Date: 2007-10-09 12:09:31 -0400 (Tue, 09 Oct 2007)
New Revision: 3302
Modified:
trunk/docs/userguide/en/src/main/docbook/included/calendar.xml
trunk/docs/userguide/en/src/main/docbook/included/column.xml
trunk/docs/userguide/en/src/main/docbook/included/columnGroup.xml
trunk/docs/userguide/en/src/main/docbook/included/dataDefinitionList.xml
trunk/docs/userguide/en/src/main/docbook/included/dataGrid.xml
trunk/docs/userguide/en/src/main/docbook/included/dataList.xml
trunk/docs/userguide/en/src/main/docbook/included/dataOrderedList.xml
trunk/docs/userguide/en/src/main/docbook/included/dataTable.xml
trunk/docs/userguide/en/src/main/docbook/included/datascroller.xml
trunk/docs/userguide/en/src/main/docbook/included/dropDownMenu.xml
trunk/docs/userguide/en/src/main/docbook/included/gmap.xml
trunk/docs/userguide/en/src/main/docbook/included/inputNumberSlider.xml
trunk/docs/userguide/en/src/main/docbook/included/inputNumberSpinner.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/message.xml
trunk/docs/userguide/en/src/main/docbook/included/messages.xml
trunk/docs/userguide/en/src/main/docbook/included/modalPanel.xml
trunk/docs/userguide/en/src/main/docbook/included/panel.xml
trunk/docs/userguide/en/src/main/docbook/included/panelBar.xml
trunk/docs/userguide/en/src/main/docbook/included/panelBarItem.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/simpleTogglePanel.xml
trunk/docs/userguide/en/src/main/docbook/included/suggestionBox.xml
trunk/docs/userguide/en/src/main/docbook/included/tab.xml
trunk/docs/userguide/en/src/main/docbook/included/tabPanel.xml
trunk/docs/userguide/en/src/main/docbook/included/toolBar.xml
trunk/docs/userguide/en/src/main/docbook/included/toolBarGroup.xml
trunk/docs/userguide/en/src/main/docbook/included/tooltip.xml
trunk/docs/userguide/en/src/main/docbook/included/tree.xml
trunk/docs/userguide/en/src/main/docbook/included/treeNode.xml
trunk/docs/userguide/en/src/main/docbook/included/virtualEarth.xml
Log:
http://jira.jboss.com/jira/browse/RF-771
Correcting Definition custom styles classes for components: <rich:column>, <rich:columnGroup>, <rich:dataList>, <rich:datascroller>, <rich:dropDownMenu>,<rich:gmap>, <rich:inputNumberSlider>, <rich:inputNumberSpiner>, menuGroup, dataList, dataOrderedList, dataDefinitionList, menuSeparator, dataTable. done by Olga Chikvina
Modified: trunk/docs/userguide/en/src/main/docbook/included/calendar.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/calendar.xml 2007-10-09 15:57:50 UTC (rev 3301)
+++ trunk/docs/userguide/en/src/main/docbook/included/calendar.xml 2007-10-09 16:09:31 UTC (rev 3302)
@@ -1006,14 +1006,14 @@
</tgroup>
</table>
- <para>In order to redefine the style for all <emphasis role="bold">
+ <para>In order to redefine styles for all <emphasis role="bold">
<property><rich:calendar></property>
</emphasis> components on a page using CSS, it's enough to create classes with the
- same names and define the necessary properties in them.</para>
+ same names and define necessary properties in them.</para>
- <para>To change the style of particular <emphasis role="bold">
+ <para>To change styles of particular <emphasis role="bold">
<property><rich:calendar></property>
- </emphasis> components define your own style classes in the corresponding <emphasis
+ </emphasis> components, define your own style classes in the corresponding <emphasis
role="bold">
<property><rich:calendar></property>
</emphasis>attributes.</para>
Modified: trunk/docs/userguide/en/src/main/docbook/included/column.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/column.xml 2007-10-09 15:57:50 UTC (rev 3301)
+++ trunk/docs/userguide/en/src/main/docbook/included/column.xml 2007-10-09 16:09:31 UTC (rev 3302)
@@ -198,10 +198,19 @@
<section>
<title>Definition of Custom Style Classes</title>
+ <para>In order to redefine styles for all <emphasis role="bold">
+ <property><rich:column></property>
+ </emphasis> components on a page using CSS, it's enough to create classes with the
+ same names and define necessary properties in them.</para>
+
+ <para>To change styles of particular <emphasis role="bold">
+ <property><rich:column></property>
+ </emphasis> components, define your own style classes in the corresponding <emphasis
+ role="bold">
+ <property><rich:column></property>
+ </emphasis>attributes.</para>
+ </section>
- <para>To redefine an appearance of all <property>columns</property> on a page, redefine the corresponding class in the CSS file used with the page.</para>
- <para>To redefine a style of a particular page, use component class attributes which list is the same as the <property>column</property> one and is known to you.</para>
- </section>
<section>
<title>Relevant Resources Links</title>
<para><ulink url="http://livedemo.exadel.com/richfaces-demo/richfaces/dataTable.jsf?c=column"
Modified: trunk/docs/userguide/en/src/main/docbook/included/columnGroup.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/columnGroup.xml 2007-10-09 15:57:50 UTC (rev 3301)
+++ trunk/docs/userguide/en/src/main/docbook/included/columnGroup.xml 2007-10-09 16:09:31 UTC (rev 3302)
@@ -183,10 +183,17 @@
<section>
<title>Definition of Custom Style Classes</title>
- <para>To redefine an appearance of all <property>columnGroups</property> on a page, redefine the corresponding class in the
- CSS file used with the page.</para>
- <para>To redefine a style of a particular page, use component class attributes which list is the same
- as the columnGroup one and is known to you.</para>
+ <para>In order to redefine styles for all <emphasis role="bold">
+ <property><rich:columnGroup></property>
+ </emphasis> components on a page using CSS, it's enough to create classes with the
+ same names and define necessary properties in them.</para>
+
+ <para>To change styles of particular <emphasis role="bold">
+ <property><rich:columnGroup></property>
+ </emphasis> components, define your own style classes in the corresponding <emphasis
+ role="bold">
+ <property><rich:columnGroup></property>
+ </emphasis>attributes.</para>
</section>
<section>
Modified: trunk/docs/userguide/en/src/main/docbook/included/dataDefinitionList.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/dataDefinitionList.xml 2007-10-09 15:57:50 UTC (rev 3301)
+++ trunk/docs/userguide/en/src/main/docbook/included/dataDefinitionList.xml 2007-10-09 16:09:31 UTC (rev 3302)
@@ -152,8 +152,17 @@
</tgroup>
</table>
- <para>To redefine an appearance of all <property>dataDefinitionLists</property> on a page, just redefine one of this classes.</para>
- <para>To redefine a style of a particular <property>dataDefinitionList</property>, use corresponding class attributes on the component.</para>
+ <para>In order to redefine styles for all <emphasis role="bold">
+ <property><rich:dataDefinitionList></property>
+ </emphasis> components on a page using CSS, it's enough to create classes with the
+ same names and define necessary properties in them.</para>
+
+ <para>To change styles of particular <emphasis role="bold">
+ <property><rich:dataDefinitionList></property>
+ </emphasis> components, define your own style classes in the corresponding <emphasis
+ role="bold">
+ <property><rich:dataDefinitionList></property>
+ </emphasis>attributes.</para>
</section>
<section>
<title>Relevant Resources Links</title>
Modified: trunk/docs/userguide/en/src/main/docbook/included/dataGrid.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/dataGrid.xml 2007-10-09 15:57:50 UTC (rev 3301)
+++ trunk/docs/userguide/en/src/main/docbook/included/dataGrid.xml 2007-10-09 16:09:31 UTC (rev 3302)
@@ -121,10 +121,17 @@
- <para>To redefine an appearance of all <property>dataGrids</property> on a page, redefine the corresponding class in
- the CSS file used with the page.</para>
- <para>To redefine a style of a particular table, use <emphasis ><property>"component class"</property></emphasis> attributes which list is the same
- as the <property>dataTable</property> one and is known to you.</para>
+ <para>In order to redefine styles for all <emphasis role="bold">
+ <property><rich:dataGrid></property>
+ </emphasis> components on a page using CSS, it's enough to create classes with the
+ same names and define necessary properties in them.</para>
+
+ <para>To change styles of particular <emphasis role="bold">
+ <property><rich:dataGrid></property>
+ </emphasis> components, define your own style classes in the corresponding <emphasis
+ role="bold">
+ <property><rich:dataGrid></property>
+ </emphasis>attributes.</para>
</section>
<section>
<title>Relevant Resources Links</title>
Modified: trunk/docs/userguide/en/src/main/docbook/included/dataList.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/dataList.xml 2007-10-09 15:57:50 UTC (rev 3301)
+++ trunk/docs/userguide/en/src/main/docbook/included/dataList.xml 2007-10-09 16:09:31 UTC (rev 3302)
@@ -149,8 +149,17 @@
</table>
- <para>To redefine an appearance of all <property>dataLists</property> on a page, just redefine one of this classes.</para>
- <para>To redefine a style of a particular dataList, use corresponding class attributes on the component.</para>
+ <para>In order to redefine styles for all <emphasis role="bold">
+ <property><rich:dataList></property>
+ </emphasis> components on a page using CSS, it's enough to create classes with the
+ same names and define necessary properties in them.</para>
+
+ <para>To change styles of particular <emphasis role="bold">
+ <property><rich:dataList></property>
+ </emphasis> components, define your own style classes in the corresponding <emphasis
+ role="bold">
+ <property><rich:dataList></property>
+ </emphasis>attributes.</para>
</section>
<section>
<title>Relevant Resources Links</title>
Modified: trunk/docs/userguide/en/src/main/docbook/included/dataOrderedList.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/dataOrderedList.xml 2007-10-09 15:57:50 UTC (rev 3301)
+++ trunk/docs/userguide/en/src/main/docbook/included/dataOrderedList.xml 2007-10-09 16:09:31 UTC (rev 3302)
@@ -147,8 +147,17 @@
</tgroup>
</table>
- <para>To redefine an appearance of all <property>dataOrderedLists</property> on a page,just redefine one of this classes.</para>
- <para>To redefine a style of a particular dataOrderedList, use corresponding class attributes on the component.</para>
+ <para>In order to redefine styles for all <emphasis role="bold">
+ <property><rich:dataOrderedList></property>
+ </emphasis> components on a page using CSS, it's enough to create classes with the
+ same names and define necessary properties in them.</para>
+
+ <para>To change styles of particular <emphasis role="bold">
+ <property><rich:dataOrderedList></property>
+ </emphasis> components, define your own style classes in the corresponding <emphasis
+ role="bold">
+ <property><rich:dataOrderedList></property>
+ </emphasis>attributes.</para>
</section>
<section>
<title>Relevant Resources Links</title>
Modified: trunk/docs/userguide/en/src/main/docbook/included/dataTable.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/dataTable.xml 2007-10-09 15:57:50 UTC (rev 3301)
+++ trunk/docs/userguide/en/src/main/docbook/included/dataTable.xml 2007-10-09 16:09:31 UTC (rev 3302)
@@ -321,12 +321,17 @@
</tbody>
</tgroup>
</table>
- <para>To redefine an appearance of all <property>tables</property> on a page, redefine the
- corresponding class in the CSS file used with the page.</para>
- <para>To redefine a style of a particular page, use <emphasis>
- <property>"component class"</property>
- </emphasis> attributes which list is the same as the <property>dataTable</property> one and is
- known to you.</para>
+ <para>In order to redefine styles for all <emphasis role="bold">
+ <property><rich:dataTable></property>
+ </emphasis> components on a page using CSS, it's enough to create classes with the
+ same names and define necessary properties in them.</para>
+
+ <para>To change styles of particular <emphasis role="bold">
+ <property><rich:dataTable></property>
+ </emphasis> components, define your own style classes in the corresponding <emphasis
+ role="bold">
+ <property><rich:dataTable></property>
+ </emphasis>attributes.</para>
</section>
<section>
<title>Relevant Resources Links</title>
Modified: trunk/docs/userguide/en/src/main/docbook/included/datascroller.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/datascroller.xml 2007-10-09 15:57:50 UTC (rev 3301)
+++ trunk/docs/userguide/en/src/main/docbook/included/datascroller.xml 2007-10-09 16:09:31 UTC (rev 3302)
@@ -389,9 +389,17 @@
</tbody>
</tgroup>
</table>
- <para>To redefine an appearance of all scrollers on a page, just redefine one of these classes</para>
- <para>And to redefine the appearance of the particular scroller, one may use corresponding class
- attributes on the component.</para>
+ <para>In order to redefine styles for all <emphasis role="bold">
+ <property><rich:datascroller></property>
+ </emphasis> components on a page using CSS, it's enough to create classes with the
+ same names and define necessary properties in them.</para>
+
+ <para>To change styles of particular <emphasis role="bold">
+ <property><rich:datascroller></property>
+ </emphasis> components, define your own style classes in the corresponding <emphasis
+ role="bold">
+ <property><rich:datascroller></property>
+ </emphasis>attributes.</para>
</section>
<section>
<title>Relevant Resources Links</title>
Modified: trunk/docs/userguide/en/src/main/docbook/included/dropDownMenu.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/dropDownMenu.xml 2007-10-09 15:57:50 UTC (rev 3301)
+++ trunk/docs/userguide/en/src/main/docbook/included/dropDownMenu.xml 2007-10-09 16:09:31 UTC (rev 3302)
@@ -546,11 +546,17 @@
</tgroup>
</table>
- <para>In order to redefine the style for all drop-down menus on a page using CSS, it's enough to
- create classes with the same names and define the necessary properties in them.</para>
-
- <para>To change the style peculiarities of the particular drop-down menus define your own style
- classes in the corresponding dropDownMenu attributes.</para>
+ <para>In order to redefine styles for all <emphasis role="bold">
+ <property><rich:dropDownMenu></property>
+ </emphasis> components on a page using CSS, it's enough to create classes with the
+ same names and define necessary properties in them.</para>
+
+ <para>To change styles of particular <emphasis role="bold">
+ <property><rich:dropDownMenu></property>
+ </emphasis> components, define your own style classes in the corresponding <emphasis
+ role="bold">
+ <property><rich:dropDownMenu></property>
+ </emphasis>attributes.</para>
</section>
<section>
Modified: trunk/docs/userguide/en/src/main/docbook/included/gmap.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/gmap.xml 2007-10-09 15:57:50 UTC (rev 3301)
+++ trunk/docs/userguide/en/src/main/docbook/included/gmap.xml 2007-10-09 16:09:31 UTC (rev 3302)
@@ -163,9 +163,35 @@
</section>
<section>
<title>Definition of Custom Style Classes</title>
- <para>rich-gmap is a predefined style class for the map. It's possible to define some
- standard properties for all <property>maps</property> components on a page (padding, border,
- etc.) with the definition of the component.</para>
+ <table>
+ <title>Classes names that define a map appearance</title>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>Class name</entry>
+ <entry>Description</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>rich-gmap</entry>
+ <entry>Defines styles for a wrapper <div> element for a gmap</entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
+
+ <para>In order to redefine styles for all <emphasis role="bold">
+ <property><rich:gmap></property>
+ </emphasis> components on a page using CSS, it's enough to create class with the
+ same name and define necessary properties in it.</para>
+
+ <para>To change styles of particular <emphasis role="bold">
+ <property><rich:gmap></property>
+ </emphasis> components, define your own style class in the corresponding <emphasis
+ role="bold">
+ <property><rich:gmap></property>
+ </emphasis>attribute.</para>
</section>
<section>
<title>Relevant Resources Links</title>
Modified: trunk/docs/userguide/en/src/main/docbook/included/inputNumberSlider.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/inputNumberSlider.xml 2007-10-09 15:57:50 UTC (rev 3301)
+++ trunk/docs/userguide/en/src/main/docbook/included/inputNumberSlider.xml 2007-10-09 16:09:31 UTC (rev 3302)
@@ -341,14 +341,18 @@
</tbody>
</tgroup>
</table>
- <para>It's necessary only to define a class according to the corresponding name, so as
- an appearance of all <property>sliders</property> on a page is changed at once. </para>
- <para>To redefine appearance of particular <property>sliders</property>, it's possible
- to define your own CSS class with one of the names listed there. And then just define one of
- the components class attributes modifying component style properties.</para>
- <para>
- <emphasis role="bold">Example:</emphasis>
- </para>
+ <para>In order to redefine styles for all <emphasis role="bold">
+ <property><rich:inputNumberSlider></property>
+ </emphasis> components on a page using CSS, it's enough to create classes with the
+ same names and define necessary properties in them.</para>
+
+ <para>To change styles of particular <emphasis role="bold">
+ <property><rich:inputNumberSlider></property>
+ </emphasis> components, define your own style classes in the corresponding <emphasis
+ role="bold">
+ <property><rich:inputNumberSlider></property>
+ </emphasis>attributes.</para>
+
<para>CSS code piece used on a page:</para>
<para>
Modified: trunk/docs/userguide/en/src/main/docbook/included/inputNumberSpinner.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/inputNumberSpinner.xml 2007-10-09 15:57:50 UTC (rev 3301)
+++ trunk/docs/userguide/en/src/main/docbook/included/inputNumberSpinner.xml 2007-10-09 16:09:31 UTC (rev 3302)
@@ -236,16 +236,18 @@
</tbody>
</tgroup>
</table>
- <para>It's necessary only to define a class according to the corresponding name, so as
- an appearance of all <property>spinners</property> on a page is changed at once. </para>
- <para>To redefine appearance of the particular <property>spinner</property>, it's
- possible to define your own CSS class. Then it's necessary just to define it in one
- of the <emphasis>
- <property>"components class"</property>
- </emphasis> attributes modifying component style properties.</para>
- <para>
- <emphasis role="bold">Example:</emphasis>
- </para>
+ <para>In order to redefine styles for all <emphasis role="bold">
+ <property><rich:inputNumberSpinner></property>
+ </emphasis> components on a page using CSS, it's enough to create classes with the
+ same names and define necessary properties in them.</para>
+
+ <para>To change styles of particular <emphasis role="bold">
+ <property><rich:inputNumberSpinner></property>
+ </emphasis> components, define your own style classes in the corresponding <emphasis
+ role="bold">
+ <property><rich:inputNumberSpinner></property>
+ </emphasis>attributes.</para>
+
<para>CSS code piece used on a page:</para>
<para>
Modified: trunk/docs/userguide/en/src/main/docbook/included/menuGroup.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/menuGroup.xml 2007-10-09 15:57:50 UTC (rev 3301)
+++ trunk/docs/userguide/en/src/main/docbook/included/menuGroup.xml 2007-10-09 16:09:31 UTC (rev 3302)
@@ -310,11 +310,17 @@
</tbody>
</tgroup>
</table>
- <para> In order to redefine the style for all menu groups on a page using CSS, it's
- enough to create classes with the same names and define the necessary properties in
- them. </para>
- <para> To change style aspects of particular panel menu groups define your own style classes
- in the corresponding menuGroup attributes. </para>
+ <para>In order to redefine styles for all <emphasis role="bold">
+ <property><rich:menuGroup></property>
+ </emphasis> components on a page using CSS, it's enough to create classes with the
+ same names and define necessary properties in them.</para>
+
+ <para>To change styles of particular <emphasis role="bold">
+ <property><rich:menuGroup></property>
+ </emphasis> components, define your own style classes in the corresponding <emphasis
+ role="bold">
+ <property><rich:menuGroup></property>
+ </emphasis>attributes.</para>
</section>
<section>
<title>Relevant Resources Links</title>
Modified: trunk/docs/userguide/en/src/main/docbook/included/menuItem.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/menuItem.xml 2007-10-09 15:57:50 UTC (rev 3301)
+++ trunk/docs/userguide/en/src/main/docbook/included/menuItem.xml 2007-10-09 16:09:31 UTC (rev 3302)
@@ -346,11 +346,17 @@
</tbody>
</tgroup>
</table>
- <para> In order to redefine the style for all menu items on a page using CSS, it's
- enough to create classes with the same names and define the necessary properties in
- them. </para>
- <para> To change the style of particular menu items define your own style classes in the
- corresponding menuItem attributes. </para>
+ <para>In order to redefine styles for all <emphasis role="bold">
+ <property><rich:menuItem></property>
+ </emphasis> components on a page using CSS, it's enough to create classes with the
+ same names and define necessary properties in them.</para>
+
+ <para>To change styles of particular <emphasis role="bold">
+ <property><rich:menuItem></property>
+ </emphasis> components, define your own style classes in the corresponding <emphasis
+ role="bold">
+ <property><rich:menuItem></property>
+ </emphasis>attributes.</para>
</section>
<section>
<title>Relevant Resources Links</title>
Modified: trunk/docs/userguide/en/src/main/docbook/included/menuSeparator.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/menuSeparator.xml 2007-10-09 15:57:50 UTC (rev 3301)
+++ trunk/docs/userguide/en/src/main/docbook/included/menuSeparator.xml 2007-10-09 16:09:31 UTC (rev 3302)
@@ -133,12 +133,17 @@
</tbody>
</tgroup>
</table>
- <para>
- In order to redefine a style for all menu separators in a page using CSS, it's enough to create classes with the same names and define the necessary properties in them.
- </para>
- <para>
- To change the style peculiarities of the particular menu separators, define your own style classes in the corresponding menuSeparator attributes.
- </para>
+ <para>In order to redefine styles for all <emphasis role="bold">
+ <property><rich:separator></property>
+ </emphasis> components on a page using CSS, it's enough to create class with the
+ same name and define necessary properties in it.</para>
+
+ <para>To change styles of particular <emphasis role="bold">
+ <property><rich:separator></property>
+ </emphasis> components, define your own style class in the corresponding <emphasis
+ role="bold">
+ <property><rich:separator></property>
+ </emphasis>attributes.</para>
</section>
<section>
<title>Relevant Resources Links</title>
Modified: trunk/docs/userguide/en/src/main/docbook/included/message.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/message.xml 2007-10-09 15:57:50 UTC (rev 3301)
+++ trunk/docs/userguide/en/src/main/docbook/included/message.xml 2007-10-09 16:09:31 UTC (rev 3302)
@@ -183,15 +183,17 @@
</tgroup>
</table>
- <para>In order to redefine the style for <emphasis role="bold">
- <property><rich:message></property>
- </emphasis> components on a page using CSS, it's enough to create classes with the
+ <para>In order to redefine the style for all <emphasis role="bold">
+ <property><rich:message></property>
+ </emphasis> components on a page using CSS, it's enough to create classes with the
same names and define the necessary properties in them.</para>
-
+
<para>To change the style of particular <emphasis role="bold">
- <property><rich:message></property>
- </emphasis> components define your own style classes in the corresponding message attributes.
- </para>
+ <property><rich:message></property>
+ </emphasis> components define your own style classes in the corresponding <emphasis
+ role="bold">
+ <property><rich:message></property>
+ </emphasis>attributes.</para>
</section>
<section>
<title>Relevant Resources Links</title>
Modified: trunk/docs/userguide/en/src/main/docbook/included/messages.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/messages.xml 2007-10-09 15:57:50 UTC (rev 3301)
+++ trunk/docs/userguide/en/src/main/docbook/included/messages.xml 2007-10-09 16:09:31 UTC (rev 3302)
@@ -178,17 +178,17 @@
</tgroup>
</table>
- <para>In order to redefine the style for <emphasis role="bold">
- <property><rich:message></property>
- </emphasis> components on a page using CSS, it's enough to create classes with the
+ <para>In order to redefine the style for all <emphasis role="bold">
+ <property><rich:messages></property>
+ </emphasis> components on a page using CSS, it's enough to create classes with the
same names and define the necessary properties in them.</para>
-
+
<para>To change the style of particular <emphasis role="bold">
- <property><rich:messages></property>
- </emphasis> components define your own style classes in the corresponding <emphasis role="bold">
<property><rich:messages></property>
- </emphasis> attributes.
- </para>
+ </emphasis> components define your own style classes in the corresponding <emphasis
+ role="bold">
+ <property><rich:messages></property>
+ </emphasis>attributes.</para>
</section>
<section>
<title>Relevant Resources Links</title>
Modified: trunk/docs/userguide/en/src/main/docbook/included/modalPanel.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/modalPanel.xml 2007-10-09 15:57:50 UTC (rev 3301)
+++ trunk/docs/userguide/en/src/main/docbook/included/modalPanel.xml 2007-10-09 16:09:31 UTC (rev 3302)
@@ -505,6 +505,17 @@
</tbody>
</tgroup>
</table>
+ <para>In order to redefine the style for all <emphasis role="bold">
+ <property><rich:modalPanel></property>
+ </emphasis> components on a page using CSS, it's enough to create classes with the
+ same names and define the necessary properties in them.</para>
+
+ <para>To change the style of particular <emphasis role="bold">
+ <property><rich:modalPanel></property>
+ </emphasis> components define your own style classes in the corresponding <emphasis
+ role="bold">
+ <property><rich:modalPanel></property>
+ </emphasis>attributes.</para>
</section>
<section>
<title>Relevant Resources Links</title>
Modified: trunk/docs/userguide/en/src/main/docbook/included/panel.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/panel.xml 2007-10-09 15:57:50 UTC (rev 3301)
+++ trunk/docs/userguide/en/src/main/docbook/included/panel.xml 2007-10-09 16:09:31 UTC (rev 3302)
@@ -297,12 +297,18 @@
</tbody>
</tgroup>
</table>
- <para>To redefine an appearance of a particular panel, define your own CSS class. Then
- it's necessary just to define it in one of components class attributes modifying
- component style properties.</para>
- <para>
- <emphasis role="bold">Example:</emphasis>
- </para>
+ <para>In order to redefine the style for all <emphasis role="bold">
+ <property><rich:panel></property>
+ </emphasis> components on a page using CSS, it's enough to create classes with the
+ same names and define the necessary properties in them.</para>
+
+ <para>To change the style of particular <emphasis role="bold">
+ <property><rich:panel></property>
+ </emphasis> components define your own style classes in the corresponding <emphasis
+ role="bold">
+ <property><rich:panel></property>
+ </emphasis>attributes.</para>
+
<para>CSS code piece used on a page:</para>
<para>
Modified: trunk/docs/userguide/en/src/main/docbook/included/panelBar.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/panelBar.xml 2007-10-09 15:57:50 UTC (rev 3301)
+++ trunk/docs/userguide/en/src/main/docbook/included/panelBar.xml 2007-10-09 16:09:31 UTC (rev 3302)
@@ -138,9 +138,7 @@
</table>
<para>Other classes responsible for elements rendering are described for child panelBarItem
elements and could be found in the components chapters.</para>
- <para>To change style peculiarities of the particular <property>panelBar</property> and
- child elements, define your own style classes in the corresponding
- <property>panelBar</property> attributes.</para>
+
<table>
<title>Style component classes</title>
<tgroup cols="2">
@@ -166,6 +164,17 @@
</tbody>
</tgroup>
</table>
+ <para>In order to redefine the style for all <emphasis role="bold">
+ <property><rich:panelBar></property>
+ </emphasis> components on a page using CSS, it's enough to create classes with the
+ same names and define the necessary properties in them.</para>
+
+ <para>To change the style of particular <emphasis role="bold">
+ <property><rich:panelBar></property>
+ </emphasis> components define your own style classes in the corresponding <emphasis
+ role="bold">
+ <property><rich:panelBar></property>
+ </emphasis>attributes.</para>
<para>CSS code piece used on a page:</para>
<para>
Modified: trunk/docs/userguide/en/src/main/docbook/included/panelBarItem.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/panelBarItem.xml 2007-10-09 15:57:50 UTC (rev 3301)
+++ trunk/docs/userguide/en/src/main/docbook/included/panelBarItem.xml 2007-10-09 16:09:31 UTC (rev 3302)
@@ -189,10 +189,7 @@
</tbody>
</tgroup>
</table>
- <para>It's necessary to define a class according to the corresponding name, so as an
- appearance of all <property>panelBarItems</property> on a page is changed at once.</para>
- <para>To change style peculiarities of the particular <property>panelBarItems</property>, define
- your own style classes in the corresponding <property>panelBarItems</property> attributes.</para>
+
<table>
<title>Style component classes</title>
<tgroup cols="2">
@@ -214,9 +211,19 @@
</tbody>
</tgroup>
</table>
- <para>
- <emphasis role="bold">Example:</emphasis>
- </para>
+
+ <para>In order to redefine the style for all <emphasis role="bold">
+ <property><rich:panelBarItem></property>
+ </emphasis> components on a page using CSS, it's enough to create classes with the
+ same names and define the necessary properties in them.</para>
+
+ <para>To change the style of particular <emphasis role="bold">
+ <property><rich:panelBarItem></property>
+ </emphasis> components define your own style classes in the corresponding <emphasis
+ role="bold">
+ <property><rich:panelBarItem></property>
+ </emphasis>attributes.</para>
+
<para>CSS code piece used on a page:</para>
<para>
Modified: trunk/docs/userguide/en/src/main/docbook/included/panelMenuGroup.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/panelMenuGroup.xml 2007-10-09 15:57:50 UTC (rev 3301)
+++ trunk/docs/userguide/en/src/main/docbook/included/panelMenuGroup.xml 2007-10-09 16:09:31 UTC (rev 3302)
@@ -436,12 +436,17 @@
<listitem>rich-pmenu-group-self-label</listitem>
</itemizedlist>
- <para>In order to redefine the style for all panel menu groups on a page using CSS,
- it's enough to create classes with the same names and define the necessary properties
- in them.</para>
-
- <para>To change the style of particular panel menu groups define your own style
- classes in the corresponding panelMenuGroup attributes. </para>
+ <para>In order to redefine the style for all <emphasis role="bold">
+ <property><rich:panelMenuGroup></property>
+ </emphasis> components on a page using CSS, it's enough to create classes with the
+ same names and define the necessary properties in them.</para>
+
+ <para>To change the style of particular <emphasis role="bold">
+ <property><rich:panelMenuGroup></property>
+ </emphasis> components define your own style classes in the corresponding <emphasis
+ role="bold">
+ <property><rich:panelMenuGroup></property>
+ </emphasis>attributes.</para>
</section>
</section>
Modified: trunk/docs/userguide/en/src/main/docbook/included/panelMenuItem.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/panelMenuItem.xml 2007-10-09 15:57:50 UTC (rev 3301)
+++ trunk/docs/userguide/en/src/main/docbook/included/panelMenuItem.xml 2007-10-09 16:09:31 UTC (rev 3302)
@@ -387,11 +387,17 @@
<listitem>rich-pmenu-top-item-label</listitem>
</itemizedlist>
- <para>In order to redefine the style for all panel menu items on a page using CSS, it's
- enough to create classes with the same names and define the necessary properties in them.</para>
-
- <para>To change the style of particular panel menu items define your own style
- classes in the corresponding panelMenuItem attributes.</para>
+ <para>In order to redefine the style for all <emphasis role="bold">
+ <property><rich:panelMenuItem></property>
+ </emphasis> components on a page using CSS, it's enough to create classes with the
+ same names and define the necessary properties in them.</para>
+
+ <para>To change the style of particular <emphasis role="bold">
+ <property><rich:panelMenuItem></property>
+ </emphasis> components define your own style classes in the corresponding <emphasis
+ role="bold">
+ <property><rich:panelMenuItem></property>
+ </emphasis>attributes.</para>
</section>
</section>
Modified: trunk/docs/userguide/en/src/main/docbook/included/simpleTogglePanel.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/simpleTogglePanel.xml 2007-10-09 15:57:50 UTC (rev 3301)
+++ trunk/docs/userguide/en/src/main/docbook/included/simpleTogglePanel.xml 2007-10-09 16:09:31 UTC (rev 3302)
@@ -259,13 +259,18 @@
</tbody>
</tgroup>
</table>
- <para>To redefine a style of all simple toggle panels on a page with CSS, create classes with
- the corresponding names and define the necessary properties in them.</para>
- <para>To change style peculiarities of a particular <property>simpleTogglePanels</property>,
- define your own style classes in the corresponding <property>simpleTogglePanels</property>
- attributes.</para>
- <para>It's necessary to define a class according to the corresponding name, so as an
- appearance of all <property>simpleTogglePanels</property> on a page is changed at once.</para>
+ <para>In order to redefine the style for all <emphasis role="bold">
+ <property><rich:simpleTogglePanel></property>
+ </emphasis> components on a page using CSS, it's enough to create classes with the
+ same names and define the necessary properties in them.</para>
+
+ <para>To change the style of particular <emphasis role="bold">
+ <property><rich:simpleTogglePanel></property>
+ </emphasis> components define your own style classes in the corresponding <emphasis
+ role="bold">
+ <property><rich:simpleTogglePanel></property>
+ </emphasis>attributes.</para>
+
<table>
<title>Style component classes</title>
<tgroup cols="2">
Modified: trunk/docs/userguide/en/src/main/docbook/included/suggestionBox.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/suggestionBox.xml 2007-10-09 15:57:50 UTC (rev 3301)
+++ trunk/docs/userguide/en/src/main/docbook/included/suggestionBox.xml 2007-10-09 16:09:31 UTC (rev 3302)
@@ -460,10 +460,17 @@
</tgroup>
</table>
- <para>In order to redefine the style for all saggestionbox components on a page using CSS, it's enough to
- create classes with the same names and define the necessary properties in them.</para>
+ <para>In order to redefine the style for all <emphasis role="bold">
+ <property><rich:suggestionBox></property>
+ </emphasis> components on a page using CSS, it's enough to create classes with the
+ same names and define the necessary properties in them.</para>
- <para>To change the style of particular suggestionbox components define your own style classes in the corresponding suggestionbox attributes. </para>
+ <para>To change the style of particular <emphasis role="bold">
+ <property><rich:suggestionBox></property>
+ </emphasis> components define your own style classes in the corresponding <emphasis
+ role="bold">
+ <property><rich:suggestionBox></property>
+ </emphasis>attributes.</para>
</section>
Modified: trunk/docs/userguide/en/src/main/docbook/included/tab.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/tab.xml 2007-10-09 15:57:50 UTC (rev 3301)
+++ trunk/docs/userguide/en/src/main/docbook/included/tab.xml 2007-10-09 16:09:31 UTC (rev 3302)
@@ -175,10 +175,16 @@
<section>
<title>Definition of Custom Style Classes</title>
- <para>The style peculiarities of a particular <property>Tab</property> variant could be changed with specification of your
- own StyleClasses attributes.</para>
- <para>It's necessary to define a class according to the corresponding name, so as an
-
-appearance of all slider on a page is changed at once.</para>
+ <para>In order to redefine the style for all <emphasis role="bold">
+ <property><rich:tab></property>
+ </emphasis> components on a page using CSS, it's enough to create classes with the
+ same names and define the necessary properties in them.</para>
+
+ <para>To change the style of particular <emphasis role="bold">
+ <property><rich:tab></property>
+ </emphasis> components define your own style classes in the corresponding <emphasis
+ role="bold">
+ <property><rich:tab></property>
+ </emphasis>attributes.</para>
</section>
</section>
\ No newline at end of file
Modified: trunk/docs/userguide/en/src/main/docbook/included/tabPanel.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/tabPanel.xml 2007-10-09 15:57:50 UTC (rev 3301)
+++ trunk/docs/userguide/en/src/main/docbook/included/tabPanel.xml 2007-10-09 16:09:31 UTC (rev 3302)
@@ -241,9 +241,17 @@
</tbody>
</tgroup>
</table>
- <para>Also it is possible to change look-and-feel settings of individual tab panel component by
- writing your own style classes in corresponding class attributes of
- <property>tabPanel</property>.</para>
+ <para>In order to redefine the style for all <emphasis role="bold">
+ <property><rich:tabPanel></property>
+ </emphasis> components on a page using CSS, it's enough to create classes with the
+ same names and define the necessary properties in them.</para>
+
+ <para>To change the style of particular <emphasis role="bold">
+ <property><rich:tabPanel></property>
+ </emphasis> components define your own style classes in the corresponding <emphasis
+ role="bold">
+ <property><rich:tabPanel></property>
+ </emphasis>attributes.</para>
</section>
<section>
Modified: trunk/docs/userguide/en/src/main/docbook/included/toolBar.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/toolBar.xml 2007-10-09 15:57:50 UTC (rev 3301)
+++ trunk/docs/userguide/en/src/main/docbook/included/toolBar.xml 2007-10-09 16:09:31 UTC (rev 3302)
@@ -142,8 +142,18 @@
<title>Definition of Custom Style Classes</title>
<para>On generating, the component substitutes the default class rich-toolbar-exterior into <emphasis>
<property>style class</property>
- </emphasis> of a generated component, i.e. to redefine at once all
- <property>toolBars</property> appearance on a page, redefine this class in your CSS.</para>
+ </emphasis> of a generated component.</para>
+ <para>In order to redefine the style for all <emphasis role="bold">
+ <property><rich:toolBar></property>
+ </emphasis> components on a page using CSS, it's enough to create class with the
+ same names and define the necessary properties in them.</para>
+
+ <para>To change the style of particular <emphasis role="bold">
+ <property><rich:toolBar></property>
+ </emphasis> components define your own style classes in the corresponding <emphasis
+ role="bold">
+ <property><rich:toolBar></property>
+ </emphasis>attributes.</para>
<para>The component also has the standard attributes <emphasis>
<property>"style"</property>
</emphasis> and <emphasis>
Modified: trunk/docs/userguide/en/src/main/docbook/included/toolBarGroup.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/toolBarGroup.xml 2007-10-09 15:57:50 UTC (rev 3301)
+++ trunk/docs/userguide/en/src/main/docbook/included/toolBarGroup.xml 2007-10-09 16:09:31 UTC (rev 3302)
@@ -165,15 +165,23 @@
<title>Definition of Custom Style Classes</title>
<para>On generating, the component substitutes the default class rich-toolbar-interior into
<emphasis
-><property>style class</property></emphasis> of a generated component, i.e.
-to redefine at once all <property>toolBarGroups</property> appearance on a page, redefine this class in your CSS.</para>
- <para>The component also has the standard attribute "style" and <emphasis
+><property>style class</property></emphasis> of a generated component.</para>
+ <para>In order to redefine the style for all <emphasis role="bold">
+ <property><rich:toolBarGroup></property>
+ </emphasis> components on a page using CSS, it's enough to create class with the
+ same names and define the necessary properties in them.</para>
+
+ <para>To change the style of particular <emphasis role="bold">
+ <property><rich:toolBarGroup></property>
+ </emphasis> components define your own style classes in the corresponding <emphasis
+ role="bold">
+ <property><rich:toolBarGroup></property>
+ </emphasis>attributes.</para>
+ <para>The component also has the standard attribute <emphasis >"style"</emphasis> and <emphasis
><property>"style class"</property></emphasis> that could redefine an
appearance of particular component variants.
</para>
- <para>It's necessary to define a class according to the corresponding name, so as an
-
-appearance of all <property>toolBarGroups</property> on a page is changed at once.</para>
+
</section>
</section>
\ No newline at end of file
Modified: trunk/docs/userguide/en/src/main/docbook/included/tooltip.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/tooltip.xml 2007-10-09 15:57:50 UTC (rev 3301)
+++ trunk/docs/userguide/en/src/main/docbook/included/tooltip.xml 2007-10-09 16:09:31 UTC (rev 3302)
@@ -239,12 +239,20 @@
<section>
<title>Definition of Custom Style Classes</title>
<para>
- <property>Tooltip</property> provides one class "rich-tool-tip" which applies to a wrapper element <emphasis><property>"span"</property></emphasis> or "div"
- dependently to <property>tooltip</property> layout. In order to redefine style for all <property>tooltips</property>
- on a page with using CSS it's enough to create classes with this name and define in it necessary properties.
- To change style peculiarities of a particular <property>tooltips</property>, define your own style classes in the corresponding
- <property>tooltips</property> attributes.
- </para>
+ The<emphasis role="bold"><property><rich:tooltip></property></emphasis> provides one class "rich-tool-tip" which applies to a wrapper element <emphasis><property>"span"</property></emphasis> or <emphasis><property>"div"</property></emphasis>
+ dependently to <emphasis role="bold"><property><rich:tooltip></property></emphasis> layout.
+ </para>
+ <para>In order to redefine the style for all <emphasis role="bold">
+ <property><rich:tooltip></property>
+ </emphasis> components on a page using CSS, it's enough to create class with the
+ same names and define the necessary properties in them.</para>
+
+ <para>To change the style of particular <emphasis role="bold">
+ <property><rich:tooltip></property>
+ </emphasis> components define your own style classes in the corresponding <emphasis
+ role="bold">
+ <property><rich:tooltip></property>
+ </emphasis>attributes.</para>
</section>
<section>
<title>Relevant Resources Links</title>
Modified: trunk/docs/userguide/en/src/main/docbook/included/tree.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/tree.xml 2007-10-09 15:57:50 UTC (rev 3301)
+++ trunk/docs/userguide/en/src/main/docbook/included/tree.xml 2007-10-09 16:09:31 UTC (rev 3302)
@@ -290,11 +290,24 @@
</section>
<section>
<title>Definition of Custom Style Classes</title>
- <para>The <property>tree</property> also has only one predefined Style Class responsible for
- displaying a wrapper element of the <property>tree</property> - <emphasis role="bold">
+ <para>The <emphasis
+ role="bold">
+ <property><rich:tree></property>
+ </emphasis> also has only one predefined Style Class responsible for
+ displaying a wrapper element of the <emphasis role="bold">
<property><rich:tree></property>
- </emphasis> redefining of which will change look and feel of all <property>trees</property> on
- the page.</para>
+ </emphasis>component.</para>
+ <para>In order to redefine the style for all <emphasis role="bold">
+ <property><rich:tree></property>
+ </emphasis> components on a page using CSS, it's enough to create class with the
+ same names and define the necessary properties in them.</para>
+
+ <para>To change the style of particular <emphasis role="bold">
+ <property><rich:tree></property>
+ </emphasis> components define your own style classes in the corresponding <emphasis
+ role="bold">
+ <property><rich:tree></property>
+ </emphasis>attributes.</para>
</section>
<section>
<title>Relevant Resources Links</title>
Modified: trunk/docs/userguide/en/src/main/docbook/included/treeNode.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/treeNode.xml 2007-10-09 15:57:50 UTC (rev 3301)
+++ trunk/docs/userguide/en/src/main/docbook/included/treeNode.xml 2007-10-09 16:09:31 UTC (rev 3302)
@@ -253,17 +253,48 @@
</section>
<section>
<title>Definition of Custom Style Classes</title>
- <para>The following classes are applied to a node element in three states: default, marked,
- mouseovered:</para>
- <itemizedlist>
- <listitem>rich-tree-node</listitem>
- <listitem>rich-tree-node-selected</listitem>
- <listitem>rich-tree-node-highlighted</listitem>
- </itemizedlist>
- <para>Hence, in order to change an appearance of all <property>treeNodesAdaptor</property> on a page,
- declare and customize the above-mentioned classes in your CSS.</para>
- <para>It is also possible to change look and feel of specific <property>treeNodesAdaptor</property>
- with the help of defining for them <emphasis>
+ <para>On the screenshot, there are classes that are applied to a node element in three states: default, marked,
+ mouseovered:</para>
+
+ <table>
+ <title>Classes names that define a node element</title>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>Class name</entry>
+ <entry>Description</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>rich-tree-node</entry>
+ <entry> </entry>
+ </row>
+ <row>
+ <entry>rich-tree-node-selected</entry>
+ <entry> </entry>
+ </row>
+ <row>
+ <entry>rich-tree-node-highlighted</entry>
+ <entry> </entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
+
+ <para>In order to redefine the style for all <emphasis role="bold">
+ <property><rich:treeNode></property>
+ </emphasis> components on a page using CSS, it's enough to create classes with the
+ same names and define the necessary properties in them.</para>
+
+ <para>To change the style of particular <emphasis role="bold">
+ <property><rich:treeNode></property>
+ </emphasis> components define your own style classes in the corresponding <emphasis
+ role="bold">
+ <property><rich:treeNode></property>
+ </emphasis>attributes.</para>
+ <para>It is also possible to change look and feel of specific <emphasis role="bold"><property><rich:treeNode></property>
+ </emphasis> with the help of defining for them <emphasis>
<property>"selectedClass"</property>
</emphasis> and <emphasis>
<property>"highlightedClass"</property>
Modified: trunk/docs/userguide/en/src/main/docbook/included/virtualEarth.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/virtualEarth.xml 2007-10-09 15:57:50 UTC (rev 3301)
+++ trunk/docs/userguide/en/src/main/docbook/included/virtualEarth.xml 2007-10-09 16:09:31 UTC (rev 3302)
@@ -138,9 +138,35 @@
</section>
<section>
<title>Definition of Custom Style Classes</title>
- <para>rich-virtualEarth map is a predefined style class for the map. It's possible to define some
- standard properties for all <property>maps</property> components on a page (padding, border,
- etc.) with the definition of the component.</para>
+ <table>
+ <title>Classes names that define a virtualEarth appearance</title>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>Class name</entry>
+ <entry>Description</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>Rich-virtualEarth</entry>
+ <entry>Defines styles for a wrapper <div> element for a virtualEarth</entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
+
+ <para>In order to redefine the style for all <emphasis role="bold">
+ <property><rich:virtualEarth></property>
+ </emphasis> components on a page using CSS, it's enough to create class with the
+ same name and define the necessary properties in it.</para>
+
+ <para>To change the style of particular <emphasis role="bold">
+ <property><rich:virtualEarth></property>
+ </emphasis> components define your own style classes in the corresponding <emphasis
+ role="bold">
+ <property><rich:virtualEarth></property>
+ </emphasis>attribute.</para>
</section>
<section>
<title>Relevant Resources Links</title>
17 years, 2 months
JBoss Rich Faces SVN: r3301 - in trunk/ui/tree/src/main: resources/org/richfaces/renderkit/html/css and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: pyaschenko
Date: 2007-10-09 11:57:50 -0400 (Tue, 09 Oct 2007)
New Revision: 3301
Modified:
trunk/ui/tree/src/main/java/org/richfaces/renderkit/NodeRendererBase.java
trunk/ui/tree/src/main/java/org/richfaces/renderkit/TreeRendererBase.java
trunk/ui/tree/src/main/resources/org/richfaces/renderkit/html/css/tree.xcss
Log:
RF-881
Modified: trunk/ui/tree/src/main/java/org/richfaces/renderkit/NodeRendererBase.java
===================================================================
--- trunk/ui/tree/src/main/java/org/richfaces/renderkit/NodeRendererBase.java 2007-10-09 13:44:33 UTC (rev 3300)
+++ trunk/ui/tree/src/main/java/org/richfaces/renderkit/NodeRendererBase.java 2007-10-09 15:57:50 UTC (rev 3301)
@@ -117,12 +117,12 @@
UITree tree = treeNode.getUITree();
if (tree.isShowConnectingLines()) {
- if (((Boolean) (treeNode.getAttributes().get("isLastElement")))
- .booleanValue()) {
- variables.setVariable("line", "dr-tree-h-ic-line-last");
- } else {
+ //if (((Boolean) (treeNode.getAttributes().get("isLastElement")))
+ // .booleanValue()) {
+ // variables.setVariable("line", "dr-tree-h-ic-line-last");
+ //} else {
variables.setVariable("line", "dr-tree-h-ic-line-node");
- }
+ //}
if (tree.isExpanded()) {
variables
.setVariable("lineFirst", "dr-tree-h-ic-line-exp");
Modified: trunk/ui/tree/src/main/java/org/richfaces/renderkit/TreeRendererBase.java
===================================================================
--- trunk/ui/tree/src/main/java/org/richfaces/renderkit/TreeRendererBase.java 2007-10-09 13:44:33 UTC (rev 3300)
+++ trunk/ui/tree/src/main/java/org/richfaces/renderkit/TreeRendererBase.java 2007-10-09 15:57:50 UTC (rev 3301)
@@ -256,7 +256,7 @@
nodeFacet.getAttributes().put("isLastElement", new Boolean(isLastElement));
nodeFacet.getAttributes().put("isAjaxUpdateRoot", new Boolean(floatingKey != null && floatingKey.equals(rowKey)));
ResponseWriter writer = context.getResponseWriter();
- if (isLastElement) {
+ if (isLastElement && this.navigator.showLines) {
writer.startElement("p", tree);
writer.writeAttribute("class", "dr-tree-last-node-marker", null);
writer.endElement("p");
Modified: trunk/ui/tree/src/main/resources/org/richfaces/renderkit/html/css/tree.xcss
===================================================================
--- trunk/ui/tree/src/main/resources/org/richfaces/renderkit/html/css/tree.xcss 2007-10-09 13:44:33 UTC (rev 3300)
+++ trunk/ui/tree/src/main/resources/org/richfaces/renderkit/html/css/tree.xcss 2007-10-09 15:57:50 UTC (rev 3301)
@@ -121,7 +121,7 @@
<f:resource f:key="org.richfaces.renderkit.html.images.TreeLineLastImage"/>
</u:style>
</u:selector>
-<u:selector name="p.dr-tree-last-node-marker+* .rich-tree-node-handleicon">
+<u:selector name="p.dr-tree-last-node-marker+* .dr-tree-h-ic-line-node">
<u:style name="background-image">
<f:resource f:key="org.richfaces.renderkit.html.images.TreeLineLastImage"/>
</u:style>
17 years, 2 months
JBoss Rich Faces SVN: r3300 - trunk/ui/panelmenu/design/funcspec.
by richfaces-svn-commits@lists.jboss.org
Author: ilya_shaikovsky
Date: 2007-10-09 09:44:33 -0400 (Tue, 09 Oct 2007)
New Revision: 3300
Modified:
trunk/ui/panelmenu/design/funcspec/FuncSpec - RF Panel Menu Component.doc
Log:
Modified: trunk/ui/panelmenu/design/funcspec/FuncSpec - RF Panel Menu Component.doc
===================================================================
(Binary files differ)
17 years, 2 months
JBoss Rich Faces SVN: r3299 - trunk/ui/calendar/design/funcspec.
by richfaces-svn-commits@lists.jboss.org
Author: ilya_shaikovsky
Date: 2007-10-09 09:44:16 -0400 (Tue, 09 Oct 2007)
New Revision: 3299
Modified:
trunk/ui/calendar/design/funcspec/FuncSpec - RF Calendar Component.doc
Log:
Modified: trunk/ui/calendar/design/funcspec/FuncSpec - RF Calendar Component.doc
===================================================================
(Binary files differ)
17 years, 2 months
JBoss Rich Faces SVN: r3298 - trunk/ui/tree/src/main/resources/org/richfaces/renderkit/html/css.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2007-10-08 15:42:16 -0400 (Mon, 08 Oct 2007)
New Revision: 3298
Modified:
trunk/ui/tree/src/main/resources/org/richfaces/renderkit/html/css/tree.xcss
Log:
http://jira.jboss.com/jira/browse/RF-881 fix reverted
Modified: trunk/ui/tree/src/main/resources/org/richfaces/renderkit/html/css/tree.xcss
===================================================================
--- trunk/ui/tree/src/main/resources/org/richfaces/renderkit/html/css/tree.xcss 2007-10-08 16:44:52 UTC (rev 3297)
+++ trunk/ui/tree/src/main/resources/org/richfaces/renderkit/html/css/tree.xcss 2007-10-08 19:42:16 UTC (rev 3298)
@@ -121,7 +121,7 @@
<f:resource f:key="org.richfaces.renderkit.html.images.TreeLineLastImage"/>
</u:style>
</u:selector>
-<u:selector name="p.dr-tree-last-node-marker+*.rich-tree-node-handleicon">
+<u:selector name="p.dr-tree-last-node-marker+* .rich-tree-node-handleicon">
<u:style name="background-image">
<f:resource f:key="org.richfaces.renderkit.html.images.TreeLineLastImage"/>
</u:style>
17 years, 2 months
JBoss Rich Faces SVN: r3297 - branches/3.1.x/ui/menu-components/src/main/java/org/richfaces/renderkit/html.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2007-10-08 12:44:52 -0400 (Mon, 08 Oct 2007)
New Revision: 3297
Modified:
branches/3.1.x/ui/menu-components/src/main/java/org/richfaces/renderkit/html/MenuItemRendererBase.java
Log:
add queue AjaxEvent in the doDecode method (RF-1029)
Modified: branches/3.1.x/ui/menu-components/src/main/java/org/richfaces/renderkit/html/MenuItemRendererBase.java
===================================================================
--- branches/3.1.x/ui/menu-components/src/main/java/org/richfaces/renderkit/html/MenuItemRendererBase.java 2007-10-08 16:34:51 UTC (rev 3296)
+++ branches/3.1.x/ui/menu-components/src/main/java/org/richfaces/renderkit/html/MenuItemRendererBase.java 2007-10-08 16:44:52 UTC (rev 3297)
@@ -35,6 +35,7 @@
import javax.faces.event.PhaseId;
import org.ajax4jsf.Messages;
+import org.ajax4jsf.event.AjaxEvent;
import org.ajax4jsf.javascript.ScriptUtils;
import org.ajax4jsf.renderkit.AjaxRendererUtils;
import org.ajax4jsf.renderkit.ComponentVariables;
@@ -75,8 +76,14 @@
if (!MenuComponent.MODE_NONE.equalsIgnoreCase(mode)) {
ActionEvent actionEvent = new ActionEvent(menuItem);
+
+ if(MenuComponent.MODE_AJAX.equalsIgnoreCase(mode)){
+ new AjaxEvent(menuItem).queue();
+ }
+
if (menuItem.isImmediate()) {
- actionEvent.setPhaseId(PhaseId.APPLY_REQUEST_VALUES);
+ actionEvent.setPhaseId(PhaseId.APPLY_REQUEST_VALUES);
+
} else {
actionEvent.setPhaseId(PhaseId.INVOKE_APPLICATION);
}
17 years, 2 months
JBoss Rich Faces SVN: r3296 - trunk/ui/menu-components/src/main/java/org/richfaces/renderkit/html.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2007-10-08 12:34:51 -0400 (Mon, 08 Oct 2007)
New Revision: 3296
Modified:
trunk/ui/menu-components/src/main/java/org/richfaces/renderkit/html/MenuItemRendererBase.java
Log:
add queue AjaxEvent in the doDecode method (RF-1029)
Modified: trunk/ui/menu-components/src/main/java/org/richfaces/renderkit/html/MenuItemRendererBase.java
===================================================================
--- trunk/ui/menu-components/src/main/java/org/richfaces/renderkit/html/MenuItemRendererBase.java 2007-10-08 15:17:03 UTC (rev 3295)
+++ trunk/ui/menu-components/src/main/java/org/richfaces/renderkit/html/MenuItemRendererBase.java 2007-10-08 16:34:51 UTC (rev 3296)
@@ -35,6 +35,7 @@
import javax.faces.event.PhaseId;
import org.ajax4jsf.Messages;
+import org.ajax4jsf.event.AjaxEvent;
import org.ajax4jsf.javascript.ScriptUtils;
import org.ajax4jsf.renderkit.AjaxRendererUtils;
import org.ajax4jsf.renderkit.ComponentVariables;
@@ -75,8 +76,14 @@
if (!MenuComponent.MODE_NONE.equalsIgnoreCase(mode)) {
ActionEvent actionEvent = new ActionEvent(menuItem);
+
+ if(MenuComponent.MODE_AJAX.equalsIgnoreCase(mode)){
+ new AjaxEvent(menuItem).queue();
+ }
+
if (menuItem.isImmediate()) {
- actionEvent.setPhaseId(PhaseId.APPLY_REQUEST_VALUES);
+ actionEvent.setPhaseId(PhaseId.APPLY_REQUEST_VALUES);
+
} else {
actionEvent.setPhaseId(PhaseId.INVOKE_APPLICATION);
}
17 years, 2 months
JBoss Rich Faces SVN: r3295 - branches/3.1.x/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: vkorluzhenko
Date: 2007-10-08 11:17:03 -0400 (Mon, 08 Oct 2007)
New Revision: 3295
Modified:
branches/3.1.x/docs/userguide/en/src/main/docbook/included/calendar.xml
Log:
http://jira.jboss.com/jira/browse/RF-968 - improved description
Modified: branches/3.1.x/docs/userguide/en/src/main/docbook/included/calendar.xml
===================================================================
--- branches/3.1.x/docs/userguide/en/src/main/docbook/included/calendar.xml 2007-10-08 15:16:04 UTC (rev 3294)
+++ branches/3.1.x/docs/userguide/en/src/main/docbook/included/calendar.xml 2007-10-08 15:17:03 UTC (rev 3295)
@@ -93,17 +93,50 @@
<mediaobject>
<imageobject>
- <imagedata fileref="images/calendar.png" />
+ <imagedata fileref="images/calendar.png"/>
</imageobject>
</mediaobject>
</figure>
+ <para>Usage <emphasis>
+ <property>"currentDate"</property>
+ </emphasis> attribute isn't available in the popup
+ mode.</para>
+ <para>The <emphasis role="bold">
+ <property><rich:calendar></property>
+ </emphasis> component ables to render pages of days in two modes. Switching mode
+ could be defined with the <emphasis>
+ <property>"mode"</property>
+ </emphasis> attribute with two possible parameters: Ajax and Client. Default value is set to
+ "Client".</para>
+ <itemizedlist>
+ <listitem>
+ <para>Ajax</para>
+ </listitem>
+ </itemizedlist>
+
+ <para>Calendar requests portions of data from Data Model for a page rendering. If
+ <emphasis>
+ <property>"dataModel"</property>
+ </emphasis> attribute has <property>"null"</property> value, data requests are
+ not sent. In this case the "Ajax" mode is equal to the
+ "Client" mode. </para>
+
+ <itemizedlist>
+ <listitem>
+ <para>Client</para>
+ </listitem>
+ </itemizedlist>
+
+ <para>Calendar loads an initial portion of data in a specified range and use this data to
+ render months. Additional data requests are not sent.</para>
+
<para>There are three button-related attributes:</para>
<itemizedlist>
<listitem>
<para><emphasis>
<property>"buttonLabel"</property>
- </emphasis> defines a label for the button. If the attribute is set "buttonIcon" and "buttonIconDisabled" are ignored
- </para>
+ </emphasis> defines a label for the button. If the attribute is set "buttonIcon" and
+ "buttonIconDisabled" are ignored </para>
</listitem>
</itemizedlist>
<itemizedlist>
@@ -225,8 +258,8 @@
<para>The <emphasis role="bold">
<property><rich:calendar></property>
- </emphasis> component provides the possibility to use a special data model to define data for
- element rendering. Data model includes two major interfaces: </para>
+ </emphasis> component provides the possibility to use a special Data Model to define data for
+ element rendering. Data Model includes two major interfaces: </para>
<itemizedlist>
<listitem>CalendarDataModel</listitem>
@@ -402,389 +435,389 @@
<section>
<title>Look-and-Feel Customization</title>
-
+
<para>For skinnability implementation, the components use a <emphasis>
- <property>style class redefinition method.</property>
- </emphasis>
- Default style classes are mapped on <emphasis>
+ <property>style class redefinition method.</property>
+ </emphasis> Default style classes are mapped on <emphasis>
<property>skin parameters.</property>
</emphasis></para>
-
+
<para>There are two ways to redefine the appearance of all <emphasis role="bold">
- <property><rich:calendar></property>
- </emphasis> components at once:</para>
-
+ <property><rich:calendar></property>
+ </emphasis> components at once:</para>
+
<itemizedlist>
<listitem>
<para>Redefine the corresponding skin parameters</para>
</listitem>
-
+
<listitem>
<para>Add to your style sheets <emphasis>
- <property>style classes</property>
- </emphasis> used by a <emphasis role="bold">
- <property><rich:calendar></property>
- </emphasis> component</para>
+ <property>style classes</property>
+ </emphasis> used by a <emphasis role="bold">
+ <property><rich:calendar></property>
+ </emphasis> component</para>
</listitem>
</itemizedlist>
</section>
-
+
<section>
<title>Skin Parameters Redefinition</title>
-
+
<table>
<title>Skin parameters redefinition for a popup element</title>
-
+
<tgroup cols="2">
<thead>
<row>
<entry>Skin parameters</entry>
-
+
<entry>CSS properties</entry>
</row>
</thead>
-
+
<tbody>
<row>
<entry>panelBorderColor</entry>
-
+
<entry>border-color</entry>
</row>
-
+
</tbody>
</tgroup>
</table>
-
+
<table>
<title>Skin parameters redefinition for headers (header, optional header)</title>
-
+
<tgroup cols="2">
<thead>
<row>
<entry>Skin parameters</entry>
-
+
<entry>CSS properties</entry>
</row>
</thead>
-
+
<tbody>
<row>
<entry>panelBorderColor</entry>
-
+
<entry>border-bottom-color</entry>
</row>
-
+
<row>
<entry>additionalBackgroundColor</entry>
-
+
<entry>background-color</entry>
</row>
-
+
<row>
<entry>generalSizeFont</entry>
-
+
<entry>font-size</entry>
</row>
-
+
<row>
<entry>generalFamilyFont</entry>
-
+
<entry>font-family</entry>
</row>
-
+
</tbody>
</tgroup>
</table>
-
+
<table>
- <title>Skin parameters redefinition for footers (footer, optional footer) and names of working days</title>
-
+ <title>Skin parameters redefinition for footers (footer, optional footer) and names of working
+ days</title>
+
<tgroup cols="2">
<thead>
<row>
<entry>Skin parameters</entry>
-
+
<entry>CSS properties</entry>
</row>
</thead>
-
+
<tbody>
<row>
<entry>panelBorderColor</entry>
-
+
<entry>border-top-color</entry>
</row>
-
+
<row>
<entry>panelBorderColor</entry>
-
+
<entry>border-right-color</entry>
</row>
-
+
<row>
<entry>additionalBackgroundColor</entry>
-
+
<entry>background</entry>
</row>
-
+
<row>
<entry>generalSizeFont</entry>
-
+
<entry>font-size</entry>
</row>
-
+
<row>
<entry>generalFamilyFont</entry>
-
+
<entry>font-family</entry>
</row>
-
+
</tbody>
</tgroup>
</table>
-
+
<table>
<title>Skin parameters redefinition for weeks numbers</title>
-
+
<tgroup cols="2">
<thead>
<row>
<entry>Skin parameters</entry>
-
+
<entry>CSS properties</entry>
</row>
</thead>
-
+
<tbody>
<row>
<entry>panelBorderColor</entry>
-
+
<entry>border-bottom-color</entry>
</row>
-
+
<row>
<entry>panelBorderColor</entry>
-
+
<entry>border-right-color</entry>
</row>
-
+
<row>
<entry>additionalBackgroundColor</entry>
-
+
<entry>background</entry>
</row>
-
+
<row>
<entry>calendarWeekBackgroundColor</entry>
-
+
<entry>background-color</entry>
</row>
-
+
<row>
<entry>generalSizeFont</entry>
-
+
<entry>font-size</entry>
</row>
-
+
<row>
<entry>generalFamilyFont</entry>
-
+
<entry>font-family</entry>
</row>
-
+
</tbody>
</tgroup>
</table>
-
+
<table>
<title>Skin parameters redefinition for a toolbar and names of months</title>
-
+
<tgroup cols="2">
<thead>
<row>
<entry>Skin parameters</entry>
-
+
<entry>CSS properties</entry>
</row>
</thead>
-
+
<tbody>
<row>
<entry>headerBackgroundColor</entry>
-
+
<entry>background-color</entry>
</row>
-
+
<row>
<entry>headerSizeFont</entry>
-
+
<entry>font-size</entry>
</row>
-
+
<row>
<entry>headerFamilyFont</entry>
-
+
<entry>font-family</entry>
</row>
-
+
<row>
<entry>headerWeightFont</entry>
-
+
<entry>font-weight</entry>
</row>
-
+
<row>
<entry>headerTextColor</entry>
-
+
<entry>color</entry>
</row>
-
+
</tbody>
</tgroup>
</table>
-
+
<table>
<title>Skin parameters redefinition for cells with days</title>
-
+
<tgroup cols="2">
<thead>
<row>
<entry>Skin parameters</entry>
-
+
<entry>CSS properties</entry>
</row>
</thead>
-
+
<tbody>
<row>
<entry>panelBorderColor</entry>
-
+
<entry>border-bottom-color</entry>
</row>
-
+
<row>
<entry>panelBorderColor</entry>
-
+
<entry>border-right-color</entry>
</row>
-
+
<row>
<entry>generalBackgroundColor</entry>
-
+
<entry>background-color</entry>
</row>
-
+
<row>
<entry>generalSizeFont</entry>
-
+
<entry>font-size</entry>
</row>
-
+
<row>
<entry>generalFamilyFont</entry>
-
+
<entry>font-family</entry>
</row>
-
+
</tbody>
</tgroup>
</table>
-
+
<table>
<title>Skin parameters redefinition for holiday</title>
-
+
<tgroup cols="2">
<thead>
<row>
<entry>Skin parameters</entry>
-
+
<entry>CSS properties</entry>
</row>
</thead>
-
+
<tbody>
<row>
<entry>calendarHolidaysBackgroundColor</entry>
-
+
<entry>background-color</entry>
</row>
-
+
<row>
<entry>calendarHolidaysTextColor</entry>
-
+
<entry>color</entry>
</row>
-
+
</tbody>
</tgroup>
</table>
-
+
<table>
<title>Skin parameters redefinition for cell with a current date</title>
-
+
<tgroup cols="2">
<thead>
<row>
<entry>Skin parameters</entry>
-
+
<entry>CSS properties</entry>
</row>
</thead>
-
+
<tbody>
<row>
<entry>calendarCurrentBackgroundColor</entry>
-
+
<entry>background-color</entry>
</row>
-
+
<row>
<entry>calendarCurrentTextColor</entry>
-
+
<entry>color</entry>
</row>
-
+
</tbody>
</tgroup>
</table>
-
+
<table>
<title>Skin parameters redefinition for a selected day</title>
-
+
<tgroup cols="2">
<thead>
<row>
<entry>Skin parameters</entry>
-
+
<entry>CSS properties</entry>
</row>
</thead>
-
+
<tbody>
<row>
<entry>headerBackgroundColor</entry>
-
+
<entry>background-color</entry>
</row>
-
+
<row>
<entry>headerTextColor</entry>
-
+
<entry>color</entry>
</row>
-
+
<row>
<entry>headerWeightFont</entry>
-
+
<entry>font-weight</entry>
</row>
-
+
</tbody>
</tgroup>
</table>
-
+
</section>
-
+
<section>
<title>Definition of Custom Style Classes</title>
@@ -860,10 +893,10 @@
<entry>Defines styles for weeks numbers</entry>
</row>
-
+
<row>
<entry>rich-calendar-today</entry>
-
+
<entry>Defines styles for cell with a current date</entry>
</row>
@@ -914,16 +947,16 @@
<entry>Defines styles for a popup element</entry>
</row>
-
+
<row>
<entry>rich-calendar-tool</entry>
-
+
<entry>Defines styles for toolbars</entry>
</row>
-
+
<row>
<entry>rich-calendar-month</entry>
-
+
<entry>Defines styles for names of months</entry>
</row>
@@ -989,8 +1022,9 @@
<section>
<title>Relevant Resources Links</title>
<para><ulink url="http://livedemo.exadel.com/richfaces-demo/richfaces/calendar.jsf?c=calendar"
- >Here</ulink> you can see the example of <emphasis role="bold"
- ><property><rich:calendar></property></emphasis> usage and sources for the given example. </para>
+ >Here</ulink> you can see the example of <emphasis role="bold">
+ <property><rich:calendar></property>
+ </emphasis> usage and sources for the given example. </para>
<para>How to use JavaScript API see on the <ulink
url="http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4078301#..."
>RichFaces Users Forum</ulink>.</para>
17 years, 2 months