JBoss Rich Faces SVN: r2577 - trunk/docs/userguide/en/src/main/docbook.
by richfaces-svn-commits@lists.jboss.org
Author: smukhina
Date: 2007-08-29 10:37:52 -0400 (Wed, 29 Aug 2007)
New Revision: 2577
Modified:
trunk/docs/userguide/en/src/main/docbook/master.xml
Log:
http://jira.jboss.com/jira/browse/RF-389
Modified: trunk/docs/userguide/en/src/main/docbook/master.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/master.xml 2007-08-29 13:49:43 UTC (rev 2576)
+++ trunk/docs/userguide/en/src/main/docbook/master.xml 2007-08-29 14:37:52 UTC (rev 2577)
@@ -11,8 +11,8 @@
<!ENTITY rfclibrary SYSTEM "modules/RFClibrary.xml">
<!ENTITY rfcidesupport SYSTEM "modules/RFCidesupport.xml">
<!ENTITY rfclinks SYSTEM "modules/RFClinks.xml">
-<!ENTITY rfcFAQ SYSTEM "modules/RFCfaq.xml">
+
<!--ENTITY richfaces_table SYSTEM "../../../target/generated/rich.xml"-->
<!ENTITY dataFilterSlider_table SYSTEM "../../../target/generated/dataFilterSlider.xml">
<!ENTITY dataScroller_table SYSTEM "../../../target/generated/datascroller.xml">
@@ -48,6 +48,7 @@
<!ENTITY scrollableDataTable_table SYSTEM "../../../target/generated/scrollableDataTable.xml">
<!ENTITY coreComponents_table SYSTEM "../../../target/generated/a4j.xml">
+<!ENTITY rfcFAQ SYSTEM "modules/RFCfaq.xml">
]>
<book>
@@ -110,7 +111,8 @@
</chapter>
- &rfcFAQ;
+
&rfcidesupport;
&rfclinks;
+ &rfcFAQ;
</book>
17 years, 4 months
JBoss Rich Faces SVN: r2576 - trunk/ui/panelmenu/src/main/config/component.
by richfaces-svn-commits@lists.jboss.org
Author: vkorluzhenko
Date: 2007-08-29 09:49:43 -0400 (Wed, 29 Aug 2007)
New Revision: 2576
Modified:
trunk/ui/panelmenu/src/main/config/component/panelMenu.xml
Log:
added descriptions
Modified: trunk/ui/panelmenu/src/main/config/component/panelMenu.xml
===================================================================
--- trunk/ui/panelmenu/src/main/config/component/panelMenu.xml 2007-08-29 13:48:57 UTC (rev 2575)
+++ trunk/ui/panelmenu/src/main/config/component/panelMenu.xml 2007-08-29 13:49:43 UTC (rev 2576)
@@ -151,25 +151,25 @@
<property>
<name>groupStyle</name>
<classname>java.lang.String</classname>
- <description/>
+ <description>CSS style(s) is/are to be applied to group when this component is rendered</description>
<defaultvalue><![CDATA[""]]></defaultvalue>
</property>
<property>
<name>groupClass</name>
<classname>java.lang.String</classname>
- <description/>
+ <description>Space-separated list of CSS style class(es) that are be applied to group of this component</description>
<defaultvalue><![CDATA[""]]></defaultvalue>
</property>
<property>
<name>topGroupStyle</name>
<classname>java.lang.String</classname>
- <description/>
+ <description> CSS style(s) is/are to be applied to top group when this component is rendered</description>
<defaultvalue><![CDATA[""]]></defaultvalue>
</property>
<property>
<name>topGroupClass</name>
<classname>java.lang.String</classname>
- <description/>
+ <description> Space-separated list of CSS style class(es) that are be applied to top group of this component</description>
<defaultvalue><![CDATA[""]]></defaultvalue>
</property>
<property>
@@ -191,13 +191,13 @@
<property>
<name>topItemStyle</name>
<classname>java.lang.String</classname>
- <description/>
+ <description>CSS style(s) is/are to be applied to top item when this component is rendered</description>
<defaultvalue><![CDATA[""]]></defaultvalue>
</property>
<property>
<name>topItemClass</name>
<classname>java.lang.String</classname>
- <description/>
+ <description>Space-separated list of CSS style class(es) that are be applied to top item of this component</description>
<defaultvalue><![CDATA[""]]></defaultvalue>
</property>
<property>
@@ -219,37 +219,37 @@
<property>
<name>disabledGroupClass</name>
<classname>java.lang.String</classname>
- <description/>
+ <description>Space-separated list of CSS style class(es) that are be applied to disabled group of this component</description>
<defaultvalue><![CDATA["dr-pmenu-disabled-element rich-pmenu-disabled-element"]]></defaultvalue>
</property>
<property>
<name>disabledGroupStyle</name>
<classname>java.lang.String</classname>
- <description/>
+ <description>CSS style(s) is/are to be applied to disabled group when this component is rendered</description>
<defaultvalue><![CDATA[""]]></defaultvalue>
</property>
<property>
<name>hoveredItemClass</name>
<classname>java.lang.String</classname>
- <description/>
+ <description> Space-separated list of CSS style class(es) that are be applied to hovered item of this component</description>
<defaultvalue><![CDATA["dr-pmenu-hovered-element rich-pmenu-hovered-element"]]></defaultvalue>
</property>
<property>
<name>hoveredItemStyle</name>
<classname>java.lang.String</classname>
- <description/>
+ <description> CSS style(s) is/are to be applied to hovered item when this component is rendered</description>
<defaultvalue><![CDATA[""]]></defaultvalue>
</property>
<property>
<name>hoveredGroupStyle</name>
<classname>java.lang.String</classname>
- <description/>
+ <description> CSS style(s) is/are to be applied to hovered group when this component is rendered</description>
<defaultvalue><![CDATA[""]]></defaultvalue>
</property>
<property>
<name>hoveredGroupClass</name>
<classname>java.lang.String</classname>
- <description/>
+ <description> Space-separated list of CSS style class(es) that are be applied to hovered group of this component</description>
<defaultvalue><![CDATA["dr-pmenu-hovered-element rich-pmenu-hovered-element"]]></defaultvalue>
</property>
<property>
@@ -262,13 +262,13 @@
&ui_output_attributes;<property>
<name>onclick</name>
<classname>java.lang.String</classname>
- <description/>
+ <description> HTML: a script expression; a pointer button is clicked</description>
<defaultvalue><![CDATA[""]]></defaultvalue>
</property>
<property>
<name>ondblclick</name>
<classname>java.lang.String</classname>
- <description/>
+ <description> HTML: a script expression; a pointer button is double-clicked</description>
<defaultvalue><![CDATA[""]]></defaultvalue>
</property>
<property>
@@ -298,19 +298,19 @@
<property>
<name>onitemhover</name>
<classname>java.lang.String</classname>
- <description/>
+ <description>HTML: script expression; some item was hovered</description>
<defaultvalue><![CDATA[""]]></defaultvalue>
</property>
<property>
<name>ongroupcollapse</name>
<classname>java.lang.String</classname>
- <description/>
+ <description>HTML: script expression; some group was closed</description>
<defaultvalue><![CDATA[""]]></defaultvalue>
</property>
<property>
<name>ongroupexpand</name>
<classname>java.lang.String</classname>
- <description/>
+ <description>HTML: script expression; some group was activated</description>
<defaultvalue><![CDATA[""]]></defaultvalue>
</property>
<property>
@@ -417,12 +417,19 @@
<classname>java.lang.Object</classname>
<description>Defines representation text for menuItem.</description>
</property-->
- &listeners; <!--property>
+ &listeners;
+ <property>
<name>action</name>
<classname>java.lang.String</classname>
- <description>The action method binding expression.</description>
- </property-->
+ <description>MethodBinding pointing at the application action to be invoked, if this UIComponent is activated by the user, during the Apply Request Values or Invoke Application phase of the request processing lifecycle, depending on the value of the immediate property</description>
+ </property>
<property>
+ <name>actionListener</name>
+ <classname>java.lang.String</classname>
+ <description>MethodBinding pointing at method accepting an ActionEvent with return type void</description>
+ </property>
+
+ <property>
<name>target</name>
<classname>java.lang.String</classname>
<description>Target frame for action to execute.</description>
@@ -438,13 +445,13 @@
&ui_output_attributes; &html_events; <property>
<name>oncollapse</name>
<classname>java.lang.String</classname>
- <description/>
+ <description>HTML: script expression; group was closed</description>
<defaultvalue><![CDATA[""]]></defaultvalue>
</property>
<property>
<name>onexpand</name>
<classname>java.lang.String</classname>
- <description/>
+ <description>HTML: script expression; group was opened</description>
<defaultvalue><![CDATA[""]]></defaultvalue>
</property>
<property>
17 years, 4 months
JBoss Rich Faces SVN: r2574 - trunk/docs/userguide/en/src/main/docbook.
by richfaces-svn-commits@lists.jboss.org
Author: vkorluzhenko
Date: 2007-08-29 09:48:19 -0400 (Wed, 29 Aug 2007)
New Revision: 2574
Modified:
trunk/docs/userguide/en/src/main/docbook/master.xml
Log:
changed framework name
Modified: trunk/docs/userguide/en/src/main/docbook/master.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/master.xml 2007-08-29 13:43:42 UTC (rev 2573)
+++ trunk/docs/userguide/en/src/main/docbook/master.xml 2007-08-29 13:48:19 UTC (rev 2574)
@@ -53,7 +53,7 @@
<book>
<bookinfo>
<title>RichFaces Developer Guide</title>
- <subtitle>Ajax4jsf framework with a huge library of rich components and skinnability support</subtitle>
+ <subtitle>RichFaces framework with a huge library of rich components and skinnability support</subtitle>
<copyright>
<year>2007</year>
<holder>Red Hat</holder>
17 years, 4 months
JBoss Rich Faces SVN: r2573 - trunk/ui/scrollableDataTable/src/main/config/component.
by richfaces-svn-commits@lists.jboss.org
Author: vkukharchuk
Date: 2007-08-29 09:43:42 -0400 (Wed, 29 Aug 2007)
New Revision: 2573
Modified:
trunk/ui/scrollableDataTable/src/main/config/component/scrollable-data-table.xml
Log:
http://jira.jboss.com/jira/browse/RF-447
Modified: trunk/ui/scrollableDataTable/src/main/config/component/scrollable-data-table.xml
===================================================================
--- trunk/ui/scrollableDataTable/src/main/config/component/scrollable-data-table.xml 2007-08-29 13:42:57 UTC (rev 2572)
+++ trunk/ui/scrollableDataTable/src/main/config/component/scrollable-data-table.xml 2007-08-29 13:43:42 UTC (rev 2573)
@@ -217,7 +217,7 @@
The attribute provides access to a component state on the client side
</description>
</property>
-
+<!--
<property>
<name>sortListener</name>
<classname>javax.faces.el.MethodBinding</classname>
@@ -228,7 +228,7 @@
MethodBinding representing an action listener method that will be notified after sorting of rows
</description>
</property>
-
+-->
&ajax_component_attributes;
&ui_component_attributes;
&ui_data_attributes;
17 years, 4 months
JBoss Rich Faces SVN: r2572 - trunk/ui/scrollableDataTable/src/main/config/component.
by richfaces-svn-commits@lists.jboss.org
Author: vkukharchuk
Date: 2007-08-29 09:42:57 -0400 (Wed, 29 Aug 2007)
New Revision: 2572
Modified:
trunk/ui/scrollableDataTable/src/main/config/component/scrollable-data-table.xml
Log:
http://jira.jboss.com/jira/browse/RF-447
Modified: trunk/ui/scrollableDataTable/src/main/config/component/scrollable-data-table.xml
===================================================================
--- trunk/ui/scrollableDataTable/src/main/config/component/scrollable-data-table.xml 2007-08-29 13:32:07 UTC (rev 2571)
+++ trunk/ui/scrollableDataTable/src/main/config/component/scrollable-data-table.xml 2007-08-29 13:42:57 UTC (rev 2572)
@@ -1,5 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE components PUBLIC "-//AJAX4JSF//CDK Generator config/EN" "https://ajax4jsf.dev.java.net/nonav/dtds/component-config.dtd" >
+<!DOCTYPE components PUBLIC "-//AJAX4JSF//CDK Generator config/EN" "https://ajax4jsf.dev.java.net/nonav/dtds/component-config.dtd"
+
+>
+
<components>
<component>
<name>org.richfaces.component.ScrollableDataTable</name>
@@ -41,21 +44,30 @@
<property>
<name>frozenColCount</name>
<classname>int</classname>
- <description></description>
+ <description>
+ Defines the number of the fixed columns from the left side that will not be scrolled via horizontal scroll.
+ Default value is '0'
+ </description>
<defaultvalue>0</defaultvalue>
</property>
<property>
<name>height</name>
<classname>java.lang.String</classname>
- <description>grid height</description>
+ <description>Defines a height of the component. Default value is 500px</description>
<defaultvalue>"500px"</defaultvalue>
</property>
+
+ <property>
+ <name>componentState</name>
+ <classname>java.lang.String</classname>
+ <description>It defines EL-binding for a component state for saving or redefinition</description>
+ </property>
<property>
<name>width</name>
<classname>java.lang.String</classname>
- <description>grid width</description>
+ <description>Defines a width of the component. Default value is 700px</description>
<defaultvalue>"700px"</defaultvalue>
</property>
<property>
@@ -67,11 +79,23 @@
<property>
<name>selectedClass</name>
<classname>java.lang.String</classname>
+ <description>Name of the CSS class for a selected row</description>
</property>
-
+
+ <property>
+ <name>value</name>
+ <classname>java.lang.Object</classname>
+ <description>
+ The current value for this component
+ </description>
+ </property>
+
<property>
<name>activeClass</name>
<classname>java.lang.String</classname>
+ <description>
+ A CSS class to be applied to an active row
+ </description>
</property>
<property>
@@ -92,6 +116,7 @@
<property>
<name>captionClass</name>
<classname>java.lang.String</classname>
+ <description>Space-separated list of CSS style class(es) that are be applied to caption for this component</description>
</property>
<property>
@@ -107,12 +132,16 @@
<property>
<name>onselectionchange</name>
<classname>java.lang.String</classname>
+ <description>
+ HTML: script expression to invoke on changing of rows selection
+ </description>
</property>
<property attachedstate="true">
<name>sortOrder</name>
<classname>org.richfaces.model.SortOrder</classname>
</property>
+
<property attachedstate="true" hidden="true">
<name>selection</name>
<classname>org.richfaces.model.selection.Selection</classname>
@@ -121,30 +150,90 @@
<property>
<name>hideWhenScrolling</name>
<classname>boolean</classname>
+ <description>
+ If 'true' data will be hidden during scrolling. Can be used for increase performance.
+ Default value is 'false'
+ </description>
<defaultvalue>false</defaultvalue>
</property>
<property>
<name>onRowClick</name>
<classname>java.lang.String</classname>
+ <description>HTML: a script expression; a pointer button is clicked on row
+ </description>
</property>
-
+
<property>
+ <name>rowKeyVar</name>
+ <classname>java.lang.String</classname>
+ <description>The attribute provides access to a row key in a Request scope</description>
+ </property>
+
+
+ <property>
+ <name>sortMode</name>
+ <classname>java.lang.String</classname>
+ <description>
+ Defines mode of sorting. Possible values are 'single' for sorting of one column and 'multi' for some.
+ </description>
+ </property>
+
+ <property>
+ <name>rowKey</name>
+ <classname>java.lang.String</classname>
+ <description>The attribute is a representation of an identifier for a specific data row</description>
+ </property>
+
+ <property>
+ <name>scriptVar</name>
+ <classname>java.lang.String</classname>
+ <description></description>
+ </property>
+
+ <property>
<name>onRowMouseDown</name>
<classname>java.lang.String</classname>
+ <description>HTML: script expression; a pointer button is pressed down on row</description>
</property>
<property>
<name>onRowMouseUp</name>
<classname>java.lang.String</classname>
+ <description>HTML: script expression; a pointer button is released on row</description>
</property>
<property>
<name>onRowDblClick</name>
<classname>java.lang.String</classname>
+ <description>HTML: a script expression; a pointer button is double-clicked on row
+ </description>
</property>
-
+
+ <property>
+ <name>stateVar</name>
+ <classname>java.lang.String</classname>
+ <description>
+ The attribute provides access to a component state on the client side
+ </description>
+ </property>
+
+ <property>
+ <name>sortListener</name>
+ <classname>javax.faces.el.MethodBinding</classname>
+ <methodargs>
+ java.lang.Object.class
+ </methodargs>
+ <description>
+ MethodBinding representing an action listener method that will be notified after sorting of rows
+ </description>
+ </property>
+
+ &ajax_component_attributes;
&ui_component_attributes;
+ &ui_data_attributes;
+ &spec_table_attributes;
+ &html_style_attributes;
</component>
<renderer generate="true">
@@ -168,4 +257,5 @@
<forclass>org.richfaces.model.selection.ClientSelection</forclass>
</converter>
+
</components>
\ No newline at end of file
17 years, 4 months
JBoss Rich Faces SVN: r2571 - trunk/docs/userguide/en/src/main/docbook/modules.
by richfaces-svn-commits@lists.jboss.org
Author: smukhina
Date: 2007-08-29 09:32:07 -0400 (Wed, 29 Aug 2007)
New Revision: 2571
Modified:
trunk/docs/userguide/en/src/main/docbook/modules/RFCGettingStarted.xml
Log:
http://jira.jboss.com/jira/browse/RF-745
uppercase letters for programlisting role are written
some minor syntax and format mistakes are corect in programlisting patterns
Modified: trunk/docs/userguide/en/src/main/docbook/modules/RFCGettingStarted.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/modules/RFCGettingStarted.xml 2007-08-29 13:23:16 UTC (rev 2570)
+++ trunk/docs/userguide/en/src/main/docbook/modules/RFCGettingStarted.xml 2007-08-29 13:32:07 UTC (rev 2571)
@@ -105,8 +105,7 @@
<?dbhtml filename="JSPPage.html"?>
<title>JSP Page</title>
<para>Here is the necessary page (echo.jsp):</para>
-
- <programlisting role="XML"><![CDATA[
+ <programlisting role="XML"><![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"%>
17 years, 4 months
JBoss Rich Faces SVN: r2570 - in trunk/ui/calendar/src/main: java/org/richfaces/component and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2007-08-29 09:23:16 -0400 (Wed, 29 Aug 2007)
New Revision: 2570
Modified:
trunk/ui/calendar/src/main/config/component/listener.ent
trunk/ui/calendar/src/main/java/org/richfaces/component/UICalendar.java
Log:
Calendar: listeners generation fixed
Modified: trunk/ui/calendar/src/main/config/component/listener.ent
===================================================================
--- trunk/ui/calendar/src/main/config/component/listener.ent 2007-08-29 13:22:39 UTC (rev 2569)
+++ trunk/ui/calendar/src/main/config/component/listener.ent 2007-08-29 13:23:16 UTC (rev 2570)
@@ -4,7 +4,7 @@
org.richfaces.event.CurrentDateChangeListener
</listenerclass>
<componentclass>
- javax.faces.component.UIInput
+ org.richfaces.component.UICalendar
</componentclass>
<eventclass>
org.richfaces.event.CurrentDateChangeEvent
Modified: trunk/ui/calendar/src/main/java/org/richfaces/component/UICalendar.java
===================================================================
--- trunk/ui/calendar/src/main/java/org/richfaces/component/UICalendar.java 2007-08-29 13:22:39 UTC (rev 2569)
+++ trunk/ui/calendar/src/main/java/org/richfaces/component/UICalendar.java 2007-08-29 13:23:16 UTC (rev 2570)
@@ -399,7 +399,7 @@
addFacesListener(listener);
}
- public CurrentDateChangeListener[] getCurrentDateChangeListener() {
+ public CurrentDateChangeListener[] getCurrentDateChangeListeners() {
return (CurrentDateChangeListener[]) getFacesListeners(CurrentDateChangeListener.class);
}
17 years, 4 months
JBoss Rich Faces SVN: r2569 - in trunk/cdk/generator/src/main/java/org/ajax4jsf/templatecompiler: el and 2 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2007-08-29 09:22:39 -0400 (Wed, 29 Aug 2007)
New Revision: 2569
Modified:
trunk/cdk/generator/src/main/java/org/ajax4jsf/templatecompiler/builder/AbstractCompilationContext.java
trunk/cdk/generator/src/main/java/org/ajax4jsf/templatecompiler/el/ELCompiler.java
trunk/cdk/generator/src/main/java/org/ajax4jsf/templatecompiler/elements/A4JRendererElementsFactory.java
trunk/cdk/generator/src/main/java/org/ajax4jsf/templatecompiler/elements/vcp/FCallTemplateElement.java
Log:
CDK output redirected to logs
Modified: trunk/cdk/generator/src/main/java/org/ajax4jsf/templatecompiler/builder/AbstractCompilationContext.java
===================================================================
--- trunk/cdk/generator/src/main/java/org/ajax4jsf/templatecompiler/builder/AbstractCompilationContext.java 2007-08-29 13:21:28 UTC (rev 2568)
+++ trunk/cdk/generator/src/main/java/org/ajax4jsf/templatecompiler/builder/AbstractCompilationContext.java 2007-08-29 13:22:39 UTC (rev 2569)
@@ -36,6 +36,8 @@
import org.ajax4jsf.templatecompiler.elements.TemplateElement;
import org.apache.commons.beanutils.MethodUtils;
import org.apache.commons.beanutils.PropertyUtils;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
import org.apache.velocity.VelocityContext;
import org.apache.velocity.exception.ParseErrorException;
import org.apache.velocity.exception.ResourceNotFoundException;
@@ -49,6 +51,8 @@
*
*/
public abstract class AbstractCompilationContext implements CompilationContext {
+ private static final Log log = LogFactory.getLog(AbstractCompilationContext.class);
+
final private static String VCPBODY = "VCPBODY";
final private static String regexComponent = "(.*)" + VCPBODY + "(.*)"
@@ -342,7 +346,7 @@
}
if (null == clazz) {
- System.out.println("Error load class: " + className);
+ log.error("Error load class: " + className);
throw new ClassNotFoundException();
}
return clazz;
@@ -360,7 +364,7 @@
public Class getMethodReturnedClass(Class clazz, String methodName,
Class[] parametersTypes) {
Class returnedType = null;
- System.out.println("class : " + clazz.getName() + "\n\t method : "
+ log.debug("class : " + clazz.getName() + "\n\t method : "
+ methodName + "\n\t paramTypes : "
+ Arrays.asList(parametersTypes).toString());
@@ -369,10 +373,10 @@
if (null != method) {
returnedType = method.getReturnType();
- System.out.println("Method found, return type : "
+ log.debug("Method found, return type : "
+ returnedType.getName());
} else {
- System.out.println("Method not found");
+ log.error("Method not found: " + clazz + "#" + methodName + "(" + parametersTypes + ")");
}
return returnedType;
Modified: trunk/cdk/generator/src/main/java/org/ajax4jsf/templatecompiler/el/ELCompiler.java
===================================================================
--- trunk/cdk/generator/src/main/java/org/ajax4jsf/templatecompiler/el/ELCompiler.java 2007-08-29 13:21:28 UTC (rev 2568)
+++ trunk/cdk/generator/src/main/java/org/ajax4jsf/templatecompiler/el/ELCompiler.java 2007-08-29 13:22:39 UTC (rev 2569)
@@ -32,6 +32,8 @@
import org.ajax4jsf.templatecompiler.builder.CompilationContext;
import org.ajax4jsf.templatecompiler.builder.StringUtils;
import org.apache.commons.beanutils.PropertyUtils;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
import com.sun.el.parser.ArithmeticNode;
import com.sun.el.parser.AstBracketSuffix;
@@ -60,6 +62,8 @@
*/
public class ELCompiler implements IELCompiler {
+ private static final Log log = LogFactory.getLog(ELCompiler.class);
+
Map functionsMap = new HashMap();
static {
@@ -181,7 +185,7 @@
sb.append(" (");
sb.append(node.getClass().getName());
sb.append(")");
- System.out.println(sb.toString());
+ log.debug(sb.toString());
}
return returnValue;
@@ -207,14 +211,14 @@
if (node1 != null) {
if (!(returnValue = processingNode(node.jjtGetChild(0), sb1,
componentBean))) {
- System.out.println("Error processing node1: "
+ log.error("Error processing node1: "
+ node.jjtGetChild(0).getImage());
}
}
if (!(returnValue = processingNode(node.jjtGetChild(1), sb2,
componentBean))) {
- System.out.println("Error processing node2: "
+ log.error("Error processing node2: "
+ node.jjtGetChild(1).getImage());
}
@@ -281,9 +285,9 @@
private boolean processingFunction(AstFunction node, StringBuffer sb,
CompilationContext componentBean) {
- System.out.println("Processing function : " + node.getPrefix());
- System.out.println("Processing function : " + node.getLocalName());
- System.out.println("Processing function : " + node.getOutputName());
+ log.debug("Processing function : " + node.getPrefix());
+ log.debug("Processing function : " + node.getLocalName());
+ log.debug("Processing function : " + node.getOutputName());
if (node.getPrefix().equals("this")) {
sb.append(node.getLocalName());
@@ -414,7 +418,7 @@
}
} else if (subChild instanceof AstDotSuffix) {
String propertyName = subChild.getImage();
- System.out.println("Object: " + lastVariableType
+ log.debug("Object: " + lastVariableType
+ ", property: " + propertyName);
if (lastVariableType != null) {
@@ -431,7 +435,7 @@
+ lastVariableType);
}
- System.out.println("propertyObject: "
+ log.debug("propertyObject: "
+ propertyDescriptor.getPropertyType()
.getName());
StringBuffer tmpbuf = new StringBuffer();
Modified: trunk/cdk/generator/src/main/java/org/ajax4jsf/templatecompiler/elements/A4JRendererElementsFactory.java
===================================================================
--- trunk/cdk/generator/src/main/java/org/ajax4jsf/templatecompiler/elements/A4JRendererElementsFactory.java 2007-08-29 13:21:28 UTC (rev 2568)
+++ trunk/cdk/generator/src/main/java/org/ajax4jsf/templatecompiler/elements/A4JRendererElementsFactory.java 2007-08-29 13:22:39 UTC (rev 2569)
@@ -33,6 +33,8 @@
import org.ajax4jsf.templatecompiler.elements.vcp.AjaxRenderedAreaElement;
import org.ajax4jsf.templatecompiler.elements.vcp.HeaderScriptsElement;
import org.ajax4jsf.templatecompiler.elements.vcp.HeaderStylesElement;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
import org.w3c.dom.Node;
/**
@@ -45,6 +47,8 @@
*/
public class A4JRendererElementsFactory implements ElementsFactory {
+ private static final Log log = LogFactory.getLog(A4JRendererElementsFactory.class);
+
public static final String TEMPLATES_PATH = "META-INF/templates";
public static final String TEMPLATES_TEMPLATECOMPILER_PATH = TEMPLATES_PATH+"/templatecompiler";
@@ -135,7 +139,7 @@
if (!className.equals("")) {
Class class1;
try {
- System.out.println("loading class: " + className);
+ log.debug("loading class: " + className);
class1 = Class.forName(className);
Object[] objects = new Object[2];
Modified: trunk/cdk/generator/src/main/java/org/ajax4jsf/templatecompiler/elements/vcp/FCallTemplateElement.java
===================================================================
--- trunk/cdk/generator/src/main/java/org/ajax4jsf/templatecompiler/elements/vcp/FCallTemplateElement.java 2007-08-29 13:21:28 UTC (rev 2568)
+++ trunk/cdk/generator/src/main/java/org/ajax4jsf/templatecompiler/elements/vcp/FCallTemplateElement.java 2007-08-29 13:22:39 UTC (rev 2569)
@@ -33,6 +33,8 @@
import org.ajax4jsf.templatecompiler.elements.A4JRendererElementsFactory;
import org.ajax4jsf.templatecompiler.elements.TemplateElementBase;
import org.apache.commons.beanutils.PropertyUtils;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
import org.apache.velocity.VelocityContext;
import org.w3c.dom.NamedNodeMap;
import org.w3c.dom.Node;
@@ -45,6 +47,8 @@
* @version $Revision: 1.1.2.3 $ $Date: 2007/02/26 20:48:47 $
*/
public class FCallTemplateElement extends TemplateElementBase {
+ private static final Log log = LogFactory.getLog(FCallTemplateElement.class);
+
private String functionName;
private String variable;
@@ -102,7 +106,7 @@
componentBean);
this.parameters = parameterProcessor.getParameters();
- System.out.println(this.parameters);
+ log.debug(this.parameters);
List decodeFunctionName = null;
@@ -120,17 +124,17 @@
String elementFunction = (String) iter.next();
try {
- System.out.println("Try to load class : " + lastClassName);
+ log.debug("Try to load class : " + lastClassName);
Class clazz = componentBean.loadClass(lastClassName);
if (!iter.hasNext()) {
String method = getMethod(clazz, elementFunction);
if (method != null) {
- System.out.println(method);
+ log.debug(method);
functionNames.add(method);
} else {
- System.out.println("Method " + elementFunction
+ log.error("Method " + elementFunction
+ " not found in class : " + lastClassName);
throw new CompilationException();
}
@@ -147,13 +151,13 @@
functionNames.add(propertyDescriptor.getReadMethod()
.getName()
+ "()");
- System.out.println("Property " + elementFunction
+ log.debug("Property " + elementFunction
+ " mapped to function : "
+ propertyDescriptor.getReadMethod().getName());
lastClassName = propertyDescriptor.getPropertyType()
.getName();
} else {
- System.out.println("Property " + elementFunction
+ log.error("Property " + elementFunction
+ " not found in class : " + lastClassName);
throw new CompilationException();
}
@@ -161,7 +165,7 @@
} catch (Throwable e) {
- System.out.println("Error load class : " + lastClassName + ", "
+ log.error("Error load class : " + lastClassName + ", "
+ e.getLocalizedMessage());
e.printStackTrace();
throw new CompilationException("Error load class : "
17 years, 4 months
JBoss Rich Faces SVN: r2568 - in trunk/test-applications/facelets/src/main: webapp/DropDownMenu and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: ayanul
Date: 2007-08-29 09:21:28 -0400 (Wed, 29 Aug 2007)
New Revision: 2568
Modified:
trunk/test-applications/facelets/src/main/java/ddMenu/DDMenu.java
trunk/test-applications/facelets/src/main/webapp/DropDownMenu/DDMenu.xhtml
Log:
http://jira.jboss.com/jira/browse/RF-756
Modified: trunk/test-applications/facelets/src/main/java/ddMenu/DDMenu.java
===================================================================
--- trunk/test-applications/facelets/src/main/java/ddMenu/DDMenu.java 2007-08-29 13:21:13 UTC (rev 2567)
+++ trunk/test-applications/facelets/src/main/java/ddMenu/DDMenu.java 2007-08-29 13:21:28 UTC (rev 2568)
@@ -16,6 +16,7 @@
private String icon = null;
private String iconFolder = null;
private String selectMenu;
+ private String mode;
private boolean rendered;
private boolean disabled;
private boolean check;
@@ -31,6 +32,7 @@
groupDirection = "auto";
jointPoint = "";
popupWidth = "";
+ mode = "none";
icon = null;
iconFolder = null;
rendered = true;
@@ -168,4 +170,12 @@
public void setSelectMenu(String selectMenu) {
this.selectMenu = selectMenu;
}
+
+ public String getMode() {
+ return mode;
+ }
+
+ public void setMode(String mode) {
+ this.mode = mode;
+ }
}
Modified: trunk/test-applications/facelets/src/main/webapp/DropDownMenu/DDMenu.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/DropDownMenu/DDMenu.xhtml 2007-08-29 13:21:13 UTC (rev 2567)
+++ trunk/test-applications/facelets/src/main/webapp/DropDownMenu/DDMenu.xhtml 2007-08-29 13:21:28 UTC (rev 2568)
@@ -42,10 +42,15 @@
<h:inputText value="#{dDMenu.verticalOffset}">
<a4j:support event="onchange" reRender="ddmId" />
</h:inputText>
-
- <h:outputText value="width" />
-
-
+
+ <h:outputText value="Mode:" />
+ <h:selectOneRadio value="#{dDMenu.mode}">
+ <f:selectItem itemLabel="none" itemValue="none"/>
+ <f:selectItem itemLabel="ajax" itemValue="ajax"/>
+ <f:selectItem itemLabel="server" itemValue="server"/>
+ <a4j:support event="onclick" reRender="ddmId" />
+ </h:selectOneRadio>
+
<h:outputText value="Direction:" />
<h:selectOneRadio value="#{dDMenu.direction}">
<f:selectItem itemLabel="top-right" itemValue="top-right" />
@@ -99,7 +104,7 @@
<rich:spacer width="300px"></rich:spacer>
<rich:panel style="width:200px; height:50px;">
- <rich:dropDownMenu id="ddmId" value="DropDownMenu"
+ <rich:dropDownMenu id="ddmId" value="DropDownMenu" submitMode="#{dDMenu.mode}"
hideDelay="#{dDMenu.hideDelay}" direction="#{dDMenu.direction}"
horizontalOffset="#{dDMenu.horizontalOffset}"
jointPoint="#{dDMenu.jointPoint}" popupWidth="#{dDMenu.popupWidth}"
@@ -145,9 +150,8 @@
</rich:menuItem>
<rich:menuSeparator />
<rich:menuItem icon="#{dDMenu.icon}">
- <h:outputText value="CheckBox" />
- <h:selectBooleanCheckbox label="lfllf" value="#{dDMenu.check}"
- onclick="submit()" />
+ <h:outputText value="CheckBox " />
+ <h:selectBooleanCheckbox value="#{dDMenu.check}" onclick="submit()" />
</rich:menuItem>
</rich:menuGroup>
17 years, 4 months