myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bansi <mail2ba...@yahoo.com>
Subject Re: [Solved] Unable to display Suggested Items using Sandbox component s:inputAjaxSuggest
Date Tue, 27 Feb 2007 20:48:00 GMT

Nope it doesnt work even with server side state saving mode

Cagatay Civici wrote:
> 
> Hi,
> 
> How about server side state saving mode? Does it work with that?
> 
> Cagatay
> 
> On 2/26/07, bansi <mail2bansi@yahoo.com> 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-component-s%3AinputAjaxSuggest-tf3295288.html#a9166912
>> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>>
>>
> 
> 

-- 
View this message in context: http://www.nabble.com/Unable-to-display-Suggested-Items-using-Sandbox-component-s%3AinputAjaxSuggest-tf3295288.html#a9191498
Sent from the MyFaces - Users mailing list archive at Nabble.com.


Mime
View raw message