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

2007-03-06 Thread Gerald Müllan

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 [EMAIL PROTECTED] 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 [EMAIL PROTECTED] 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 [EMAIL PROTECTED] 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


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

2007-03-05 Thread bansi

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 [EMAIL PROTECTED] 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 [EMAIL PROTECTED] 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

2007-02-28 Thread Gerald Müllan

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 [EMAIL PROTECTED] 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 [EMAIL PROTECTED] 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


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

2007-02-27 Thread Laurentiu Trica

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] 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-component-s%3AinputAjaxSuggest-tf3295288.html#a9168175
Sent from the MyFaces - Users mailing list archive at Nabble.com.





--
Best regards,
Laurentiu
www.codebeat.ro


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

2007-02-27 Thread Cagatay Civici

Hi,

How about server side state saving mode? Does it work with that?

Cagatay

On 2/26/07, bansi [EMAIL PROTECTED] 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.




[TOMAHAWK] Facelets support was (RE: [Solved] Unable to display Suggested Items using Sandbox component s:inputAjaxSuggest)

2007-02-27 Thread Beelen, Marco
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-nameinputSuggestAjax/tag-name
component
 
component-typeorg.apache.myfaces.InputSuggestAjax/component-type
 
renderer-typeorg.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

Re: [TOMAHAWK] Facelets support was (RE: [Solved] Unable to display Suggested Items using Sandbox component s:inputAjaxSuggest)

2007-02-27 Thread Mike Kienenberger

As always, it's not a matter of do we want it, it's a matter of who's
going to do it, and how.
For there to be any integrated solution, it has to be a complete
solution since it is my understanding that it is not possible to
override whatever facelet tags we define.   Thus, we probably will
need to code-generate the taglib.xml files in order to keep them
up-to-date since the person working on a particular component may not
realize they need to change the facelets portion of the component
taghandler.

It would be good if the facelets support were in a separate maven
module so that the main Tomahawk code does not depend upon facelets.

What you propose sounds great -- when will you provide patches to
implement it? :-)

On 2/27/07, Beelen, Marco [EMAIL PROTECTED] wrote:

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?


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

2007-02-27 Thread bansi

Hi Cagatay
I tried server side state saving mode but it didnt work
As stated in my earlier posting i am using Facelets 1.1.2 and
tomahawk-sandbox-1.1.3-SNAPSHOT.jar
I tried two test cases
TestCase 1 : Using Facelets
Doesnt show up suggested Items  
Also i observed it renders a  textbox instead of s:inputSuggestAjax
component which has a small clock to right of textbox. Whenever we enter
values into textbox this clock keeps rotating

TestCase 2: Using JSP
Shows up suggested Items but with a small drop down which shows just one or
two values . I mean the suggested Items list box doesnt get render properly
on IE 6 but renders properly on Mozilla Firefox

As we have adopted Facelets any pointers/suggestions will be highly
appreciated

Regards
Bansi



Cagatay Civici wrote:
 
 Hi,
 
 How about server side state saving mode? Does it work with that?
 
 Cagatay
 
 On 2/26/07, bansi [EMAIL PROTECTED] 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#a9189308
Sent from the MyFaces - Users mailing list archive at Nabble.com.



Re: [Solved] [TOMAHAWK] Facelets support was (RE: Unable to display Suggested Items using Sandbox component s:inputAjaxSuggest)

2007-02-27 Thread bansi

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-nameinputSuggestAjax/tag-name
 component
  
 component-typeorg.apache.myfaces.InputSuggestAjax/component-type
  
 renderer-typeorg.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

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

2007-02-27 Thread bansi

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 [EMAIL PROTECTED] 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.



Unable to display Suggested Items using Sandbox component s:inputAjaxSuggest

2007-02-26 Thread bansi

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.



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

2007-02-26 Thread bansi

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-component-s%3AinputAjaxSuggest-tf3295288.html#a9168175
Sent from the MyFaces - Users mailing list archive at Nabble.com.