Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Suggestionbox in JSF

 
ujwwala tem
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I want to add link at bottom in suggestion box autocomplete in jsf,how can I do that,

Thanks,
Uj
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18152
52
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is no "suggestionbox in JSF". Suggestion Box controls are not part of the core JSF implementation, so to obtain one you'll need to augment the core JSF with a third-party extension. The exact configuration and capabilities of that suggestionbox will therefore depend on which extension you use.

However, most suggestionbox controls are built on or at least made to look like raw HTML SELECT controls, which do not have the ability to make OPTION elements be byperlinks. It wouldn't make sense, anyway, since the GUI interaction of a hyperlink would interfere with the GUI action of selection off a dropdown list and vice versa.
 
ujwwala tem
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

Thanks for the reply,I didn't understand technically what is to be done,linke in google search box we have autocomplete feature so I implemeted that in JSF with javascript and all ,now I want onle link to be displayed in the container itself at the bottom where all suggestion names are coming,

Thanks,
Uj
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18152
52
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If I understood that correctly, what you probably should do is define a "div" at the location where you want the URL to display and use JavaScript to insert text into that div based on the user's interaction with the auto-complete control.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic