You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by bansi <ma...@yahoo.com> on 2007/03/05 20:59:05 UTC

Re: [Solved] Unable to display Suggested Items using Sandbox component s:inputAjaxSuggest

Hi Gerald
Please suggest which latest version of sandbox & tomhawk is safe to use to
make inputAjaxSuggest component to work. I will appreciate if you could
provide the link 

Regards
Bansi


Gerald Müllan wrote:
> 
> Hi,
> 
> i strongly suggest to use one of the latest sandbox builds if you want
> to use this component (you also have to use latest tomhawk). There
> have been many changes introduced and errors fixed the last weeks.
> 
> cheers,
> 
> Gerald
> 
> On 2/27/07, bansi <ma...@yahoo.com> wrote:
>>
>> 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 <ma...@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.
>>
>>
> 
> 
> -- 
> http://www.irian.at
> 
> Your JSF powerhouse -
> JSF Consulting, Development and
> Courses in English and German
> 
> Professional Support for Apache MyFaces
> 
> 

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


Re: [Solved] Unable to display Suggested Items using Sandbox component s:inputAjaxSuggest

Posted by Gerald Müllan <bi...@gmail.com>.
Hi,

best is to use latest sandbox (as always with sandbox components).

http://people.apache.org/builds/myfaces/nightly/

cheers,

Gerald

On 3/5/07, bansi <ma...@yahoo.com> wrote:
>
> Hi Gerald
> Please suggest which latest version of sandbox & tomhawk is safe to use to
> make inputAjaxSuggest component to work. I will appreciate if you could
> provide the link
>
> Regards
> Bansi
>
>
> Gerald Müllan wrote:
> >
> > Hi,
> >
> > i strongly suggest to use one of the latest sandbox builds if you want
> > to use this component (you also have to use latest tomhawk). There
> > have been many changes introduced and errors fixed the last weeks.
> >
> > cheers,
> >
> > Gerald
> >
> > On 2/27/07, bansi <ma...@yahoo.com> wrote:
> >>
> >> 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 <ma...@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.
> >>
> >>
> >
> >
> > --
> > http://www.irian.at
> >
> > Your JSF powerhouse -
> > JSF Consulting, Development and
> > Courses in English and German
> >
> > Professional Support for Apache MyFaces
> >
> >
>
> --
> View this message in context: http://www.nabble.com/Unable-to-display-Suggested-Items-using-Sandbox-component-s%3AinputAjaxSuggest-tf3295288.html#a9319232
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>
>


-- 
http://www.irian.at

Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German

Professional Support for Apache MyFaces