JBoss Rich Faces SVN: r2677 - trunk/samples.
by richfaces-svn-commits@lists.jboss.org
Author: alexsmirnov
Date: 2007-08-31 18:48:16 -0400 (Fri, 31 Aug 2007)
New Revision: 2677
Modified:
trunk/samples/pom.xml
Log:
change sservlet version for a tomcat & jboss 4 profiles to 2.4
Modified: trunk/samples/pom.xml
===================================================================
--- trunk/samples/pom.xml 2007-08-31 22:10:11 UTC (rev 2676)
+++ trunk/samples/pom.xml 2007-08-31 22:48:16 UTC (rev 2677)
@@ -226,7 +226,7 @@
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
- <version>2.5</version>
+ <version>2.4</version>
<scope>provided</scope>
</dependency>
<dependency>
@@ -325,13 +325,13 @@
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
- <version>2.5</version>
+ <version>2.4</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>javax.servlet.jsp</groupId>
<artifactId>jsp-api</artifactId>
- <version>2.1</version>
+ <version>2.0</version>
<scope>provided</scope>
</dependency>
<dependency>
17 years, 3 months
JBoss Rich Faces SVN: r2676 - trunk/samples.
by richfaces-svn-commits@lists.jboss.org
Author: alexsmirnov
Date: 2007-08-31 18:10:11 -0400 (Fri, 31 Aug 2007)
New Revision: 2676
Modified:
trunk/samples/pom.xml
Log:
change sservlet version for a tomcat profile to 2.4
Modified: trunk/samples/pom.xml
===================================================================
--- trunk/samples/pom.xml 2007-08-31 17:29:52 UTC (rev 2675)
+++ trunk/samples/pom.xml 2007-08-31 22:10:11 UTC (rev 2676)
@@ -232,7 +232,7 @@
<dependency>
<groupId>javax.servlet.jsp</groupId>
<artifactId>jsp-api</artifactId>
- <version>2.1</version>
+ <version>2.0</version>
<scope>provided</scope>
</dependency>
<dependency>
17 years, 3 months
JBoss Rich Faces SVN: r2675 - trunk/ui/tree/src/main/java/org/richfaces/component/events.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2007-08-31 13:29:52 -0400 (Fri, 31 Aug 2007)
New Revision: 2675
Modified:
trunk/ui/tree/src/main/java/org/richfaces/component/events/TreeEvents.java
Log:
Failed unit test fixed
Modified: trunk/ui/tree/src/main/java/org/richfaces/component/events/TreeEvents.java
===================================================================
--- trunk/ui/tree/src/main/java/org/richfaces/component/events/TreeEvents.java 2007-08-31 17:27:46 UTC (rev 2674)
+++ trunk/ui/tree/src/main/java/org/richfaces/component/events/TreeEvents.java 2007-08-31 17:29:52 UTC (rev 2675)
@@ -57,11 +57,13 @@
if (event instanceof AjaxExpandedEvent) {
new AjaxEvent(event.getComponent()).queue();
}
+ } else if (event instanceof AjaxSelectedEvent) {
+ if (eventsProducer.hasAjaxSubmitSelection()) {
+ binding = eventsProducer.getNodeSelectListener();
+ new AjaxEvent(event.getComponent()).queue();
+ }
} else if (event instanceof NodeSelectedEvent) {
binding = eventsProducer.getNodeSelectListener();
- if (event instanceof AjaxSelectedEvent && eventsProducer.hasAjaxSubmitSelection()) {
- new AjaxEvent(event.getComponent()).queue();
- }
} else if (event instanceof DropEvent) {
binding = eventsProducer.getDropListener();
} else if (event instanceof DragEvent) {
17 years, 3 months
JBoss Rich Faces SVN: r2674 - in trunk: cdk/generator/src/main/java/org/ajax4jsf/builder/generator and 4 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: maksimkaszynski
Date: 2007-08-31 13:27:46 -0400 (Fri, 31 Aug 2007)
New Revision: 2674
Added:
trunk/cdk/generator/src/main/java/org/ajax4jsf/builder/generator/ListenerTagGenerator.java
trunk/cdk/generator/src/main/resources/META-INF/templates/listener_tag.vm
trunk/cdk/generator/src/main/resources/META-INF/templates12/listener_tag.vm
Modified:
trunk/cdk/generator/src/main/java/org/ajax4jsf/builder/config/ComponentBean.java
trunk/cdk/generator/src/main/java/org/ajax4jsf/builder/config/JsfBean.java
trunk/cdk/generator/src/main/java/org/ajax4jsf/builder/generator/ComponentTagGenerator.java
trunk/cdk/generator/src/main/java/org/ajax4jsf/builder/generator/TaglibGenerator.java
trunk/cdk/generator/src/main/resources/META-INF/templates/taglib.vm
trunk/cdk/generator/src/main/resources/META-INF/templates12/taglib.vm
trunk/cdk/maven-cdk-plugin/src/main/java/org/ajax4jsf/builder/mojo/GenerateMojo.java
trunk/ui/tree/src/main/config/component/commonTreeListeners.ent
Log:
RF-781
Modified: trunk/cdk/generator/src/main/java/org/ajax4jsf/builder/config/ComponentBean.java
===================================================================
--- trunk/cdk/generator/src/main/java/org/ajax4jsf/builder/config/ComponentBean.java 2007-08-31 17:06:54 UTC (rev 2673)
+++ trunk/cdk/generator/src/main/java/org/ajax4jsf/builder/config/ComponentBean.java 2007-08-31 17:27:46 UTC (rev 2674)
@@ -46,7 +46,7 @@
/**
* Component child facets, for faces-config.xml
*/
- private Set _facets = new HashSet();
+ private Set<JsfBean> _facets = new HashSet<JsfBean>();
/**
* Renderer description for this components
@@ -61,7 +61,7 @@
/**
* @return Returns the facet.
*/
- public Set getFacets() {
+ public Set<JsfBean> getFacets() {
return _facets;
}
@@ -139,7 +139,7 @@
// Attempt to check component Family
if (null == getFamily()) {
try {
- Class superClass = getLoader().loadClass(getSuperclass());
+ Class<?> superClass = getLoader().loadClass(getSuperclass());
Object componentInstance = superClass
.newInstance();
String family = (String) PropertyUtils.getProperty(componentInstance, "family");
Modified: trunk/cdk/generator/src/main/java/org/ajax4jsf/builder/config/JsfBean.java
===================================================================
--- trunk/cdk/generator/src/main/java/org/ajax4jsf/builder/config/JsfBean.java 2007-08-31 17:06:54 UTC (rev 2673)
+++ trunk/cdk/generator/src/main/java/org/ajax4jsf/builder/config/JsfBean.java 2007-08-31 17:27:46 UTC (rev 2674)
@@ -223,7 +223,7 @@
return true;
}
try {
- Class beanClass;
+ Class<?> beanClass;
try {
beanClass = getLoader().loadClass(classname);
} catch (ClassNotFoundException e) {
@@ -232,7 +232,7 @@
}
beanClass = getLoader().loadClass(getSuperclass());
}
- Class superClass = getLoader().loadClass(name);
+ Class<?> superClass = getLoader().loadClass(name);
return superClass.isAssignableFrom(beanClass);
} catch (ClassNotFoundException e) {
getLog().warn("Could't instantiate for testing class "+classname);
@@ -250,7 +250,7 @@
*/
public boolean haveMethod(String name) {
try {
- Class beanClass;
+ Class<?> beanClass;
try {
beanClass = getLoader().loadClass(getClassname());
} catch (ClassNotFoundException e) {
Modified: trunk/cdk/generator/src/main/java/org/ajax4jsf/builder/generator/ComponentTagGenerator.java
===================================================================
--- trunk/cdk/generator/src/main/java/org/ajax4jsf/builder/generator/ComponentTagGenerator.java 2007-08-31 17:06:54 UTC (rev 2673)
+++ trunk/cdk/generator/src/main/java/org/ajax4jsf/builder/generator/ComponentTagGenerator.java 2007-08-31 17:27:46 UTC (rev 2674)
@@ -86,7 +86,7 @@
context.put("generator",this);
Template template = getTemplate();
// Put common properties
- for (Iterator iter = config.getComponents().iterator(); iter.hasNext();) {
+ for (Iterator<ComponentBean> iter = config.getComponents().iterator(); iter.hasNext();) {
ComponentBean component = (ComponentBean) iter.next();
TagBean tag = component.getTag();
if ( null != tag && null !=tag.getClassname() && tag.isGenerate()) {
@@ -100,7 +100,7 @@
context.put("tag", component.getTag());
context.put("package", component.getTag().getPackageName());
Set<String> importClasses = new HashSet<String>();
- for (Iterator it = component.getProperties().iterator(); it
+ for (Iterator<PropertyBean> it = component.getProperties().iterator(); it
.hasNext();) {
PropertyBean property = (PropertyBean) it.next();
// For non-primitive types, add import declaration.
Added: trunk/cdk/generator/src/main/java/org/ajax4jsf/builder/generator/ListenerTagGenerator.java
===================================================================
--- trunk/cdk/generator/src/main/java/org/ajax4jsf/builder/generator/ListenerTagGenerator.java (rev 0)
+++ trunk/cdk/generator/src/main/java/org/ajax4jsf/builder/generator/ListenerTagGenerator.java 2007-08-31 17:27:46 UTC (rev 2674)
@@ -0,0 +1,88 @@
+/**
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+package org.ajax4jsf.builder.generator;
+
+import java.io.BufferedWriter;
+import java.io.File;
+import java.io.FileWriter;
+import java.io.Writer;
+import java.util.List;
+
+import org.ajax4jsf.builder.config.BuilderConfig;
+import org.ajax4jsf.builder.config.ListenerBean;
+import org.ajax4jsf.builder.config.TagBean;
+import org.apache.velocity.Template;
+import org.apache.velocity.VelocityContext;
+
+/**
+ *
+ * @author Maksim Kaszynski
+ *
+ */
+
+public class ListenerTagGenerator extends InnerGenerator {
+
+ public ListenerTagGenerator(JSFGeneratorConfiguration config, Logger log) {
+ super(config, log);
+ }
+
+ @Override
+ protected String getDefaultTemplateName() {
+ return "listener_tag.vm";
+ }
+
+ @Override
+ public void createFiles(BuilderConfig config) throws GeneratorException {
+ VelocityContext context = new VelocityContext();
+ Template template = getTemplate();
+ // Put common properties
+ List<ListenerBean> listeners = config.getListeners();
+ for (ListenerBean bean : listeners) {
+ TagBean tagHandler = bean.getTag();
+ if ( null != tagHandler && tagHandler.isGenerate() && null !=tagHandler.getClassname()) {
+ context.put("tag", tagHandler);
+ context.put("listener", bean);
+
+ String resultPath = tagHandler.getClassname().replace('.', '/')
+ + ".java";
+ File javaFile = new File(getDestDir(), resultPath);
+ File javaDir = javaFile.getParentFile();
+ if (!javaDir.exists()) {
+ javaDir.mkdirs();
+ }
+ try {
+ if (javaFile.exists()) {
+ javaFile.delete();
+ }
+ Writer out = new BufferedWriter(new FileWriter(javaFile));
+ template.merge(context, out);
+ out.flush();
+ out.close();
+ } catch (Exception e) {
+ throw new GeneratorException(
+ "Error create new Listener JSP Tag Java file ", e);
+ }
+ }
+ }
+ }
+
+}
Modified: trunk/cdk/generator/src/main/java/org/ajax4jsf/builder/generator/TaglibGenerator.java
===================================================================
--- trunk/cdk/generator/src/main/java/org/ajax4jsf/builder/generator/TaglibGenerator.java 2007-08-31 17:06:54 UTC (rev 2673)
+++ trunk/cdk/generator/src/main/java/org/ajax4jsf/builder/generator/TaglibGenerator.java 2007-08-31 17:27:46 UTC (rev 2674)
@@ -32,6 +32,7 @@
import org.ajax4jsf.builder.config.BuilderConfig;
import org.ajax4jsf.builder.config.ComponentBean;
import org.ajax4jsf.builder.config.ConverterBean;
+import org.ajax4jsf.builder.config.ListenerBean;
import org.ajax4jsf.builder.config.ValidatorBean;
import org.apache.velocity.Template;
import org.apache.velocity.VelocityContext;
@@ -103,8 +104,8 @@
public void createFiles(BuilderConfig config) throws GeneratorException {
// parsecomponents aganist patterns.
List<ComponentBean> compmnents = new ArrayList<ComponentBean>();
- for (Iterator iter = config.getComponents().iterator(); iter.hasNext();) {
- ComponentBean component = (ComponentBean) iter.next();
+ for (Iterator<ComponentBean> iter = config.getComponents().iterator(); iter.hasNext();) {
+ ComponentBean component = iter.next();
boolean includeComponent = true;
// Check include patterns
if (component.getTag() != null && (component.getTag().getTaglib() == null || component.getTag().getTaglib().equals(getShortname()))) {
@@ -118,8 +119,8 @@
}
}
List<ValidatorBean> validators = new ArrayList<ValidatorBean>();
- for (Iterator iter = config.getValidators().iterator(); iter.hasNext();) {
- ValidatorBean validator = (ValidatorBean) iter.next();
+ for (Iterator<ValidatorBean> iter = config.getValidators().iterator(); iter.hasNext();) {
+ ValidatorBean validator = iter.next();
boolean includeComponent = true;
// Check include patterns
if (validator.getTag() != null && (validator.getTag().getTaglib() == null || validator.getTag().getTaglib().equals(getShortname()))) {
@@ -133,8 +134,8 @@
}
}
List<ConverterBean> converters = new ArrayList<ConverterBean>();
- for (Iterator iter = config.getConverters().iterator(); iter.hasNext();) {
- ConverterBean converter = (ConverterBean) iter.next();
+ for (Iterator<ConverterBean> iter = config.getConverters().iterator(); iter.hasNext();) {
+ ConverterBean converter = iter.next();
boolean includeComponent = true;
// Check include patterns
if (converter.getTag() != null && (converter.getTag().getTaglib() == null || converter.getTag().getTaglib().equals(getShortname()))) {
@@ -147,6 +148,25 @@
}
}
}
+
+
+ List<ListenerBean> listeners = new ArrayList<ListenerBean>();
+ for (Iterator<ListenerBean> iter = config.getListeners().iterator(); iter.hasNext();) {
+ ListenerBean listener = iter.next();
+ boolean includeComponent = true;
+ // Check include patterns
+ if (listener.getTag() != null && (listener.getTag().getTaglib() == null || listener.getTag().getTaglib().equals(getShortname()))) {
+ includeComponent = isIncludeComponent(listener);
+ if (includeComponent) {
+ info("Listener "+listener.getName() +" included in taglib "+getShortname());
+ listeners.add(listener);
+ } else {
+ info("Listener "+listener.getName() +" excluded from taglib "+getShortname());
+ }
+ }
+ }
+
+
if (compmnents.size() > 0 || validators.size() > 0 || converters.size() > 0) {
VelocityContext context = new VelocityContext();
Template template = getTemplate();
@@ -160,6 +180,9 @@
if (converters.size() > 0) {
context.put("converters", converters);
}
+ if (listeners.size() > 0) {
+ context.put("listeners", listeners);
+ }
context.put("taglib", this);
File taglibFile = getTaglib();//new File(getDestDir(), resultPath);
File javaDir = taglibFile.getParentFile();
Added: trunk/cdk/generator/src/main/resources/META-INF/templates/listener_tag.vm
===================================================================
--- trunk/cdk/generator/src/main/resources/META-INF/templates/listener_tag.vm (rev 0)
+++ trunk/cdk/generator/src/main/resources/META-INF/templates/listener_tag.vm 2007-08-31 17:27:46 UTC (rev 2674)
@@ -0,0 +1,221 @@
+/**
+ * GENERATED FILE - DO NOT EDIT
+ *
+ * License Agreement.
+ *
+ * JBoss RichFaces 3.1 - Ajax4jsf Component Library
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+package ${tag.packageName};
+
+#foreach($import in $imports)
+import $import ;
+#end
+import ${listener.componentclass};
+
+import javax.faces.application.Application;
+import javax.faces.component.UIComponent;
+import javax.faces.context.FacesContext;
+import javax.faces.el.EvaluationException;
+import javax.faces.el.ValueBinding;
+import javax.faces.webapp.UIComponentTag;
+import javax.servlet.jsp.JspException;
+import javax.servlet.jsp.tagext.TagSupport;
+
+import org.apache.commons.beanutils.ConvertUtils;
+
+import org.ajax4jsf.Messages;
+
+
+public class $tag.simpleClassName extends TagSupport {
+
+ private static final long serialVersionUID = -274448680242671987L;
+
+ private String type;
+ private String binding;
+
+ public int doStartTag() throws JspException {
+
+ UIComponentTag parentTag = UIComponentTag
+ .getParentUIComponentTag(pageContext);
+
+ if (parentTag == null) {
+ throw new JspException(Messages.getMessage(
+ Messages.NO_UI_COMPONENT_TAG_ANCESTOR_ERROR, this
+ .getClass().getName()));
+ }
+
+ if (type == null && binding == null) {
+ throw new JspException("Either of the following attributes is "
+ + "required: type binding");
+ }
+
+ // Process only newly created components
+ if (parentTag.getCreated()) {
+
+ FacesContext context = FacesContext.getCurrentInstance();
+ Application application = context.getApplication();
+
+ ${listener.listenerclass} listener = null;
+
+ UIComponent component = parentTag.getComponentInstance();
+
+ // First try to access listener binding
+ if (binding != null) {
+ ValueBinding valueBinding = application
+ .createValueBinding(binding);
+
+ try {
+ listener = (${listener.listenerclass}) valueBinding
+ .getValue(context);
+ } catch (EvaluationException e) {
+ throw new JspException(e);
+ }
+ }
+
+ // Then try to instantiate it by type attribute
+ if (listener == null) {
+
+ String className = null;
+
+ if (UIComponentTag.isValueReference(type)) {
+
+ try {
+ className = (String) application.createValueBinding(
+ type).getValue(context);
+ } catch (EvaluationException e) {
+ throw new JspException(e);
+ }
+
+ } else {
+ className = type;
+ }
+
+ if (className == null) {
+ throw new JspException("Type attribute resolved to null.");
+ }
+
+ try {
+ listener = (${listener.listenerclass}) Class.forName(className)
+ .newInstance();
+ } catch (Exception e) {
+ throw new JspException(Messages.getMessage(
+ Messages.INSTANTIATE_LISTENER_ERROR, className,
+ component.getId()), e);
+ }
+
+ }
+
+ #foreach( $prop in $listener.properties )
+ #if( !$prop.existintag )
+ if (_${prop.name} != null)
+ {
+ #if( ${prop.el} )
+ if (UIComponentTag.isValueReference(_${prop.name}))
+ {
+ ValueBinding vb = application.createValueBinding(_${prop.name});
+ listener.${prop.setterName}((${prop.simpleClassName}) vb.getValue(facesContext));
+ }
+ #if (!${prop.elonly})
+ else
+ {
+ listener.${prop.setterName}((${prop.simpleClassName}) ConvertUtils.convert(_${prop.name}, ${prop.simpleClassName}.class));
+ }
+ #end
+ }
+ #else
+ listener.${prop.setterName}((${prop.simpleClassName}) ConvertUtils.convert(_${prop.name}, ${prop.simpleClassName}.class));
+ #end
+ #end
+ #end
+
+ // If listener was found/created, append it to component
+ if (listener != null) {
+ (($listener.componentclass) component)
+ .${listener.methodname}(listener);
+ }
+
+
+ }
+
+ return SKIP_BODY;
+ }
+
+ public String getType() {
+ return type;
+ }
+
+ public void setType(String type) {
+ this.type = type;
+ }
+
+ public String getBinding() {
+ return binding;
+ }
+
+ public void setBinding(String binding) {
+ this.binding = binding;
+ }
+
+ public void release() {
+ type = null;
+ binding = null;
+ }
+
+// Fields
+#foreach( $prop in $listener.properties )
+#if( !$prop.existintag )
+ /*
+ * $prop.name
+ * ${prop.xmlEncodedDescription}
+ */
+ private String _$prop.name = null;
+
+#end
+#end
+// Setters
+#foreach( $prop in $listener.properties )
+#if( !$prop.existintag )
+ /*
+ * $prop.description
+ * Setter for $prop.name
+ * @param $prop.name - new value
+ */
+ public void ${prop.setterName}(String __${prop.name})
+ {
+ this._${prop.name} = __${prop.name};
+ }
+
+#end
+#if( $prop.alias)
+ /*
+ * ${prop.xmlEncodedDescription}
+ * Setter for alias of $prop.name as $prop.alias
+ * @param $prop.name - new value
+ */
+ public void set${prop.upperFirstChar($prop.alias)}(String __${prop.alias})
+ {
+ this.${prop.setterName}(__${prop.alias});
+ }
+#end
+#end
+
+
+
+
+}
Modified: trunk/cdk/generator/src/main/resources/META-INF/templates/taglib.vm
===================================================================
--- trunk/cdk/generator/src/main/resources/META-INF/templates/taglib.vm 2007-08-31 17:06:54 UTC (rev 2673)
+++ trunk/cdk/generator/src/main/resources/META-INF/templates/taglib.vm 2007-08-31 17:27:46 UTC (rev 2674)
@@ -130,6 +130,62 @@
#end
#end
+#foreach( $listener in ${listeners})
+ #if($listener.tag)
+ <tag>
+ #if($listener.tag.name)
+ <name>${listener.tag.name}</name>
+ #else
+ <name>${listener.name}</name>
+ #end
+ <tag-class>${listener.tag.classname}</tag-class>
+ <body-content>${listener.tag.bodyContent}</body-content>
+ #if(${listener.tag.displayname})
+ <display-name>${listener.tag.xmlEncodedDisplayname}</display-name>
+ #elseif(${listener.displayname})
+ <display-name>${listener.xmlEncodedDisplayname}</display-name>
+ #end
+ #if(${listener.tag.description})
+ <description>${listener.tag.xmlEncodedDescription}</description>
+ #elseif(${listener.xmlEncodedDescription})
+ <description>${listener.xmlEncodedDescription}</description>
+ #end
+ <attribute>
+ <name>type</name>
+ <rtexprvalue>false</rtexprvalue>
+ <description>Type</description>
+ </attribute>
+
+ <attribute>
+ <name>binding</name>
+ <rtexprvalue>false</rtexprvalue>
+ <description>Binding</description>
+ </attribute>
+
+ #foreach( $prop in ${listener.properties} )
+ #if( !${prop.hidden} && !${prop.disabled} )
+ <attribute>
+ <name>${prop.name}</name>
+ #if(${prop.required})
+ <required>true</required>
+ #end
+ <rtexprvalue>false</rtexprvalue>
+ <description>${prop.xmlEncodedDescription}</description>
+ </attribute>
+ #if( $prop.alias )
+ <attribute>
+ <name>${prop.alias}</name>
+ <rtexprvalue>false</rtexprvalue>
+ <description>Alias for ${prop.name} : ${prop.xmlEncodedDescription}</description>
+ </attribute>
+ #end
+ #end
+ #end
+</tag>
+#end
+#end
+
+
</taglib>
\ No newline at end of file
Added: trunk/cdk/generator/src/main/resources/META-INF/templates12/listener_tag.vm
===================================================================
--- trunk/cdk/generator/src/main/resources/META-INF/templates12/listener_tag.vm (rev 0)
+++ trunk/cdk/generator/src/main/resources/META-INF/templates12/listener_tag.vm 2007-08-31 17:27:46 UTC (rev 2674)
@@ -0,0 +1,221 @@
+/**
+ * GENERATED FILE - DO NOT EDIT
+ *
+ * License Agreement.
+ *
+ * JBoss RichFaces 3.1 - Ajax4jsf Component Library
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+package ${tag.packageName};
+
+#foreach($import in $imports)
+import $import ;
+#end
+import ${listener.componentclass};
+
+import javax.faces.application.Application;
+import javax.faces.component.UIComponent;
+import javax.faces.context.FacesContext;
+import javax.faces.el.EvaluationException;
+import javax.faces.el.ValueBinding;
+import javax.faces.webapp.UIComponentTag;
+import javax.servlet.jsp.JspException;
+import javax.servlet.jsp.tagext.TagSupport;
+
+import org.apache.commons.beanutils.ConvertUtils;
+
+import org.ajax4jsf.Messages;
+
+
+public class $tag.simpleClassName extends TagSupport {
+
+ private static final long serialVersionUID = -274448680242671987L;
+
+ private String type;
+ private String binding;
+
+ public int doStartTag() throws JspException {
+
+ UIComponentTag parentTag = UIComponentTag
+ .getParentUIComponentTag(pageContext);
+
+ if (parentTag == null) {
+ throw new JspException(Messages.getMessage(
+ Messages.NO_UI_COMPONENT_TAG_ANCESTOR_ERROR, this
+ .getClass().getName()));
+ }
+
+ if (type == null && binding == null) {
+ throw new JspException("Either of the following attributes is "
+ + "required: type binding");
+ }
+
+ // Process only newly created components
+ if (parentTag.getCreated()) {
+
+ FacesContext context = FacesContext.getCurrentInstance();
+ Application application = context.getApplication();
+
+ ${listener.listenerclass} listener = null;
+
+ UIComponent component = parentTag.getComponentInstance();
+
+ // First try to access listener binding
+ if (binding != null) {
+ ValueBinding valueBinding = application
+ .createValueBinding(binding);
+
+ try {
+ listener = (${listener.listenerclass}) valueBinding
+ .getValue(context);
+ } catch (EvaluationException e) {
+ throw new JspException(e);
+ }
+ }
+
+ // Then try to instantiate it by type attribute
+ if (listener == null) {
+
+ String className = null;
+
+ if (UIComponentTag.isValueReference(type)) {
+
+ try {
+ className = (String) application.createValueBinding(
+ type).getValue(context);
+ } catch (EvaluationException e) {
+ throw new JspException(e);
+ }
+
+ } else {
+ className = type;
+ }
+
+ if (className == null) {
+ throw new JspException("Type attribute resolved to null.");
+ }
+
+ try {
+ listener = (${listener.listenerclass}) Class.forName(className)
+ .newInstance();
+ } catch (Exception e) {
+ throw new JspException(Messages.getMessage(
+ Messages.INSTANTIATE_LISTENER_ERROR, className,
+ component.getId()), e);
+ }
+
+ }
+
+ #foreach( $prop in $listener.properties )
+ #if( !$prop.existintag )
+ if (_${prop.name} != null)
+ {
+ #if( ${prop.el} )
+ if (UIComponentTag.isValueReference(_${prop.name}))
+ {
+ ValueBinding vb = application.createValueBinding(_${prop.name});
+ listener.${prop.setterName}((${prop.simpleClassName}) vb.getValue(facesContext));
+ }
+ #if (!${prop.elonly})
+ else
+ {
+ listener.${prop.setterName}((${prop.simpleClassName}) ConvertUtils.convert(_${prop.name}, ${prop.simpleClassName}.class));
+ }
+ #end
+ }
+ #else
+ listener.${prop.setterName}((${prop.simpleClassName}) ConvertUtils.convert(_${prop.name}, ${prop.simpleClassName}.class));
+ #end
+ #end
+ #end
+
+ // If listener was found/created, append it to component
+ if (listener != null) {
+ (($listener.componentclass) component)
+ .${listener.methodname}(listener);
+ }
+
+
+ }
+
+ return SKIP_BODY;
+ }
+
+ public String getType() {
+ return type;
+ }
+
+ public void setType(String type) {
+ this.type = type;
+ }
+
+ public String getBinding() {
+ return binding;
+ }
+
+ public void setBinding(String binding) {
+ this.binding = binding;
+ }
+
+ public void release() {
+ type = null;
+ binding = null;
+ }
+
+// Fields
+#foreach( $prop in $listener.properties )
+#if( !$prop.existintag )
+ /*
+ * $prop.name
+ * ${prop.xmlEncodedDescription}
+ */
+ private String _$prop.name = null;
+
+#end
+#end
+// Setters
+#foreach( $prop in $listener.properties )
+#if( !$prop.existintag )
+ /*
+ * $prop.description
+ * Setter for $prop.name
+ * @param $prop.name - new value
+ */
+ public void ${prop.setterName}(String __${prop.name})
+ {
+ this._${prop.name} = __${prop.name};
+ }
+
+#end
+#if( $prop.alias)
+ /*
+ * ${prop.xmlEncodedDescription}
+ * Setter for alias of $prop.name as $prop.alias
+ * @param $prop.name - new value
+ */
+ public void set${prop.upperFirstChar($prop.alias)}(String __${prop.alias})
+ {
+ this.${prop.setterName}(__${prop.alias});
+ }
+#end
+#end
+
+
+
+
+}
Modified: trunk/cdk/generator/src/main/resources/META-INF/templates12/taglib.vm
===================================================================
--- trunk/cdk/generator/src/main/resources/META-INF/templates12/taglib.vm 2007-08-31 17:06:54 UTC (rev 2673)
+++ trunk/cdk/generator/src/main/resources/META-INF/templates12/taglib.vm 2007-08-31 17:27:46 UTC (rev 2674)
@@ -130,6 +130,44 @@
#end
#end
+#foreach( $listener in ${listeners})
+ #if($listener.tag)
+ <tag>
+ <name>${listener.tag.name}</name>
+ <tag-class>${listener.tag.classname}</tag-class>
+ <body-content>${listener.tag.bodyContent}</body-content>
+ #if(${listener.tag.displayname})
+ <display-name>${listener.tag.xmlEncodedDisplayname}</display-name>
+ #elseif(${listener.displayname})
+ <display-name>${listener.xmlEncodedDisplayname}</display-name>
+ #end
+ #if(${listener.tag.description})
+ <description>${listener.tag.xmlEncodedDescription}</description>
+ #elseif(${listener.xmlEncodedDescription})
+ <description>${listener.xmlEncodedDescription}</description>
+ #end
+ #foreach( $prop in ${listener.properties} )
+ #if( !${prop.hidden} && !${prop.disabled} )
+ <attribute>
+ <name>${prop.name}</name>
+ #if(${prop.required})
+ <required>true</required>
+ #end
+ <rtexprvalue>false</rtexprvalue>
+ <description>${prop.xmlEncodedDescription}</description>
+ </attribute>
+ #if( $prop.alias )
+ <attribute>
+ <name>${prop.alias}</name>
+ <rtexprvalue>false</rtexprvalue>
+ <description>Alias for ${prop.name} : ${prop.xmlEncodedDescription}</description>
+ </attribute>
+ #end
+ #end
+ #end
+</tag>
+#end
+#end
</taglib>
\ No newline at end of file
Modified: trunk/cdk/maven-cdk-plugin/src/main/java/org/ajax4jsf/builder/mojo/GenerateMojo.java
===================================================================
--- trunk/cdk/maven-cdk-plugin/src/main/java/org/ajax4jsf/builder/mojo/GenerateMojo.java 2007-08-31 17:06:54 UTC (rev 2673)
+++ trunk/cdk/maven-cdk-plugin/src/main/java/org/ajax4jsf/builder/mojo/GenerateMojo.java 2007-08-31 17:27:46 UTC (rev 2674)
@@ -34,6 +34,7 @@
import org.ajax4jsf.builder.generator.GeneratorException;
import org.ajax4jsf.builder.generator.JSFGeneratorConfiguration;
import org.ajax4jsf.builder.generator.ListenerGenerator;
+import org.ajax4jsf.builder.generator.ListenerTagGenerator;
import org.ajax4jsf.builder.generator.RenderKitBean;
import org.ajax4jsf.builder.generator.RendererGenerator;
import org.ajax4jsf.builder.generator.ResourcesConfigGenerator;
@@ -124,7 +125,12 @@
ConverterTagGenerator converterTagGenerator = new ConverterTagGenerator(this, mavenLogger);
converterTagGenerator.createFiles(config);
- // GenerateMojo tag test
+
+ ListenerTagGenerator listenerTagGenerator = new ListenerTagGenerator(this, mavenLogger);
+ listenerTagGenerator.createFiles(config);
+
+
+ // GenerateMojo tag test
/*
TagTestGenerator tagTestGenerator = new TagTestGenerator(this, mavenLogger);
tagTestGenerator.setDestDir(outputTestsDirectory);
Modified: trunk/ui/tree/src/main/config/component/commonTreeListeners.ent
===================================================================
--- trunk/ui/tree/src/main/config/component/commonTreeListeners.ent 2007-08-31 17:06:54 UTC (rev 2673)
+++ trunk/ui/tree/src/main/config/component/commonTreeListeners.ent 2007-08-31 17:27:46 UTC (rev 2674)
@@ -51,6 +51,11 @@
org.richfaces.taglib.ChangeExpandListenerTagHandler
</classname>
</taghandler>
+ <tag generate="true">
+ <classname>
+ org.richfaces.taglib.ChangeExpandListenerTag
+ </classname>
+ </tag>
</listener>
<listener>
<name>nodeSelectListener</name>
@@ -68,4 +73,9 @@
org.richfaces.taglib.NodeSelectListenerTagHandler
</classname>
</taghandler>
+ <tag generate="true">
+ <classname>
+ org.richfaces.taglib.NodeSelectListenerTag
+ </classname>
+ </tag>
</listener>
17 years, 3 months
JBoss Rich Faces SVN: r2673 - in trunk/ui: simpleTogglePanel/src/test/java/org/richfaces/component and 6 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: akushunin
Date: 2007-08-31 13:06:54 -0400 (Fri, 31 Aug 2007)
New Revision: 2673
Modified:
trunk/ui/separator/src/test/java/org/richfaces/component/SeparatorComponentTest.java
trunk/ui/simpleTogglePanel/src/test/java/org/richfaces/component/SimpleTogglePanelComponentTest.java
trunk/ui/suggestionbox/src/test/java/org/richfaces/component/SuggestionBoxComponentTest.java
trunk/ui/suggestionbox/src/test/java/org/richfaces/renderkit/html/SuggestionBoxRendererTest.java
trunk/ui/tabPanel/src/test/java/org/richfaces/component/TabPanelComponentTest.java
trunk/ui/toolBar/src/test/java/org/richfaces/component/ToolBarComponentTest.java
trunk/ui/toolBar/src/test/java/org/richfaces/component/UIToolBarGroupTest.java
trunk/ui/tree/src/test/java/org/richfaces/component/TreeComponentTest.java
trunk/ui/treeModel/src/test/java/org/richfaces/component/TreeModelComponentTest.java
Log:
RF-759
Modified: trunk/ui/separator/src/test/java/org/richfaces/component/SeparatorComponentTest.java
===================================================================
--- trunk/ui/separator/src/test/java/org/richfaces/component/SeparatorComponentTest.java 2007-08-31 16:46:06 UTC (rev 2672)
+++ trunk/ui/separator/src/test/java/org/richfaces/component/SeparatorComponentTest.java 2007-08-31 17:06:54 UTC (rev 2673)
@@ -107,7 +107,7 @@
public void testRender() throws Exception {
HtmlPage page = renderView();
assertNotNull(page);
- System.out.println(page.asXml());
+ //System.out.println(page.asXml());
HtmlElement div1 = page.getHtmlElementById(ui.getClientId(facesContext));
assertNotNull(div1);
Modified: trunk/ui/simpleTogglePanel/src/test/java/org/richfaces/component/SimpleTogglePanelComponentTest.java
===================================================================
--- trunk/ui/simpleTogglePanel/src/test/java/org/richfaces/component/SimpleTogglePanelComponentTest.java 2007-08-31 16:46:06 UTC (rev 2672)
+++ trunk/ui/simpleTogglePanel/src/test/java/org/richfaces/component/SimpleTogglePanelComponentTest.java 2007-08-31 17:06:54 UTC (rev 2673)
@@ -152,7 +152,7 @@
public void testRender() throws Exception {
HtmlPage page = renderView();
assertNotNull(page);
- System.out.println(page.asXml());
+ //System.out.println(page.asXml());
HtmlElement div1 = page.getHtmlElementById(stp1.getClientId(facesContext));
assertNotNull(div1);
@@ -170,10 +170,14 @@
assertTrue(classAttr2.contains("dr-stglpnl-h"));
assertTrue(classAttr2.contains("rich-stglpanel-header"));
- HtmlElement div3 = page.getHtmlElementById(stp1.getClientId(facesContext) + "_switch");
+ HtmlElement div3 = page.getHtmlElementById(stp1.getClientId(facesContext) + "_switch_on");
assertNotNull(div3);
assertEquals("div", div3.getNodeName());
-
+
+ HtmlElement div5 = page.getHtmlElementById(stp1.getClientId(facesContext) + "_switch_off");
+ assertNotNull(div5);
+ assertEquals("div", div5.getNodeName());
+
HtmlElement div4 = page.getHtmlElementById(stp1.getClientId(facesContext) + "_body");
assertNotNull(div4);
assertEquals("div", div4.getNodeName());
@@ -247,7 +251,7 @@
assertTrue(stp1.isOpened());
HtmlPage page = renderView();
- System.out.println(page.asXml());
+ //System.out.println(page.asXml());
externalContext.addRequestParameterMap(stp1.getClientId(facesContext), "");
Modified: trunk/ui/suggestionbox/src/test/java/org/richfaces/component/SuggestionBoxComponentTest.java
===================================================================
--- trunk/ui/suggestionbox/src/test/java/org/richfaces/component/SuggestionBoxComponentTest.java 2007-08-31 16:46:06 UTC (rev 2672)
+++ trunk/ui/suggestionbox/src/test/java/org/richfaces/component/SuggestionBoxComponentTest.java 2007-08-31 17:06:54 UTC (rev 2673)
@@ -102,7 +102,7 @@
public void testRender() throws Exception {
HtmlPage page = renderView();
assertNotNull(page);
- System.out.println(page.asXml());
+ //System.out.println(page.asXml());
HtmlElement div = page.getHtmlElementById(sb.getClientId(facesContext));
assertNotNull(div);
@@ -142,7 +142,7 @@
public void testRenderScript() throws Exception {
HtmlPage page = renderView();
assertNotNull(page);
- System.out.println(page.asXml());
+ //System.out.println(page.asXml());
List scripts = page.getDocumentElement().getHtmlElementsByTagName("script");
for (Iterator it = scripts.iterator(); it.hasNext();) {
HtmlScript item = (HtmlScript) it.next();
Modified: trunk/ui/suggestionbox/src/test/java/org/richfaces/renderkit/html/SuggestionBoxRendererTest.java
===================================================================
--- trunk/ui/suggestionbox/src/test/java/org/richfaces/renderkit/html/SuggestionBoxRendererTest.java 2007-08-31 16:46:06 UTC (rev 2672)
+++ trunk/ui/suggestionbox/src/test/java/org/richfaces/renderkit/html/SuggestionBoxRendererTest.java 2007-08-31 17:06:54 UTC (rev 2673)
@@ -108,10 +108,10 @@
public void testShadowDepth() throws Exception {
String shadowDepth = renderer.shadowDepth(facesContext, sb);
- assertEquals("top: 4; left: 4", shadowDepth);
+ assertEquals("top: 4px; left: 4px; ", shadowDepth);
sb.getAttributes().put("shadowDepth", "2");
shadowDepth = renderer.shadowDepth(facesContext, sb);
- assertEquals("top: 2; left: 2", shadowDepth);
+ assertEquals("top: 2px; left: 2px; ", shadowDepth);
}
}
Modified: trunk/ui/tabPanel/src/test/java/org/richfaces/component/TabPanelComponentTest.java
===================================================================
--- trunk/ui/tabPanel/src/test/java/org/richfaces/component/TabPanelComponentTest.java 2007-08-31 16:46:06 UTC (rev 2672)
+++ trunk/ui/tabPanel/src/test/java/org/richfaces/component/TabPanelComponentTest.java 2007-08-31 17:06:54 UTC (rev 2673)
@@ -114,7 +114,7 @@
public void testRender() throws Exception {
HtmlPage page = renderView();
assertNotNull(page);
- System.out.println(page.asXml());
+ //System.out.println(page.asXml());
HtmlElement table = page.getHtmlElementById(tabPanel.getClientId(facesContext));
assertNotNull(table);
@@ -217,7 +217,7 @@
public void testRenderImages() throws Exception {
HtmlPage view = renderView();
assertNotNull(view);
- System.out.println(view.asXml());
+ //System.out.println(view.asXml());
InternetResourceBuilder builder = ResourceBuilderImpl.getInstance();
InternetResource resource = builder.getResource("css/tabPanel.xcss");
Modified: trunk/ui/toolBar/src/test/java/org/richfaces/component/ToolBarComponentTest.java
===================================================================
--- trunk/ui/toolBar/src/test/java/org/richfaces/component/ToolBarComponentTest.java 2007-08-31 16:46:06 UTC (rev 2672)
+++ trunk/ui/toolBar/src/test/java/org/richfaces/component/ToolBarComponentTest.java 2007-08-31 17:06:54 UTC (rev 2673)
@@ -129,7 +129,7 @@
public void testRender() throws Exception {
HtmlPage page = renderView();
assertNotNull(page);
- System.out.println(page.asXml());
+ //System.out.println(page.asXml());
HtmlElement table = page.getHtmlElementById(form.getId() + ":" + toolBar.getId());
assertNotNull(table);
Modified: trunk/ui/toolBar/src/test/java/org/richfaces/component/UIToolBarGroupTest.java
===================================================================
--- trunk/ui/toolBar/src/test/java/org/richfaces/component/UIToolBarGroupTest.java 2007-08-31 16:46:06 UTC (rev 2672)
+++ trunk/ui/toolBar/src/test/java/org/richfaces/component/UIToolBarGroupTest.java 2007-08-31 17:06:54 UTC (rev 2673)
@@ -69,15 +69,13 @@
}
public void testGetToolBar1() throws Exception {
- assertNull(toolBarGroup.getToolBar());
-
+
toolBar.getChildren().add(toolBarGroup);
assertTrue(toolBarGroup.getToolBar() instanceof UIToolBar);
}
public void testGetToolBar2() throws Exception {
- assertNull(toolBarGroup.getToolBar());
-
+
form.getChildren().add(toolBarGroup);
try {
Modified: trunk/ui/tree/src/test/java/org/richfaces/component/TreeComponentTest.java
===================================================================
--- trunk/ui/tree/src/test/java/org/richfaces/component/TreeComponentTest.java 2007-08-31 16:46:06 UTC (rev 2672)
+++ trunk/ui/tree/src/test/java/org/richfaces/component/TreeComponentTest.java 2007-08-31 17:06:54 UTC (rev 2673)
@@ -308,7 +308,7 @@
tagNames.add("img");
tagNames.add("div");
List chldList = htmlTree.getHtmlElementsByTagNames(tagNames);
- System.out.println(chldList);
+ //System.out.println(chldList);
for (Iterator it = chldList.iterator(); it.hasNext();) {
HtmlElement element = (HtmlElement) it.next();
Modified: trunk/ui/treeModel/src/test/java/org/richfaces/component/TreeModelComponentTest.java
===================================================================
--- trunk/ui/treeModel/src/test/java/org/richfaces/component/TreeModelComponentTest.java 2007-08-31 16:46:06 UTC (rev 2672)
+++ trunk/ui/treeModel/src/test/java/org/richfaces/component/TreeModelComponentTest.java 2007-08-31 17:06:54 UTC (rev 2673)
@@ -190,10 +190,10 @@
//skip text siblings
Node nextSibling = element.getNextSibling();
- System.out.println(table);
- System.out.println(handleCell);
- System.out.println(textCell.asText() + " " + textCell);
- System.out.println(element);
+ //System.out.println(table);
+ //System.out.println(handleCell);
+ //System.out.println(textCell.asText() + " " + textCell);
+ //System.out.println(element);
if (nextSibling == null) {
assertTrue(handleCell.getAttributeValue("class").contains("dr-tree-h-ic-line-last"));
17 years, 3 months
JBoss Rich Faces SVN: r2672 - trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid.
by richfaces-svn-commits@lists.jboss.org
Author: konstantin.mishin
Date: 2007-08-31 12:46:06 -0400 (Fri, 31 Aug 2007)
New Revision: 2672
Modified:
trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/GridBody.js
Log:
RF-791
Modified: trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/GridBody.js
===================================================================
--- trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/GridBody.js 2007-08-31 16:45:18 UTC (rev 2671)
+++ trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/GridBody.js 2007-08-31 16:46:06 UTC (rev 2672)
@@ -257,7 +257,7 @@
this.contentBox.setWidth(Math.max(this.getWidth(), totalWidth));
}
- height = this.scrollBox.getHeight();
+ height = this.scrollBox.getElement().clientHeight;
this.contentBox.setHeight(height - fixH);
this.frozenContentBox.setWidth(frozenContentWidth);
17 years, 3 months
JBoss Rich Faces SVN: r2671 - trunk/ui/effect/src/main/config/component.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2007-08-31 12:45:18 -0400 (Fri, 31 Aug 2007)
New Revision: 2671
Modified:
trunk/ui/effect/src/main/config/component/effect.xml
Log:
el="false" is back
Modified: trunk/ui/effect/src/main/config/component/effect.xml
===================================================================
--- trunk/ui/effect/src/main/config/component/effect.xml 2007-08-31 16:36:51 UTC (rev 2670)
+++ trunk/ui/effect/src/main/config/component/effect.xml 2007-08-31 16:45:18 UTC (rev 2671)
@@ -83,7 +83,7 @@
<defaultvalue>false</defaultvalue>
</property>
- <property>
+ <property el="false">
<name>event</name>
<classname>java.lang.String</classname>
<description>
17 years, 3 months
JBoss Rich Faces SVN: r2670 - trunk/ui/message/src/main/config/component.
by richfaces-svn-commits@lists.jboss.org
Author: vkorluzhenko
Date: 2007-08-31 12:36:51 -0400 (Fri, 31 Aug 2007)
New Revision: 2670
Modified:
trunk/ui/message/src/main/config/component/message.xml
Log:
http://jira.jboss.com/jira/browse/RF-696
Modified: trunk/ui/message/src/main/config/component/message.xml
===================================================================
--- trunk/ui/message/src/main/config/component/message.xml 2007-08-31 16:35:15 UTC (rev 2669)
+++ trunk/ui/message/src/main/config/component/message.xml 2007-08-31 16:36:51 UTC (rev 2670)
@@ -58,122 +58,191 @@
<name>showDetail</name>
<classname>boolean</classname>
<defaultvalue>true</defaultvalue>
+ <description>
+ Flag indicating whether the summary portion of displayed messages should be included. Default value is "true"
+ </description>
</property>
<property>
<name>showSummary</name>
<classname>boolean</classname>
<defaultvalue>false</defaultvalue>
+ <description>
+ Flag indicating whether the summary portion of displayed messages should be included. Default value is "false"
+ </description>
</property>
<property>
<name>title</name>
<classname>java.lang.String</classname>
+ <description>
+ Advisory title information about markup elements generated for this component
+ </description>
</property>
<property>
<name>tooltip</name>
<classname>boolean</classname>
<defaultvalue>false</defaultvalue>
+ <description>
+ Flag indicating whether the detail portion of the message should be displayed as a tooltip
+ </description>
</property>
<property>
<name>errorClass</name>
<classname>java.lang.String</classname>
+ <description>
+ CSS style class to apply to any message with a severity class of "ERROR"
+ </description>
</property>
<property>
<name>fatalClass</name>
<classname>java.lang.String</classname>
+ <description>
+ CSS style class to apply to any message with a severity class of "FATAL"
+ </description>
</property>
<property>
<name>infoClass</name>
<classname>java.lang.String</classname>
+ <description>
+ CSS style class to apply to any message with a severity class of "INFO"
+ </description>
</property>
<property>
<name>styleClass</name>
<classname>java.lang.String</classname>
+ <description>
+ Space-separated list of CSS style class(es) to be applied when this element is rendered. This value must be passed through as the "class" attribute on generated markup
+ </description>
</property>
<property>
<name>style</name>
<classname>java.lang.String</classname>
+ <description>
+ The CSS style for message
+ </description>
</property>
<property>
<name>warnClass</name>
<classname>java.lang.String</classname>
+ <description>
+ CSS style class to apply to any message with a severity class of "WARN"
+ </description>
</property>
<property>
<name>errorMarkerClass</name>
<classname>java.lang.String</classname>
+ <description>
+ CSS style class to apply to any message marker with a severity class of "ERROR"
+ </description>
</property>
<property>
<name>warnClass</name>
<classname>java.lang.String</classname>
+ <description>
+ CSS style class to apply to any message with a severity class of "WARN"
+ </description>
</property>
- <property>
+ <!--property>
<name>errorMarkerClass</name>
<classname>java.lang.String</classname>
- </property>
+ </property-->
<property>
<name>fatalMarkerClass</name>
<classname>java.lang.String</classname>
+ <description>
+ CSS style class to apply to any message marker with a severity class of "FATAL"
+ </description>
</property>
<property>
<name>infoMarkerClass</name>
<classname>java.lang.String</classname>
+ <description>
+ CSS style class to apply to any message marker with a severity class of "INFO"
+ </description>
</property>
<property>
<name>warnMarkerClass</name>
<classname>java.lang.String</classname>
+ <description>
+ CSS style class to apply any message marker with a severity class of "WARN"
+ </description>
</property>
<property>
<name>markerClass</name>
<classname>java.lang.String</classname>
+ <description>
+ CSS style class to apply to marker
+ </description>
</property>
<property>
<name>markerStyle</name>
<classname>java.lang.String</classname>
+ <description>
+ CSS style(s) is/are to be applied to marker when this component is rendered
+ </description>
</property>
<property>
<name>errorLabelClass</name>
<classname>java.lang.String</classname>
+ <description>
+ CSS style class to apply to any message label with a severity class of "ERROR"
+ </description>
</property>
<property>
<name>fatalLabelClass</name>
<classname>java.lang.String</classname>
+ <description>
+ CSS style class to apply to any message label with a severity class of "FATAL"
+ </description>
</property>
<property>
<name>infoLabelClass</name>
<classname>java.lang.String</classname>
+ <description>
+ CSS style class to apply to any message label with a severity class of "INFO"
+ </description>
</property>
<property>
<name>warnLabelClass</name>
<classname>java.lang.String</classname>
+ <description>
+ CSS style class to apply to any message label with a severity class of "WARN"
+ </description>
</property>
<property>
<name>labelClass</name>
<classname>java.lang.String</classname>
+ <description>
+ CSS style class to apply to label
+ </description>
</property>
<property attachedstate="true" hidden="true">
<name>binding</name>
<classname>javax.faces.component.UIComponent</classname>
+ <description>
+ The attribute takes a value-binding expression for a component property of a backing bean
+ </description>
</property>
&ui_component_attributes;
@@ -226,140 +295,221 @@
<property>
<name>var</name>
<classname>java.lang.String</classname>
+ <description>
+ Name of a request-scope attribute under which the list of the messages should be available
+ </description>
</property>
<property>
<name>layout</name>
<classname>java.lang.String</classname>
<defaultvalue>"list"</defaultvalue>
+ <description>
+ The type of layout markup to use when rendering error messages. Valid values are "table" (an HTML table), "list" (an HTML list) and iterator. If not specified, the default value is "list"
+ </description>
</property>
<property>
<name>globalOnly</name>
<classname>boolean</classname>
<defaultvalue>false</defaultvalue>
+ <description>
+ Flag indicating that only global messages (that is, messages not associated with any client identifier) are to be displayed. Default value is "false"
+ </description>
</property>
<property>
<name>showDetail</name>
<classname>boolean</classname>
<defaultvalue>true</defaultvalue>
+ <description>
+ Flag indicating whether the summary portion of displayed messages should be included. Default value is "true"
+ </description>
</property>
<property>
<name>showSummary</name>
<classname>boolean</classname>
<defaultvalue>false</defaultvalue>
+ <description>
+ Flag indicating whether the summary portion of displayed messages should be included. Default value is "false"
+ </description>
</property>
<property>
<name>title</name>
<classname>java.lang.String</classname>
+ <description>
+ Advisory title information about markup elements generated for this component
+ </description>
</property>
<property>
<name>tooltip</name>
<classname>boolean</classname>
<defaultvalue>false</defaultvalue>
+ <description>
+ Flag indicating whether the detail portion of the message should be displayed as a tooltip
+ </description>
</property>
<property>
<name>errorClass</name>
<classname>java.lang.String</classname>
+ <description>
+ CSS style class to apply to any message with a severity class of "ERROR"
+ </description>
</property>
<property>
<name>fatalClass</name>
<classname>java.lang.String</classname>
+ <description>
+ CSS style class to apply to any message with a severity class of "FATAL"
+ </description>
</property>
<property>
<name>infoClass</name>
<classname>java.lang.String</classname>
+ <description>
+ CSS style class to apply to any message with a severity class of "INFO"
+ </description>
</property>
<property>
<name>styleClass</name>
<classname>java.lang.String</classname>
+ <description>
+ Space-separated list of CSS style class(es) to be applied when this element is rendered. This value must be passed through as the "class" attribute on generated markup
+ </description>
</property>
<property>
<name>style</name>
<classname>java.lang.String</classname>
+ <description>
+ The CSS style for message
+ </description>
</property>
<property>
<name>warnClass</name>
<classname>java.lang.String</classname>
+ <description>
+ CSS style class to apply to any message with a severity class of "WARN"
+ </description>
</property>
<property>
<name>errorMarkerClass</name>
<classname>java.lang.String</classname>
+ <description>
+ CSS style class to apply to any message marker with a severity class of "ERROR"
+ </description>
</property>
<property>
<name>warnClass</name>
<classname>java.lang.String</classname>
+ <description>
+ CSS style class to apply to any message with a severity class of "WARN"
+ </description>
</property>
- <property>
+ <!--property>
<name>errorMarkerClass</name>
<classname>java.lang.String</classname>
- </property>
+ <description>
+ CSS style class to apply to any message marker with a severity class of "ERROR"
+ </description>
+ </property-->
<property>
<name>fatalMarkerClass</name>
<classname>java.lang.String</classname>
+ <description>
+ CSS style class to apply to any message marker with a severity class of "FATAL"
+ </description>
</property>
<property>
<name>infoMarkerClass</name>
<classname>java.lang.String</classname>
+ <description>
+ CSS style class to apply to any message marker with a severity class of "INFO"
+ </description>
</property>
<property>
<name>warnMarkerClass</name>
<classname>java.lang.String</classname>
+ <description>
+ CSS style class to apply any message marker with a severity class of "WARN"
+ </description>
</property>
<property>
<name>markerClass</name>
<classname>java.lang.String</classname>
+ <description>
+ CSS style class to apply to marker
+ </description>
</property>
<property>
<name>markerStyle</name>
<classname>java.lang.String</classname>
+ <description>
+ CSS style(s) is/are to be applied to marker when this component is rendered
+ </description>
</property>
<property>
<name>errorLabelClass</name>
<classname>java.lang.String</classname>
+ <description>
+ CSS style class to apply to any message label with a severity class of "ERROR"
+ </description>
</property>
<property>
<name>fatalLabelClass</name>
<classname>java.lang.String</classname>
+ <description>
+ CSS style class to apply to any message label with a severity class of "FATAL"
+ </description>
</property>
<property>
<name>infoLabelClass</name>
<classname>java.lang.String</classname>
+ <description>
+ CSS style class to apply to any message label with a severity class of "INFO"
+ </description>
</property>
<property>
<name>warnLabelClass</name>
<classname>java.lang.String</classname>
+ <description>
+ CSS style class to apply to any message label with a severity class of "WARN"
+ </description>
</property>
<property>
<name>labelClass</name>
<classname>java.lang.String</classname>
+ <description>
+ CSS style class to apply to label
+ </description>
</property>
<property attachedstate="true" hidden="true">
<name>binding</name>
<classname>javax.faces.component.UIComponent</classname>
+ <description>
+ The attribute takes a value-binding expression for a component property of a backing bean
+ </description>
</property>
&ui_component_attributes;
17 years, 3 months
JBoss Rich Faces SVN: r2669 - trunk/docs/userguide/en/src/main/resources/images.
by richfaces-svn-commits@lists.jboss.org
Author: vkorluzhenko
Date: 2007-08-31 12:35:15 -0400 (Fri, 31 Aug 2007)
New Revision: 2669
Added:
trunk/docs/userguide/en/src/main/resources/images/messages1.png
Modified:
trunk/docs/userguide/en/src/main/resources/images/calendar1.png
Log:
added new pictures for new components
Modified: trunk/docs/userguide/en/src/main/resources/images/calendar1.png
===================================================================
(Binary files differ)
Added: trunk/docs/userguide/en/src/main/resources/images/messages1.png
===================================================================
(Binary files differ)
Property changes on: trunk/docs/userguide/en/src/main/resources/images/messages1.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
17 years, 3 months
JBoss Rich Faces SVN: r2668 - trunk/samples/treeModelDemo/src/main/webapp/pages.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2007-08-31 12:32:06 -0400 (Fri, 31 Aug 2007)
New Revision: 2668
Modified:
trunk/samples/treeModelDemo/src/main/webapp/pages/index.jsp
Log:
http://jira.jboss.com/jira/browse/RF-768
Modified: trunk/samples/treeModelDemo/src/main/webapp/pages/index.jsp
===================================================================
--- trunk/samples/treeModelDemo/src/main/webapp/pages/index.jsp 2007-08-31 16:31:59 UTC (rev 2667)
+++ trunk/samples/treeModelDemo/src/main/webapp/pages/index.jsp 2007-08-31 16:32:06 UTC (rev 2668)
@@ -48,7 +48,7 @@
</model:treeNodes>
<model:recursiveTreeNodes id="dir" var="dir"
- root="#{project.dirs}" nodes="#{dir.directories}">
+ roots="#{project.dirs}" nodes="#{dir.directories}">
<tree:treeNode>
<h:commandLink action="#{dir.click}" value="Directory: #{dir.name}" />
</tree:treeNode>
@@ -66,9 +66,9 @@
</model:treeNodes>
<model:recursiveTreeNodes id="archiveEntry" var="archiveEntry"
- root="#{dir.files}" nodes="#{archiveEntry.archiveEntries}"
- activeRoot="#{archiveEntry.class.simpleName == 'ArchiveFile'}"
- activeNodes="#{archiveEntry.class.simpleName == 'ArchiveEntry'}">
+ roots="#{dir.files}" nodes="#{archiveEntry.archiveEntries}"
+ includedRoot="#{archiveEntry.class.simpleName == 'ArchiveFile'}"
+ includedNode="#{archiveEntry.class.simpleName == 'ArchiveEntry'}">
<tree:treeNode id="archiveEntryNode">
<h:commandLink action="#{archiveEntry.click}" value="Archive entry: #{archiveEntry.name}" />
17 years, 3 months