This week's book giveaway is in the Java in General forum.
We're giving away four copies of Think Java: How to Think Like a Computer Scientist and have Allen B. Downey & Chris Mayfield on-line!
See this thread for details.
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

Facing a problem with <html : optionsCollection> tag

 
Durga Krishna
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Friends,

I am facing a problem while displaying the values in drop down using <html : optionsCollection> tag.


From my countryList I will be getting country name and spaces and then count
Eg:
I have multiple spaces between India and (120). This is coming from by java layer.
But in the dropdown it is not displaying multiple spaces after the name of the country, instead it is showing only one space in the drop down. Eg: "India (120)"

If I use &nbsp; multiple times in my java layer between India and (120), in the drop down, it is displaying ,India&nbsp;&nbsp;&nbsp;(120)
I tried using <pre> tag also. But no use.

Is there a way that I can display multiple spaces in the drop down uising, <html : optionsCollection> tag.


Thanks in Advance.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic