This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Multiple Spaces in a RichFaces SuggestionBox

J Miller
Ranch Hand
Posts: 80
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I’m having some trouble with the RichFaces suggestionBox trimming multiple spaces from my input. I have a database table that I’m querying using a suggestionBox. Some of the entries will have multiple spaces (“A__B”, using _ as a space). If I type “A__B”, it works correctly, but if I type “A__” it trims all the spaces and just searches for “A”.

I understand that this is the default html behavior, but I need to try and find a way around it. I’ve tried using a converter (below) that converts to a non-breaking space (nbsp), and that’s not working. I’ve done some searches, but can’t seem to find a solution.

I’m using RichFaces 3.3.3 with JSF 1.2.

Any ideas on how to accomplish this?

I agree. Here's the link:
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic