Author: maksimkaszynski
Date: 2007-10-22 08:19:12 -0400 (Mon, 22 Oct 2007)
New Revision: 3462
Modified:
trunk/cdk/generator/src/main/java/org/ajax4jsf/builder/config/ComponentBaseBean.java
trunk/cdk/generator/src/main/resources/META-INF/templates12/componentTag.vm
trunk/ui/suggestionbox/src/main/config/component/suggestionbox.xml
Log:
fixed build for suggestion box
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 2007-10-22
10:51:24 UTC (rev 3461)
+++
trunk/cdk/generator/src/main/java/org/ajax4jsf/builder/config/ComponentBaseBean.java 2007-10-22
12:19:12 UTC (rev 3462)
@@ -253,6 +253,7 @@
property.setExist(false);
}
}
+
if(null == setter || (! Modifier.isPublic(setter.getModifiers())) ){
getLog().debug("Detect as hidden property "+descriptor.getName());
property.setHidden(true);
Modified: trunk/cdk/generator/src/main/resources/META-INF/templates12/componentTag.vm
===================================================================
--- trunk/cdk/generator/src/main/resources/META-INF/templates12/componentTag.vm 2007-10-22
10:51:24 UTC (rev 3461)
+++ trunk/cdk/generator/src/main/resources/META-INF/templates12/componentTag.vm 2007-10-22
12:19:12 UTC (rev 3462)
@@ -23,7 +23,7 @@
// Fields
#foreach( $prop in $component.properties )
- #if( !$prop.existintag )
+ #if( !$prop.existintag && !$prop.hidden)
#if($prop.classname == "javax.el.MethodExpression" || $prop.classname ==
"javax.faces.el.MethodBinding")
#set($type = "MethodExpression")
#else
@@ -67,7 +67,7 @@
// TODO Auto-generated method stub
super.release();
#foreach( $prop in $component.properties )
- #if( !$prop.existintag )
+ #if( !$prop.existintag && !$prop.hidden)
this._${prop.name} = null;
#end
#end
@@ -82,7 +82,7 @@
super.setProperties(component);
${component.simpleClassName} comp = (${component.simpleClassName}) component;
#foreach( $prop in $component.properties )
- #if( !$prop.existintag )
+ #if( !$prop.existintag && !$prop.hidden)
#if(!$prop.el)
if(null != this._${prop.name} && !this._${prop.name}.isLiteralText()){
throw new IllegalArgumentException("Component ${component.name} with Id " +
component.getClientId(getFacesContext()) +" not allowed EL expression for property
${prop.name}");
Modified: trunk/ui/suggestionbox/src/main/config/component/suggestionbox.xml
===================================================================
--- trunk/ui/suggestionbox/src/main/config/component/suggestionbox.xml 2007-10-22 10:51:24
UTC (rev 3461)
+++ trunk/ui/suggestionbox/src/main/config/component/suggestionbox.xml 2007-10-22 12:19:12
UTC (rev 3462)
@@ -333,6 +333,10 @@
<classname>java.lang.Object</classname>
<description>submitedValue</description>
</property>
+ <property hidden="true" disabled="true">
+ <name>upValue</name>
+ <classname>javax.faces.context.FacesContext</classname>
+ </property>
<property hidden="true">
<name>rows</name>
</property>
@@ -344,8 +348,6 @@
It isn't selectable and list is closed as always after click on it and nothing is
put to input.
</description>
</property>
- <property hidden="true" disabled="true">
- <name>upValue</name>
- </property>
+
</component>
</components>