Thx - that was the problem.

btw - it did put the literal string in as you said - but it would not die
till I tried to submit.



On 3/26/06, Mike Snare <[EMAIL PROTECTED]> wrote:
>
> Your addrline1 TextField is in your html, so you need to prefix the
> address.addrLine1 with an ognl: prefix.
>
> What seems odd though is that I would think it would display
> originally with the string literal "address.addrLine1" in the
> TextField, which you didn't mention.
>
> -Mike
>
> On 3/26/06, Ed Ross <[EMAIL PROTECTED]> wrote:
> > 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
> > --
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
Ed Ross
[EMAIL PROTECTED]

Reply via email to