I'm trying to learn tapestry and having a few problems.

I've created a sample app where I want to reuse some components

The sample component is "Address"  which will be used multiple times in the
app

It simply displays the addr line1, addr lin2, city, state, postal code and
puts the results
into an Address Class


the web resuable components is "WebAddress"

public abstract class WebAddress extends BaseComponent {


    @Parameter(required=true)
    public  abstract Address getAddress();

}



Address jwc
 (minus the doctype)
<component-specification class="org.acac.web.components.WebAddress"
    allow-body="yes"
    allow-informal-parameters="yes">

</component-specification>



this is used in a html

 <span jwcid="address">


page where it is used

 <component id="address" type="WebAddress" >
         <binding name="address" value="address" />
     </component>



I have a variable in my person class of "address"

public abstract Address getAddress();

I can display the page ok, but when I try and update I get the following


Binding for template parameter value (StaticBinding[address.addrLine1]) may
not be updated.

 <td>
16    <input jwcid="[EMAIL PROTECTED]" value="address.addrLine1"
maxlength="60" size="60" name="addrLine1"/>
17    </td>


org.apache.tapestry.binding.AbstractBinding.createReadOnlyBindingException(
AbstractBinding.java:117)





Does anyone know what causes this and how to fix

thx
--

Reply via email to