Hello Matthias,
thanks for suggestion, but i am getting this ugly exception with the tag
javax.servlet.ServletException: org.apache.myfaces.component.html.util.AddResource.addJavaScriptToHeader(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/String;ZLjavax/faces/context/FacesContext;)V
i have just copied the sample from sandbox.war, and i substitute my bean instead of the one of the sandbox.war application..
One further question...
the method of the backed bean that is supposed to be invoked.. does it have to have no arguments at all?
there should be t least 1 parameter for the selection criteria..correct?
thanks and regards
marco
On 10/24/05, Matthias Wessendorf <[EMAIL PROTECTED]> wrote:
you must build a list, containing Strings (inside of your backing bean)
-Matthias
On 10/23/05, Marco Mistroni < [EMAIL PROTECTED]> 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
--
Matthias Wessendorf
Zülpicher Wall 12, 239
50674 Köln
http://www.wessendorf.net
mwessendorf-at-gmail-dot-com

