You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Nick Heudecker <nh...@gmail.com> on 2005/06/30 00:31:05 UTC

Nested beans in the page object

I'm trying to access a bean in the Page object from the HTML page. 
Basically, I have a CreateNewEvent object with a getter and setter for
an Event.  I'm attempting to access it like:

<input jwcid="@TextField" value="ognl:event.name" size="40" maxlength="150"/>

and I get the following exception:

Unable to resolve expression 'event.name' for
example.CreateNewEvent$Enhance_8@f0e27a[CreateNewEvent].

What am I doing wrong?

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


Re: Nested beans in the page object

Posted by Nick Heudecker <nh...@gmail.com>.
Okay, got this one working.  Thanks for the help.

On 6/29/05, Nick Heudecker <nh...@gmail.com> wrote:
> I tried "bean:event.name" and it seemed to work.  For a TextArea,
> however, I get this exception:
> "Parameter value of component CreateNewEvent/$TextArea is direction
> form which is incompatible with
> StaticBinding[bean:event.description]."
> 
> Maybe I'm just not getting it, but this seems a lot more complicated
> than it has to be.
> 
> On 6/29/05, Derek Brown <ze...@yahoo.com> wrote:
> > Hi,
> >
> > Try ognl:bean.event.name or bean:event.name
> >
> >
> > --- Nick Heudecker <nh...@gmail.com> wrote:
> >
> > > I'm trying to access a bean in the Page object from
> > > the HTML page.
> > > Basically, I have a CreateNewEvent object with a
> > > getter and setter for
> > > an Event.  I'm attempting to access it like:
> > >
> > > <input jwcid="@TextField" value="ognl:event.name"
> > > size="40" maxlength="150"/>
> > >
> > > and I get the following exception:
> > >
> > > Unable to resolve expression 'event.name' for
> > >
> > example.CreateNewEvent$Enhance_8@f0e27a[CreateNewEvent].
> > >
> > > What am I doing wrong?
> > >
> > >
> > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> > > tapestry-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail:
> > > tapestry-user-help@jakarta.apache.org
> > >
> > >
> >
> >
> >
> >
> > ____________________________________________________
> > Yahoo! Sports
> > Rekindle the Rivalries. Sign up for Fantasy Football
> > http://football.fantasysports.yahoo.com
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> >
> >
>

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


Re: Nested beans in the page object

Posted by Nick Heudecker <nh...@gmail.com>.
I tried "bean:event.name" and it seemed to work.  For a TextArea,
however, I get this exception:
"Parameter value of component CreateNewEvent/$TextArea is direction
form which is incompatible with
StaticBinding[bean:event.description]."

Maybe I'm just not getting it, but this seems a lot more complicated
than it has to be.

On 6/29/05, Derek Brown <ze...@yahoo.com> wrote:
> Hi,
> 
> Try ognl:bean.event.name or bean:event.name
> 
> 
> --- Nick Heudecker <nh...@gmail.com> wrote:
> 
> > I'm trying to access a bean in the Page object from
> > the HTML page.
> > Basically, I have a CreateNewEvent object with a
> > getter and setter for
> > an Event.  I'm attempting to access it like:
> >
> > <input jwcid="@TextField" value="ognl:event.name"
> > size="40" maxlength="150"/>
> >
> > and I get the following exception:
> >
> > Unable to resolve expression 'event.name' for
> >
> example.CreateNewEvent$Enhance_8@f0e27a[CreateNewEvent].
> >
> > What am I doing wrong?
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > tapestry-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail:
> > tapestry-user-help@jakarta.apache.org
> >
> >
> 
> 
> 
> 
> ____________________________________________________
> Yahoo! Sports
> Rekindle the Rivalries. Sign up for Fantasy Football
> http://football.fantasysports.yahoo.com
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> 
>

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


Re: Nested beans in the page object

Posted by Derek Brown <ze...@yahoo.com>.
Hi,

Try ognl:bean.event.name or bean:event.name


--- Nick Heudecker <nh...@gmail.com> wrote:

> I'm trying to access a bean in the Page object from
> the HTML page. 
> Basically, I have a CreateNewEvent object with a
> getter and setter for
> an Event.  I'm attempting to access it like:
> 
> <input jwcid="@TextField" value="ognl:event.name"
> size="40" maxlength="150"/>
> 
> and I get the following exception:
> 
> Unable to resolve expression 'event.name' for
>
example.CreateNewEvent$Enhance_8@f0e27a[CreateNewEvent].
> 
> What am I doing wrong?
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> tapestry-user-help@jakarta.apache.org
> 
> 



		
____________________________________________________ 
Yahoo! Sports 
Rekindle the Rivalries. Sign up for Fantasy Football 
http://football.fantasysports.yahoo.com

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