JBoss Rich Faces SVN: r21413 - trunk/ui/iteration/ui/src/main/java/org/richfaces/component.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2011-02-03 06:33:22 -0500 (Thu, 03 Feb 2011)
New Revision: 21413
Removed:
trunk/ui/iteration/ui/src/main/java/org/richfaces/component/StatefulDataTableChildrenIterator.java
Modified:
trunk/ui/iteration/ui/src/main/java/org/richfaces/component/UIDataTableBase.java
Log:
https://issues.jboss.org/browse/RF-9426
Deleted: trunk/ui/iteration/ui/src/main/java/org/richfaces/component/StatefulDataTableChildrenIterator.java
===================================================================
--- trunk/ui/iteration/ui/src/main/java/org/richfaces/component/StatefulDataTableChildrenIterator.java 2011-02-03 11:16:22 UTC (rev 21412)
+++ trunk/ui/iteration/ui/src/main/java/org/richfaces/component/StatefulDataTableChildrenIterator.java 2011-02-03 11:33:22 UTC (rev 21413)
@@ -1,67 +0,0 @@
-package org.richfaces.component;
-
-import java.util.Iterator;
-
-import javax.faces.component.UIComponent;
-
-import org.ajax4jsf.component.IterationStateHolder;
-
-import com.google.common.collect.AbstractIterator;
-import com.google.common.collect.Iterators;
-
-/**
- * @author Nick Belaevski
- *
- */
-final class StatefulDataTableChildrenIterator extends AbstractIterator<UIComponent> {
-
- private Iterator<UIComponent> dataChildren;
-
- private Iterator<UIComponent> subIterator = Iterators.emptyIterator();
-
- /**
- * @param uiDataTableBase
- */
- StatefulDataTableChildrenIterator(Iterator<UIComponent> dataChildren) {
- this.dataChildren = dataChildren;
- }
-
- private UIComponent traverseToNextElement() {
- if (dataChildren.hasNext()) {
- UIComponent c = dataChildren.next();
-
- if (c instanceof IterationStateHolder) {
- return c;
- } else {
- subIterator = c.getFacetsAndChildren();
- }
- }
-
- return null;
- }
-
- private UIComponent traverseToNextSubElement() {
- if (subIterator.hasNext()) {
- return subIterator.next();
- }
-
- return null;
- }
-
- @Override
- protected UIComponent computeNext() {
- while (dataChildren.hasNext() || subIterator.hasNext()) {
- UIComponent c = traverseToNextSubElement();
-
- if (c == null) {
- c = traverseToNextElement();
- }
-
- if (c != null) {
- return c;
- }
- }
-
- return endOfData();
- }
-}
\ No newline at end of file
Modified: trunk/ui/iteration/ui/src/main/java/org/richfaces/component/UIDataTableBase.java
===================================================================
--- trunk/ui/iteration/ui/src/main/java/org/richfaces/component/UIDataTableBase.java 2011-02-03 11:16:22 UTC (rev 21412)
+++ trunk/ui/iteration/ui/src/main/java/org/richfaces/component/UIDataTableBase.java 2011-02-03 11:33:22 UTC (rev 21413)
@@ -32,6 +32,7 @@
import java.util.Map;
import java.util.Set;
+import javax.faces.component.UIColumn;
import javax.faces.component.UIComponent;
import javax.faces.component.visit.VisitCallback;
import javax.faces.component.visit.VisitContext;
@@ -41,6 +42,7 @@
import javax.faces.event.PhaseId;
import javax.faces.event.PreRenderComponentEvent;
+import org.ajax4jsf.component.IterationStateHolder;
import org.ajax4jsf.model.DataVisitor;
import org.ajax4jsf.model.ExtendedDataModel;
import org.ajax4jsf.model.Range;
@@ -396,26 +398,50 @@
return SUPPORTED_META_COMPONENTS;
}
- protected Iterator<UIComponent> statefulChildren() {
- return new StatefulDataTableChildrenIterator(this.dataChildren());
+ private boolean isStateful(UIComponent component) {
+ if (component instanceof IterationStateHolder) {
+ return true;
+ }
+
+ if (component instanceof UIColumn || component instanceof Column) {
+ return false;
+ }
+
+ return true;
}
@Override
protected void saveChildState(FacesContext facesContext) {
- Iterator<UIComponent> iterator = statefulChildren();
- while (iterator.hasNext()) {
- UIComponent c = iterator.next();
- saveChildState(facesContext, c);
+ Iterator<UIComponent> dataChildren = dataChildren();
+ while (dataChildren.hasNext()) {
+ UIComponent child = dataChildren.next();
+
+ if (isStateful(child)) {
+ saveChildState(facesContext, child);
+ } else {
+ for (UIComponent grandKid: child.getChildren()) {
+ saveChildState(facesContext, grandKid);
+ }
+ }
}
}
@Override
protected void restoreChildState(FacesContext facesContext) {
- Iterator<UIComponent> iterator = statefulChildren();
- while (iterator.hasNext()) {
- UIComponent c = iterator.next();
- restoreChildState(facesContext, c);
+ Iterator<UIComponent> dataChildren = dataChildren();
+ while (dataChildren.hasNext()) {
+ UIComponent child = dataChildren.next();
+
+ if (isStateful(child)) {
+ restoreChildState(facesContext, child);
+ } else {
+ //reset cached clientId
+ child.setId(child.getId());
+
+ for (UIComponent grandKid: child.getChildren()) {
+ restoreChildState(facesContext, grandKid);
+ }
+ }
}
}
-
}
13 years, 3 months
JBoss Rich Faces SVN: r21412 - in modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest: richHashParam and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: ppitonak(a)redhat.com
Date: 2011-02-03 06:16:22 -0500 (Thu, 03 Feb 2011)
New Revision: 21412
Modified:
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richCollapsiblePanel/TestFacets.java
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richCollapsiblePanel/TestRichCollapsiblePanel.java
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richHashParam/TestRichHashParam.java
Log:
* added issue tracking annotations
* tests for hashParam fixed
Modified: modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richCollapsiblePanel/TestFacets.java
===================================================================
--- modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richCollapsiblePanel/TestFacets.java 2011-02-03 10:32:14 UTC (rev 21411)
+++ modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richCollapsiblePanel/TestFacets.java 2011-02-03 11:16:22 UTC (rev 21412)
@@ -33,6 +33,7 @@
import org.jboss.test.selenium.locator.JQueryLocator;
import org.richfaces.tests.metamer.ftest.AbstractMetamerTest;
+import org.richfaces.tests.metamer.ftest.annotations.IssueTracking;
import org.testng.annotations.Test;
/**
@@ -48,7 +49,7 @@
private JQueryLocator headerExp = pjq("div[id$=collapsiblePanel:header] div.rf-cp-lbl-exp");
private JQueryLocator headerColps = pjq("div[id$=collapsiblePanel:header] div.rf-cp-lbl-colps");
private JQueryLocator content = pjq("div[id$=collapsiblePanel:content]");
-
+
@Override
public URL getTestUrl() {
return buildUrl(contextPath, "faces/components/richCollapsiblePanel/facets.xhtml");
@@ -104,6 +105,7 @@
}
@Test
+ @IssueTracking("https://issues.jboss.org/browse/RF-10368")
public void testSwitchTypeServer() {
JQueryLocator selectOption = pjq("input[name$=switchTypeInput][value=server]");
selenium.click(selectOption);
Modified: modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richCollapsiblePanel/TestRichCollapsiblePanel.java
===================================================================
--- modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richCollapsiblePanel/TestRichCollapsiblePanel.java 2011-02-03 10:32:14 UTC (rev 21411)
+++ modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richCollapsiblePanel/TestRichCollapsiblePanel.java 2011-02-03 11:16:22 UTC (rev 21412)
@@ -406,6 +406,7 @@
}
@Test
+ @IssueTracking("https://issues.jboss.org/browse/RF-10368")
public void testSwitchTypeServer() {
selenium.click(pjq("input[name$=switchTypeInput][value=server]"));
selenium.waitForPageToLoad();
Modified: modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richHashParam/TestRichHashParam.java
===================================================================
--- modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richHashParam/TestRichHashParam.java 2011-02-03 10:32:14 UTC (rev 21411)
+++ modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richHashParam/TestRichHashParam.java 2011-02-03 11:16:22 UTC (rev 21412)
@@ -94,10 +94,10 @@
int shadowLeft = selenium.getElementPositionLeft(shadow);
assertEquals(selenium.getStyle(header, new CssProperty("cursor")), "move", "Cursor used when mouse is over panel's header.");
- selenium.dragAndDrop(header, new Offset(200, -100));
+ selenium.dragAndDrop(header, new Offset(20, 0));
- assertEquals(selenium.getElementPositionLeft(panelContainer), panelLeft + 200, "Panel's position after move to the right (200px).");
- assertEquals(selenium.getElementPositionLeft(shadow), shadowLeft + 200, "Shadow's position after move to the right (200px).");
+ assertEquals(selenium.getElementPositionLeft(panelContainer), panelLeft + 20, "Panel's position after move to the right (20px).");
+ assertEquals(selenium.getElementPositionLeft(shadow), shadowLeft + 20, "Shadow's position after move to the right (20px).");
}
@Test
@@ -117,13 +117,6 @@
assertEquals(selenium.getElementHeight(panelContainer), panelHeight, "Panel's height after resizing horizontally.");
assertEquals(selenium.getElementWidth(shadow), shadowWidth - 100, "Shadow's width after resizing horizontally (-100px).");
assertEquals(selenium.getElementHeight(shadow), shadowHeight, "Shadow's height after resizing horizontally.");
-
- selenium.dragAndDrop(resizerE, new Offset(100, 0));
-
- assertEquals(selenium.getElementWidth(panelContainer), panelWidth, "Panel's width after resizing horizontally (100px).");
- assertEquals(selenium.getElementHeight(panelContainer), panelHeight, "Panel's height after resizing horizontally.");
- assertEquals(selenium.getElementWidth(shadow), shadowWidth, "Shadow's width after resizing horizontally (100px).");
- assertEquals(selenium.getElementHeight(shadow), shadowHeight, "Shadow's height after resizing horizontally.");
}
@Test
13 years, 3 months
JBoss Rich Faces SVN: r21411 - in trunk/examples/richfaces-showcase/src/main: webapp/richfaces/dropDownMenu/samples and 2 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: ilya_shaikovsky
Date: 2011-02-03 05:32:14 -0500 (Thu, 03 Feb 2011)
New Revision: 21411
Added:
trunk/examples/richfaces-showcase/src/main/webapp/richfaces/popup/login.xhtml
trunk/examples/richfaces-showcase/src/main/webapp/richfaces/popup/samples/login-sample.xhtml
Modified:
trunk/examples/richfaces-showcase/src/main/resources/org/richfaces/demo/data/common/navigation.xml
trunk/examples/richfaces-showcase/src/main/webapp/richfaces/dropDownMenu/samples/topMenu-sample.xhtml
Log:
new demo for popup.
Modified: trunk/examples/richfaces-showcase/src/main/resources/org/richfaces/demo/data/common/navigation.xml
===================================================================
--- trunk/examples/richfaces-showcase/src/main/resources/org/richfaces/demo/data/common/navigation.xml 2011-02-03 09:54:05 UTC (rev 21410)
+++ trunk/examples/richfaces-showcase/src/main/resources/org/richfaces/demo/data/common/navigation.xml 2011-02-03 10:32:14 UTC (rev 21411)
@@ -417,7 +417,7 @@
</sample>
</samples>
</demo>
- <demo>
+ <demo new="true">
<id>popup</id>
<name>rich:popupPanel</name>
<samples>
@@ -429,6 +429,10 @@
<id>modalPopup</id>
<name>Modal panel example</name>
</sample>
+ <sample new="true">
+ <id>login</id>
+ <name>Login panel positioning</name>
+ </sample>
</samples>
</demo>
<demo>
Modified: trunk/examples/richfaces-showcase/src/main/webapp/richfaces/dropDownMenu/samples/topMenu-sample.xhtml
===================================================================
--- trunk/examples/richfaces-showcase/src/main/webapp/richfaces/dropDownMenu/samples/topMenu-sample.xhtml 2011-02-03 09:54:05 UTC (rev 21410)
+++ trunk/examples/richfaces-showcase/src/main/webapp/richfaces/dropDownMenu/samples/topMenu-sample.xhtml 2011-02-03 10:32:14 UTC (rev 21411)
@@ -75,17 +75,6 @@
</h:outputLink>
</rich:menuItem>
</rich:dropDownMenu>
- <rich:toolbarGroup location="right">
- <rich:dropDownMenu label="Search" direction="bottomLeft"
- jointPoint="bottomRight" styleClass="search" mode="client">
- <rich:menuItem>
- <h:inputText value="" id="searchinput" />
- <button type="button">Search</button>
- </rich:menuItem>
- <rich:menuItem label="Enter your search criteria here"
- disabled="true"></rich:menuItem>
- </rich:dropDownMenu>
- </rich:toolbarGroup>
</rich:toolbar>
</h:form>
Added: trunk/examples/richfaces-showcase/src/main/webapp/richfaces/popup/login.xhtml
===================================================================
--- trunk/examples/richfaces-showcase/src/main/webapp/richfaces/popup/login.xhtml (rev 0)
+++ trunk/examples/richfaces-showcase/src/main/webapp/richfaces/popup/login.xhtml 2011-02-03 10:32:14 UTC (rev 21411)
@@ -0,0 +1,46 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:ui="http://java.sun.com/jsf/facelets">
+
+<ui:composition>
+ <p>In RichFaces 3.3.x many developers used <b>rich:dropDownMenu</b>
+ component for creation of Search/Login popups attached to toolbars. And
+ there were two reasons for that:</p>
+ <ul>
+ <li>Simplicity of usage. No script positioning required.
+ rich:dropDownMenu performs popup positioning on its own and simply
+ customizable by using <b>jointPoint</b> and <b>direction</b>
+ attributes.</li>
+ <li>RichFaces 3.3.x has no lightweight popup panel and <b>rich:modalPanel</b>
+ usage for such cases required workarounds in order to make it
+ non-modal</li>
+ </ul>
+ <p>But that approach has some disadvantages as well:</p>
+ <ul>
+ <li><b>rich:dropDownMenu</b> component was added with additional
+ JavaScript code for inputs processing inside the <b>rich:menuItem</b>'s.
+ That not really native task for menu so that code was really
+ superfluous from simple menus point of view.</li>
+ <li>Developer still has to work on styling of menu item removing
+ hover effects and making it looks like panel rather than menuItem</li>
+ </ul>
+ <p>RichFaces 4.x provides clean api for popup panel and added
+ non-modal state, so for now it's really easier and looking more native
+ to use modal panel for such tasks. Below you could see two samples:</p>
+ <ui:include src="#{demoNavigator.sampleIncludeURI}" />
+ <ui:include src="/templates/includes/source-view.xhtml">
+ <ui:param name="src" value="#{demoNavigator.sampleIncludeURI}" />
+ <ui:param name="sourceType" value="xhtml" />
+ <ui:param name="openLabel" value="View Source" />
+ <ui:param name="hideLabel" value="Hide Source" />
+ </ui:include>
+ <p>rich:popup panel allows you to pass next options to show method:
+ <b>min and max width and height</b>, actual <b>width and height</b>, <b>top
+ and left</b> positions for the panel. So with <b>rich:hashParam</b> it's
+ really simple to build declarative call for the panel which uses
+ dynamic properties.</p>
+</ui:composition>
+
+</html>
\ No newline at end of file
Added: trunk/examples/richfaces-showcase/src/main/webapp/richfaces/popup/samples/login-sample.xhtml
===================================================================
--- trunk/examples/richfaces-showcase/src/main/webapp/richfaces/popup/samples/login-sample.xhtml (rev 0)
+++ trunk/examples/richfaces-showcase/src/main/webapp/richfaces/popup/samples/login-sample.xhtml 2011-02-03 10:32:14 UTC (rev 21411)
@@ -0,0 +1,62 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<ui:composition xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:rich="http://richfaces.org/rich">
+ <h3>Login panel attachment:</h3>
+
+ <rich:toolbar height="26px">
+ <h:outputLink value="#" id="ll">
+ <rich:componentControl event="click" operation="show" target="lp">
+ <a4j:param name="event" value="event" noEscape="true" />
+ <rich:hashParam>
+ <a4j:param noEscape="true" name="top"
+ value="jQuery(#{rich:element('ll')}.parentNode).offset().top + jQuery(#{rich:element('ll')}.parentNode).height()" />
+ <a4j:param noEscape="true" name="left"
+ value="jQuery(#{rich:element('ll')}.parentNode).offset().left" />
+ </rich:hashParam>
+ </rich:componentControl>
+ Login</h:outputLink>
+ </rich:toolbar>
+ <rich:popupPanel id="lp" autosized="true" modal="false"
+ moveable="false" resizeable="false">
+ <h:panelGrid columns="2">
+ <h:outputText value="Login" />
+ <h:inputText />
+ <h:outputText value="Password" />
+ <h:inputText />
+ </h:panelGrid>
+ <h:outputLink
+ onclick="#{rich:component('lp')}.hide(event); return false;"
+ value="#">Login</h:outputLink>
+ </rich:popupPanel>
+
+ <h3>Search panel right-side attachment:</h3>
+ <rich:toolbar height="26px" id="tb">
+ <rich:toolbarGroup location="right">
+ <h:outputLink value="#">
+ <rich:componentControl event="click" operation="show" target="ls">
+ <a4j:param name="event" value="event" noEscape="true" />
+ <rich:hashParam>
+ <a4j:param noEscape="true" name="top"
+ value="jQuery(#{rich:element('tb')}).offset().top + jQuery(#{rich:element('tb')}).height()" />
+ <a4j:param noEscape="true" name="left"
+ value="jQuery(#{rich:element('tb')}).offset().left + jQuery(#{rich:element('tb')}).width() - #{rich:component('ls')}.width()" />
+ </rich:hashParam>
+ </rich:componentControl>
+ Search</h:outputLink>
+ </rich:toolbarGroup>
+ </rich:toolbar>
+ <rich:popupPanel header="Enter Search Terms" id="ls" autosized="true" modal="false"
+ moveable="false" resizeable="false">
+ <h:panelGrid columns="3">
+ <h:outputText value="Search:" />
+ <h:inputText />
+ <h:outputLink
+ onclick="#{rich:component('ls')}.hide(event); return false;"
+ value="#">Search</h:outputLink>
+ </h:panelGrid>
+ </rich:popupPanel>
+</ui:composition>
\ No newline at end of file
13 years, 3 months
JBoss Rich Faces SVN: r21410 - management/design-4x/panelMenu.
by richfaces-svn-commits@lists.jboss.org
Author: Ochikvina
Date: 2011-02-03 04:54:05 -0500 (Thu, 03 Feb 2011)
New Revision: 21410
Modified:
management/design-4x/panelMenu/panelMenu_new.html
Log:
RF-10392 - component markup update.
Modified: management/design-4x/panelMenu/panelMenu_new.html
===================================================================
--- management/design-4x/panelMenu/panelMenu_new.html 2011-02-03 05:16:58 UTC (rev 21409)
+++ management/design-4x/panelMenu/panelMenu_new.html 2011-02-03 09:54:05 UTC (rev 21410)
@@ -29,6 +29,14 @@
padding:2px;
position:relative;
}
+ .rf-pm-top-gr-hov{
+ color:#000000; /*headerTextColor*/
+ }
+ .rf-pm-top-gr-dis{
+ background:#ECF4FE url("images/gr2.png") left top repeat-x;/*from additionalBackgroundColor (top) to headerGradientColor (bottom), background-color - additionalBackgroundColor*/
+ color:#8DB7F3;/*tabDisabledTextColor*/
+ cursor:default;
+ }
.rf-pm-top-gr-ic{
display:inline-block;
white-space:nowrap;
@@ -58,6 +66,16 @@
padding:2px 0 2px 15px;
position:relative;
}
+ .rf-pm-itm-hov{
+ background:#ECF4FE; /*additionalBackgroundColor*/
+ }
+ .rf-pm-itm-dis{
+ color:#8DB7F3; /*tabDisabledTextColor*/
+ cursor:default;
+ }
+ .rf-pm-itm-sel{
+ font-style:italic;
+ }
.rf-pm-itm-ic{
display:inline-block;
white-space:nowrap;
@@ -87,11 +105,16 @@
font-weight:bold;
padding:2px 0 2px 15px;
}
- .rf-top-gr-dis{
- background:#ECF4FE url("images/gr2.png") left top repeat-x;/*from additionalBackgroundColor (top) to headerGradientColor (bottom), background-color - additionalBackgroundColor*/
- color:#8DB7F3;/*tabDisabledTextColor*/
+ .rf-pm-gr-hov{
+ background:#ECF4FE; /*additionalBackgroundColor*/
+ }
+ .rf-pm-gr-dis{
+ color:#8DB7F3; /*tabDisabledTextColor*/
cursor:default;
}
+ .rf-pm-gr-sel{
+ font-style:italic;
+ }
.rf-pm-gr-ic{
white-space:nowrap;
}
@@ -102,16 +125,6 @@
vertical-align:middle;
white-space:nowrap;
}
- .rf-pm-hov-el{
- background:#ECF4FE;/*additionalBackgroundColor*/
- }
- .rf-pm-sel-el {
- font-style:italic;
- }
- .rf-pm-dis-el {
- color:#8DB7F3;/*tabDisabledTextColor*/
- cursor:default;
- }
/* Indent for subgroup's items */
.rf-pm-gr .rf-pm-itm{
@@ -129,17 +142,17 @@
<span class="rf-pm-top-gr-lbl">Group 1</span>
<span class="rf-pm-top-gr-tgl"><img width="16" height="16" alt="Menu group icon" src="images/tgl_up.gif"></span>
</div>
- <div class="rf-pm-itm" onmouseover="this.className='rf-pm-itm rf-pm-hov-el'" onmouseout="this.className='rf-pm-itm'" onclick="this.className='rf-pm-itm rf-pm-sel-el'">
+ <div class="rf-pm-itm" onmouseover="this.className='rf-pm-itm rf-pm-itm-hov'" onmouseout="this.className='rf-pm-itm'" onclick="this.className='rf-pm-itm rf-pm-itm-sel'">
<span class="rf-pm-itm-ic"><img width="16" height="16" alt="Menu item icon" src="images/item_icon.gif"/></span>
<span class="rf-pm-itm-lbl">Item 1.1</span>
<span class="rf-pm-itm-tgl"><img width="16" height="16" alt="Menu item icon" src="images/spacer.gif"/></span>
</div>
- <div class="rf-pm-itm" onmouseover="this.className='rf-pm-itm rf-pm-hov-el'" onmouseout="this.className='rf-pm-itm'" onclick="this.className='rf-pm-itm rf-pm-sel-el'">
+ <div class="rf-pm-itm" onmouseover="this.className='rf-pm-itm rf-pm-itm-hov'" onmouseout="this.className='rf-pm-itm'" onclick="this.className='rf-pm-itm rf-pm-itm-sel'">
<span class="rf-pm-itm-ic"><img width="16" height="16" alt="Menu item icon" src="images/item_icon.gif"/></span>
<span class="rf-pm-itm-lbl">Item 1.2</span>
<span class="rf-pm-itm-tgl"><img width="16" height="16" alt="Menu item icon" src="images/spacer.gif"/></span>
</div>
- <div class="rf-pm-itm rf-pm-dis-el" onmouseover="this.className='rf-pm-itm rf-pm-dis-el rf-pm-hov-el'" onmouseout="this.className='rf-pm-itm rf-pm-dis-el'">
+ <div class="rf-pm-itm rf-pm-itm-dis" onmouseover="this.className='rf-pm-itm rf-pm-itm-dis rf-pm-itm-hov'" onmouseout="this.className='rf-pm-itm rf-pm-itm-dis'">
<span class="rf-pm-itm-ic"><img width="16" height="16" alt="Menu item icon" src="images/item_icon.gif"/></span>
<span class="rf-pm-itm-lbl">Item 1.3</span>
<span class="rf-pm-itm-tgl"><img width="16" height="16" alt="Menu item icon" src="images/spacer.gif"/></span>
@@ -151,42 +164,42 @@
<span class="rf-pm-top-gr-lbl">Group 2</span>
<span class="rf-pm-top-gr-tgl"><img width="16" height="16" alt="Menu group icon" src="images/tgl_up.gif"/></span>
</div>
- <div class="rf-pm-itm" onmouseover="this.className='rf-pm-itm rf-pm-hov-el'" onmouseout="this.className='rf-pm-itm'" onclick="this.className='rf-pm-itm rf-pm-sel-el'">
+ <div class="rf-pm-itm" onmouseover="this.className='rf-pm-itm rf-pm-itm-hov'" onmouseout="this.className='rf-pm-itm'" onclick="this.className='rf-pm-itm rf-pm-itm-sel'">
<span class="rf-pm-itm-ic"><img width="16" height="16" alt="Menu item icon" src="images/item_icon.gif"/></span>
<span class="rf-pm-itm-lbl">Item 2.1</span>
<span class="rf-pm-itm-tgl"><img width="16" height="16" alt="Menu item icon" src="images/spacer.gif"/></span>
</div>
- <div class="rf-pm-itm" onmouseover="this.className='rf-pm-itm rf-pm-hov-el'" onmouseout="this.className='rf-pm-itm'" onclick="this.className='rf-pm-itm rf-pm-sel-el'">
+ <div class="rf-pm-itm" onmouseover="this.className='rf-pm-itm rf-pm-itm-hov'" onmouseout="this.className='rf-pm-itm'" onclick="this.className='rf-pm-itm rf-pm-itm-sel'">
<span class="rf-pm-itm-ic"><img width="16" height="16" alt="Menu item icon" src="images/item_icon.gif"/></span>
<span class="rf-pm-itm-lbl">Item 2.2</span>
<span class="rf-pm-itm-tgl"><img width="16" height="16" alt="Menu item icon" src="images/spacer.gif"/></span>
</div>
- <div class="rf-pm-itm" onmouseover="this.className='rf-pm-itm rf-pm-hov-el'" onmouseout="this.className='rf-pm-itm'" onclick="this.className='rf-pm-itm rf-pm-sel-el'">
+ <div class="rf-pm-itm" onmouseover="this.className='rf-pm-itm rf-pm-itm-hov'" onmouseout="this.className='rf-pm-itm'" onclick="this.className='rf-pm-itm rf-pm-itm-sel'">
<span class="rf-pm-itm-ic"><img width="16" height="16" alt="Menu item icon" src="images/item_icon.gif"/></span>
<span class="rf-pm-itm-lbl">Item 2.3</span>
<span class="rf-pm-itm-tgl"><img width="16" height="16" alt="Menu item icon" src="images/spacer.gif"/></span>
</div>
<div class="rf-pm-gr">
- <div class="rf-pm-gr-hdr" onmouseover="this.className='rf-pm-gr-hdr rf-pm-hov-el'" onmouseout="this.className='rf-pm-gr-hdr'" onclick="this.className='rf-pm-gr-hdr rf-pm-sel-el'">
+ <div class="rf-pm-gr-hdr" onmouseover="this.className='rf-pm-gr-hdr rf-pm-gr-hov'" onmouseout="this.className='rf-pm-gr-hdr'" onclick="this.className='rf-pm-gr-hdr rf-pm-gr-sel'">
<span class="rf-pm-gr-ic"><img width="16" height="16" alt="Menu group icon" src="images/group_icon.gif"/></span>
<span class="rf-pm-gr-lbl">Group 2.4</span>
<span class="rf-pm-itm-tgl"><img width="16" height="16" alt="Menu group icon" src="images/spacer.gif"/></span>
</div>
- <div class="rf-pm-itm" onmouseover="this.className='rf-pm-itm rf-pm-hov-el'" onmouseout="this.className='rf-pm-itm'" onclick="this.className='rf-pm-itm rf-pm-sel-el'">
+ <div class="rf-pm-itm" onmouseover="this.className='rf-pm-itm rf-pm-itm-hov'" onmouseout="this.className='rf-pm-itm'" onclick="this.className='rf-pm-itm rf-pm-itm-sel'">
<span class="rf-pm-itm-ic">
<img width="16" height="16" alt="Menu item icon" src="images/item_icon.gif"/>
</span>
<span class="rf-pm-itm-lbl">Item 2.4.1</span>
<span class="rf-pm-itm-tgl"><img width="16" height="16" alt="Menu item icon" src="images/spacer.gif"/></span>
</div>
- <div class="rf-pm-itm" onmouseover="this.className='rf-pm-itm rf-pm-hov-el'" onmouseout="this.className='rf-pm-itm'" onclick="this.className='rf-pm-itm rf-pm-sel-el'">
+ <div class="rf-pm-itm" onmouseover="this.className='rf-pm-itm rf-pm-itm-hov'" onmouseout="this.className='rf-pm-itm'" onclick="this.className='rf-pm-itm rf-pm-itm-sel'">
<span class="rf-pm-itm-ic">
<img width="16" height="16" alt="Menu item icon" src="images/item_icon.gif"/>
</span>
<span class="rf-pm-itm-lbl">Item 2.4.2</span>
<span class="rf-pm-itm-tgl"><img width="16" height="16" alt="Menu item icon" src="images/spacer.gif"/></span>
</div>
- <div class="rf-pm-itm" onmouseover="this.className='rf-pm-itm rf-pm-hov-el'" onmouseout="this.className='rf-pm-itm'" onclick="this.className='rf-pm-itm rf-pm-sel-el'">
+ <div class="rf-pm-itm" onmouseover="this.className='rf-pm-itm rf-pm-itm-hov'" onmouseout="this.className='rf-pm-itm'" onclick="this.className='rf-pm-itm rf-pm-itm-sel'">
<span class="rf-pm-itm-ic">
<img width="16" height="16" alt="Menu item icon" src="images/item_icon.gif"/>
</span>
@@ -194,14 +207,14 @@
<span class="rf-pm-itm-tgl"><img width="16" height="16" alt="Menu item icon" src="images/spacer.gif"/></span>
</div>
</div>
- <div class="rf-pm-itm" onmouseover="this.className='rf-pm-itm rf-pm-hov-el'" onmouseout="this.className='rf-pm-itm'" onclick="this.className='rf-pm-itm rf-pm-sel-el'">
+ <div class="rf-pm-itm" onmouseover="this.className='rf-pm-itm rf-pm-itm-hov'" onmouseout="this.className='rf-pm-itm'" onclick="this.className='rf-pm-itm rf-pm-itm-sel'">
<span class="rf-pm-itm-ic"><img width="16" height="16" alt="Menu item icon" src="images/item_icon.gif"/></span>
<span class="rf-pm-itm-lbl">Item 2.5</span>
<span class="rf-pm-itm-tgl"><img width="16" height="16" alt="Menu item icon" src="images/spacer.gif"/></span>
</div>
</div>
<div class="rf-pm-top-gr">
- <div class="rf-pm-top-gr-hdr rf-top-gr-dis">
+ <div class="rf-pm-top-gr-hdr rf-pm-top-gr-dis">
<span class="rf-pm-top-gr-ic"><img width="18" height="18" alt="Menu group icon" src="images/spacer.gif"/></span>
<span class="rf-pm-top-gr-lbl">Group 3</span>
<span class="rf-pm-top-gr-tgl"><img width="16" height="16" alt="Menu group icon" src="images/tgl_down_dis.gif"/></span>
13 years, 3 months
JBoss Rich Faces SVN: r21409 - modules/docs/trunk/Component_Reference/src/main/docbook/en-US.
by richfaces-svn-commits@lists.jboss.org
Author: SeanRogers
Date: 2011-02-03 00:16:58 -0500 (Thu, 03 Feb 2011)
New Revision: 21409
Modified:
modules/docs/trunk/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Functions.xml
Log:
Fixed build error in Functions chapter
Modified: modules/docs/trunk/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Functions.xml
===================================================================
--- modules/docs/trunk/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Functions.xml 2011-02-03 04:40:17 UTC (rev 21408)
+++ modules/docs/trunk/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Functions.xml 2011-02-03 05:16:58 UTC (rev 21409)
@@ -32,7 +32,6 @@
<para>
The <function>rich:findComponent('id')</function> function returns the a UIComponent instance of the passed component identifier. If the specified component identifier is not found, <literal>null</literal> is returned instead.
</para>
- </example>
<example id="exam-Component_Reference-richfindComponent-richfindComponent_example">
<title><function>rich:findComponent</function> example</title>
<programlisting language="XML" role="XML"><xi:include parse="text" href="extras/exam-Component_Reference-richfindComponent-richfindComponent_example.xml_sample" xmlns:xi="http://www.w3.org/2001/XInclude" /></programlisting>
13 years, 3 months
JBoss Rich Faces SVN: r21408 - in modules/docs/trunk/Component_Reference/src/main/docbook/en-US: extras and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: SeanRogers
Date: 2011-02-02 23:40:17 -0500 (Wed, 02 Feb 2011)
New Revision: 21408
Added:
modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richfindComponent-richfindComponent_example.xml_sample
modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richisUserInRole-richisUserInRole_example.xml_sample
Modified:
modules/docs/trunk/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Actions.xml
modules/docs/trunk/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Functions.xml
modules/docs/trunk/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Layout_and_appearance.xml
modules/docs/trunk/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Output_and_messages.xml
modules/docs/trunk/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Panels_and_containers.xml
modules/docs/trunk/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Processing_management.xml
modules/docs/trunk/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Rich_inputs.xml
modules/docs/trunk/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Tables_and_grids.xml
modules/docs/trunk/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Trees.xml
modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-Table_filtering-Basic_filtering.xml_sample
modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-Table_filtering-External_filtering.xml_sample
modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-Tables_and_grids-richextendedDataTable_example.xml_sample
modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-a4jajax-a4jajax_example.xml_sample
modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-a4jstatus-Updating_a_common_a4jstatus_component.xml_sample
modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richajaxValidator-Using_richajaxValidator_with_Hibernate_Validator-0.xml_sample
modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richajaxValidator-richajaxValidator_example.xml_sample
modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richcomponentControl-Attaching_richcomponentControl_to_a_component.xml_sample
modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richcomponentControl-Using_parameters-0.xml_sample
modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richcomponentControl-Using_parameters-1.xml_sample
modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richcomponentControl-richcomponentControl_basic_usage.xml_sample
modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richjQuery-richjQuery_example.xml_sample
Log:
Changed all names of events as per RF-10199
Modified: modules/docs/trunk/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Actions.xml
===================================================================
--- modules/docs/trunk/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Actions.xml 2011-02-03 02:40:56 UTC (rev 21407)
+++ modules/docs/trunk/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Actions.xml 2011-02-03 04:40:17 UTC (rev 21408)
@@ -183,7 +183,7 @@
<section id="sect-Component_Reference-a4jcommandButton-Basic_usage">
<title>Basic usage</title>
<para>
- The <sgmltag><a4j:commandButton></sgmltag> requires only the <varname>value</varname> and <varname>render</varname> attributes to function. The <varname>value</varname> attribute specifies the text of the button and the <varname>render</varname> attribute specifies which areas are to be updated. The <sgmltag><a4j:commandButton></sgmltag> uses the <varname>onclick</varname> event instead of the <varname>onsubmit</varname> event, but otherwise uses all common Ajax attributes as listed in <xref linkend="chap-Component_Reference-Common_Ajax_attributes" />.
+ The <sgmltag><a4j:commandButton></sgmltag> requires only the <varname>value</varname> and <varname>render</varname> attributes to function. The <varname>value</varname> attribute specifies the text of the button and the <varname>render</varname> attribute specifies which areas are to be updated. The <sgmltag><a4j:commandButton></sgmltag> uses the <varname>click</varname> event instead of the <varname>submit</varname> event, but otherwise uses all common Ajax attributes as listed in <xref linkend="chap-Component_Reference-Common_Ajax_attributes" />.
</para>
<note>
<title>Set <code>disabledDefault="true"</code></title>
@@ -243,7 +243,7 @@
<section id="sect-Component_Reference-a4jcommandLink-Basic_usage">
<title>Basic usage</title>
<para>
- The <sgmltag><a4j:commandLink></sgmltag> requires only the <varname>value</varname> and <varname>render</varname> attributes to function. The <varname>value</varname> attribute specifies the text of the link and the <varname>render</varname> attribute specifies which areas are to be updated. The <sgmltag><a4j:commandLink></sgmltag> uses the <varname>onclick</varname> event instead of the <varname>onsubmit</varname> event, but otherwise uses all common Ajax attributes as listed in <xref linkend="chap-Component_Reference-Common_Ajax_attributes" />.
+ The <sgmltag><a4j:commandLink></sgmltag> requires only the <varname>value</varname> and <varname>render</varname> attributes to function. The <varname>value</varname> attribute specifies the text of the link and the <varname>render</varname> attribute specifies which areas are to be updated. The <sgmltag><a4j:commandLink></sgmltag> uses the <varname>click</varname> event instead of the <varname>submit</varname> event, but otherwise uses all common Ajax attributes as listed in <xref linkend="chap-Component_Reference-Common_Ajax_attributes" />.
</para>
</section>
@@ -303,7 +303,7 @@
<title>Attaching <sgmltag><rich:componentControl></sgmltag> to a component</title>
<programlisting language="XML" role="XML"><xi:include parse="text" href="extras/exam-Component_Reference-richcomponentControl-Attaching_richcomponentControl_to_a_component.xml_sample" xmlns:xi="http://www.w3.org/2001/XInclude" /></programlisting>
<para>
- In the example, the <literal>onclick</literal> event of the component with the identifier <literal>ccCalendarID</literal> will trigger the <literal>Expand</literal> operation for the component with the identifier <literal>doExpandCalendarID</literal>.
+ In the example, the <literal>click</literal> event of the component with the identifier <literal>ccCalendarID</literal> will trigger the <literal>Expand</literal> operation for the component with the identifier <literal>doExpandCalendarID</literal>.
</para>
</example>
</section>
@@ -351,7 +351,7 @@
</listitem>
</varlistentry>
<varlistentry>
- <term><literal>onavailable</literal></term>
+ <term><literal>available</literal></term>
<listitem>
<para>
attached after the target component is initialized.
@@ -359,7 +359,7 @@
</listitem>
</varlistentry>
<varlistentry>
- <term><literal>onload</literal></term>
+ <term><literal>load</literal></term>
<listitem>
<para>
attached after the page is loaded.
@@ -469,7 +469,7 @@
The <sgmltag><a4j:jsFunction></sgmltag> component allows the use of the <sgmltag><a4j:actionParam></sgmltag> component or the JavaServer Faces <sgmltag><f:param></sgmltag> component to pass any number of parameters for the JavaScript function.
</para>
<para>
- The <sgmltag><a4j:jsFunction></sgmltag> component is similar to the <sgmltag><a4j:commandButton></sgmltag> component, but it can be activated from the JavaScript code. This allows some server-side functionality to be invoked and the returned data to subsequently be used in a JavaScript function invoked by the <varname>oncomplete</varname> event attribute. In this way, the <sgmltag><a4j:jsFunction></sgmltag> component can be used instead of the <sgmltag><a4j:commandButton></sgmltag> component.
+ The <sgmltag><a4j:jsFunction></sgmltag> component is similar to the <sgmltag><a4j:commandButton></sgmltag> component, but it can be activated from the JavaScript code. This allows some server-side functionality to be invoked and the returned data to subsequently be used in a JavaScript function invoked by the <varname>complete</varname> event attribute. In this way, the <sgmltag><a4j:jsFunction></sgmltag> component can be used instead of the <sgmltag><a4j:commandButton></sgmltag> component.
</para>
</section>
Modified: modules/docs/trunk/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Functions.xml
===================================================================
--- modules/docs/trunk/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Functions.xml 2011-02-03 02:40:56 UTC (rev 21407)
+++ modules/docs/trunk/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Functions.xml 2011-02-03 04:40:17 UTC (rev 21408)
@@ -32,14 +32,10 @@
<para>
The <function>rich:findComponent('id')</function> function returns the a UIComponent instance of the passed component identifier. If the specified component identifier is not found, <literal>null</literal> is returned instead.
</para>
+ </example>
<example id="exam-Component_Reference-richfindComponent-richfindComponent_example">
<title><function>rich:findComponent</function> example</title>
-
-<programlisting language="XML" role="XML"><h:inputText id="myInput">
- <a4j:support event="onkeyup" reRender="outtext"/>
-</h:inputText>
-<h:outputText id="outtext" value="#{rich:findComponent('myInput').value}" />
-</programlisting>
+ <programlisting language="XML" role="XML"><xi:include parse="text" href="extras/exam-Component_Reference-richfindComponent-richfindComponent_example.xml_sample" xmlns:xi="http://www.w3.org/2001/XInclude" /></programlisting>
</example>
</section>
@@ -53,9 +49,7 @@
<para>
The <function>rich:isUserInRole(Object)</function> function can be used in conjunction with the <varname>rendered</varname> attribute of a component to only display certain controls to authorized users.
</para>
-
-<programlisting language="XML" role="XML"><rich:editor value="#{bean.text}" rendered="#{rich:isUserInRole('admin')}" />
-</programlisting>
+ <programlisting language="XML" role="XML"><xi:include parse="text" href="extras/exam-Component_Reference-richisUserInRole-richisUserInRole_example.xml_sample" xmlns:xi="http://www.w3.org/2001/XInclude" /></programlisting>
</example>
</section>
Modified: modules/docs/trunk/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Layout_and_appearance.xml
===================================================================
--- modules/docs/trunk/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Layout_and_appearance.xml 2011-02-03 02:40:56 UTC (rev 21407)
+++ modules/docs/trunk/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Layout_and_appearance.xml 2011-02-03 04:40:17 UTC (rev 21408)
@@ -208,7 +208,7 @@
</para>
<variablelist>
<varlistentry>
- <term><literal>ondomready</literal></term>
+ <term><literal>domready</literal></term>
<listitem>
<para>
This is the default behavior. The query is triggered when the document is loaded and the DOM is ready. The query is called as a <methodname>jQuery()</methodname> function.
@@ -228,7 +228,7 @@
<title><sgmltag><rich:jQuery></sgmltag> example</title>
<programlisting language="XML" role="XML"><xi:include parse="text" href="extras/exam-Component_Reference-richjQuery-richjQuery_example.xml_sample" xmlns:xi="http://www.w3.org/2001/XInclude" /></programlisting>
<para>
- In the example, the selector picks out the odd <sgmltag><tr></sgmltag> elements that are children of the element with an <code><varname>id</varname>="customlist"</code> attribute. The query <code>addClass(odd)</code> is then performed on the selection during page loading (<literal>onload</literal>) such that the <literal>odd</literal> CSS class is added to the selected elements.
+ In the example, the selector picks out the odd <sgmltag><tr></sgmltag> elements that are children of the element with an <code><varname>id</varname>="customlist"</code> attribute. The query <code>addClass(odd)</code> is then performed on the selection during page loading (<literal>load</literal>) such that the <literal>odd</literal> CSS class is added to the selected elements.
</para>
<mediaobject>
<imageobject>
@@ -269,7 +269,7 @@
The <sgmltag><rich:jQuery></sgmltag> component applies style and behavioral changes to DOM objects dynamically. As such, changes applied during an Ajax response are overwritten, and will need to be re-applied once the Ajax response is complete.
</para>
<para>
- Any timed queries with the <varname>timing</varname> attribute set to <literal>ondomready</literal> may not update during an Ajax response, as the DOM document is not completely reloaded. To ensure the query is re-applied after an Ajax response, include the <varname>name</varname> attribute in the <sgmltag><rich:jQuery></sgmltag> component and invoke it using JavaScript from the <varname>oncomplete</varname> event attribute of the component that triggered the Ajax interaction.
+ Any timed queries with the <varname>timing</varname> attribute set to <literal>domready</literal> may not update during an Ajax response, as the DOM document is not completely reloaded. To ensure the query is re-applied after an Ajax response, include the <varname>name</varname> attribute in the <sgmltag><rich:jQuery></sgmltag> component and invoke it using JavaScript from the <varname>complete</varname> event attribute of the component that triggered the Ajax interaction.
</para>
</section>
Modified: modules/docs/trunk/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Output_and_messages.xml
===================================================================
--- modules/docs/trunk/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Output_and_messages.xml 2011-02-03 02:40:56 UTC (rev 21407)
+++ modules/docs/trunk/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Output_and_messages.xml 2011-02-03 04:40:17 UTC (rev 21408)
@@ -570,7 +570,7 @@
</para>
<variablelist>
<varlistentry>
- <term><literal>onclick</literal></term>
+ <term><literal>click</literal></term>
<listitem>
<para>
This event is activated when the tool-tip is clicked with the mouse.
@@ -578,7 +578,7 @@
</listitem>
</varlistentry>
<varlistentry>
- <term><literal>ondblclick</literal></term>
+ <term><literal>dblclick</literal></term>
<listitem>
<para>
This event is activated when the tool-tip is double-clicked with the mouse.
@@ -586,7 +586,7 @@
</listitem>
</varlistentry>
<varlistentry>
- <term><literal>onmouseout</literal></term>
+ <term><literal>mouseout</literal></term>
<listitem>
<para>
This event is activated when the mouse cursor leaves the tool-tip.
@@ -594,7 +594,7 @@
</listitem>
</varlistentry>
<varlistentry>
- <term><literal>onmousemove</literal></term>
+ <term><literal>mousemove</literal></term>
<listitem>
<para>
This event is activated when the mouse cursor moves over the tool-tip.
@@ -602,7 +602,7 @@
</listitem>
</varlistentry>
<varlistentry>
- <term><literal>onmouseover</literal></term>
+ <term><literal>mouseover</literal></term>
<listitem>
<para>
This event is activated when the mouse cursor hovers over the tool-tip.
@@ -610,7 +610,7 @@
</listitem>
</varlistentry>
<varlistentry>
- <term><literal>onshow</literal></term>
+ <term><literal>show</literal></term>
<listitem>
<para>
This event is activated when the tool-tip is shown.
@@ -618,7 +618,7 @@
</listitem>
</varlistentry>
<varlistentry>
- <term><literal>oncomplete</literal></term>
+ <term><literal>complete</literal></term>
<listitem>
<para>
This event is activated when the tool-tip is completed.
@@ -626,7 +626,7 @@
</listitem>
</varlistentry>
<varlistentry>
- <term><literal>onhide</literal></term>
+ <term><literal>hide</literal></term>
<listitem>
<para>
This event is activated when the tool-tip is hidden.
Modified: modules/docs/trunk/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Panels_and_containers.xml
===================================================================
--- modules/docs/trunk/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Panels_and_containers.xml 2011-02-03 02:40:56 UTC (rev 21407)
+++ modules/docs/trunk/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Panels_and_containers.xml 2011-02-03 04:40:17 UTC (rev 21408)
@@ -178,12 +178,12 @@
<itemizedlist>
<listitem>
<para>
- The <varname>onitemchange</varname> event points to the function to perform when the switchable item is changed.
+ The <varname>itemchange</varname> event points to the function to perform when the switchable item is changed.
</para>
</listitem>
<listitem>
<para>
- The <varname>onbeforeitemchange</varname> event points to the function to perform when before the switchable item is changed.
+ The <varname>beforeitemchange</varname> event points to the function to perform when before the switchable item is changed.
</para>
</listitem>
</itemizedlist>
@@ -259,12 +259,12 @@
<itemizedlist>
<listitem>
<para>
- The <varname>onenter</varname> event points to the function to perform when the mouse enters the panel.
+ The <varname>enter</varname> event points to the function to perform when the mouse enters the panel.
</para>
</listitem>
<listitem>
<para>
- The <varname>onleave</varname> attribute points to the function to perform when the mouse leaves the panel.
+ The <varname>leave</varname> event points to the function to perform when the mouse leaves the panel.
</para>
</listitem>
</itemizedlist>
@@ -769,12 +769,12 @@
<itemizedlist>
<listitem>
<para>
- The <varname>onitemchange</varname> event points to the function to perform when the switchable item is changed.
+ The <varname>itemchange</varname> event points to the function to perform when the switchable item is changed.
</para>
</listitem>
<listitem>
<para>
- The <varname>onbeforeitemchange</varname> event points to the function to perform when before the switchable item is changed.
+ The <varname>beforeitemchange</varname> event points to the function to perform when before the switchable item is changed.
</para>
</listitem>
</itemizedlist>
@@ -896,12 +896,12 @@
<itemizedlist>
<listitem>
<para>
- The <varname>onenter</varname> event points to the function to perform when the mouse enters the tab.
+ The <varname>enter</varname> event points to the function to perform when the mouse enters the tab.
</para>
</listitem>
<listitem>
<para>
- The <varname>onleave</varname> attribute points to the function to perform when the mouse leaves the tab.
+ The <varname>leave</varname> attribute points to the function to perform when the mouse leaves the tab.
</para>
</listitem>
</itemizedlist>
Modified: modules/docs/trunk/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Processing_management.xml
===================================================================
--- modules/docs/trunk/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Processing_management.xml 2011-02-03 02:40:56 UTC (rev 21407)
+++ modules/docs/trunk/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Processing_management.xml 2011-02-03 04:40:17 UTC (rev 21408)
@@ -49,32 +49,32 @@
<itemizedlist>
<listitem>
<para>
- The <varname>oncomplete</varname> event attribute is fired after a request is completed. The request object is passed as a parameter to the event handler, so the queue is accessible using <code>request.queue</code> and the element which was the source of the request is accessible using <code>this</code>.
+ The <varname>complete</varname> event attribute is fired after a request is completed. The request object is passed as a parameter to the event handler, so the queue is accessible using <code>request.queue</code> and the element which was the source of the request is accessible using <code>this</code>.
</para>
</listitem>
<listitem>
<para>
- The <varname>onrequestqueue</varname> event attribute is fired after a new request has been added to the queue.
+ The <varname>requestqueue</varname> event attribute is fired after a new request has been added to the queue.
</para>
</listitem>
<listitem>
<para>
- The <varname>onrequestdequeue</varname> event attribute is fired after a request has been removed from the queue.
+ The <varname>requestdequeue</varname> event attribute is fired after a request has been removed from the queue.
</para>
</listitem>
<listitem>
<para>
- The <varname>onsizeexceeded</varname> event attribute is fired when the queue has been exceeded.
+ The <varname>sizeexceeded</varname> event attribute is fired when the queue has been exceeded.
</para>
</listitem>
<listitem>
<para>
- The <varname>onsubmit</varname> event attribute is fired before the request is sent.
+ The <varname>submit</varname> event attribute is fired before the request is sent.
</para>
</listitem>
<listitem>
<para>
- The <varname>onsuccess</varname> event attribute is fired after a successful request but before the <acronym>DOM</acronym> is updated on the client side.
+ The <varname>success</varname> event attribute is fired after a successful request but before the <acronym>DOM</acronym> is updated on the client side.
</para>
</listitem>
</itemizedlist>
Modified: modules/docs/trunk/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Rich_inputs.xml
===================================================================
--- modules/docs/trunk/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Rich_inputs.xml 2011-02-03 02:40:56 UTC (rev 21407)
+++ modules/docs/trunk/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Rich_inputs.xml 2011-02-03 04:40:17 UTC (rev 21408)
@@ -739,23 +739,23 @@
-->
<listitem>
<para>
- <varname>onfilesubmit</varname> is triggered before a file is uploaded.
+ <varname>filesubmit</varname> is triggered before a file is uploaded.
</para>
</listitem>
<listitem>
<para>
- <varname>onuploadcomplete</varname> is triggered after all files in the list have finished uploading.
+ <varname>uploadcomplete</varname> is triggered after all files in the list have finished uploading.
</para>
</listitem>
<!--
<listitem>
<para>
- <varname>onuploadcanceled</varname> is triggered after an upload has been canceled.
+ <varname>uploadcanceled</varname> is triggered after an upload has been canceled.
</para>
</listitem>
<listitem>
<para>
- <varname>onerror</varname> is triggered when an error occurs during the upload process.
+ <varname>error</varname> is triggered when an error occurs during the upload process.
</para>
</listitem>
-->
Modified: modules/docs/trunk/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Tables_and_grids.xml
===================================================================
--- modules/docs/trunk/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Tables_and_grids.xml 2011-02-03 02:40:56 UTC (rev 21407)
+++ modules/docs/trunk/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Tables_and_grids.xml 2011-02-03 04:40:17 UTC (rev 21408)
@@ -1350,7 +1350,7 @@
Set the <varname>filterValue</varname> attribute to point to the value used to filter the column. This can be either an initial filtering value on the page, or a value binding on the server. The <varname>filterValue</varname> value is then used with the JavaScript <function>startsWith()</function> method to filter the column entries based on the data specified with the <varname>filterBy</varname> attribute. Expressions in the <varname>filterBy</varname> attribute must refer to the variable declared in the table's <varname>var</varname> attribute, which is used to fill the contents of the table.
</para>
<para>
- The filter is processed and the table is rendered when the <literal>onblur</literal> event occurs for the column. This can be changed by defining a different event with the <varname>filterEvent</varname> attribute. For example, to implement live updating such that the filter refreshes after every keystroke, set <code>filterEvent="onkeyup"</code>.
+ The filter is processed and the table is rendered when the <literal>onblur</literal> event occurs for the column. This can be changed by defining a different event with the <varname>filterEvent</varname> attribute. For example, to implement live updating such that the filter refreshes after every keystroke, set <code>filterEvent="keyup"</code>.
</para>
<example id="exam-Component_Reference-Table_filtering-Basic_filtering">
<title>Basic filtering</title>
Modified: modules/docs/trunk/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Trees.xml
===================================================================
--- modules/docs/trunk/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Trees.xml 2011-02-03 02:40:56 UTC (rev 21407)
+++ modules/docs/trunk/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Trees.xml 2011-02-03 04:40:17 UTC (rev 21408)
@@ -242,43 +242,43 @@
<itemizedlist>
<listitem>
<para>
- The <varname>onnodetoggle</varname> event is triggered when a node is expanded or collapsed.
+ The <varname>nodetoggle</varname> event is triggered when a node is expanded or collapsed.
</para>
</listitem>
<listitem>
<para>
- The <varname>onbeforenodetoggle</varname> event is triggered before a node is expanded or collapsed.
+ The <varname>beforenodetoggle</varname> event is triggered before a node is expanded or collapsed.
</para>
</listitem>
<listitem>
<para>
- The <varname>onselectionchange</varname> event is triggered when a node is selected.
+ The <varname>selectionchange</varname> event is triggered when a node is selected.
</para>
</listitem>
<listitem>
<para>
- The <varname>onbeforeselectionchange</varname> event is triggered before a node is selected.
+ The <varname>beforeselectionchange</varname> event is triggered before a node is selected.
</para>
</listitem>
<!--
<listitem>
<para>
- The <varname>ondragstart</varname> event is triggered when an element starts being dragged.
+ The <varname>dragstart</varname> event is triggered when an element starts being dragged.
</para>
</listitem>
<listitem>
<para>
- The <varname>ondragexit</varname> event is triggered when an element is dragged out of the tree.
+ The <varname>dragexit</varname> event is triggered when an element is dragged out of the tree.
</para>
</listitem>
<listitem>
<para>
- The <varname>ondragenter</varname> event is triggered when an element is dragged into the tree.
+ The <varname>dragenter</varname> event is triggered when an element is dragged into the tree.
</para>
</listitem>
<listitem>
<para>
- The <varname>ondragend</varname> event is triggered when an element is dropped.
+ The <varname>dragend</varname> event is triggered when an element is dropped.
</para>
</listitem>
-->
Modified: modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-Table_filtering-Basic_filtering.xml_sample
===================================================================
--- modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-Table_filtering-Basic_filtering.xml_sample 2011-02-03 02:40:56 UTC (rev 21407)
+++ modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-Table_filtering-Basic_filtering.xml_sample 2011-02-03 04:40:17 UTC (rev 21408)
@@ -8,11 +8,11 @@
</rich:column>
</f:facet>
<rich:column filterValue="#{capitalsBean.currentStateFilterValue}"
- filterBy="#{cap.state}" filterEvent="onkeyup">
+ filterBy="#{cap.state}" filterEvent="keyup">
<h:outputText value="#{cap.state}"/>
</rich:column>
<rich:column filterValue="#{capitalsBean.currentNameFilterValue}"
- filterBy="#{cap.name}" filterEvent="onkeyup">
+ filterBy="#{cap.name}" filterEvent="keyup">
<h:outputText value="#{cap.name}"/>
</rich:column>
</rich:dataTable>
Modified: modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-Table_filtering-External_filtering.xml_sample
===================================================================
--- modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-Table_filtering-External_filtering.xml_sample 2011-02-03 02:40:56 UTC (rev 21407)
+++ modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-Table_filtering-External_filtering.xml_sample 2011-02-03 04:40:17 UTC (rev 21408)
@@ -10,7 +10,7 @@
<rich:column filterMethod="#{filteringBean.filterStates}">
<f:facet name="header">
<h:inputText value="#{filteringBean.filterValue}" id="input">
- <a4j:ajax event="onkeyup" render="table"
+ <a4j:ajax event="keyup" render="table"
ignoreDupResponses="true" requestDelay="700"/>
</h:inputText>
</f:facet>
@@ -21,7 +21,7 @@
<f:facet name="header">
<h:selectOneMenu value="#{filteringBean.filterZone}">
<f:selectItems value="#{filteringBean.filterZones}" />
- <a4j:ajax event="onchange" render="table" />
+ <a4j:ajax event="change" render="table" />
</h:selectOneMenu>
</f:facet>
<h:outputText value="#{cap.timeZone}"/>
Modified: modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-Tables_and_grids-richextendedDataTable_example.xml_sample
===================================================================
--- modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-Tables_and_grids-richextendedDataTable_example.xml_sample 2011-02-03 02:40:56 UTC (rev 21407)
+++ modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-Tables_and_grids-richextendedDataTable_example.xml_sample 2011-02-03 04:40:17 UTC (rev 21408)
@@ -1,27 +1,27 @@
<rich:extendedDataTable id="edt" value="#{extendedDT.dataModel}" var="edt" width="500px" height="500px" selectedClass="dataTableSelectedRow" sortMode="single" selectionMode="multi" selection="#{extendedDT.selection}" rowKeyVar="rkvar" tableState="#{extendedDT.tableState}">
- <rich:column id="id" headerClass="dataTableHeader" width="50" label="Id" sortable="true" sortBy="#{edt.id}" sortIconAscending="dataTableAscIcon" sortIconDescending="dataTableDescIcon">
- <f:facet name="header">
- <h:outputText value="Id" />
- </f:facet>
- <h:outputText value="#{edt.id}" />
- </rich:column>
- <rich:column id="name" width="300" headerClass="dataTableHeader" label="Name" sortable="true" sortBy="#{edt.name}" sortIconAscending="dataTableAscIcon" sortIconDescending="dataTableDescIcon" filterBy="#{edt.name}" filterEvent="onkeyup" visible="false">
- <f:facet name="header">
- <h:outputText value="Name" />
- </f:facet>
- <h:outputText value="#{edt.name}" />
- </rich:column>
- <rich:column id="date" width="100" headerClass="dataTableHeader" label="Date" sortable="true" comparator="#{extendedDT.dateComparator}" sortIconAscending="dataTableAscIcon" sortIconDescending="dataTableDescIcon">
- <f:facet name="header">
- <h:outputText value="Date" />
- </f:facet>
- <h:outputText value="#{edt.date}"><f:convertDateTime pattern="yyyy-MM-dd HH:mm:ss" />
- </h:outputText>
- </rich:column>
- <rich:column id="group" width="50" headerClass="dataTableHeader" label="Group" sortable="true" sortBy="#{edt.group}" sortIconAscending="dataTableAscIcon" sortIconDescending="dataTableDescIcon">
- <f:facet name="header">
- <h:outputText value="Group" />
- </f:facet>
- <h:outputText value="#{edt.group}" />
- </rich:column>
+ <rich:column id="id" headerClass="dataTableHeader" width="50" label="Id" sortable="true" sortBy="#{edt.id}" sortIconAscending="dataTableAscIcon" sortIconDescending="dataTableDescIcon">
+ <f:facet name="header">
+ <h:outputText value="Id" />
+ </f:facet>
+ <h:outputText value="#{edt.id}" />
+ </rich:column>
+ <rich:column id="name" width="300" headerClass="dataTableHeader" label="Name" sortable="true" sortBy="#{edt.name}" sortIconAscending="dataTableAscIcon" sortIconDescending="dataTableDescIcon" filterBy="#{edt.name}" filterEvent="keyup" visible="false">
+ <f:facet name="header">
+ <h:outputText value="Name" />
+ </f:facet>
+ <h:outputText value="#{edt.name}" />
+ </rich:column>
+ <rich:column id="date" width="100" headerClass="dataTableHeader" label="Date" sortable="true" comparator="#{extendedDT.dateComparator}" sortIconAscending="dataTableAscIcon" sortIconDescending="dataTableDescIcon">
+ <f:facet name="header">
+ <h:outputText value="Date" />
+ </f:facet>
+ <h:outputText value="#{edt.date}"><f:convertDateTime pattern="yyyy-MM-dd HH:mm:ss" />
+ </h:outputText>
+ </rich:column>
+ <rich:column id="group" width="50" headerClass="dataTableHeader" label="Group" sortable="true" sortBy="#{edt.group}" sortIconAscending="dataTableAscIcon" sortIconDescending="dataTableDescIcon">
+ <f:facet name="header">
+ <h:outputText value="Group" />
+ </f:facet>
+ <h:outputText value="#{edt.group}" />
+ </rich:column>
</rich:extendedDataTable>
Modified: modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-a4jajax-a4jajax_example.xml_sample
===================================================================
--- modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-a4jajax-a4jajax_example.xml_sample 2011-02-03 02:40:56 UTC (rev 21407)
+++ modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-a4jajax-a4jajax_example.xml_sample 2011-02-03 04:40:17 UTC (rev 21408)
@@ -1,6 +1,6 @@
<h:panelGrid columns="2">
<h:inputText id="myinput" value="#{userBean.name}">
- <a4j:ajax event="onkeyup" render="outtext" />
+ <a4j:ajax event="keyup" render="outtext" />
</h:inputText>
<h:outputText id="outtext" value="#{userBean.name}" />
</h:panelGrid>
Modified: modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-a4jstatus-Updating_a_common_a4jstatus_component.xml_sample
===================================================================
--- modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-a4jstatus-Updating_a_common_a4jstatus_component.xml_sample 2011-02-03 02:40:56 UTC (rev 21407)
+++ modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-a4jstatus-Updating_a_common_a4jstatus_component.xml_sample 2011-02-03 04:40:17 UTC (rev 21408)
@@ -7,12 +7,12 @@
<h:panelGrid columns="2">
<h:outputText value="Name" />
<h:inputText id="name" value="#{userBean.name}">
- <a4j:support event="onkeyup" reRender="out" status="commonstatus" />
+ <a4j:support event="keyup" reRender="out" status="commonstatus" />
</h:inputText>
<h:outputText value="Job" />
<h:inputText id="job" value="#{userBean.job}">
- <a4j:support event="onkeyup" reRender="out" status="commonstatus" />
+ <a4j:support event="keyup" reRender="out" status="commonstatus" />
</h:inputText>
<h:panelGroup />
Modified: modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richajaxValidator-Using_richajaxValidator_with_Hibernate_Validator-0.xml_sample
===================================================================
--- modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richajaxValidator-Using_richajaxValidator_with_Hibernate_Validator-0.xml_sample 2011-02-03 02:40:56 UTC (rev 21407)
+++ modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richajaxValidator-Using_richajaxValidator_with_Hibernate_Validator-0.xml_sample 2011-02-03 04:40:17 UTC (rev 21408)
@@ -1,24 +1,24 @@
<h:form id="ajaxValidatorForm2">
- <rich:panel>
- <f:facet name="header">
- <h:outputText value="User Info:" />
- </f:facet>
- <h:panelGrid columns="3">
- <h:outputText value="Name:" />
- <h:inputText value="#{validationBean.name}" id="name" required="true">
- <rich:ajaxValidator event="onblur" />
- </h:inputText>
- <rich:message for="name" />
- <h:outputText value="Email:" />
- <h:inputText value="#{validationBean.email}" id="email">
- <rich:ajaxValidator event="onblur" />
- </h:inputText>
- <rich:message for="email" />
- <h:outputText value="Age:" />
- <h:inputText value="#{validationBean.age}" id="age">
- <rich:ajaxValidator event="onblur" />
- </h:inputText>
- <rich:message for="age" />
- </h:panelGrid>
- </rich:panel>
+ <rich:panel>
+ <f:facet name="header">
+ <h:outputText value="User Info:" />
+ </f:facet>
+ <h:panelGrid columns="3">
+ <h:outputText value="Name:" />
+ <h:inputText value="#{validationBean.name}" id="name" required="true">
+ <rich:ajaxValidator event="blur" />
+ </h:inputText>
+ <rich:message for="name" />
+ <h:outputText value="Email:" />
+ <h:inputText value="#{validationBean.email}" id="email">
+ <rich:ajaxValidator event="blur" />
+ </h:inputText>
+ <rich:message for="email" />
+ <h:outputText value="Age:" />
+ <h:inputText value="#{validationBean.age}" id="age">
+ <rich:ajaxValidator event="blur" />
+ </h:inputText>
+ <rich:message for="age" />
+ </h:panelGrid>
+ </rich:panel>
</h:form>
Modified: modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richajaxValidator-richajaxValidator_example.xml_sample
===================================================================
--- modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richajaxValidator-richajaxValidator_example.xml_sample 2011-02-03 02:40:56 UTC (rev 21407)
+++ modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richajaxValidator-richajaxValidator_example.xml_sample 2011-02-03 04:40:17 UTC (rev 21408)
@@ -1,23 +1,23 @@
<rich:panel>
- <f:facet name="header">
- <h:outputText value="User Info:" />
- </f:facet>
- <h:panelGrid columns="3">
-
- <h:outputText value="Name:" />
- <h:inputText value="#{userBean.name}" id="name" required="true">
- <f:validateLength minimum="3" maximum="12"/>
- <rich:ajaxValidator event="onblur"/>
- </h:inputText>
- <rich:message for="name" />
-
- <h:outputText value="Age:" />
- <h:inputText value="#{userBean.age}" id="age" required="true">
- <f:convertNumber integerOnly="true"/>
- <f:validateLongRange minimum="18" maximum="99"/>
- <rich:ajaxValidator event="onblur"/>
- </h:inputText>
- <rich:message for="age"/>
-
- </h:panelGrid>
+ <f:facet name="header">
+ <h:outputText value="User Info:" />
+ </f:facet>
+ <h:panelGrid columns="3">
+
+ <h:outputText value="Name:" />
+ <h:inputText value="#{userBean.name}" id="name" required="true">
+ <f:validateLength minimum="3" maximum="12"/>
+ <rich:ajaxValidator event="blur"/>
+ </h:inputText>
+ <rich:message for="name" />
+
+ <h:outputText value="Age:" />
+ <h:inputText value="#{userBean.age}" id="age" required="true">
+ <f:convertNumber integerOnly="true"/>
+ <f:validateLongRange minimum="18" maximum="99"/>
+ <rich:ajaxValidator event="blur"/>
+ </h:inputText>
+ <rich:message for="age"/>
+
+ </h:panelGrid>
</rich:panel>
Modified: modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richcomponentControl-Attaching_richcomponentControl_to_a_component.xml_sample
===================================================================
--- modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richcomponentControl-Attaching_richcomponentControl_to_a_component.xml_sample 2011-02-03 02:40:56 UTC (rev 21407)
+++ modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richcomponentControl-Attaching_richcomponentControl_to_a_component.xml_sample 2011-02-03 04:40:17 UTC (rev 21408)
@@ -1 +1 @@
-<rich:componentControl attachTo="doExpandCalendarID" event="onclick" operation="Expand" for="ccCalendarID" />
+<rich:componentControl attachTo="doExpandCalendarID" event="click" operation="Expand" for="ccCalendarID" />
Modified: modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richcomponentControl-Using_parameters-0.xml_sample
===================================================================
--- modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richcomponentControl-Using_parameters-0.xml_sample 2011-02-03 02:40:56 UTC (rev 21407)
+++ modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richcomponentControl-Using_parameters-0.xml_sample 2011-02-03 04:40:17 UTC (rev 21408)
@@ -1 +1 @@
-<rich:componentControl name="func" event="onRowClick" for="menu" operation="show" params="#{car.model}"/>
+<rich:componentControl name="func" event="rowclick" for="menu" operation="show" params="#{car.model}"/>
Modified: modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richcomponentControl-Using_parameters-1.xml_sample
===================================================================
--- modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richcomponentControl-Using_parameters-1.xml_sample 2011-02-03 02:40:56 UTC (rev 21407)
+++ modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richcomponentControl-Using_parameters-1.xml_sample 2011-02-03 04:40:17 UTC (rev 21408)
@@ -1,3 +1,3 @@
-<rich:componentControl event="onRowClick" for="menu" operation="show">
+<rich:componentControl event="rowclick" for="menu" operation="show">
<f:param value="#{car.model}" name="model"/>
</rich:componentControl>
Modified: modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richcomponentControl-richcomponentControl_basic_usage.xml_sample
===================================================================
--- modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richcomponentControl-richcomponentControl_basic_usage.xml_sample 2011-02-03 02:40:56 UTC (rev 21407)
+++ modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richcomponentControl-richcomponentControl_basic_usage.xml_sample 2011-02-03 04:40:17 UTC (rev 21408)
@@ -1,4 +1,4 @@
<h:commandButton value="Show Modal Panel">
<!--componentControl is attached to the commandButton-->
- <rich:componentControl for="ccModalPanelID" event="onclick" operation="show"/>
+ <rich:componentControl for="ccModalPanelID" event="click" operation="show"/>
</h:commandButton>
Added: modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richfindComponent-richfindComponent_example.xml_sample
===================================================================
--- modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richfindComponent-richfindComponent_example.xml_sample (rev 0)
+++ modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richfindComponent-richfindComponent_example.xml_sample 2011-02-03 04:40:17 UTC (rev 21408)
@@ -0,0 +1,4 @@
+<h:inputText id="myInput">
+ <a4j:support event="keyup" render="outtext"/>
+</h:inputText>
+<h:outputText id="outtext" value="#{rich:findComponent('myInput').value}" />
Added: modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richisUserInRole-richisUserInRole_example.xml_sample
===================================================================
--- modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richisUserInRole-richisUserInRole_example.xml_sample (rev 0)
+++ modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richisUserInRole-richisUserInRole_example.xml_sample 2011-02-03 04:40:17 UTC (rev 21408)
@@ -0,0 +1 @@
+<rich:editor value="#{bean.text}" rendered="#{rich:isUserInRole('admin')}"/>
Modified: modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richjQuery-richjQuery_example.xml_sample
===================================================================
--- modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richjQuery-richjQuery_example.xml_sample 2011-02-03 02:40:56 UTC (rev 21407)
+++ modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richjQuery-richjQuery_example.xml_sample 2011-02-03 04:40:17 UTC (rev 21408)
@@ -1,5 +1,5 @@
<rich:dataTable id="customList" ... >
- ...
+ ...
</rich:dataTable>
-<rich:jQuery selector="#customList tr:odd" timing="ondomready" query="addClass(odd)" />
+<rich:jQuery selector="#customList tr:odd" timing="domready" query="addClass(odd)" />
13 years, 3 months
JBoss Rich Faces SVN: r21407 - in modules/docs/trunk/Component_Reference/src/main/docbook/en-US: extras and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: SeanRogers
Date: 2011-02-02 21:40:56 -0500 (Wed, 02 Feb 2011)
New Revision: 21407
Modified:
modules/docs/trunk/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Menus_and_toolbars.xml
modules/docs/trunk/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Panels_and_containers.xml
modules/docs/trunk/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Rich_inputs.xml
modules/docs/trunk/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Trees.xml
modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richpanelMenu-richpanelMenu.xml_sample
modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richpanelMenuGroup-Using_custom_icons.xml_sample
modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richpanelMenuItem-Using_custom_icons.xml_sample
modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richtree-nodeType_attribute.xml_sample
modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richtreeNode-rendered_attribute.xml_sample
Log:
Preliminary changes to class and icon names for RF-10355
Modified: modules/docs/trunk/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Menus_and_toolbars.xml
===================================================================
--- modules/docs/trunk/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Menus_and_toolbars.xml 2011-02-03 00:52:34 UTC (rev 21406)
+++ modules/docs/trunk/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Menus_and_toolbars.xml 2011-02-03 02:40:56 UTC (rev 21407)
@@ -474,8 +474,8 @@
</para>
<variablelist>
<varlistentry>
- <term><varname>topExpandedIconLeft</varname></term>
- <term><varname>topExpandedIconRight</varname></term>
+ <term><varname>topGroupExpandedLeftIcon</varname></term>
+ <term><varname>topGroupExpandedRightIcon</varname></term>
<listitem>
<para>
These attributes determine the icons for the top level menu when it is expanded.
@@ -483,8 +483,8 @@
</listitem>
</varlistentry>
<varlistentry>
- <term><varname>topCollapsedIconLeft</varname></term>
- <term><varname>topCollapsedIconRight</varname></term>
+ <term><varname>topGroupCollapsedLeftIcon</varname></term>
+ <term><varname>topGroupCollapsedRightIcon</varname></term>
<listitem>
<para>
These attributes determine the icons for the top level menu when it is collapsed.
@@ -492,8 +492,8 @@
</listitem>
</varlistentry>
<varlistentry>
- <term><varname>topDisabledIconLeft</varname></term>
- <term><varname>topDisabledIconRight</varname></term>
+ <term><varname>topGroupDisabledLeftIcon</varname></term>
+ <term><varname>topGroupDisabledRightIcon</varname></term>
<listitem>
<para>
These attributes determine the icons for the top level menu when it is disabled.
@@ -501,8 +501,8 @@
</listitem>
</varlistentry>
<varlistentry>
- <term><varname>groupExpandedIconLeft</varname></term>
- <term><varname>groupExpandedIconRight</varname></term>
+ <term><varname>groupExpandedLeftIcon</varname></term>
+ <term><varname>groupExpandedRightIcon</varname></term>
<listitem>
<para>
These attributes determine the icons for sub-menus that are not the top-level menu when they are expanded.
@@ -510,8 +510,8 @@
</listitem>
</varlistentry>
<varlistentry>
- <term><varname>groupCollapsedIconLeft</varname></term>
- <term><varname>groupCollapsedIconRight</varname></term>
+ <term><varname>groupCollapsedLeftIcon</varname></term>
+ <term><varname>groupCollapsedRightIcon</varname></term>
<listitem>
<para>
These attributes determine the icons for sub-menus that are not the top-level menu when they are collapsed.
@@ -519,8 +519,8 @@
</listitem>
</varlistentry>
<varlistentry>
- <term><varname>groupDisabledIconLeft</varname></term>
- <term><varname>groupDisabledIconRight</varname></term>
+ <term><varname>groupDisabledLeftIcon</varname></term>
+ <term><varname>groupDisabledRightIcon</varname></term>
<listitem>
<para>
These attributes determine the icons for sub-menus that are not the top-level menu when they are disabled.
@@ -528,8 +528,8 @@
</listitem>
</varlistentry>
<varlistentry>
- <term><varname>itemIconLeft</varname></term>
- <term><varname>itemIconRight</varname></term>
+ <term><varname>itemLeftIcon</varname></term>
+ <term><varname>itemRightIcon</varname></term>
<listitem>
<para>
These attributes determine the icons for items in the menus.
@@ -537,8 +537,8 @@
</listitem>
</varlistentry>
<varlistentry>
- <term><varname>itemIconDisabledLeft</varname></term>
- <term><varname>itemIconDisabledRight</varname></term>
+ <term><varname>itemDisabledLeftIcon</varname></term>
+ <term><varname>itemDisabledRightIcon</varname></term>
<listitem>
<para>
These attributes determine the icons for items in the menus when they are disabled.
@@ -641,29 +641,29 @@
</para>
<variablelist>
<varlistentry>
- <term><varname>iconLeftExpanded</varname></term>
- <term><varname>iconRightExpanded</varname></term>
+ <term><varname>leftExpandedIcon</varname></term>
+ <term><varname>rightExpandedIcon</varname></term>
<listitem>
<para>
- These attributes determine the icons for a menu group when it is expanded. If unspecified, the menu group uses the <varname>groupExpandedIconLeft</varname> and <varname>groupExpandedIconRight</varname> parameters defined in the parent <sgmltag><rich:panelMenu></sgmltag> component.
+ These attributes determine the icons for a menu group when it is expanded. If unspecified, the menu group uses the <varname>groupExpandedLeftIcon</varname> and <varname>groupExpandedRightIcon</varname> parameters defined in the parent <sgmltag><rich:panelMenu></sgmltag> component.
</para>
</listitem>
</varlistentry>
<varlistentry>
- <term><varname>iconLeftCollapsed</varname></term>
- <term><varname>iconRightCollapsed</varname></term>
+ <term><varname>leftCollapsedIcon</varname></term>
+ <term><varname>rightCollapsedIcon</varname></term>
<listitem>
<para>
- These attributes determine the icons for a menu group menu when it is collapsed. If unspecified, the menu group uses the <varname>groupCollapsedIconLeft</varname> and <varname>groupCollapsedIconRight</varname> parameters defined in the parent <sgmltag><rich:panelMenu></sgmltag> component.
+ These attributes determine the icons for a menu group menu when it is collapsed. If unspecified, the menu group uses the <varname>groupCollapsedLeftIcon</varname> and <varname>groupCollapsedRightIcon</varname> parameters defined in the parent <sgmltag><rich:panelMenu></sgmltag> component.
</para>
</listitem>
</varlistentry>
<varlistentry>
- <term><varname>iconLeftDisabled</varname></term>
- <term><varname>iconRightDisabled</varname></term>
+ <term><varname>leftDisabledIcon</varname></term>
+ <term><varname>rightDisabledIcon</varname></term>
<listitem>
<para>
- These attributes determine the icons for a menu group menu when it is disabled. If unspecified, the menu group uses the <varname>groupDisabledIconLeft</varname> and <varname>groupDisabledIconRight</varname> parameters defined in the parent <sgmltag><rich:panelMenu></sgmltag> component.
+ These attributes determine the icons for a menu group menu when it is disabled. If unspecified, the menu group uses the <varname>groupDisabledLeftIcon</varname> and <varname>groupDisabledRightIcon</varname> parameters defined in the parent <sgmltag><rich:panelMenu></sgmltag> component.
</para>
</listitem>
</varlistentry>
@@ -748,20 +748,20 @@
</para>
<variablelist>
<varlistentry>
- <term><varname>iconLeft</varname></term>
- <term><varname>iconRight</varname></term>
+ <term><varname>itemLeftIcon</varname></term>
+ <term><varname>itemRightIcon</varname></term>
<listitem>
<para>
- These attributes determine the icons for a menu item. If unspecified, the menu group uses the <varname>itemIconLeft</varname> and <varname>itemIconRight</varname> parameters defined in the parent <sgmltag><rich:panelMenu></sgmltag> component.
+ These attributes determine the icons for a menu item. If unspecified, the menu group uses the <varname>itemLeftIcon</varname> and <varname>itemRightIcon</varname> parameters defined in the parent <sgmltag><rich:panelMenu></sgmltag> component.
</para>
</listitem>
</varlistentry>
<varlistentry>
- <term><varname>iconLeftDisabled</varname></term>
- <term><varname>iconRightDisabled</varname></term>
+ <term><varname>itemDisabledLeftIcon</varname></term>
+ <term><varname>itemDisabledRightIcon</varname></term>
<listitem>
<para>
- These attributes determine the icons for a menu item when it is disabled. If unspecified, the menu group uses the <varname>itemIconDisabledLeft</varname> and <varname>itemIconDisabledRight</varname> parameters defined in the parent <sgmltag><rich:panelMenu></sgmltag> component.
+ These attributes determine the icons for a menu item when it is disabled. If unspecified, the menu group uses the <varname>itemDisabledRightIcon</varname> and <varname>itemDisabledLeftIcon</varname> parameters defined in the parent <sgmltag><rich:panelMenu></sgmltag> component.
</para>
</listitem>
</varlistentry>
Modified: modules/docs/trunk/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Panels_and_containers.xml
===================================================================
--- modules/docs/trunk/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Panels_and_containers.xml 2011-02-03 00:52:34 UTC (rev 21406)
+++ modules/docs/trunk/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Panels_and_containers.xml 2011-02-03 02:40:56 UTC (rev 21407)
@@ -849,7 +849,7 @@
</para>
<variablelist>
<varlistentry>
- <term><literal>headerActive</literal> facet</term>
+ <term><literal>headerActiveClass</literal> facet</term>
<listitem>
<para>
This facet is used when the tab is the currently active tab.
@@ -857,7 +857,7 @@
</listitem>
</varlistentry>
<varlistentry>
- <term><literal>headerInactive</literal> facet</term>
+ <term><literal>headerInactiveClass</literal> facet</term>
<listitem>
<para>
This facet is used when the tab is not currently active.
@@ -865,7 +865,7 @@
</listitem>
</varlistentry>
<varlistentry>
- <term><literal>headerDisabled</literal> facet</term>
+ <term><literal>headerDisabledClass</literal> facet</term>
<listitem>
<para>
This facet is used when the tab is disabled.
Modified: modules/docs/trunk/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Rich_inputs.xml
===================================================================
--- modules/docs/trunk/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Rich_inputs.xml 2011-02-03 00:52:34 UTC (rev 21406)
+++ modules/docs/trunk/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Rich_inputs.xml 2011-02-03 02:40:56 UTC (rev 21407)
@@ -260,7 +260,7 @@
To add keyboard support for manual input, set <code>enableManualInput="true"</code>. To disable the calendar from any user input, set <code>disabled="true"</code>.
</para>
<para>
- To change the appearance of the display button from the standard calendar icon, use the <varname>buttonIcon</varname> and <varname>buttonIconDisabled</varname> attributes to replace the icon with a specified file. Alternatively, use the <varname>buttonLabel</varname> attribute to display text on the button without an icon. If <varname>buttonLabel</varname> is specified then both the <varname>buttonIcon</varname> and <varname>buttonIconDisabled</varname> attributes are ignored. To hide the text field box, set <code>showInput="false"</code>.
+ To change the appearance of the display button from the standard calendar icon, use the <varname>buttonIcon</varname> and <varname>buttonDisabledIcon</varname> attributes to replace the icon with a specified file. Alternatively, use the <varname>buttonLabel</varname> attribute to display text on the button without an icon. If <varname>buttonLabel</varname> is specified then both the <varname>buttonIcon</varname> and <varname>buttonDisabledIcon</varname> attributes are ignored. To hide the text field box, set <code>showInput="false"</code>.
</para>
<!-- TODO not in M4 -->
<!--
Modified: modules/docs/trunk/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Trees.xml
===================================================================
--- modules/docs/trunk/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Trees.xml 2011-02-03 00:52:34 UTC (rev 21406)
+++ modules/docs/trunk/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Trees.xml 2011-02-03 02:40:56 UTC (rev 21407)
@@ -52,7 +52,7 @@
<section id="sect-Component_Reference-richtree-Appearance">
<title>Appearance</title>
<para>
- Different nodes in the tree can have different appearances, such as node icons, depending on the type of data the node contains. Use the <varname>nodeType</varname> attribute to differentiate the types of nodes; the node is then rendered according to the <sgmltag><rich:treeNode></sgmltag> component with the corresponding <varname>type</varname> attribute. <xref linkend="exam-Component_Reference-richtree-Appearance" /> shows a <sgmltag><rich:tree></sgmltag> component with three different child <sgmltag><rich:treeNode></sgmltag> components defined to represent three different node appearances. Refer to <xref linkend="sect-Component_Reference-richtreeNode-Appearance" /> for details on customizing the appearance of <sgmltag><rich:treeNode></sgmltag> components.
+ Different nodes in the tree can have different appearances, such as node icons, depending on the type of data the node contains. Use the <varname>nodeType</varname> attribute to differentiate the types of nodes; the node is then rendered according to the <sgmltag><rich:treeNode></sgmltag> component with the corresponding <varname>type</varname> attribute. <xref linkend="exam-Component_Reference-richtree-nodeType_attribute" /> shows a <sgmltag><rich:tree></sgmltag> component with three different child <sgmltag><rich:treeNode></sgmltag> components defined to represent three different node appearances. Refer to <xref linkend="sect-Component_Reference-richtreeNode-Appearance" /> for details on customizing the appearance of <sgmltag><rich:treeNode></sgmltag> components.
</para>
<example id="exam-Component_Reference-richtree-nodeType_attribute">
<title><varname>nodeType</varname> attribute</title>
@@ -365,7 +365,7 @@
Use the <varname>rendered</varname> attribute to determine whether the node should actually be rendered in the tree or not. Using the <varname>rendered</varname> attribute in combination with the <sgmltag><rich:treeNode></sgmltag> <varname>type</varname> attribute can allow further style differentiation between node content, as shown in <xref linkend="exam-Component_Reference-richtreeNode-rendered_attribute" />.
</para>
<example id="exam-Component_Reference-richtreeNode-rendered_attribute">
- <title>rendered attribute</title>
+ <title><varname>rendered</varname> attribute</title>
<para>
The <varname>rendered</varname> attribute is used to differentiate between music albums that are in stock and those that are not. The item <varname>type</varname> attributes return values that are otherwise identical; only the <property>item.exist</property> property differs, so it is used for the <varname>rendered</varname> attribute.
</para>
Modified: modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richpanelMenu-richpanelMenu.xml_sample
===================================================================
--- modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richpanelMenu-richpanelMenu.xml_sample 2011-02-03 00:52:34 UTC (rev 21406)
+++ modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richpanelMenu-richpanelMenu.xml_sample 2011-02-03 02:40:56 UTC (rev 21407)
@@ -1,8 +1,8 @@
<rich:panelMenu mode="ajax"
- topExpandedIconRight="chevronUp"
- topCollapsedIconRight="chevronDown"
- groupExpandedIconLeft="disc"
- groupCollapsedIconLeft="disc">
+ topGroupExpandedRightIcon="chevronUp"
+ topGroupCollapsedRightIcon="chevronDown"
+ groupExpandedLeftIcon="disc"
+ groupCollapsedLeftIcon="disc">
<rich:panelMenuGroup label="Group 1">
<rich:panelMenuItem label="Item 1.1"/>
<rich:panelMenuItem label="Item 1.2"/>
Modified: modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richpanelMenuGroup-Using_custom_icons.xml_sample
===================================================================
--- modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richpanelMenuGroup-Using_custom_icons.xml_sample 2011-02-03 00:52:34 UTC (rev 21406)
+++ modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richpanelMenuGroup-Using_custom_icons.xml_sample 2011-02-03 02:40:56 UTC (rev 21407)
@@ -1,5 +1,5 @@
<rich:panelMenu>
- <rich:PanelMenuGroup label="Group 1" iconLeftExpanded="\images\img1.png" iconLeftCollapsed="\images\img2.png">
+ <rich:PanelMenuGroup label="Group 1" leftExpandedIcon="\images\img1.png" leftCollapsedIcon="\images\img2.png">
<!-- Nested menu components -->
</rich:panelMenuGroup>
</rich:panelMenu>
Modified: modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richpanelMenuItem-Using_custom_icons.xml_sample
===================================================================
--- modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richpanelMenuItem-Using_custom_icons.xml_sample 2011-02-03 00:52:34 UTC (rev 21406)
+++ modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richpanelMenuItem-Using_custom_icons.xml_sample 2011-02-03 02:40:56 UTC (rev 21407)
@@ -1,5 +1,5 @@
<rich:panelMenu>
...
- <rich:panelMenuItem value="Item 1.1" iconLeft="\images\img1.png" iconLeftDisabled="\images\img2.png" />
+ <rich:panelMenuItem value="Item 1.1" itemLeftIcon="\images\img1.png" itemDisabledLeftIcon="\images\img2.png" />
...
</rich:panelMenu>
Modified: modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richtree-nodeType_attribute.xml_sample
===================================================================
--- modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richtree-nodeType_attribute.xml_sample 2011-02-03 00:52:34 UTC (rev 21406)
+++ modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richtree-nodeType_attribute.xml_sample 2011-02-03 02:40:56 UTC (rev 21407)
@@ -1,11 +1,11 @@
<rich:tree style="width:300px" value="#{library.data}" var="item" nodeType="#{item.type}">
- <rich:treeNode type="artist" iconLeaf="/images/tree/singer.png" icon="/images/tree/singer.png">
+ <rich:treeNode type="artist" iconLeaf="/images/tree/singer.png">
<h:outputText value="#{item.name}" />
</rich:treeNode>
- <rich:treeNode type="album" iconLeaf="/images/tree/disc.png" icon="/images/tree/disc.png">
+ <rich:treeNode type="album" iconLeaf="/images/tree/disc.png">
<h:outputText value="#{item.title}" />
</rich:treeNode>
- <rich:treeNode type="song" iconLeaf="/images/tree/song.png" icon="/images/tree/song.png">
+ <rich:treeNode type="song" iconLeaf="/images/tree/song.png">
<h:outputText value="#{item.title}" />
</rich:treeNode>
</rich:tree>
Modified: modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richtreeNode-rendered_attribute.xml_sample
===================================================================
--- modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richtreeNode-rendered_attribute.xml_sample 2011-02-03 00:52:34 UTC (rev 21406)
+++ modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richtreeNode-rendered_attribute.xml_sample 2011-02-03 02:40:56 UTC (rev 21407)
@@ -1,10 +1,11 @@
-<rich:tree style="width:300px" value="#{library.data}" var="item" nodeFace="#{item.type}">
+<rich:tree style="width:300px" value="#{library.data}"
+ var="item" nodeFace="#{item.type}">
...
- <rich:treeNode type="album" iconLeaf="/images/tree/album.gif" icon="/images/tree/album.gif"
+ <rich:treeNode type="album" iconLeaf="/images/tree/album.gif"
rendered="#{item.exist}">
<h:outputText value="#{item.name}" />
</rich:treeNode>
- <rich:treeNode type="album" iconLeaf="/images/tree/album_absent.gif" icon="/images/tree/album_absent.gif"
+ <rich:treeNode type="album" iconLeaf="/images/tree/album_absent.gif"
rendered="#{not item.exist}">
<h:outputText value="#{item.name}" />
</rich:treeNode>
13 years, 3 months
JBoss Rich Faces SVN: r21406 - in branches/enterprise/3.3.X: sandbox/samples/maven-rd-plugin-sample and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: jbalunas(a)redhat.com
Date: 2011-02-02 19:52:34 -0500 (Wed, 02 Feb 2011)
New Revision: 21406
Modified:
branches/enterprise/3.3.X/docs/userguide/en/src/main/docbook/modules/RFCfaq.xml
branches/enterprise/3.3.X/sandbox/samples/maven-rd-plugin-sample/pom.xml
Log:
RF-10415 removed/updated old references to the jboss.org/maven2
Modified: branches/enterprise/3.3.X/docs/userguide/en/src/main/docbook/modules/RFCfaq.xml
===================================================================
--- branches/enterprise/3.3.X/docs/userguide/en/src/main/docbook/modules/RFCfaq.xml 2011-02-03 00:20:48 UTC (rev 21405)
+++ branches/enterprise/3.3.X/docs/userguide/en/src/main/docbook/modules/RFCfaq.xml 2011-02-03 00:52:34 UTC (rev 21406)
@@ -42,23 +42,6 @@
</section>
<section>
- <?dbhtml filename="IstheredemoforRichFacescomponents.html"?>
- <title>Where could I find a demo for RichFaces 3.1.0 components?</title>
- <para>Online demo Web applications that show the most important functionality of
- RichFaces components are available on<ulink
- url="http://livedemo.exadel.com/richfaces-demo/">RichFaces Live Demo</ulink>.</para>
- <para>War file of a nightly build can be found on the <ulink
- url="http://snapshots.jboss.org/maven2/org/richfaces/ui/richfaces-ui/3.3.0-SNA..."
- >Snapshots repository</ulink>.</para>
- <para>Source Code (SVN) can be found in<ulink
- url="http://anonsvn.jboss.org/repos/richfaces/trunk/samples/richfaces-demo/"
- >repository</ulink>.</para>
- <para>See also <ulink
- url="http://www.jboss.com/index.html?module=bb&op=viewtopic&t=113454"
- >how to prevent richfaces-demo deployment failed</ulink>.</para>
- </section>
-
- <section>
<?dbhtml filename="HowtouseSkinnability.html"?>
<title>How to use Skinnability?</title>
<para>Here is an <ulink
Modified: branches/enterprise/3.3.X/sandbox/samples/maven-rd-plugin-sample/pom.xml
===================================================================
--- branches/enterprise/3.3.X/sandbox/samples/maven-rd-plugin-sample/pom.xml 2011-02-03 00:20:48 UTC (rev 21405)
+++ branches/enterprise/3.3.X/sandbox/samples/maven-rd-plugin-sample/pom.xml 2011-02-03 00:52:34 UTC (rev 21406)
@@ -15,7 +15,7 @@
<pluginRepository>
<id>jboss central</id>
<name>Maven Plugin Repository</name>
- <url>http://repository.jboss.org/maven2</url>
+ <url>http://repository.jboss.org/nexus/content/groups/public-jboss/</url>
</pluginRepository>
</pluginRepositories>
13 years, 3 months
JBoss Rich Faces SVN: r21405 - trunk/ui/validator/ui/src/main/resources/META-INF.
by richfaces-svn-commits@lists.jboss.org
Author: alexsmirnov
Date: 2011-02-02 19:20:48 -0500 (Wed, 02 Feb 2011)
New Revision: 21405
Modified:
trunk/ui/validator/ui/src/main/resources/META-INF/csv.xml
Log:
CODING IN PROGRESS - issue RF-10311: CSV: JSR-303 validators works using ajax falback only
https://issues.jboss.org/browse/RF-10311
Modified: trunk/ui/validator/ui/src/main/resources/META-INF/csv.xml
===================================================================
--- trunk/ui/validator/ui/src/main/resources/META-INF/csv.xml 2011-02-03 00:20:44 UTC (rev 21404)
+++ trunk/ui/validator/ui/src/main/resources/META-INF/csv.xml 2011-02-03 00:20:48 UTC (rev 21405)
@@ -73,7 +73,7 @@
<function>RichFaces.csv.convertDouble</function>
</component>
<component>
- <type>javax.faces.convert.DateConverter</type>
+ <type>javax.faces.convert.DateTimeConverter</type>
<resource>
<name>csv.reslib</name>
<library>org.richfaces</library>
@@ -137,6 +137,14 @@
<function>RichFaces.csv.validateRequired</function>
</component>
<component>
+ <type>org.hibernate.validator.constraints.NotEmpty</type>
+ <resource>
+ <name>csv.reslib</name>
+ <library>org.richfaces</library>
+ </resource>
+ <function>RichFaces.csv.validateRequired</function>
+ </component>
+ <component>
<type>javax.validation.constraints.Size</type>
<resource>
<name>csv.reslib</name>
13 years, 3 months
JBoss Rich Faces SVN: r21404 - in trunk/examples/validator-demo/src/main: webapp/WEB-INF and 1 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: alexsmirnov
Date: 2011-02-02 19:20:44 -0500 (Wed, 02 Feb 2011)
New Revision: 21404
Added:
trunk/examples/validator-demo/src/main/java/org/richfaces/example/PatternBean.java
trunk/examples/validator-demo/src/main/java/org/richfaces/example/SizeBean.java
Removed:
trunk/examples/validator-demo/src/main/java/org/richfaces/example/LengthBean.java
trunk/examples/validator-demo/src/main/webapp/examples/client-validator.xhtml
Modified:
trunk/examples/validator-demo/src/main/java/org/richfaces/example/DataBean.java
trunk/examples/validator-demo/src/main/java/org/richfaces/example/MaxBean.java
trunk/examples/validator-demo/src/main/java/org/richfaces/example/MinBean.java
trunk/examples/validator-demo/src/main/java/org/richfaces/example/MinMaxBean.java
trunk/examples/validator-demo/src/main/java/org/richfaces/example/NotEmptyBean.java
trunk/examples/validator-demo/src/main/java/org/richfaces/example/NotNullBean.java
trunk/examples/validator-demo/src/main/java/org/richfaces/example/Validable.java
trunk/examples/validator-demo/src/main/webapp/WEB-INF/faces-config.xml
trunk/examples/validator-demo/src/main/webapp/examples/ajax-validator.xhtml
trunk/examples/validator-demo/src/main/webapp/examples/beanValidation.xhtml
trunk/examples/validator-demo/src/main/webapp/examples/graphValidation.xhtml
Log:
CODING IN PROGRESS - issue RF-10311: CSV: JSR-303 validators works using ajax falback only
https://issues.jboss.org/browse/RF-10311
Modified: trunk/examples/validator-demo/src/main/java/org/richfaces/example/DataBean.java
===================================================================
--- trunk/examples/validator-demo/src/main/java/org/richfaces/example/DataBean.java 2011-02-02 22:56:49 UTC (rev 21403)
+++ trunk/examples/validator-demo/src/main/java/org/richfaces/example/DataBean.java 2011-02-03 00:20:44 UTC (rev 21404)
@@ -16,31 +16,36 @@
*/
public class DataBean {
- private final List<Validable> beans;
+ private final List<Validable<?>> beans;
/**
* @return the beans
*/
@Valid
- public List<Validable> getBeans() {
+ public List<Validable<?>> getBeans() {
return beans;
}
public DataBean() {
- beans = new ArrayList<Validable>(6);
+ beans = new ArrayList<Validable<?>>(7);
beans.add(new NotNullBean());
beans.add(new NotEmptyBean());
- beans.add(new LengthBean());
+ beans.add(new SizeBean());
beans.add(new MinBean());
beans.add(new MaxBean());
beans.add(new MinMaxBean());
+ beans.add(new PatternBean());
}
@Max(value=20,message="Total value should be less then 20")
public int getTotal(){
int total = 0;
- for (Validable bean : beans) {
- total += bean.getIntValue();
+ for (Validable<?> bean : beans) {
+ Object value = bean.getValue();
+ if (value instanceof Integer) {
+ Integer intValue = (Integer) value;
+ total += intValue;
+ }
}
return total;
}
Deleted: trunk/examples/validator-demo/src/main/java/org/richfaces/example/LengthBean.java
===================================================================
--- trunk/examples/validator-demo/src/main/java/org/richfaces/example/LengthBean.java 2011-02-02 22:56:49 UTC (rev 21403)
+++ trunk/examples/validator-demo/src/main/java/org/richfaces/example/LengthBean.java 2011-02-03 00:20:44 UTC (rev 21404)
@@ -1,64 +0,0 @@
-/**
- *
- */
-package org.richfaces.example;
-
-import org.hibernate.validator.constraints.Length;
-
-
-/**
- * @author asmirnov
- *
- */
-public class LengthBean implements Validable {
-
- @Length(max=10,min=2,message="incorrect field length")
- private String text;
-
- private int intValue;
-
- /**
- * @return the text
- */
- public String getText() {
- return text;
- }
-
- /**
- * @param text the text to set
- */
- public void setText(String text) {
- this.text = text;
- }
-
- /**
- * @return the intValue
- */
- public int getIntValue() {
- return intValue;
- }
-
- /**
- * @param intValue the intValue to set
- */
- public void setIntValue(int intValue) {
- this.intValue = intValue;
- }
-
- public String getTextDescription() {
- return "Validate String Length, for a range 2-10 chars";
- }
-
- public String getIntDescription() {
- return "Integer Value, no restrictions";
- }
-
- public String getIntSummary() {
- return "Invalid user name";
- }
-
- public String getTextSummary() {
- return "Invalid user name";
- }
-
-}
Modified: trunk/examples/validator-demo/src/main/java/org/richfaces/example/MaxBean.java
===================================================================
--- trunk/examples/validator-demo/src/main/java/org/richfaces/example/MaxBean.java 2011-02-02 22:56:49 UTC (rev 21403)
+++ trunk/examples/validator-demo/src/main/java/org/richfaces/example/MaxBean.java 2011-02-03 00:20:44 UTC (rev 21404)
@@ -12,56 +12,32 @@
* @author asmirnov
*
*/
-public class MaxBean implements Validable {
+public class MaxBean implements Validable<Integer> {
- private String text;
-
@Max(10)
- private int intValue;
+ private Integer value = 0;
/**
- * @return the text
- */
- @Email
- public String getText() {
- return text;
- }
-
- /**
- * @param text the text to set
- */
- public void setText(String text) {
- this.text = text;
- }
-
- /**
* @return the intValue
*/
- public int getIntValue() {
- return intValue;
+ public Integer getValue() {
+ return value;
}
/**
* @param intValue the intValue to set
*/
- public void setIntValue(int intValue) {
- this.intValue = intValue;
+ public void setValue(Integer intValue) {
+ this.value = intValue;
}
- public String getTextDescription() {
- return "Text value, should be correct email address";
- }
- public String getIntDescription() {
+ public String getDescription() {
return "Integer Value, less then 10";
}
- public String getIntSummary() {
- return "Invalid number of items";
- }
+ public String getLabel() {
+ return "max";
+ }
- public String getTextSummary() {
- return "Invalid payment card";
- }
-
}
Modified: trunk/examples/validator-demo/src/main/java/org/richfaces/example/MinBean.java
===================================================================
--- trunk/examples/validator-demo/src/main/java/org/richfaces/example/MinBean.java 2011-02-02 22:56:49 UTC (rev 21403)
+++ trunk/examples/validator-demo/src/main/java/org/richfaces/example/MinBean.java 2011-02-03 00:20:44 UTC (rev 21404)
@@ -10,58 +10,32 @@
* @author asmirnov
*
*/
-public class MinBean implements Validable {
+public class MinBean implements Validable<Integer> {
- private String text;
-
@Min(2)
- private int intValue;
+ private Integer value=2;
/**
- * @return the text
- */
- public String getText() {
- return text;
- }
-
- /**
- * @param text the text to set
- */
- public void setText(String text) {
- this.text = text;
- }
-
- /**
* @return the intValue
*/
- public int getIntValue() {
- return intValue;
+ public Integer getValue() {
+ return value;
}
/**
* @param intValue the intValue to set
*/
- public void setIntValue(int intValue) {
- this.intValue = intValue;
+ public void setValue(Integer intValue) {
+ this.value = intValue;
}
- public String getTextDescription() {
- return "Text value, no restrictions";
- }
- public String getIntDescription() {
- // TODO Auto-generated method stub
- return "Integer Value, more then 1";
+ public String getDescription() {
+ return "Integer Value, more then 2";
}
- public String getIntSummary() {
- // TODO Auto-generated method stub
- return "Invalid rooms qty";
- }
+ public String getLabel() {
+ return "min";
+ }
- public String getTextSummary() {
- // TODO Auto-generated method stub
- return null;
- }
-
}
Modified: trunk/examples/validator-demo/src/main/java/org/richfaces/example/MinMaxBean.java
===================================================================
--- trunk/examples/validator-demo/src/main/java/org/richfaces/example/MinMaxBean.java 2011-02-02 22:56:49 UTC (rev 21403)
+++ trunk/examples/validator-demo/src/main/java/org/richfaces/example/MinMaxBean.java 2011-02-03 00:20:44 UTC (rev 21404)
@@ -11,59 +11,32 @@
* @author asmirnov
*
*/
-public class MinMaxBean implements Validable {
+public class MinMaxBean implements Validable<Integer> {
- private String text;
-
@Min(2)
@Max(10)
- private int intValue;
+ private Integer value = 0;
/**
- * @return the text
- */
- public String getText() {
- return text;
- }
-
- /**
- * @param text the text to set
- */
- public void setText(String text) {
- this.text = text;
- }
-
- /**
* @return the intValue
*/
- public int getIntValue() {
- return intValue;
+ public Integer getValue() {
+ return value;
}
/**
* @param intValue the intValue to set
*/
- public void setIntValue(int intValue) {
- this.intValue = intValue;
+ public void setValue(Integer intValue) {
+ this.value = intValue;
}
- public String getTextDescription() {
- return "Text Value, no restrictions";
- }
-
- public String getIntDescription() {
- // TODO Auto-generated method stub
+ public String getDescription() {
return "Integer Value, valid values from 2 to 10";
}
- public String getIntSummary() {
- // TODO Auto-generated method stub
- return "Invalid price";
- }
+ public String getLabel() {
+ return "minMax";
+ }
- public String getTextSummary() {
- // TODO Auto-generated method stub
- return null;
- }
-
}
Modified: trunk/examples/validator-demo/src/main/java/org/richfaces/example/NotEmptyBean.java
===================================================================
--- trunk/examples/validator-demo/src/main/java/org/richfaces/example/NotEmptyBean.java 2011-02-02 22:56:49 UTC (rev 21403)
+++ trunk/examples/validator-demo/src/main/java/org/richfaces/example/NotEmptyBean.java 2011-02-03 00:20:44 UTC (rev 21404)
@@ -10,58 +10,30 @@
* @author asmirnov
*
*/
-public class NotEmptyBean implements Validable {
+public class NotEmptyBean implements Validable<String> {
@NotEmpty
- private String text;
+ private String value;
- private int intValue;
-
/**
* @return the text
*/
- public String getText() {
- return text;
+ public String getValue() {
+ return value;
}
/**
* @param text the text to set
*/
- public void setText(String text) {
- this.text = text;
+ public void setValue(String text) {
+ this.value = text;
}
- /**
- * @return the intValue
- */
- public int getIntValue() {
- return intValue;
- }
-
- /**
- * @param intValue the intValue to set
- */
- public void setIntValue(int intValue) {
- this.intValue = intValue;
- }
-
- public String getTextDescription() {
+ public String getDescription() {
return "Text value, Not Empty Validation";
}
+ public String getLabel() {
+ return "notEmpty";
+ }
- public String getIntDescription() {
- // TODO Auto-generated method stub
- return "Integer Value, no restrictions";
- }
-
- public String getIntSummary() {
- // TODO Auto-generated method stub
- return null;
- }
-
- public String getTextSummary() {
- // TODO Auto-generated method stub
- return "Invalid password";
- }
-
}
Modified: trunk/examples/validator-demo/src/main/java/org/richfaces/example/NotNullBean.java
===================================================================
--- trunk/examples/validator-demo/src/main/java/org/richfaces/example/NotNullBean.java 2011-02-02 22:56:49 UTC (rev 21403)
+++ trunk/examples/validator-demo/src/main/java/org/richfaces/example/NotNullBean.java 2011-02-03 00:20:44 UTC (rev 21404)
@@ -10,58 +10,30 @@
* @author asmirnov
*
*/
-public class NotNullBean implements Validable {
+public class NotNullBean implements Validable<String> {
@NotNull
- private String text;
+ private String value;
- private int intValue;
-
/**
* @return the text
*/
- public String getText() {
- return text;
+ public String getValue() {
+ return value;
}
/**
* @param text the text to set
*/
- public void setText(String text) {
- this.text = text;
+ public void setValue(String text) {
+ this.value = text;
}
- /**
- * @return the intValue
- */
- public int getIntValue() {
- return intValue;
- }
-
- /**
- * @param intValue the intValue to set
- */
- public void setIntValue(int intValue) {
- this.intValue = intValue;
- }
-
- public String getTextDescription() {
+ public String getDescription() {
return "Text Value, Not Null Validation";
}
+ public String getLabel() {
+ return "notNull";
+ }
- public String getIntDescription() {
- // TODO Auto-generated method stub
- return "Integer Value, no restrictions";
- }
-
- public String getIntSummary() {
- // TODO Auto-generated method stub
- return null;
- }
-
- public String getTextSummary() {
- // TODO Auto-generated method stub
- return "Invalid address";
- }
-
}
Added: trunk/examples/validator-demo/src/main/java/org/richfaces/example/PatternBean.java
===================================================================
--- trunk/examples/validator-demo/src/main/java/org/richfaces/example/PatternBean.java (rev 0)
+++ trunk/examples/validator-demo/src/main/java/org/richfaces/example/PatternBean.java 2011-02-03 00:20:44 UTC (rev 21404)
@@ -0,0 +1,39 @@
+/**
+ *
+ */
+package org.richfaces.example;
+
+import javax.validation.constraints.Pattern;
+
+
+/**
+ * @author asmirnov
+ *
+ */
+public class PatternBean implements Validable<String> {
+
+ private String value;
+
+ /**
+ * @return the text
+ */
+ @Pattern(regexp="^[a-Z][a-Z1-9_]$")
+ public String getValue() {
+ return value;
+ }
+
+ /**
+ * @param text the text to set
+ */
+ public void setValue(String text) {
+ this.value = text;
+ }
+
+ public String getDescription() {
+ return "Text Value, Pattern '^[a-Z][a-Z1-9_]$' Validation";
+ }
+ public String getLabel() {
+ return "pattern";
+ }
+
+}
Property changes on: trunk/examples/validator-demo/src/main/java/org/richfaces/example/PatternBean.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Copied: trunk/examples/validator-demo/src/main/java/org/richfaces/example/SizeBean.java (from rev 21402, trunk/examples/validator-demo/src/main/java/org/richfaces/example/LengthBean.java)
===================================================================
--- trunk/examples/validator-demo/src/main/java/org/richfaces/example/SizeBean.java (rev 0)
+++ trunk/examples/validator-demo/src/main/java/org/richfaces/example/SizeBean.java 2011-02-03 00:20:44 UTC (rev 21404)
@@ -0,0 +1,43 @@
+/**
+ *
+ */
+package org.richfaces.example;
+
+import javax.validation.constraints.Size;
+
+
+/**
+ * @author asmirnov
+ *
+ */
+public class SizeBean implements Validable<String> {
+
+ @Size(max=10,min=2,message="incorrect field length")
+ private String value;
+
+
+ /**
+ * @return the text
+ */
+ public String getValue() {
+ return value;
+ }
+
+ /**
+ * @param text the text to set
+ */
+ public void setValue(String text) {
+ this.value = text;
+ }
+
+
+ public String getDescription() {
+ return "Validate String Length, for a range 2-10 chars";
+ }
+
+ public String getLabel() {
+ return "size";
+ }
+
+
+}
Modified: trunk/examples/validator-demo/src/main/java/org/richfaces/example/Validable.java
===================================================================
--- trunk/examples/validator-demo/src/main/java/org/richfaces/example/Validable.java 2011-02-02 22:56:49 UTC (rev 21403)
+++ trunk/examples/validator-demo/src/main/java/org/richfaces/example/Validable.java 2011-02-03 00:20:44 UTC (rev 21404)
@@ -7,15 +7,13 @@
* @author asmirnov
*
*/
-public interface Validable {
+public interface Validable<T> {
- public String getText();
+ T getValue();
- public String getTextDescription();
+ void setValue(T value);
+
+ String getDescription();
- public String getTextSummary();
-
- public int getIntValue();
-
- public String getIntSummary();
+ String getLabel();
}
Modified: trunk/examples/validator-demo/src/main/webapp/WEB-INF/faces-config.xml
===================================================================
--- trunk/examples/validator-demo/src/main/webapp/WEB-INF/faces-config.xml 2011-02-02 22:56:49 UTC (rev 21403)
+++ trunk/examples/validator-demo/src/main/webapp/WEB-INF/faces-config.xml 2011-02-03 00:20:44 UTC (rev 21404)
@@ -6,6 +6,11 @@
<managed-bean-class>org.richfaces.example.Bean</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
</managed-bean>
+<managed-bean>
+ <managed-bean-name>dataBean</managed-bean-name>
+ <managed-bean-class>org.richfaces.example.DataBean</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+</managed-bean>
<validator>
<validator-id>custom</validator-id>
<validator-class>org.richfaces.example.CustomValidator</validator-class>
Modified: trunk/examples/validator-demo/src/main/webapp/examples/ajax-validator.xhtml
===================================================================
--- trunk/examples/validator-demo/src/main/webapp/examples/ajax-validator.xhtml 2011-02-02 22:56:49 UTC (rev 21403)
+++ trunk/examples/validator-demo/src/main/webapp/examples/ajax-validator.xhtml 2011-02-03 00:20:44 UTC (rev 21404)
@@ -1,17 +1,26 @@
<html xmlns="http://www.w3.org/1999/xhtml"
- xmlns:f="http://java.sun.com/jsf/core"
- xmlns:h="http://java.sun.com/jsf/html"
- xmlns:csv="http://richfaces.org/csv">
- <h:head><title>Ajax validator</title></h:head>
- <h:body>
- <h:form id="form">
- <h:inputText id="text" value="#{test.value}">
- <f:validator validatorId="custom" />
- <csv:validator event="blur" />
- </h:inputText>
- <h:outputText id="out" value="#{test.value}"></h:outputText>
- <csv:message id="uiMessage" for="text" />
- </h:form>
- <csv:messages/>
- </h:body>
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:csv="http://richfaces.org/csv"
+ xmlns:c="http://java.sun.com/jsp/jstl/core">
+<ui:composition template="/layout/template.xhtml">
+ <ui:param name="title" value="JSF validator by AJAX" />
+ <!-- Page header -->
+ <ui:define name="header">
+ <h1><csv:validator> usage</h1>
+ </ui:define>
+ <!-- content -->
+ <ui:define name="content">
+ <h:form id="form">
+ <h:inputText id="text" value="#{test.value}">
+ <f:validator validatorId="custom" />
+ <csv:validator event="blur" />
+ </h:inputText>
+ <h:outputText id="out" value="#{test.value}"></h:outputText>
+ <csv:message id="uiMessage" for="text" />
+ </h:form>
+ <csv:messages />
+ </ui:define>
+</ui:composition>
</html>
Modified: trunk/examples/validator-demo/src/main/webapp/examples/beanValidation.xhtml
===================================================================
--- trunk/examples/validator-demo/src/main/webapp/examples/beanValidation.xhtml 2011-02-02 22:56:49 UTC (rev 21403)
+++ trunk/examples/validator-demo/src/main/webapp/examples/beanValidation.xhtml 2011-02-03 00:20:44 UTC (rev 21404)
@@ -1,36 +1,33 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:ui="http://java.sun.com/jsf/facelets"
- xmlns:a4j="http://richfaces.org/a4j"
- xmlns:rich="http://richfaces.org/rich"
- xmlns:s="http://jboss.com/products/seam/taglib"
+ xmlns:csv="http://richfaces.org/csv"
xmlns:c="http://java.sun.com/jsp/jstl/core">
<ui:composition template="/layout/template.xhtml">
- <ui:param name="title" value="<rich:beanValidator> usage" />
- <ui:param name="javaBean" value="org/richfaces/example/Bean.java" />
+ <ui:param name="title" value="<csv:validator> usage for JSR-303" />
<!-- Page header -->
<ui:define name="header">
- <h1><rich:beanValidator> usage</h1>
+ <h1><csv:alidator> usage with JSR-303</h1>
</ui:define>
<!-- content -->
<ui:define name="content">
- <h:form id="form">
- <h:panelGrid columns="3">
- <h:outputLabel for="email" value="Email Address:" />
- <h:inputText id="email" value="#{bean.email}" label="Email">
- <rich:beanValidator summary="Invalid Email address"/>
- </h:inputText>
- <rich:message for="email"/>
- <h:outputLabel for="card" value="Credit card number:" />
- <h:inputText id="card" value="#{bean.creditCardNumber}" label="Credit card">
- <rich:beanValidator summary="Invalid credit card number"/>
- </h:inputText>
- <rich:message for="card"/>
- </h:panelGrid>
- <h:commandButton value="Submit"></h:commandButton>
- <rich:messages/>
+ <h:form id="form">
+ <h:dataTable value="#{dataBean.beans}" var="bean">
+ <h:column>
+ <h:outputLabel for="value" value="#{bean.description}" />
+ </h:column>
+ <h:column>
+ <h:inputText id="value" value="#{bean.value}" label="#{bean.label}">
+ <csv:validator summary="Invalid value" />
+ </h:inputText>
+ </h:column>
+ <h:column>
+ <csv:message for="value" />
+ </h:column>
+ </h:dataTable>
+ <h:commandButton value="Submit"></h:commandButton>
+ <csv:messages />
</h:form>
</ui:define>
</ui:composition>
Deleted: trunk/examples/validator-demo/src/main/webapp/examples/client-validator.xhtml
===================================================================
--- trunk/examples/validator-demo/src/main/webapp/examples/client-validator.xhtml 2011-02-02 22:56:49 UTC (rev 21403)
+++ trunk/examples/validator-demo/src/main/webapp/examples/client-validator.xhtml 2011-02-03 00:20:44 UTC (rev 21404)
@@ -1,17 +0,0 @@
-<html xmlns="http://www.w3.org/1999/xhtml"
- xmlns:f="http://java.sun.com/jsf/core"
- xmlns:h="http://java.sun.com/jsf/html"
- xmlns:csv="http://richfaces.org/csv">
- <h:head><title>Client Side Validator</title></h:head>
- <h:body>
- <h:form id="form">
- <h:inputText id="text" value="#{test.value}">
- <f:validateLength minimum="1" maximum="3"/>
- <csv:validator event="blur" />
- </h:inputText>
- <h:outputText id="out" value="#{test.value}"></h:outputText>
- <csv:message id="uiMessage" for="text" />
- </h:form>
- <csv:messages/>
- </h:body>
-</html>
Modified: trunk/examples/validator-demo/src/main/webapp/examples/graphValidation.xhtml
===================================================================
--- trunk/examples/validator-demo/src/main/webapp/examples/graphValidation.xhtml 2011-02-02 22:56:49 UTC (rev 21403)
+++ trunk/examples/validator-demo/src/main/webapp/examples/graphValidation.xhtml 2011-02-03 00:20:44 UTC (rev 21404)
@@ -1,40 +1,36 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
- xmlns:f="http://java.sun.com/jsf/core"
- xmlns:h="http://java.sun.com/jsf/html"
- xmlns:ui="http://java.sun.com/jsf/facelets"
- xmlns:a4j="http://richfaces.org/a4j"
- xmlns:rich="http://richfaces.org/rich"
- xmlns:s="http://jboss.com/products/seam/taglib"
- xmlns:c="http://java.sun.com/jsp/jstl/core">
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:csv="http://richfaces.org/csv"
+ xmlns:c="http://java.sun.com/jsp/jstl/core">
<ui:composition template="/layout/template.xhtml">
- <ui:param name="title" value="<rich:graphValidator> usage" />
- <ui:param name="javaBean" value="org/richfaces/example/GraphValidatorBean.java" />
+ <ui:param name="title" value="<csv:graphValidator> usage" />
<!-- Page header -->
<ui:define name="header">
- <h1><rich:graphValidator> usage</h1>
+ <h1><csv:graphValidator> usage</h1>
</ui:define>
<!-- content -->
<ui:define name="content">
<h:form id="form">
- <rich:graphValidator value="#{graphValidatorBean}" id="validator">
+ <csv:graphValidator value="#{graphValidatorBean}" id="validator">
<h:panelGrid columns="3">
<h:outputLabel for="value0" value="First value:" />
<h:inputText id="value0" value="#{graphValidatorBean.first}" label="First" />
- <rich:message for="value0"/>
+ <csv:message for="value0"/>
<h:outputLabel for="value1" value="Second value:" />
<h:inputText id="value1" value="#{graphValidatorBean.second}" label="First" />
- <rich:message for="value1"/>
+ <csv:message for="value1"/>
<h:outputLabel for="value2" value="Third value:" />
<h:inputText id="value2" value="#{graphValidatorBean.third}" label="First" />
- <rich:message for="value2"/>
+ <csv:message for="value2"/>
<h:outputLabel for="total" value="Total:" />
<h:outputText id="total" value="#{graphValidatorBean.summ}"/>
</h:panelGrid>
<h:commandButton value="Submit" action="#{graphValidatorBean.action}"></h:commandButton>
<h:outputText id="result" value="#{graphValidatorBean.actionResult}"/>
- </rich:graphValidator>
- <rich:messages/>
+ </csv:graphValidator>
+ <csv:messages />
</h:form>
</ui:define>
</ui:composition>
13 years, 3 months