You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by wong wayne <wa...@yahoo.com> on 2007/01/12 11:39:53 UTC

PropertySelection parameter

Hi all

Can FieldLabel expression using displayName of
PropertySelection parameter? I would like to get the
display Name of PropertySelection and used for
FieldLabel display somewhere at the same html. Even I
specified the displayName but system still saying that
"Display name not specified and not provided by field
Registration/_jobTitleSelection"

component id="_fieldLabel_jobTitle" type="FieldLabel">
  <binding name="field"
expression="components._jobTitleSelection"/>
/component>

component id="_jobTitleSelection"
type="PropertySelection">
  <message-binding name="displayName"
key="jobTitle-label"/>           
  <binding name ="model" expression="jobTitleModel"/>
  <binding name="value"
expression="userAttributes.jobTitleEnumObj"/>
  <binding name="disabled"
expression="confirmationPhase"/>
/component> 

Anything I missed? or such action are not available?
Any hints would be appreciate, thanks.

regards

wayne


 
____________________________________________________________________________________
We won't tell. Get more on shows you hate to love 
(and love to hate): Yahoo! TV's Guilty Pleasures list.
http://tv.yahoo.com/collections/265 

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


Re: PropertySelection parameter

Posted by wong wayne <wa...@yahoo.com>.
Thanks Andy. Yes, it's Tap 3, sorry that forgot to
mention this. Since my book is based on Tap 4, so
always mixed up different version. Thanks for your
kindly help.

regards

wayne
--- andyhot <an...@di.uoa.gr> wrote:

> That's in Tapestry 3, right?
> 
> Well, in that version, you could use FieldLabel
> only with ValidField... i can't remember myself if
> this is 100% true, 
> but that's what's
> described at
>
http://tapestry.apache.org/tapestry3/doc/ComponentReference/FieldLabel.html
> 
> However, you can move the
> 
> <message-binding name="displayName"
> key="jobTitle-label"/>
> 
> to the FieldLabel and it should work.
> 
> 
> 
> wong wayne wrote:
> > Hi all
> >
> > Can FieldLabel expression using displayName of
> > PropertySelection parameter? I would like to get
> the
> > display Name of PropertySelection and used for
> > FieldLabel display somewhere at the same html.
> Even I
> > specified the displayName but system still saying
> that
> > "Display name not specified and not provided by
> field
> > Registration/_jobTitleSelection"
> >
> > component id="_fieldLabel_jobTitle"
> type="FieldLabel">
> >   <binding name="field"
> > expression="components._jobTitleSelection"/>
> > /component>
> >
> > component id="_jobTitleSelection"
> > type="PropertySelection">
> >   <message-binding name="displayName"
> > key="jobTitle-label"/>           
> >   <binding name ="model"
> expression="jobTitleModel"/>
> >   <binding name="value"
> > expression="userAttributes.jobTitleEnumObj"/>
> >   <binding name="disabled"
> > expression="confirmationPhase"/>
> > /component> 
> >
> > Anything I missed? or such action are not
> available?
> > Any hints would be appreciate, thanks.
> >
> > regards
> >
> > wayne
> >
> >
> >  
> >
>
____________________________________________________________________________________
> > We won't tell. Get more on shows you hate to love 
> > (and love to hate): Yahoo! TV's Guilty Pleasures
> list.
> > http://tv.yahoo.com/collections/265 
> >
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail:
> users-help@tapestry.apache.org
> >
> >
> >   
> 
> 
> -- 
> Andreas Andreou - andyhot@apache.org -
> http://andyhot.di.uoa.gr
> Tapestry / Tacos developer
> Open Source / J2EE Consulting 
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail:
> users-help@tapestry.apache.org
> 
> 



 
____________________________________________________________________________________
Never Miss an Email
Stay connected with Yahoo! Mail on your mobile.  Get started!
http://mobile.yahoo.com/services?promote=mail

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


Re: PropertySelection parameter

Posted by andyhot <an...@di.uoa.gr>.
That's in Tapestry 3, right?

Well, in that version, you could use FieldLabel
only with ValidField... i can't remember myself if this is 100% true, 
but that's what's
described at
http://tapestry.apache.org/tapestry3/doc/ComponentReference/FieldLabel.html

However, you can move the

<message-binding name="displayName"
key="jobTitle-label"/>

to the FieldLabel and it should work.



wong wayne wrote:
> Hi all
>
> Can FieldLabel expression using displayName of
> PropertySelection parameter? I would like to get the
> display Name of PropertySelection and used for
> FieldLabel display somewhere at the same html. Even I
> specified the displayName but system still saying that
> "Display name not specified and not provided by field
> Registration/_jobTitleSelection"
>
> component id="_fieldLabel_jobTitle" type="FieldLabel">
>   <binding name="field"
> expression="components._jobTitleSelection"/>
> /component>
>
> component id="_jobTitleSelection"
> type="PropertySelection">
>   <message-binding name="displayName"
> key="jobTitle-label"/>           
>   <binding name ="model" expression="jobTitleModel"/>
>   <binding name="value"
> expression="userAttributes.jobTitleEnumObj"/>
>   <binding name="disabled"
> expression="confirmationPhase"/>
> /component> 
>
> Anything I missed? or such action are not available?
> Any hints would be appreciate, thanks.
>
> regards
>
> wayne
>
>
>  
> ____________________________________________________________________________________
> We won't tell. Get more on shows you hate to love 
> (and love to hate): Yahoo! TV's Guilty Pleasures list.
> http://tv.yahoo.com/collections/265 
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
>   


-- 
Andreas Andreou - andyhot@apache.org - http://andyhot.di.uoa.gr
Tapestry / Tacos developer
Open Source / J2EE Consulting 


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