Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Struts 2 »

Re: Autocompleter Specifying Label Name Property

Musachy Barroso

2007-01-09

Replies:

Hi Andr?,

Do you mean adding an attribute to specify the name of the "key" field?
That can be done. The "label" attribute is a different thing, it is the
text that is displayed in front of the autocompleter and it is not
submitted to the server.

regards
musachy

Andr? Faria wrote:
> Hi Musachy Barroso,
>
> /* "Required properties: Two properties must be defined on the target
> action for each autocompleter, one for the displayed text (its name is
> the value of the "name" attribute), and one for the key or value (its
> name is the value of the "name" attribute plus "Key")." */
>
> Could you put a another column to specify whats the column for label?
> Because If yoy have beans that don't follow the pattern (name and name
> plus Key) you will probally have problems like me...
>
> That's my idea:
> <s:autocompleter
>   label="Bank"    name="account.agency.bank.bankKey"
> *******   labelName="account.agency.bank.bankName" *******
>   href="account.listJson.action"
>   loadOnTextChange="true"
>   loadMinimumCount="3"
>   autoComplete="true" />
>
>
> Thank's,
> Andr? Faria
> from Brazil
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.