You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Jabbar <aj...@gmail.com> on 2006/12/07 18:01:29 UTC
Textfield inside a @for and different bean translator for each TextField instance
Hello all,
I have the following,
.page file,
<component id="collection" type="For">
<binding name="source" value="channelSetup"/>
<binding name="value" value="currentChannelSetup"/>
</component>
<component id="text" type="TextField">
<binding name="value" value="currentChannelSetup.field"/>
<binding name="translator" value="bean:currentChannel.bean"/>
</component>
.html file
<div jwcid="collection">
<input jwcid="text" />
</div>
What I want to know is if I can have
<binding name="translator" value="bean:currentChannel.bean"/>
or something similar ?
--
Thanks
A Jabbar Azam
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Re: Textfield inside a @for and different bean translator for each TextField instance
Posted by Sam Gendler <sg...@ideasculptor.com>.
I didn't do anything. You had it right to begin with ;-) It was a good guess.
--sam
On 12/7/06, Jabbar <aj...@gmail.com> wrote:
> Hello,
>
> Thank for your assistance again! It worked.
>
>
>
> On 07/12/06, Sam Gendler <sg...@ideasculptor.com> wrote:
> > Assuming currentChannel.bean returns a valid translator object, I
> > don't see why it shouldn't work. It would certainly work outside of
> > the loop. I do that all the time.
> >
> > --sam
> >
> >
> > On 12/7/06, Jabbar <aj...@gmail.com> wrote:
> > > Hello all,
> > >
> > > I have the following,
> > >
> > > .page file,
> > >
> > > <component id="collection" type="For">
> > > <binding name="source" value="channelSetup"/>
> > > <binding name="value" value="currentChannelSetup"/>
> > > </component>
> > >
> > > <component id="text" type="TextField">
> > > <binding name="value" value="currentChannelSetup.field"/>
> > > <binding name="translator" value="bean:currentChannel.bean"/>
> > > </component>
> > >
> > >
> > > .html file
> > >
> > > <div jwcid="collection">
> > >
> > > <input jwcid="text" />
> > >
> > > </div>
> > >
> > > What I want to know is if I can have
> > >
> > > <binding name="translator" value="bean:currentChannel.bean"/>
> > >
> > > or something similar ?
> > >
> > >
> > > --
> > > Thanks
> > >
> > > A Jabbar Azam
> > >
> > > ---------------------------------------------------------------------
> > > 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
> >
> >
>
>
> --
> Thanks
>
> A Jabbar Azam
>
> ---------------------------------------------------------------------
> 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
Re: Textfield inside a @for and different bean translator for each TextField instance
Posted by Jabbar <aj...@gmail.com>.
Hello,
Thank for your assistance again! It worked.
On 07/12/06, Sam Gendler <sg...@ideasculptor.com> wrote:
> Assuming currentChannel.bean returns a valid translator object, I
> don't see why it shouldn't work. It would certainly work outside of
> the loop. I do that all the time.
>
> --sam
>
>
> On 12/7/06, Jabbar <aj...@gmail.com> wrote:
> > Hello all,
> >
> > I have the following,
> >
> > .page file,
> >
> > <component id="collection" type="For">
> > <binding name="source" value="channelSetup"/>
> > <binding name="value" value="currentChannelSetup"/>
> > </component>
> >
> > <component id="text" type="TextField">
> > <binding name="value" value="currentChannelSetup.field"/>
> > <binding name="translator" value="bean:currentChannel.bean"/>
> > </component>
> >
> >
> > .html file
> >
> > <div jwcid="collection">
> >
> > <input jwcid="text" />
> >
> > </div>
> >
> > What I want to know is if I can have
> >
> > <binding name="translator" value="bean:currentChannel.bean"/>
> >
> > or something similar ?
> >
> >
> > --
> > Thanks
> >
> > A Jabbar Azam
> >
> > ---------------------------------------------------------------------
> > 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
>
>
--
Thanks
A Jabbar Azam
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Textfield inside a @for and different bean translator for each TextField instance
Posted by Sam Gendler <sg...@ideasculptor.com>.
Assuming currentChannel.bean returns a valid translator object, I
don't see why it shouldn't work. It would certainly work outside of
the loop. I do that all the time.
--sam
On 12/7/06, Jabbar <aj...@gmail.com> wrote:
> Hello all,
>
> I have the following,
>
> .page file,
>
> <component id="collection" type="For">
> <binding name="source" value="channelSetup"/>
> <binding name="value" value="currentChannelSetup"/>
> </component>
>
> <component id="text" type="TextField">
> <binding name="value" value="currentChannelSetup.field"/>
> <binding name="translator" value="bean:currentChannel.bean"/>
> </component>
>
>
> .html file
>
> <div jwcid="collection">
>
> <input jwcid="text" />
>
> </div>
>
> What I want to know is if I can have
>
> <binding name="translator" value="bean:currentChannel.bean"/>
>
> or something similar ?
>
>
> --
> Thanks
>
> A Jabbar Azam
>
> ---------------------------------------------------------------------
> 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