Hi Marco Thank you for your response. I double checked and found sandbox-taglib.xml do contain the tag-defintion you mentioned of inputSuggestAjax. Also i created a facelets subdirectory under src directory to store the java class InputSuggestAjaxComponentHandler.java Regards Bansi
Beelen, Marco wrote: > > Hi Bansi, > > I was having the same problem as you are having now. > In my case it was a configuration problem. > > You need to check if your sandbox-taglib.xml contains the following > tag-defintion: > <tag> > <tag-name>inputSuggestAjax</tag-name> > <component> > > <component-type>org.apache.myfaces.InputSuggestAjax</component-type> > > <renderer-type>org.apache.myfaces.InputSuggestAjax</renderer-type> > <handler-class> > facelets.InputSuggestAjaxComponentHandler > </handler-class> > </component> > </tag> > > And that your webapp contains the InputSuggestAjaxComponentHandler > class. > Source code for that class can be found at: > http://wiki.java.net/bin/view/Projects/InputSuggestAjaxComponentHandler > > I added a small section about using the inputSuggestAjax with facelets > to the wiki. > > > > To all: > > It appairs that some additional code is required to use at least one > tomahawk component in combination with facelets. As always there can be > discussion about whom should provide support for this kind of code (the > facelets or tomahawk community) > As being a user I would like to gets such 'integration'-code along with > the component. > > On the other hand I would understand if the myfaces-community would not > like to have some code dependand on com.sun.facelets.tag.*-classes in > the tomahawk-project. > > How do you feel about a creating seperate project > groupId=org.apache.myfaces.tomahawk and artifactId=tomahawk-facelets, > which has dependancies on org.apache.myfaces.tomahawk:tomahawk and > com.sun.facelets:jsf-facelets and contains the necessary code to get all > the tomahawk components working in a facelets-based application? > That way the user only needs to include 1 dependancy and the codebases > stay clean? > > > > With kind regards, > Marco Beelen > > > > > > > ________________________________ > > From: Laurentiu Trica [mailto:[EMAIL PROTECTED] > Sent: dinsdag 27 februari 2007 16:00 > To: MyFaces Discussion > Subject: Re: [Solved] Unable to display Suggested Items using Sandbox > component s:inputAjaxSuggest > > > Hi Bansi > > I don't know if what i say applies to Sandbox 1.1.3, I am working on > 1.1.5. > The public List getSuggestedWords(String keyword) should have 2 > parameters: > > public List getSuggestedWords(String keyword, Integer maxItems) > > and you could specify the max number of items to be displayed from the > component attributes: > > <s:inputSuggestAjax suggestedItemsMethod="#{test.getSuggestedWords}" > value="#{test.currentValue }" maxSuggestedItems="10" /> > > Just try it if you didn't worked it out already. > > > On 2/26/07, bansi < [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> > > wrote: > > > Here is some more info on my earlier posting > I figured out from debugging that control doesnt go to > getSuggestedWords() > method as the following line never gets printed in the log > console : > System.out.println("In getSuggestedWords method "); > > Wondering what could be the reason > > Regards > Bansi > > bansi wrote: > > > > Hi I am using Facelets 1.1.2 and > tomahawk-sandbox-1.1.3-SNAPSHOT.jar, > > tomahawk-1.1.3.jar, MyFaces 1.1.4. > > > > The code works perfectly fine but when i enter values into > textbox it > > doesnt show up suggested Items . Then i debugged the > application with > > log4j > > > > > > > > Here is the jsp page > > <h:outputText value="Enter your name : "/> > > <s:inputSuggestAjax suggestedItemsMethod="#{ > test.getSuggestedWords}" > > value="#{test.currentValue}" /> > > <br /> > > <h:commandButton value="Submit"/> > > <br /> > > <h:outputText value="Your name is #{ test.currentValue}"/> > > > > Here is the backing bean > > public List getSuggestedWords(String keyword) { > > List list = new ArrayList(); > > list.add(keyword + " Ahmed Saleh"); > > list.add(keyword + " Kahki"); > > list.add(keyword + " Kourany"); > > list.add(keyword + " Kiki"); > > list.add(keyword + " Saleh Abouetta"); > > list.add(keyword + " Hashim"); > > return list; > > } > > > > > > public String getCurrentValue() { > > return currentValue; > > } > > public void setCurrentValue(String currentValue) { > > this.currentValue = currentValue; > > } > > //current selected value > > String currentValue; > > I have set the Save State to Client in web.xml > > > > Any pointers/suggestions will be highly appreciated > > > > Regards > > Bansi > > > > > > -- > View this message in context: > http://www.nabble.com/Unable-to-display-Suggested-Items-using-Sandbox-co > mponent-s%3AinputAjaxSuggest-tf3295288.html#a9168175 > Sent from the MyFaces - Users mailing list archive at > Nabble.com. > > > > > > > -- > Best regards, > Laurentiu > www.codebeat.ro > > ------------------------------------------------------------------------------ > Notice: This e-mail message, together with any attachments, contains > information of Merck & Co., Inc. (One Merck Drive, Whitehouse Station, > New Jersey, USA 08889), and/or its affiliates (which may be known > outside the United States as Merck Frosst, Merck Sharp & Dohme or MSD > and in Japan, as Banyu - direct contact information for affiliates is > available at http://www.merck.com/contact/contacts.html) that may be > confidential, proprietary copyrighted and/or legally privileged. It is > intended solely for the use of the individual or entity named on this > message. If you are not the intended recipient, and have received this > message in error, please notify us immediately by reply e-mail and then > delete it from your system. > > ------------------------------------------------------------------------------ > -- View this message in context: http://www.nabble.com/Unable-to-display-Suggested-Items-using-Sandbox-component-s%3AinputAjaxSuggest-tf3295288.html#a9191472 Sent from the MyFaces - Users mailing list archive at Nabble.com.

