JBoss Rich Faces SVN: r2447 - trunk/ui/effect/src/main/config/component.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2007-08-23 12:07:41 -0400 (Thu, 23 Aug 2007)
New Revision: 2447
Modified:
trunk/ui/effect/src/main/config/component/effect.xml
Log:
fix RF-683
Modified: trunk/ui/effect/src/main/config/component/effect.xml
===================================================================
--- trunk/ui/effect/src/main/config/component/effect.xml 2007-08-23 15:53:14 UTC (rev 2446)
+++ trunk/ui/effect/src/main/config/component/effect.xml 2007-08-23 16:07:41 UTC (rev 2447)
@@ -60,6 +60,12 @@
</description>
<defaultvalue>""</defaultvalue>
</property>
+
+ <property hidden="true">
+ <name>parentProperties</name>
+ <classname>javax.faces.component.UIComponent</classname>
+ </property>
+
<property>
<name>type</name>
<classname>java.lang.String</classname>
@@ -76,6 +82,7 @@
</description>
<defaultvalue>false</defaultvalue>
</property>
+
<property el="false" >
<name>event</name>
<classname>java.lang.String</classname>
18 years, 8 months
JBoss Rich Faces SVN: r2446 - in trunk/samples/rich-message-demo/src/main: webapp/WEB-INF and 1 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2007-08-23 11:53:14 -0400 (Thu, 23 Aug 2007)
New Revision: 2446
Added:
trunk/samples/rich-message-demo/src/main/java/org/richfaces/demo/Message.java
Modified:
trunk/samples/rich-message-demo/src/main/webapp/WEB-INF/faces-config.xml
trunk/samples/rich-message-demo/src/main/webapp/pages/message-demo.xhtml
Log:
extend demo app
Added: trunk/samples/rich-message-demo/src/main/java/org/richfaces/demo/Message.java
===================================================================
--- trunk/samples/rich-message-demo/src/main/java/org/richfaces/demo/Message.java (rev 0)
+++ trunk/samples/rich-message-demo/src/main/java/org/richfaces/demo/Message.java 2007-08-23 15:53:14 UTC (rev 2446)
@@ -0,0 +1,21 @@
+/**
+ *
+ */
+package org.richfaces.demo;
+
+/**
+ * @author Anton Belevich
+ *
+ */
+public class Message {
+
+ public String layout = "table";
+
+ public String getLayout() {
+ return layout;
+ }
+
+ public void setLayout(String layout) {
+ this.layout = layout;
+ }
+}
Modified: trunk/samples/rich-message-demo/src/main/webapp/WEB-INF/faces-config.xml
===================================================================
--- trunk/samples/rich-message-demo/src/main/webapp/WEB-INF/faces-config.xml 2007-08-23 15:51:37 UTC (rev 2445)
+++ trunk/samples/rich-message-demo/src/main/webapp/WEB-INF/faces-config.xml 2007-08-23 15:53:14 UTC (rev 2446)
@@ -2,6 +2,12 @@
<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
"http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
<faces-config>
+
+ <managed-bean>
+ <managed-bean-name>message</managed-bean-name>
+ <managed-bean-class>org.richfaces.demo.Message</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
<validator>
<validator-id>SelectValidator</validator-id>
<validator-class>org.richfaces.demo.SelectValidator </validator-class>
Modified: trunk/samples/rich-message-demo/src/main/webapp/pages/message-demo.xhtml
===================================================================
--- trunk/samples/rich-message-demo/src/main/webapp/pages/message-demo.xhtml 2007-08-23 15:51:37 UTC (rev 2445)
+++ trunk/samples/rich-message-demo/src/main/webapp/pages/message-demo.xhtml 2007-08-23 15:53:14 UTC (rev 2446)
@@ -120,10 +120,19 @@
<h:outputText value="Rich Messages Demo"/>
</td>
</tr>
+ <tr>
+ <td>
+ <h:selectOneMenu id="layout" value="#{message.layout}">
+ <f:selectItem itemValue="table" itemLabel="table"/>
+ <f:selectItem itemValue="list" itemLabel="list"/>
+ <f:selectItem itemValue="iterator" itemLabel="iterator"/>
+ </h:selectOneMenu>
+ </td>
+ </tr>
<tr>
<td>
- <r:messages layout="table"
+ <r:messages layout="#{message.layout}"
tooltip="true"
showDetail="false"
showSummary="true"
18 years, 8 months
JBoss Rich Faces SVN: r2445 - trunk/test-applications/jsp/src/main/webapp/TogglePanel.
by richfaces-svn-commits@lists.jboss.org
Author: ayanul
Date: 2007-08-23 11:51:37 -0400 (Thu, 23 Aug 2007)
New Revision: 2445
Modified:
trunk/test-applications/jsp/src/main/webapp/TogglePanel/TogglePanel.jsp
Log:
update
Modified: trunk/test-applications/jsp/src/main/webapp/TogglePanel/TogglePanel.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/TogglePanel/TogglePanel.jsp 2007-08-23 15:51:32 UTC (rev 2444)
+++ trunk/test-applications/jsp/src/main/webapp/TogglePanel/TogglePanel.jsp 2007-08-23 15:51:37 UTC (rev 2445)
@@ -6,8 +6,9 @@
<head>
<title></title>
</head>
+<f:view>
<f:subview id="togglePanel">
-<f:view>
+
<h:messages></h:messages>
<h:form id="tooggleTest">
@@ -172,6 +173,6 @@
<h:commandLink value="Back" action="main"></h:commandLink>
<ui:debug hotkey="L"></ui:debug>
</h:form>
+</f:subview>
</f:view>
-</f:subview>
</html>
18 years, 8 months
JBoss Rich Faces SVN: r2444 - trunk/ui/message/src/main/java/org/richfaces/renderkit/html.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2007-08-23 11:51:32 -0400 (Thu, 23 Aug 2007)
New Revision: 2444
Modified:
trunk/ui/message/src/main/java/org/richfaces/renderkit/html/HtmlRichMessagesRenderer.java
Log:
fix RF-679
Modified: trunk/ui/message/src/main/java/org/richfaces/renderkit/html/HtmlRichMessagesRenderer.java
===================================================================
--- trunk/ui/message/src/main/java/org/richfaces/renderkit/html/HtmlRichMessagesRenderer.java 2007-08-23 15:32:04 UTC (rev 2443)
+++ trunk/ui/message/src/main/java/org/richfaces/renderkit/html/HtmlRichMessagesRenderer.java 2007-08-23 15:51:32 UTC (rev 2444)
@@ -122,6 +122,7 @@
writer.startElement("tbody", uiMessages);
isWroteTable = true;
+ isIteratorLayout = false;
}else if((layout != null) && (layout.equals("iterator"))){
@@ -137,9 +138,13 @@
renderComponentOuterStyles(uiMessages, context, writer);
isIteratorLayout = true;
+ isWroteTable = false;
}else if((layout != null) && (layout.equals("list"))){
+ isWroteTable = false;
+ isIteratorLayout = false;
+
writer.startElement("dl", uiMessages);
getUtils().writeAttribute(writer,HTML.id_ATTRIBUTE ,uiMessages.getClientId(context));
18 years, 8 months
JBoss Rich Faces SVN: r2443 - trunk/docs/userguide/en/src/main/docbook/modules.
by richfaces-svn-commits@lists.jboss.org
Author: smukhina
Date: 2007-08-23 11:32:04 -0400 (Thu, 23 Aug 2007)
New Revision: 2443
Modified:
trunk/docs/userguide/en/src/main/docbook/modules/RFCidesupport.xml
Log:
http://jira.jboss.com/jira/browse/RF-664
the subtitle is changes.
the Exadel Studio in chapter 6 is changed to RHDS
Modified: trunk/docs/userguide/en/src/main/docbook/modules/RFCidesupport.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/modules/RFCidesupport.xml 2007-08-23 15:31:08 UTC (rev 2442)
+++ trunk/docs/userguide/en/src/main/docbook/modules/RFCidesupport.xml 2007-08-23 15:32:04 UTC (rev 2443)
@@ -14,6 +14,6 @@
</keywordset>
</chapterinfo>
<title>IDE Support</title>
- <para><ulink url="http://www.exadel.com/web/portal/products/ExadelStudioPro">Exadel Studio 4.0.4</ulink> is an <property>IDE</property> that provides full support for Java Server Faces, Exadel RichFaces, Ajax4jsf, Facelets, Struts, and other Web technologies. In addition to this, it seamlessly combines visual and source-oriented development approaches. One of the special support features for <property>Ajax4jsf</property> and <property>RichFaces</property> is that they are both available as project "capabilities". These project capabilities can be added to any existing JSF project to make the project an Ajax4jsf or RichFaces JSF project by automatically adding libraries and modifying configuration files as required.</para>
+ <para><ulink url="http://www.redhat.com/developers/rhds/index.html">Red Had Developer Studio 1.0.0</ulink> is an <property>IDE</property> that provides full support for Java Server Faces, Exadel RichFaces, Ajax4jsf, Facelets, Struts, and other Web technologies. In addition to this, it seamlessly combines visual and source-oriented development approaches. One of the special support features for <property>Ajax4jsf</property> and <property>RichFaces</property> is that they are both available as project "capabilities". These project capabilities can be added to any existing JSF project to make the project an Ajax4jsf or RichFaces JSF project by automatically adding libraries and modifying configuration files as required.</para>
</chapter>
18 years, 8 months
JBoss Rich Faces SVN: r2442 - trunk/docs/userguide/en/src/main/docbook.
by richfaces-svn-commits@lists.jboss.org
Author: smukhina
Date: 2007-08-23 11:31:08 -0400 (Thu, 23 Aug 2007)
New Revision: 2442
Modified:
trunk/docs/userguide/en/src/main/docbook/master.xml
Log:
http://jira.jboss.com/jira/browse/RF-664
the subtitle is changes.
the Exadel Studio in chapter 6 is changed to RHDS
Modified: trunk/docs/userguide/en/src/main/docbook/master.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/master.xml 2007-08-23 15:25:35 UTC (rev 2441)
+++ trunk/docs/userguide/en/src/main/docbook/master.xml 2007-08-23 15:31:08 UTC (rev 2442)
@@ -51,7 +51,7 @@
<book>
<bookinfo>
<title>RichFaces Developer Guide</title>
- <subtitle>A JSF component library built on Ajax4jsf for incorporating rich UI widgets into Web applications</subtitle>
+ <subtitle>Ajax4jsf framework with a huge library of rich components and skinnability support</subtitle>
<copyright>
<year>2007</year>
<holder>Red Hat</holder>
18 years, 8 months
JBoss Rich Faces SVN: r2441 - in trunk/ui: dataTable/src/main/java/org/richfaces/component and 5 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: akushunin
Date: 2007-08-23 11:25:35 -0400 (Thu, 23 Aug 2007)
New Revision: 2441
Modified:
trunk/ui/dataTable/skin/dataTable/dataTable.html
trunk/ui/dataTable/src/main/java/org/richfaces/component/UIColumn.java
trunk/ui/dataTable/src/main/java/org/richfaces/component/UIColumnGroup.java
trunk/ui/dataTable/src/main/java/org/richfaces/component/UIDataTable.java
trunk/ui/dataTable/src/main/java/org/richfaces/renderkit/AbstractGridRenderer.java
trunk/ui/dataTable/src/main/java/org/richfaces/renderkit/AbstractRowsRenderer.java
trunk/ui/dataTable/src/main/java/org/richfaces/renderkit/AbstractTableRenderer.java
trunk/ui/dataTable/src/main/java/org/richfaces/renderkit/html/ColgroupRenderer.java
trunk/ui/dataTable/src/main/java/org/richfaces/renderkit/html/SubTableRenderer.java
trunk/ui/dataTable/src/main/templates/org/richfaces/htmlDataGrid.jspx
trunk/ui/dataTable/src/test/java/org/richfaces/component/DataTableComponentTest.java
trunk/ui/tooltip/
Log:
dataTable merged with revision 1406 to discard problems craeted by merging revision 1442.
Modified: trunk/ui/dataTable/skin/dataTable/dataTable.html
===================================================================
--- trunk/ui/dataTable/skin/dataTable/dataTable.html 2007-08-23 15:19:01 UTC (rev 2440)
+++ trunk/ui/dataTable/skin/dataTable/dataTable.html 2007-08-23 15:25:35 UTC (rev 2441)
@@ -1,348 +1,347 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
-
-<html>
-<head>
+<html>
- <title>Untitled</title>
+<head>
-<style>
+ <title>Untitled</title>
-.dttbl_table{
+<style>
- border-top : 1px solid #c0c0c0; /*panelBorderColor*/
+.dttbl_table{
- border-left : 1px solid #c0c0c0; /*panelBorderColor*/
+ border-top : 1px solid #c0c0c0; /*panelBorderColor*/
- background-color : #ffffff; /*tableBackgroundColor*/
+ border-left : 1px solid #c0c0c0; /*panelBorderColor*/
-}
+ background-color : #ffffff; /*tableBackgroundColor*/
-
+}
-.dttbl_cell{
- border-right : 1px solid #c0c0c0; /*panelBorderColor*/
- border-bottom : 1px solid #c0c0c0; /*panelBorderColor*/
+.dttbl_cell{
- padding : 4px 4px 4px 4px;
+ border-right : 1px solid #c0c0c0; /*panelBorderColor*/
- font-size : 11px; /*generalSizeFont*/
+ border-bottom : 1px solid #c0c0c0; /*panelBorderColor*/
- color : #000000; /*generalTextColor*/
+ padding : 4px 4px 4px 4px;
- font-family : verdana; /*generalFamilyFont*/
+ font-size : 11px; /*generalSizeFont*/
-}
+ color : #000000; /*generalTextColor*/
-.dttbl_header{
+ font-family : verdana; /*generalFamilyFont*/
- color : #FFFFFF; /*headerTextColor*/
+}
- background-color : #4A75B5; /*headerBackgroundColor*/
+.dttbl_header{
- text-align : center;
+ color : #FFFFFF; /*headerTextColor*/
- font-weight : bold;
+ background-color : #4A75B5; /*headerBackgroundColor*/
- background-image : url(dttbl_header_bg.gif); /*from headerGradientColor to headerBackgroundColor*/
+ text-align : center;
- background-position : top left;
+ font-weight : bold;
- background-repeat : repeat-x;
+ background-image : url(dttbl_header_bg.gif); /*from headerGradientColor to headerBackgroundColor*/
-}
+ background-position : top left;
-.dttbl_subheader{
+ background-repeat : repeat-x;
- background-color : #EAF0F8; /*additionalBackgroundColor*/
+}
- text-align : center;
+.dttbl_subheader{
-}
+ background-color : #EAF0F8; /*additionalBackgroundColor*/
-
+ text-align : center;
-.dttbl_footer{
+}
- background-color : #cccccc; /*tableFooterBackgroundColor*/
-}
-.dttbl_subfooter{
+.dttbl_footer{
- background-color : #f1f1f1; /*tableSubfooterBackgroundColor*/
+ background-color : #cccccc; /*tableFooterBackgroundColor*/
-}
+}
-
+.dttbl_subfooter{
-</style>
+ background-color : #f1f1f1; /*tableSubfooterBackgroundColor*/
-</head>
+}
-
-<body style="margin : 20px">
-
+</style>
-<table border="0" cellpadding="0" cellspacing="0" class="dttbl_table">
+</head>
-<thead>
- <colgroup>
- <col class="dttbl_col_odd dttbl_col_1">
+<body style="margin : 20px">
- <col class="dttbl_col_even dttbl_col_2">
- <col class="dttbl_col_odd dttbl_col_3">
- <col class="dttbl_col_even dttbl_col_4">
+<table border="0" cellpadding="0" cellspacing="0" class="dttbl_table">
- </colgroup>
+<thead>
+ <colgroup>
-</thead>
+ <col class="dttbl_col_odd dttbl_col_1">
-<tbody>
+ <col class="dttbl_col_even dttbl_col_2">
- <tr class="dttbl_header">
+ <col class="dttbl_col_odd dttbl_col_3">
- <td class="dttbl_cell">
+ <col class="dttbl_col_even dttbl_col_4">
- Header
+ </colgroup>
- </td>
+</thead>
- <td class="dttbl_cell">
+<tbody>
- Header
+ <tr class="dttbl_header">
- </td>
+ <td class="dttbl_cell">
- <td class="dttbl_cell">
+ Header
- Header
+ </td>
- </td>
+ <td class="dttbl_cell">
- <td class="dttbl_cell">
+ Header
- Header
+ </td>
- </td>
+ <td class="dttbl_cell">
- </tr>
+ Header
- <tr class="dttbl_subheader">
+ </td>
- <td class="dttbl_cell">
+ <td class="dttbl_cell">
- SubHeader
+ Header
- </td>
+ </td>
- <td class="dttbl_cell">
+ </tr>
- SubHeader
+ <tr class="dttbl_subheader">
- </td>
+ <td class="dttbl_cell">
- <td class="dttbl_cell">
+ SubHeader
- SubHeader
+ </td>
- </td>
+ <td class="dttbl_cell">
- <td class="dttbl_cell">
+ SubHeader
- SubHeader
+ </td>
- </td>
+ <td class="dttbl_cell">
- </tr>
+ SubHeader
- <tr class="dttbl_row_odd dttbl_row_1">
+ </td>
- <td class="dttbl_cell">
+ <td class="dttbl_cell">
- Table cell content
+ SubHeader
- </td>
+ </td>
- <td class="dttbl_cell">
+ </tr>
- Table cell content
+ <tr class="dttbl_row_odd dttbl_row_1">
- </td>
+ <td class="dttbl_cell">
- <td class="dttbl_cell">
+ Table cell content
- Table cell content
+ </td>
- </td>
+ <td class="dttbl_cell">
- <td class="dttbl_cell">
+ Table cell content
- Table cell content
+ </td>
- </td>
+ <td class="dttbl_cell">
- </tr>
+ Table cell content
- <tr class="dttbl_row_even dttbl_row_2">
+ </td>
- <td class="dttbl_cell">
+ <td class="dttbl_cell">
- Table cell content
+ Table cell content
- </td>
+ </td>
- <td class="dttbl_cell">
+ </tr>
- Table cell content
+ <tr class="dttbl_row_even dttbl_row_2">
- </td>
+ <td class="dttbl_cell">
- <td class="dttbl_cell">
+ Table cell content
- Table cell content
+ </td>
- </td>
+ <td class="dttbl_cell">
- <td class="dttbl_cell">
+ Table cell content
- Table cell content
+ </td>
- </td>
+ <td class="dttbl_cell">
- </tr>
+ Table cell content
- <tr class="dttbl_row_odd dttbl_row_3">
+ </td>
- <td class="dttbl_cell">
+ <td class="dttbl_cell">
- Table cell content
+ Table cell content
- </td>
+ </td>
- <td class="dttbl_cell">
+ </tr>
- Table cell content
+ <tr class="dttbl_row_odd dttbl_row_3">
- </td>
+ <td class="dttbl_cell">
- <td class="dttbl_cell">
+ Table cell content
- Table cell content
+ </td>
- </td>
+ <td class="dttbl_cell">
- <td class="dttbl_cell">
+ Table cell content
- Table cell content
+ </td>
- </td>
+ <td class="dttbl_cell">
- </tr>
+ Table cell content
- <tr class="dttbl_row_even dttbl_row_4">
+ </td>
- <td class="dttbl_cell">
+ <td class="dttbl_cell">
- Table cell content
+ Table cell content
- </td>
+ </td>
- <td class="dttbl_cell">
+ </tr>
- Table cell content
+ <tr class="dttbl_row_even dttbl_row_4">
- </td>
+ <td class="dttbl_cell">
- <td class="dttbl_cell">
+ Table cell content
- Table cell content
+ </td>
- </td>
+ <td class="dttbl_cell">
- <td class="dttbl_cell">
+ Table cell content
- Table cell content
+ </td>
- </td>
+ <td class="dttbl_cell">
- </tr>
+ Table cell content
- <tr class="dttbl_subfooter">
+ </td>
- <td class="dttbl_cell">
+ <td class="dttbl_cell">
- SubFooter
+ Table cell content
- </td>
+ </td>
- <td class="dttbl_cell">
+ </tr>
- SubFooter
+ <tr class="dttbl_subfooter">
- </td>
+ <td class="dttbl_cell">
- <td class="dttbl_cell">
+ SubFooter
- SubFooter
+ </td>
- </td>
+ <td class="dttbl_cell">
- <td class="dttbl_cell">
+ SubFooter
- SubFooter
+ </td>
- </td>
+ <td class="dttbl_cell">
- </tr>
+ SubFooter
- <tr class="dttbl_footer">
+ </td>
- <td class="dttbl_cell">
+ <td class="dttbl_cell">
- Footer
+ SubFooter
- </td>
+ </td>
- <td class="dttbl_cell">
+ </tr>
- Footer
+ <tr class="dttbl_footer">
- </td>
+ <td class="dttbl_cell">
- <td class="dttbl_cell">
+ Footer
- Footer
+ </td>
- </td>
+ <td class="dttbl_cell">
- <td class="dttbl_cell">
+ Footer
- Footer
+ </td>
- </td>
+ <td class="dttbl_cell">
- </tr>
+ Footer
-</tbody>
+ </td>
-</table>
+ <td class="dttbl_cell">
-
+ Footer
-
+ </td>
-</body>
+ </tr>
-</html>
+</tbody>
+</table>
+
+
+
+
+
+</body>
+
+</html>
+
Modified: trunk/ui/dataTable/src/main/java/org/richfaces/component/UIColumn.java
===================================================================
--- trunk/ui/dataTable/src/main/java/org/richfaces/component/UIColumn.java 2007-08-23 15:19:01 UTC (rev 2440)
+++ trunk/ui/dataTable/src/main/java/org/richfaces/component/UIColumn.java 2007-08-23 15:25:35 UTC (rev 2441)
@@ -21,7 +21,9 @@
package org.richfaces.component;
+import java.util.Date;
+
/**
* JSF component class
*
Modified: trunk/ui/dataTable/src/main/java/org/richfaces/component/UIColumnGroup.java
===================================================================
--- trunk/ui/dataTable/src/main/java/org/richfaces/component/UIColumnGroup.java 2007-08-23 15:19:01 UTC (rev 2440)
+++ trunk/ui/dataTable/src/main/java/org/richfaces/component/UIColumnGroup.java 2007-08-23 15:25:35 UTC (rev 2441)
@@ -37,7 +37,7 @@
private static final String COMPONENT_FAMILY = "org.richfaces.Colgroup";
- public Iterator columns(){
+ public Iterator renderedColumns(){
return new FilterIterator(getChildren().iterator(),UIDataTable.isColumn);
}
Modified: trunk/ui/dataTable/src/main/java/org/richfaces/component/UIDataTable.java
===================================================================
--- trunk/ui/dataTable/src/main/java/org/richfaces/component/UIDataTable.java 2007-08-23 15:19:01 UTC (rev 2440)
+++ trunk/ui/dataTable/src/main/java/org/richfaces/component/UIDataTable.java 2007-08-23 15:25:35 UTC (rev 2441)
@@ -32,6 +32,7 @@
import org.apache.commons.collections.iterators.FilterIterator;
import org.apache.commons.collections.iterators.IteratorChain;
+
/**
* JSF component class
*
@@ -54,6 +55,14 @@
*/
private static final class ColumnPredicate implements Predicate {
public boolean evaluate(Object input) {
+ if (input instanceof UIComponent) {
+ UIComponent component = (UIComponent) input;
+
+ if (!component.isRendered()) {
+ return false;
+ }
+ }
+
return (input instanceof UIColumn || input instanceof Column);
}
}
@@ -83,8 +92,15 @@
IteratorChain dataChildren = new IteratorChain();
dataChildren.addIterator(new FilterIterator(getFacets().values()
.iterator(), isAjaxSupport));
+
+ dataChildren.addIterator(renderedColumns());
+
+
// Append all columns children.
- for (Iterator iter = columns(); iter.hasNext();) {
+ //dataChildren.addIterator(columns());
+
+
+/* for (Iterator iter = columns(); iter.hasNext();) {
UIComponent column = (UIComponent) iter.next();
if (column.isRendered()) {
dataChildren.addIterator(column.getChildren()
@@ -92,7 +108,7 @@
}
}
-
+*/
//commons-collections 2.x bug workaround
dataChildren.hasNext();
@@ -110,7 +126,7 @@
fixedChildren.addIterator(new FilterIterator(getChildren().iterator(),
isNotColumn));
// Append all columns facets.
- for (Iterator iter = columns(); iter.hasNext();) {
+ for (Iterator iter = renderedColumns(); iter.hasNext();) {
UIComponent column = (UIComponent) iter.next();
if (column.isRendered()) {
fixedChildren.addIterator(column.getFacets().values()
@@ -125,7 +141,7 @@
return fixedChildren;
}
- public Iterator columns() {
+ public Iterator renderedColumns() {
return new FilterIterator(getChildren().iterator(), isColumn);
}
@@ -133,4 +149,4 @@
private static final String COMPONENT_FAMILY = "org.richfaces.DataTable";
-}
+}
\ No newline at end of file
Modified: trunk/ui/dataTable/src/main/java/org/richfaces/renderkit/AbstractGridRenderer.java
===================================================================
--- trunk/ui/dataTable/src/main/java/org/richfaces/renderkit/AbstractGridRenderer.java 2007-08-23 15:19:01 UTC (rev 2440)
+++ trunk/ui/dataTable/src/main/java/org/richfaces/renderkit/AbstractGridRenderer.java 2007-08-23 15:25:35 UTC (rev 2441)
@@ -30,14 +30,15 @@
import org.ajax4jsf.component.UIDataAdaptor;
import org.ajax4jsf.renderkit.RendererUtils.HTML;
import org.richfaces.component.UIDataGrid;
+import org.richfaces.component.UIDataTable;
-
/**
* @author shura
*
*/
public abstract class AbstractGridRenderer extends AbstractRowsRenderer {
+
public void encodeHeader( FacesContext context,UIDataGrid table) throws IOException {
ResponseWriter writer = context.getResponseWriter();
UIComponent header = table.getHeader();
@@ -109,4 +110,5 @@
}
writer.endElement(HTML.TR_ELEMENT);
}
+
}
Modified: trunk/ui/dataTable/src/main/java/org/richfaces/renderkit/AbstractRowsRenderer.java
===================================================================
--- trunk/ui/dataTable/src/main/java/org/richfaces/renderkit/AbstractRowsRenderer.java 2007-08-23 15:19:01 UTC (rev 2440)
+++ trunk/ui/dataTable/src/main/java/org/richfaces/renderkit/AbstractRowsRenderer.java 2007-08-23 15:25:35 UTC (rev 2441)
@@ -34,6 +34,7 @@
import org.ajax4jsf.renderkit.RendererUtils;
import org.ajax4jsf.renderkit.RendererUtils.HTML;
import org.richfaces.component.Row;
+import org.richfaces.component.UIDataTable;
/**
* @author shura
@@ -134,7 +135,7 @@
encodeRows(context, component);
}
- public void encodeCaption(FacesContext context, UIDataAdaptor table)
+ public void encodeCaption(FacesContext context, UIDataTable table)
throws IOException {
ResponseWriter writer = context.getResponseWriter();
UIComponent caption = table.getFacet("caption");
Modified: trunk/ui/dataTable/src/main/java/org/richfaces/renderkit/AbstractTableRenderer.java
===================================================================
--- trunk/ui/dataTable/src/main/java/org/richfaces/renderkit/AbstractTableRenderer.java 2007-08-23 15:19:01 UTC (rev 2440)
+++ trunk/ui/dataTable/src/main/java/org/richfaces/renderkit/AbstractTableRenderer.java 2007-08-23 15:25:35 UTC (rev 2441)
@@ -185,7 +185,7 @@
throws IOException {
UIDataTable table = (UIDataTable) holder.getTable();
ResponseWriter writer = context.getResponseWriter();
- Iterator iter = table.columns();
+ Iterator iter = table.renderedColumns();
boolean first = true;
int currentColumn = 0;
UIComponent column = null;
@@ -287,7 +287,7 @@
* Changed by Alexej Kushunin
*/
protected Iterator columnFacets(UIDataTable table,final String name){
- return new FilterIterator(table.columns(), new Predicate() {
+ return new FilterIterator(table.renderedColumns(), new Predicate() {
public boolean evaluate(Object input) {
UIComponent component = (UIComponent) input;
@@ -316,7 +316,7 @@
count = span.intValue();
} else {
// calculate max html columns count for all columns/rows children.
- Iterator col = table.columns();
+ Iterator col = table.renderedColumns();
count = calculateRowColumns(col);
}
return count;
@@ -343,7 +343,7 @@
}
// Calculate number of columns in row.
currentLength = calculateRowColumns(((Row) column)
- .columns());
+ .renderedColumns());
// Store max calculated value
if (currentLength > count) {
count = currentLength;
@@ -379,4 +379,4 @@
}
return count;
}
-}
+}
\ No newline at end of file
Modified: trunk/ui/dataTable/src/main/java/org/richfaces/renderkit/html/ColgroupRenderer.java
===================================================================
--- trunk/ui/dataTable/src/main/java/org/richfaces/renderkit/html/ColgroupRenderer.java 2007-08-23 15:19:01 UTC (rev 2440)
+++ trunk/ui/dataTable/src/main/java/org/richfaces/renderkit/html/ColgroupRenderer.java 2007-08-23 15:25:35 UTC (rev 2441)
@@ -71,7 +71,7 @@
if (null != columnClasses) {
classes = columnClasses.split(",");
}
- Iterator iter = colgroup.columns();
+ Iterator iter = colgroup.renderedColumns();
boolean first = true;
int currentColumn = 0;
int currentRow = 0;
Modified: trunk/ui/dataTable/src/main/java/org/richfaces/renderkit/html/SubTableRenderer.java
===================================================================
--- trunk/ui/dataTable/src/main/java/org/richfaces/renderkit/html/SubTableRenderer.java 2007-08-23 15:19:01 UTC (rev 2440)
+++ trunk/ui/dataTable/src/main/java/org/richfaces/renderkit/html/SubTableRenderer.java 2007-08-23 15:25:35 UTC (rev 2441)
@@ -62,7 +62,7 @@
Iterator headers = columnFacets(dataTable,facetName);
String headerClass = (String) component.getAttributes().get(
facetName+"Class");
- if (headers.hasNext()&&findFacet(dataTable,facetName)) {
+ if (headers.hasNext()) {
encodeRowStart(context,"dr-subtable-"+facetName+" rich-subtable-"+facetName ,headerClass, dataTable, writer);
encodeHeaderFacets(context, writer, headers, "dr-subtable-"+facetName+"cell rich-subtable-"+facetName+"cell", headerClass,
facetName, "td");
Modified: trunk/ui/dataTable/src/main/templates/org/richfaces/htmlDataGrid.jspx
===================================================================
--- trunk/ui/dataTable/src/main/templates/org/richfaces/htmlDataGrid.jspx 2007-08-23 15:19:01 UTC (rev 2440)
+++ trunk/ui/dataTable/src/main/templates/org/richfaces/htmlDataGrid.jspx 2007-08-23 15:25:35 UTC (rev 2441)
@@ -19,7 +19,6 @@
>
<colgroup span="component.attributes['columns']">
</colgroup>
- <f:call name="encodeCaption"/>
<f:call name="encodeHeader"/>
<f:call name="encodeFooter"/>
<tbody>
Modified: trunk/ui/dataTable/src/test/java/org/richfaces/component/DataTableComponentTest.java
===================================================================
--- trunk/ui/dataTable/src/test/java/org/richfaces/component/DataTableComponentTest.java 2007-08-23 15:19:01 UTC (rev 2440)
+++ trunk/ui/dataTable/src/test/java/org/richfaces/component/DataTableComponentTest.java 2007-08-23 15:25:35 UTC (rev 2441)
@@ -1,7 +1,7 @@
/**
* License Agreement.
*
- * JBoss RichFaces - Ajax4jsf Component Library
+ * JBoss RichFaces 3.0 - Ajax4jsf Component Library
*
* Copyright (C) 2007 Exadel, Inc.
*
@@ -27,7 +27,9 @@
import java.util.List;
import javax.faces.component.UIComponent;
+import javax.faces.component.UIForm;
import javax.faces.component.UIOutput;
+import javax.faces.component.html.HtmlForm;
import javax.faces.component.html.HtmlOutputLink;
import javax.faces.component.html.HtmlOutputText;
import javax.faces.context.FacesContext;
@@ -36,8 +38,6 @@
import javax.faces.el.ValueBinding;
import javax.faces.model.ListDataModel;
-import org.ajax4jsf.component.AjaxActionComponent;
-import org.ajax4jsf.component.AjaxSupport;
import org.ajax4jsf.tests.AbstractAjax4JsfTestCase;
import org.apache.commons.collections.Predicate;
@@ -49,174 +49,14 @@
*/
public class DataTableComponentTest extends AbstractAjax4JsfTestCase {
- public static final class MockAjaxSupport extends AjaxActionComponent implements AjaxSupport {
- public Object getData() {
- // TODO Auto-generated method stub
- return null;
- }
+ private UIDataTable dataTable;
- public String getEventsQueue() {
- // TODO Auto-generated method stub
- return null;
- }
-
- public String getFocus() {
- // TODO Auto-generated method stub
- return null;
- }
-
- public String getOncomplete() {
- // TODO Auto-generated method stub
- return null;
- }
-
- public Object getReRender() {
- // TODO Auto-generated method stub
- return null;
- }
-
- public int getRequestDelay() {
- // TODO Auto-generated method stub
- return 0;
- }
-
- public String getStatus() {
- // TODO Auto-generated method stub
- return null;
- }
-
- public int getTimeout() {
- // TODO Auto-generated method stub
- return 0;
- }
-
- public boolean isAjaxSingle() {
- // TODO Auto-generated method stub
- return false;
- }
-
- public boolean isBypassUpdates() {
- // TODO Auto-generated method stub
- return false;
- }
-
- public boolean isIgnoreDupResponses() {
- // TODO Auto-generated method stub
- return false;
- }
-
- public boolean isLimitToList() {
- // TODO Auto-generated method stub
- return false;
- }
-
- public void setAjaxSingle(boolean single) {
- // TODO Auto-generated method stub
-
- }
-
- public void setBypassUpdates(boolean bypass) {
- // TODO Auto-generated method stub
-
- }
-
- public void setData(Object data) {
- // TODO Auto-generated method stub
-
- }
-
- public void setEventsQueue(String newvalue) {
- // TODO Auto-generated method stub
-
- }
-
- public void setFocus(String focus) {
- // TODO Auto-generated method stub
-
- }
-
- public void setIgnoreDupResponses(boolean newvalue) {
- // TODO Auto-generated method stub
-
- }
-
- public void setLimitToList(boolean submitForm) {
- // TODO Auto-generated method stub
-
- }
-
- public void setOncomplete(String oncomplete) {
- // TODO Auto-generated method stub
-
- }
-
- public void setReRender(Object targetId) {
- // TODO Auto-generated method stub
-
- }
-
- public void setRequestDelay(int newvalue) {
- // TODO Auto-generated method stub
-
- }
-
- public void setStatus(String status) {
- // TODO Auto-generated method stub
-
- }
-
- public void setTimeout(int timeout) {
- // TODO Auto-generated method stub
-
- }
-
- public String getEvent() {
- // TODO Auto-generated method stub
- return null;
- }
-
- public String getEventString() {
- // TODO Auto-generated method stub
- return null;
- }
-
- public boolean isDisableDefault() {
- // TODO Auto-generated method stub
- return false;
- }
-
- public void setDisableDefault(boolean newvalue) {
- // TODO Auto-generated method stub
-
- }
-
- public void setEvent(String event) {
- // TODO Auto-generated method stub
-
- }
-
- public void setParentProperties(UIComponent parent) {
- // TODO Auto-generated method stub
-
- }
-
- public String getBeforeUpdate() {
- // TODO Auto-generated method stub
- return null;
- }
-
- public void setBeforeUpdate(String beforeUpdate) {
- // TODO Auto-generated method stub
-
- }
- }
-
- private UIDataTable dataTable;
-
private UIColumn column1;
private UIColumn column2;
+ private UIForm form = null;
+
private UIColumnGroup columnGroup;
/**
@@ -236,7 +76,10 @@
*/
public void setUp() throws Exception {
super.setUp();
-
+
+ form = new HtmlForm();
+ form.setId("form");
+ facesContext.getViewRoot().getChildren().add(form);
dataTable = (UIDataTable) application
.createComponent("org.richfaces.DataTable");
dataTable.setId("dataTable");
@@ -305,10 +148,11 @@
}
});
column2.getChildren().add(cellElement2);
- columnGroup.getChildren().add(column2);
+ columnGroup.getChildren().add(column2);
+
+
+ form.getChildren().add(dataTable);
- facesContext.getViewRoot().getChildren().add(dataTable);
-
}
/*
@@ -486,7 +330,7 @@
tr = (HtmlElement) trs.get(0);
assertNotNull(tr);
classAttr = tr.getAttributeValue("class");
- System.out.println(classAttr);
+ //System.out.println(classAttr);
assertTrue(classAttr.contains("dr-table-footer rich-table-footer "));
tds = tr.getHtmlElementsByTagName("td");
@@ -494,7 +338,7 @@
td = (HtmlElement) tds.get(0);
assertNotNull(td);
classAttr = td.getAttributeValue("class");
- System.out.println(classAttr);
+ //System.out.println(classAttr);
assertTrue(classAttr.contains("dr-table-footercell rich-table-footercell "));
Iterator fixedChildren = dataTable.fixedChildren();
@@ -568,13 +412,13 @@
UISubTable subTable = (UISubTable) application
.createComponent("org.richfaces.SubTable");
subTable.setId("subTable");
- dataTable.getChildren().add(subTable);
-
+
UIColumnGroup subTableColumnGroup = (UIColumnGroup) application
.createComponent("org.richfaces.ColumnGroup");
UIColumn column3 = (UIColumn) application
.createComponent("org.richfaces.Column");
+
subTableColumnGroup.getChildren().add(column3);
UIOutput text = (UIOutput) createComponent(
HtmlOutputText.COMPONENT_TYPE, HtmlOutputText.class.getName(),
@@ -610,7 +454,8 @@
HtmlOutputText.class.getName(), null, null, null));
subTable.getAttributes().put("columnClasses", "sub1,sub2");
-
+ dataTable.getChildren().add(subTable);
+
assertTrue(subTable.isBreakBefore());
try {
@@ -622,6 +467,8 @@
HtmlPage page = renderView();
assertNotNull(page);
+ // System.out.println(page.asXml());
+
// System.out.println(page.asXml());
}
@@ -656,15 +503,14 @@
HtmlOutputText.class.getName(), null, null, null);
UIComponent column = column1;
UIComponent notAjaxSupport = notColumn;
- UIComponent ajaxSupport = new MockAjaxSupport();
+
assertTrue(columnPredicate.evaluate(column));
assertTrue(!columnPredicate.evaluate(notColumn));
assertTrue(notColumnPredicate.evaluate(notColumn));
assertTrue(!notColumnPredicate.evaluate(column));
-
- assertTrue(ajaxSupportPredicate.evaluate(ajaxSupport));
+
assertTrue(!ajaxSupportPredicate.evaluate(notAjaxSupport));
}
-}
+}
\ No newline at end of file
Property changes on: trunk/ui/tooltip
___________________________________________________________________
Name: svn:ignore
- target
.classpath
.project
.settings
+ target
.classpath
.project
.settings
.clover
18 years, 8 months
JBoss Rich Faces SVN: r2440 - trunk/test-applications/jsp/src/main/java/tooltip.
by richfaces-svn-commits@lists.jboss.org
Author: ayanul
Date: 2007-08-23 11:19:01 -0400 (Thu, 23 Aug 2007)
New Revision: 2440
Modified:
trunk/test-applications/jsp/src/main/java/tooltip/Tooltip.java
Log:
http://jira.jboss.com/jira/browse/RF-646
Modified: trunk/test-applications/jsp/src/main/java/tooltip/Tooltip.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/tooltip/Tooltip.java 2007-08-23 15:18:32 UTC (rev 2439)
+++ trunk/test-applications/jsp/src/main/java/tooltip/Tooltip.java 2007-08-23 15:19:01 UTC (rev 2440)
@@ -24,6 +24,7 @@
horizontalOffset = 0;
verticalOffset = 0;
style = "none";
+ layout = "inline";
}
public String getDirection() {
18 years, 8 months
JBoss Rich Faces SVN: r2439 - trunk/docs/userguide/en/src/main/docbook/modules.
by richfaces-svn-commits@lists.jboss.org
Author: vkorluzhenko
Date: 2007-08-23 11:18:32 -0400 (Thu, 23 Aug 2007)
New Revision: 2439
Modified:
trunk/docs/userguide/en/src/main/docbook/modules/AUGWADParams.xml
trunk/docs/userguide/en/src/main/docbook/modules/RFCGettingStarted.xml
trunk/docs/userguide/en/src/main/docbook/modules/RFCarchitectover.xml
Log:
http://jira.jboss.com/jira/browse/RF-621
http://jira.jboss.com/jira/browse/RF-622
http://jira.jboss.com/jira/browse/RF-656
keywords and content was changed according to the merging of two projects
Modified: trunk/docs/userguide/en/src/main/docbook/modules/AUGWADParams.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/modules/AUGWADParams.xml 2007-08-23 15:16:53 UTC (rev 2438)
+++ trunk/docs/userguide/en/src/main/docbook/modules/AUGWADParams.xml 2007-08-23 15:18:32 UTC (rev 2439)
@@ -116,7 +116,12 @@
</tbody>
</tgroup>
- </table></para>
+ </table></para>
+
+ <note>
+ <title>Note:</title>
+ <para>org.richfaces.SKIN is used in the same way as org.ajax4jsf.SKIN</para>
+ </note>
<para><table>
<title>org.ajax4jsf.Filter Initialization Parameters</title>
Modified: trunk/docs/userguide/en/src/main/docbook/modules/RFCGettingStarted.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/modules/RFCGettingStarted.xml 2007-08-23 15:16:53 UTC (rev 2438)
+++ trunk/docs/userguide/en/src/main/docbook/modules/RFCGettingStarted.xml 2007-08-23 15:18:32 UTC (rev 2439)
@@ -12,8 +12,8 @@
</keywordset>
</chapterinfo>
<title>Getting Started with RichFaces</title>
- <section id="DownloadingAjax4jsf">
- <?dbhtml filename="DownloadingAjax4jsf.html" ?>
+ <section id="DownloadingRichFaces">
+ <?dbhtml filename="DownloadingRichFaces.html" ?>
<title>Downloading RichFaces 3.1.0</title>
<para>The latest release of <property>RichFaces</property> is available for download at:<simplelist>
<member>
@@ -27,50 +27,60 @@
<title>Installation</title>
<itemizedlist>
<listitem> Unzip <emphasis>
- <property>"ajax4jsf.zip"</property>
+ <property>"richfaces-ui-3.1.0-bin.zip"</property>
</emphasis> file to the chosen folder. </listitem>
<listitem> Copy <emphasis>
- <property>"ajax4jsf.jar"</property>
- </emphasis> and <emphasis>
- <property>"oscache-2.3.2.jar"</property>
- </emphasis> files into the <emphasis>
+ <property>"richfaces-api-3.1.0.jar"</property>
+ </emphasis>, <emphasis>
+ <property>"richfaces-impl-3.1.0.jar"</property>
+ </emphasis>,<emphasis>
+ <property>"richfaces-ui-3.1.0.jar"</property>
+ </emphasis>files into the <emphasis>
<property>"WEB-INF/lib"</property>
</emphasis> folder of your application. </listitem>
- <note>
+ <!--note>
<title>Note:</title>
<para>Starting from Ajax4jsf 1.1.1, the oscache library is not required to be in the
classpath anymore. </para>
- </note>
+ </note-->
<listitem> Add the following content into the <emphasis>
<property>"WEB-INF/web.xml"</property>
- </emphasis> file of your application: <programlisting role="XML"><![CDATA[<filter>
- <display-name>Ajax4jsf Filter</display-name>
- <filter-name>ajax4jsf</filter-name>
- <filter-class>org.ajax4jsf.Filter</filter-class>
- </filter>
- <filter-mapping>
- <filter-name>ajax4jsf</filter-name>
- <servlet-name>Faces Servlet</servlet-name>
- <dispatcher>REQUEST</dispatcher>
- <dispatcher>FORWARD</dispatcher>
- <dispatcher>INCLUDE</dispatcher>
- </filter-mapping>]]></programlisting>
- <note>
+ </emphasis> file of your application: <programlisting role="XML"><![CDATA[
+ <filter>
+ <display-name>RichFaces Filter</display-name>
+ <filter-name>richfaces</filter-name>
+ <filter-class>org.ajax4jsf.Filter</filter-class>
+ </filter>
+ <filter-mapping>
+ <filter-name>richfaces</filter-name>
+ <servlet-name>Faces Servlet</servlet-name>
+ <dispatcher>REQUEST</dispatcher>
+ <dispatcher>FORWARD</dispatcher>
+ <dispatcher>INCLUDE</dispatcher>
+ </filter-mapping>]]></programlisting>
+ <!--note>
<title>Note:</title>
<para>You can copy and paste the above text from the <emphasis>
<property>"README.txt"</property>
</emphasis> file.</para>
- </note>
+ </note-->
</listitem>
+
<listitem>
- <para>Add the following line for each JSP page of your application where you are going to
- bring in Ajax functionality.</para>
- <programlisting role="XML"> <![CDATA[<%@ taglib uri="https://ajax4jsf.dev.java.net/ajax" prefix="a4j"%>]]></programlisting>
+ <para>Add the following lines for each JSP page of your application.</para>
+ <programlisting role="XML"><![CDATA[<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%> ]]></programlisting>
<para>For XHTML pages:</para>
- <programlisting role="XML"><xmlns:a4j="https://ajax4jsf.dev.java.net/ajax"></programlisting>
+ <programlisting role="XML"><![CDATA[<xmlns:a4j="http://richfaces.org/a4j">
+<xmlns:a4j="http://richfaces.org/rich">]]></programlisting>
</listitem>
</itemizedlist>
+ <note>
+ <title>Note:</title>
+ <para>The previous URIs (https://ajax4jsf.dev.java.net/ajax and
+ http://richfaces.ajax4jsf.org/rich) are also available for backward compatibility.</para>
+ </note>
</section>
<section id="SimpleAJAXEchoProject">
<?dbhtml filename="SimpleAJAXEchoProject.html" ?>
@@ -91,7 +101,7 @@
<?dbhtml filename="JSPPage.html"?>
<title>JSP Page</title>
<para>Here is the necessary page (echo.jsp):</para>
- <programlisting role="JSP"> <![CDATA[<%@ taglib uri="https://ajax4jsf.dev.java.net/ajax" prefix="a4j"%>
+ <programlisting role="JSP"> <![CDATA[<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<html>
@@ -170,7 +180,7 @@
<para>
<note>
<title>Note:</title>
- <para>Nothing that relates directly to Ajax4jsf is required in the configuration
+ <para>Nothing that relates directly to RichFaces is required in the configuration
file.</para>
</note>
</para>
@@ -178,54 +188,49 @@
<section id="Web.xml">
<?dbhtml filename="Web.xml.html"?>
<title>Web.xml</title>
- <para>It is also necessary to add jar files (see <ulink
- url="GettingStartedWithAjax4jsf.html#Installation">installation chapter</ulink>) and
- modify the "web.xml" file: </para>
+ <para>It is also necessary to add jar files (see <link linkend="Installation"
+ >installation chapter</link>) and modify the "web.xml" file: </para>
<programlisting role="XML"> <![CDATA[<?xml version="1.0"?>
<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
- <display-name>a4jEchoText</display-name>
- <context-param>
+ <display-name>a4jEchoText</display-name>
+ <context-param>
<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
<param-value>server</param-value>
- </context-param>
- <filter>
- <display-name>Ajax4jsf Filter</display-name>
- <filter-name>ajax4jsf</filter-name>
- <filter-class>org.ajax4jsf.Filter</filter-class>
- </filter>
- <filter-mapping>
- <filter-name>ajax4jsf</filter-name>
- <servlet-name>Faces Servlet</servlet-name>
- <dispatcher>REQUEST</dispatcher>
- <dispatcher>FORWARD</dispatcher>
- <dispatcher>INCLUDE</dispatcher>
- </filter-map>
- <listener>
- <listener-class>
- com.sun.faces.config.ConfigureListener
- </listener-class>
- </listener>
+ </context-param>
+ <filter>
+ <display-name>RichFaces Filter</display-name>
+ <filter-name>richfaces</filter-name>
+ <filter-class>org.ajax4jsf.Filter</filter-class>
+ </filter>
+ <filter-mapping>
+ <filter-name>richfaces</filter-name>
+ <servlet-name>Faces Servlet</servlet-name>
+ <dispatcher>REQUEST</dispatcher>
+ <dispatcher>FORWARD</dispatcher>
+ <dispatcher>INCLUDE</dispatcher>
+ </filter-map>
+ <listener>
+ <listener-class>com.sun.faces.config.ConfigureListener</listener-class>
+ </listener>
- <!-- Faces Servlet -->
- <servlet>
+ <!-- Faces Servlet -->
+ <servlet>
<servlet-name>Faces Servlet</servlet-name>
- <servlet-class>
- javax.faces.webapp.FacesServlet
- </servlet-class>
+ <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
- </servlet>
+ </servlet>
- <!-- Faces Servlet Mapping -->
- <servlet-mapping>
+ <!-- Faces Servlet Mapping -->
+ <servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.jsf</url-pattern>
- </servlet-mapping>
- <login-config>
+ </servlet-mapping>
+ <login-config>
<auth-method>BASIC</auth-method>
- </login-config>
+ </login-config>
</web-app>]]></programlisting>
<para>Now your application should work.</para>
</section>
Modified: trunk/docs/userguide/en/src/main/docbook/modules/RFCarchitectover.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/modules/RFCarchitectover.xml 2007-08-23 15:16:53 UTC (rev 2438)
+++ trunk/docs/userguide/en/src/main/docbook/modules/RFCarchitectover.xml 2007-08-23 15:18:32 UTC (rev 2439)
@@ -6,20 +6,18 @@
<keywordset>
<keyword>RichFaces</keyword>
- <keyword>Ajax4jsf</keyword>
+ <keyword>CSS</keyword>
- <keyword>CSS</keyword>
-
<keyword>skin</keyword>
</keywordset>
</chapterinfo>
-<title>Basic concepts of the Ajax4jsf Framework</title>
+<title>Basic concepts of the RichFaces Framework</title>
<section id="introToBasics">
<?dbhtml filename="introToBasics.html"?>
<title>Introduction</title>
<para>The framework is implemented as a component library which adds Ajax capability into existing
pages, so you don't need to write any JavaScript code or to replace existing
- components with new Ajax widgets. <property>Ajax4jsf</property> enables page-wide Ajax support instead of the
+ components with new Ajax widgets. <property>RichFaces</property> enables page-wide Ajax support instead of the
traditional component-wide support. So, you can define the event on the page that
invokes an Ajax request and the areas of the page that should be synchronized with the JSF
Component Tree after the Ajax request changes the data on the server according to the
@@ -33,15 +31,15 @@
<imagedata fileref="images/newpic1.jpg"/>
</imageobject>
</mediaobject>
- <para><property>Ajax4jsf</property> allows to define (by means of JSF tags) different parts of a JSF page you
+ <para><property>RichFaces</property> allows to define (by means of JSF tags) different parts of a JSF page you
wish to update with an Ajax request and provide a few options to send Ajax requests to
the server. Also JSF page doesn't change from a "regular" JSF
page and you don't need to write any JavaScript or XMLHttpRequest objects by hands, everything is done automatically.</para>
</section>
- <section id="Ajax4jsfArchitectureOverview">
- <?dbhtml filename="Ajax4jsfArchitectureOverview.html"?>
- <title>Ajax4jsf Architecture Overview</title>
- <para>Next figure lists several important elements of the <property>Ajax4jsf</property> framework</para>
+ <section id="RichFacesArchitectureOverview">
+ <?dbhtml filename="RichFacesArchitectureOverview.html"?>
+ <title>RichFaces Architecture Overview</title>
+ <para>Next figure lists several important elements of the <property>RichFaces</property> framework</para>
<figure>
<title>Core Ajax component structure</title>
</figure>
@@ -52,7 +50,7 @@
</mediaobject>
<formalpara>
<title>Ajax Filter.</title>
- <para>To get all benefits of <property>Ajax4jsf</property>, you should register an Ajax Filter in web.xml
+ <para>To get all benefits of <property>RichFaces</property>, you should register an Ajax Filter in web.xml
file of your application.The Ajax Filter recognizes multiple request types. The sequence diagram on Figure 3
shows the difference in processing of a "regular" JSF request and an Ajax request.</para>
</formalpara>
@@ -101,7 +99,7 @@
</formalpara>
<formalpara>
<title>JavaScript Engine</title>
- <para><property> Ajax4jsf</property> JavaScript Engine runs on the client-side. It knows how to update different areas
+ <para><property>RichFaces</property> JavaScript Engine runs on the client-side. It knows how to update different areas
on your JSF page based on the information from the Ajax response. Do
not use this JavaScript code directly, as it is available automatically.
</para>
@@ -110,7 +108,7 @@
<section id="LimitationsAndRules">
<?dbhtml filename="LimitationAndRules.html"?>
<title>Limitations and Rules</title>
- <para>In order to create AJAX4JSF applications properly, keep the following points in mind:</para>
+ <para>In order to create RichFaces applications properly, keep the following points in mind:</para>
<itemizedlist>
<listitem>
The Ajax framework should not append or delete, but only replace elements on the page. For successful updates, an element with the same ID as in the response must exist on the page. If you'd like to append any code to a page, put in a placeholder for it (any empty element). For the same reason, it's recommended to place messages in the<emphasis >
@@ -247,7 +245,7 @@
value of the transientFlag of JSF components. If the value of this flag is true, the
component must not participate in state saving or restoring of process.
</para>
- <para>In order to provide a solution to this kind of problems, Ajax4jsf uses the concept of
+ <para>In order to provide a solution to this kind of problems, RichFaces uses the concept of
an output panel that is defined by the <emphasis role="bold">
<property><a4j:outputPanel></property>
</emphasis> tag. If you put a <emphasis role="bold"><property><f:verbatim></property></emphasis>
@@ -270,7 +268,7 @@
<section id="RequestErrorsAndSessionExpirationHandling">
<?dbhtml filename="RequestErrorsAndSessionExpirationHandling.html"?>
<title>Request Errors and Session Expiration Handling</title>
- <para>Ajax4jsf allows to redefine standard handlers responsible for processing of different exceptional situations. It helps to define own JavaScript, which is executed when this situations occur.</para>
+ <para>RichFaces allows to redefine standard handlers responsible for processing of different exceptional situations. It helps to define own JavaScript, which is executed when this situations occur.</para>
<section id="RequestErrorsHandling">
<?dbhtml filename="RequestErrorsHandling.html"?>
<title>Request Errors Handling</title>
@@ -289,7 +287,7 @@
<section id="SessionExpiredHandling">
<?dbhtml filename="SessionExpiredHandling.html"?>
<title>Session Expired Handling</title>
- <para>Beginning with Ajax4jsf version 1.0.5 it's possible to redefine also the <emphasis >
+ <para>It's possible to redefine also the <emphasis >
<property>"onExpired"</property>
</emphasis> framework method that is called on the <emphasis >
<property>"Session Expiration"</property>
@@ -310,17 +308,17 @@
<property>"Session Expiration"</property>
</emphasis>event.</listitem>
</itemizedlist>
-<note>
+<!--note>
<title>Note:</title>
Until the version 1.0.5 the method can't be redefined on <emphasis >
<property>"Session Expiration"</property>,
</emphasis> a confirmation dialog with a request for view reloading was always called.
-</note>
+</note-->
</section>
</section>
-&FAQ;
+
<section>
<title>Skinnability</title>
@@ -350,7 +348,7 @@
contains the same values repeated numerous times.</para>
<para>These problems can be solved with the
- <property>skinnability</property> system built into the Ajax4jsf project
+ <property>skinnability</property> system built into theRichFaces project
and realized fully in RichFaces. Every named skin has some
skin-parameters for the definition of a palette and the other parameters
of the user interface. By changing just a few parameters, you can alter
@@ -376,7 +374,7 @@
<itemizedlist>
<listitem>
- <para>Skin parameters defined in the Ajax4jsf framework</para>
+ <para>Skin parameters defined in the RichFaces framework</para>
</listitem>
<listitem>
@@ -497,10 +495,10 @@
</div></programlisting>
</section>
- <section id="SkinParametersTablesInAjax4jsf">
- <?dbhtml filename="SkinParametersTablesInAjax4jsf.html"?>
+ <section id="SkinParametersTablesInRichFaces">
+ <?dbhtml filename="SkinParametersTablesInRichFaces.html"?>
- <title>Skin Parameters Tables in Ajax4jsf</title>
+ <title>Skin Parameters Tables in RichFaces</title>
<para>RichFaces provides eight predefined skin parameters (skins) at the
simplest level of common customization:</para>
@@ -544,7 +542,7 @@
</itemizedlist>
<para>To plug one in, it's necessary to specify a skin name in the
- <emphasis ><property>"org.ajax4jsf.SKIN"</property></emphasis> context-param.</para>
+ <emphasis ><property>"org.richfaces.SKIN"</property></emphasis> context-param.</para>
<para>Here is an example of a table with values for one of the main
skins, <property>"blueSky"</property>.</para>
@@ -819,7 +817,7 @@
<emphasis role="bold">Example:</emphasis>
</para>
<programlisting role="XML"><context-param>
- <param-name>org.ajax4jsf.SKIN</param-name>
+ <param-name>org.richfaces.SKIN</param-name>
<param-value>name</param-value>
</context-param></programlisting>
</listitem>
@@ -831,8 +829,8 @@
</itemizedlist>
</section>
<section>
-<title>Built-in skinnability in Ajax4jsf</title>
- <para>Ajax4jsf gives an opportunity to incorporate <property>skinnability</property> into UI
+<title>Built-in skinnability in RichFaces</title>
+ <para>RichFaces gives an opportunity to incorporate <property>skinnability</property> into UI
design. With this framework you can easily use named skin parameters in
properties files to control the appearance of the skins that are applied
consistently to a whole set of components. You can look at examples of
@@ -844,8 +842,8 @@
</simplelist>
<para>
You may simply control the look-and-feel of your application by using the <property>skinnability</property> service
- of the Ajax4jsf framework. With the means of this service you can define the same style for rendering
- standard JSF components and custom JSF components built with the help of Ajax4jsf.
+ of the RichFaces framework. With the means of this service you can define the same style for rendering
+ standard JSF components and custom JSF components built with the help of RichFaces.
</para>
<para>To find out more on <property>skinnability</property> possibilities, follow these
steps:</para>
@@ -899,10 +897,10 @@
</section>
-<section id="OtherRelevantResources">
+<!--section id="OtherRelevantResources">
<title>Other Relevant Resources</title>
<para><ulink url="http://jsf.javabeat.net/articles/2007/06/introduction-to-ajax4jsf/">Introduction to Ajax4Jsf</ulink> by Shunmuga Raja</para>
-</section>
+</section-->
</chapter>
\ No newline at end of file
18 years, 8 months
JBoss Rich Faces SVN: r2438 - trunk/docs/userguide/en/src/main/docbook/modules.
by richfaces-svn-commits@lists.jboss.org
Author: vkorluzhenko
Date: 2007-08-23 11:16:53 -0400 (Thu, 23 Aug 2007)
New Revision: 2438
Modified:
trunk/docs/userguide/en/src/main/docbook/modules/RFCidesupport.xml
trunk/docs/userguide/en/src/main/docbook/modules/RFCtechreqs.xml
Log:
http://jira.jboss.com/jira/browse/RF-621
Modified: trunk/docs/userguide/en/src/main/docbook/modules/RFCidesupport.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/modules/RFCidesupport.xml 2007-08-23 14:55:26 UTC (rev 2437)
+++ trunk/docs/userguide/en/src/main/docbook/modules/RFCidesupport.xml 2007-08-23 15:16:53 UTC (rev 2438)
@@ -5,7 +5,7 @@
<keywordset>
<keyword>IDE</keyword>
<keyword>Facelets</keyword>
- <keyword>Ajax4jsf</keyword>
+ <keyword>RichFaces</keyword>
<keyword>Struts</keyword>
<keyword>Visual Page Editor</keyword>
<keyword>Open On</keyword>
Modified: trunk/docs/userguide/en/src/main/docbook/modules/RFCtechreqs.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/modules/RFCtechreqs.xml 2007-08-23 14:55:26 UTC (rev 2437)
+++ trunk/docs/userguide/en/src/main/docbook/modules/RFCtechreqs.xml 2007-08-23 15:16:53 UTC (rev 2438)
@@ -72,7 +72,7 @@
<title>Supported Java Versions</title>
<itemizedlist>
- <listitem>JDK 1.4 - 1.6</listitem>
+ <listitem>JDK 1.5 and higher</listitem>
</itemizedlist>
</section>
18 years, 8 months