I think we'll need to see the code to know the problem. The s:select tag allows you to directly specify an iterable source which would be used to generate the select tag (with options inside) automatically...
I'm still confused. If the whitespaces are in the emitted HTML, who cares? If there are empty option elements, then something's broken, because I'm not sure how they could be generated from the code posted.
but the gap is of the size of the item in the list,so, a user can actually select the space between the two items which looks odd and also if there are 10 items, the list a 19 item drop down,( 9 spaces between 10 items)so it sort of hampers the UI display!
Pradeep, the source that you showed us is of the code that you wrote. Now you open that page in the browser and you get some unusual option elements right. Now when you open the page in the browser, depending upon the browser, do the following
If you are using firefox, go to View menu and there's an option called "Page Source", click on that
If you are using Internet Explorer, go to the View menu and there's an option called "Source", click on that
In both cases you'll see the HTML that the browser got from the server. Copy that HTML and post it here...