This was just fixed on trunk, see WW-2220. There will be a "keyValue"
attribute to set the initial value of the key. The "key" attribute is
something else, not related to the autocompleter's "key"

musachy

On 9/28/07, Giovanni Azua <[EMAIL PROTECTED]> wrote:
> Hi Meissa,
>
> Yep it is possible ... assuming you provide:
>
> <s:autocompleter name="someProperty"/>
>
> then include in the rendering Action associated to this JSP the
> following two bean property getters:
>
> // will provide the default display value that the user sees
> public String
>  getSomeProperty()
> {
> // ...
> }
>
> // will provide the key corresponding to the default value the
> // user sees
> public String
>  getSomePropertyKey()
> {
> // ...
> }
>
> Any other way to specify initial values e.g. using the autocompleter
> attributes  "key" and "value" will not work (because of some bug) the
> key will not be posted to the processing action. The only way to have it
> working is NOT to provide these attributes and use the getters from the
> page display rendering action.
>
> i.e. avoid doing this:
>
> <s:autocompleter name="someProperty" key="1" value="My Default" />
>
> HTH,
> regards,
> Giovanni
>
> [EMAIL PROTECTED] wrote:
> > I would like set an initial value and key to the autocompleter with one of
> > the list elements.
> > can someone tells if it's possible.
> > Thanks.
> > Meissa
> >
> >
> >
> >
> >
> > L'integrite de ce message n'etant pas assuree sur internet, Natixis ne peut 
> > etre tenu responsable de son contenu. Toute utilisation ou diffusion non 
> > autorisee est interdite. Si vous n'etes pas destinataire de ce message, 
> > merci de le detruire et d'avertir l'expediteur.
> > Ensemble, faisons un geste pour l'environnement : n'imprimons nos mails que 
> > si necessaire
> >
> > The integrity of this message cannot be guaranteed on the Internet. Natixis 
> > can not therefore be considered responsible for the contents. Any 
> > unauthorized use or dissemination is prohibited. If you are not the 
> > intended recipient of this message, then please delete it and notify the 
> > sender.
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
"Hey you! Would you help me to carry the stone?" Pink Floyd

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to