Hi,
I am developping my first component and I am struggling to pass a parameter to it.
I am using something like this in my jwc file
...
<component-specification class="net.sf.tapestry.BaseComponent" allow-informal-parameters="no">
<parameter name="property" java-type="mypack.DynamicProperty" required="yes"/>
<component id="ifTextField" type="Conditional">
<field-binding name="condition" field-name="Boolean.TRUE"/>
</component>
<component id="insertTextField" type="TextField">
<inherited-binding name="text" parameter-name="property.value"/>
</component>
...
In my class DynamicProperty I have defined a method " public String getValue()"
I always receive this error!
- net.sf.tapestry.pageload.PageLoader.bind(PageLoader.java:241)
- net.sf.tapestry.pageload.PageLoader.setBindings(PageLoader.java:543)
net.sf.tapestry.PageLoaderException Required parameter text of component DynamicPropertyPage/valueField.insertTextField is not bound. component: net.sf.tapestry.form.TextField@f4e6d[DynamicPropertyPage/valueField.insertTextField] pageName: DynamicPropertyPage Stack Trace:
-------------------------------
I have been trying to do like the examples do, but they are all using String or boolean as parameters.
Can you please help me to figure out what I am doing false?
Thanks a lot
Jean
