Hello,

1) the only example that i know is the sandbox example.

2) the value of the binding should be a InputSuggesAjax component. you
do not need to instanciate it just provide getter and setter, the
framework will do it if you don't.
But, even if it is in the docu, i don't think its needed. (I don't see
were its used in the source, and it worked also without)

The suggested values are the result of toString() on the objects in the,
by the suggestMethod returned, list.

see the exaple in sandbox.war

regards

  Volker Weber


Marco Mistroni wrote:
> hello all,
>     i plan to use Sandbox's  Ajax input suggest tag and i have a few
> questions about that:
>  
> 1 - are there any examples jsf page for that?
> 2 - what should be the value of the 'binding' attribute?
>  
> suppose this situation:
>  
> i have a backing bean named 'StockController' which has one method,
> queryStock(), which
> returns a list of stock objects (each stock has a name, a description
> and a value)
>  
> I would like to use the inputSuggest tag to call
> #{StockController.queryStock}, but that method returns
> me a list of Stock objects, and i would like to pick just the name of
> the stock. Is it possible then to
> use the ajaxInputSuggest tag, or do i have to build a list of String
> objects?
>  
> thanks in advance and regards
>    Marco

-- 
Don't answer to From: address!
Mail to this account are droped if not recieved via mailinglist.
To contact me direct create the mail address by
concatenating my forename to my senders domain.

Reply via email to