Author: maksimkaszynski
Date: 2008-04-01 12:15:42 -0400 (Tue, 01 Apr 2008)
New Revision: 7554
Modified:
trunk/cdk/generator/src/main/java/org/ajax4jsf/builder/config/ComponentBaseBean.java
trunk/cdk/generator/src/main/resources/META-INF/schema/entities/ui_component_attributes.ent
Log:
http://jira.jboss.com/jira/browse/RF-2918
Modified:
trunk/cdk/generator/src/main/java/org/ajax4jsf/builder/config/ComponentBaseBean.java
===================================================================
---
trunk/cdk/generator/src/main/java/org/ajax4jsf/builder/config/ComponentBaseBean.java 2008-04-01
15:40:23 UTC (rev 7553)
+++
trunk/cdk/generator/src/main/java/org/ajax4jsf/builder/config/ComponentBaseBean.java 2008-04-01
16:15:42 UTC (rev 7554)
@@ -14,6 +14,7 @@
import javax.naming.ConfigurationException;
import org.apache.commons.beanutils.PropertyUtils;
+import org.apache.tools.ant.BuildException;
public class ComponentBaseBean extends JsfBean {
@@ -42,6 +43,8 @@
"javax.el.ValueExpression",
"javax.faces.convert.Converter"
};
+
+
/**
* JSP ( facelets ? ) tag description for component
*/
@@ -198,6 +201,9 @@
}
}
+
+
+
/**
* @param superClass
*/
@@ -231,7 +237,9 @@
property.setClassname(descriptor.getPropertyType().getCanonicalName());
} else {
if(!property.getClassname().equals(descriptor.getPropertyType().getCanonicalName())){
- getLog().error("Class "+property.getClassname()+" for property
"+property.getName()+" not equals with real bean property type:
"+descriptor.getPropertyType().getCanonicalName());
+ String message = "Class "+property.getClassname()+" for property
"+property.getName()+" not equals with real bean property type:
"+descriptor.getPropertyType().getCanonicalName();
+ getLog().error(message);
+ throw new IllegalArgumentException(message);
}
}
if (property.getDescription() == null) {
@@ -259,7 +267,8 @@
if (isAttachedProperty(property)) {
property.setAttachedstate(true);
}
- if (property.isInstanceof("javax.faces.el.MethodBinding") ||
property.isInstanceof("javax.faces.el.ValueBinding")) {
+ if (property.isInstanceof("javax.faces.el.MethodBinding") ||
+ property.isInstanceof("javax.faces.el.ValueBinding")) {
property.setElonly(true);
}
Modified:
trunk/cdk/generator/src/main/resources/META-INF/schema/entities/ui_component_attributes.ent
===================================================================
---
trunk/cdk/generator/src/main/resources/META-INF/schema/entities/ui_component_attributes.ent 2008-04-01
15:40:23 UTC (rev 7553)
+++
trunk/cdk/generator/src/main/resources/META-INF/schema/entities/ui_component_attributes.ent 2008-04-01
16:15:42 UTC (rev 7554)
@@ -16,7 +16,7 @@
</property>
<property existintag="true" exist="true" el="true"
elonly="true">
<name>binding</name>
- <classname>java.lang.String</classname>
+ <classname>javax.faces.component.UIComponent</classname>
<description>The attribute takes a value-binding expression for a component
property of
a backing bean</description>
</property>