[prev in list] [next in list] [prev in thread] [next in thread] 

List:       tapestry-user
Subject:    Re: createReadOnlyBindingException help!
From:       "Martino Piccinato" <martino.piccinato () gmail ! com>
Date:       2007-07-30 16:42:25
Message-ID: 8e92a3b50707300942w2552d258ieff63176d0e5aed7 () mail ! gmail ! com
[Download RAW message or body]

Posted one for the parameter issue

https://issues.apache.org/jira/browse/TAPESTRY-1682

and another one for the Dialog component:

https://issues.apache.org/jira/browse/TAPESTRY-1683

I didn't do it first because I was trying to investigate myself but I
really have no time to do this now.

Ciao

Martino

On 7/30/07, Andrea Chiumenti <kiuma72@gmail.com> wrote:
> Well, I try to investigate into this, meanwhile if you could be so kind to
> post a jira...
>
> ciao,
> kiuma
>
> On 7/30/07, Martino Piccinato <martino.piccinato@gmail.com> wrote:
> >
> > Well, I'm having a very similar behaviour with Dialog component that
> > by default has a true parameter for optional parameter "hidden".
> >
> >     <parameter name="hidden" default-value="true" />
> >
> > It seems that if you set a constant value ("ognl:0" or "true") to a
> > parameter then the parameter itself is regarded as "Invariant" by
> > AbstractBinding that will refuse you to use any setter on it (it does
> > not have a reference to a method but to a... constant) and throw the
> > exception.
> > I don't have the exception if I just "override" the constant default
> > value with an ognl reference to a couple of setters/getters method
> > (returning the default value in case the property is not initialized).
> >
> > In my opinion this is a bug with "parameter" but I haven't been able
> > to investigate more and I'm quite surprised nobody stepped into this
> > problem before, see my neglected Dialog mails  of some days ago :-)
> >
> >
> >
> > On 7/30/07, Andrea Chiumenti <kiuma72@gmail.com> wrote:
> > > this is the stack trace
> > >
> > >
> > org.apache.tapestry.binding.AbstractBinding.createReadOnlyBindingException
> > (
> > > AbstractBinding.java:115)
> > > org.apache.tapestry.binding.ExpressionBinding.setObject(
> > > ExpressionBinding.java:196)
> > > $EditTable_16.setStartRow($EditTable_16.java)
> > > org.jfly.web.components.edittable.EditTable.rewindFormComponent(
> > > EditTable.java:541)
> > >
> > > On 7/30/07, Andrea Chiumenti <kiuma72@gmail.com> wrote:
> > > >
> > > > Hello!
> > > > I'm having this exception (
> > > >
> > org.apache.tapestry.binding.AbstractBinding.createReadOnlyBindingException
> > > > (AbstractBinding.java:115)) when I call into my rewindFormComponent
> > method
> > > > this code:
> > > >
> > > > setStartRow(sliderValue);
> > > >
> > > > and I set into jwc file:
> > > > <parameter name="startRow" required="no" cache="true"
> > > > default-value="ognl:0"/>
> > > >
> > > >
> > > > Who can help me please ?
> > > >
> > > > Thx, kiuma
> > > >
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
> >
> >
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic