Hello again,
  beside error that i am getting,  i have some problems in undestanding the usage of the tag.
i guess the inputSuggest would, depending on the characters entered by the user, filter the result
of the list in the backend bean/
 
Assume this: my backend bean retrieves a List of stocks and i want to use the inputAjaxSuggest on that list (the method would be queryStock)
Assume that the backend bean retrieves that list of stock from a database.
 
Does the List of stocks need to be populated only once, and the tag will filter out result all the time, or the list is populated dynamically depending on the characters entered ?
 
hope you can undestand what i mean.. because i have also problems in explaining it...
 
could you describe exactly what is supposed to be the interaction between the ajax tag and the backend bean?
 
thanks in advance and regards
 marco
 
 
 
 
 

 
On 10/24/05, Marco Mistroni <[EMAIL PROTECTED]> wrote:
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/StriZLjavax/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


Reply via email to