• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Suggestion Box help

 
Arvind Purohit
Ranch Hand
Posts: 43
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have requirement like

I have list of states,city and area,
I have to give suggestion for states then on select of states i have to give suggestion for city( only thos city comes is suggestion which belong to selected state )
and the same for area.
I am using rich:suggestion box


But i am getting value of variable state as null not the selected value in suggest function
please help me
Thanks all

 
Sridhar Santhanakrishnan
Ranch Hand
Posts: 317
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try using

in your rich:suggestionbox. This would let the servlet know which value to be retrieved when the autocomplete method is called.
 
Max Katz
Ranch Hand
Posts: 72
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The selection defaults to the first column. I only see one column, so that value should be set into the input field. If you have more than one column, than yes, do what Sridhar suggested, use fetchValue attribute.
 
Arvind Purohit
Ranch Hand
Posts: 43
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Max Katz wrote:The selection defaults to the first column. I only see one column, so that value should be set into the input field. If you have more than one column, than yes, do what Sridhar suggested, use fetchValue attribute.


Thanks All
I got my solution
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic