This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes Linebreaks inside select pull down Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "Linebreaks inside select pull down" Watch "Linebreaks inside select pull down" New topic
Author

Linebreaks inside select pull down

Anoop Krishnan
Ranch Hand

Joined: May 03, 2001
Posts: 163
I have a pulldown(<select></select> with the following contents
Name
Roll Number
Date (YYYY-MM-DD)
but I want to restrict the size of the pulldown to the length of "Roll Number" as follows
Name
Roll Number
Date
(YYYY-MM-DD)
but "Date" & "(YYYY-MM-DD)" must be treated as a single entry
I tried Date<br>(YYYY-MM-DD) but it do not work out


I just want to know is there any body call my bean's Getter and Setter methods with "Please" in front - My favorite quip from Bugzilla
Maulin Vasavada
Ranch Hand

Joined: Nov 04, 2001
Posts: 1865
hi Anoop,
i don't think we can do anything like that.
btw, i have never seen select object for non-matching items. you have Name, Roll Number etc which are non-matching. i have usually used select object for list of values for a particular item. e.g. list of names , list of roll numbers...
i wonder why do you need a selection list for such heterogenous items??
if there arent many entries in the selection list then you better use checkboxes...
thanks
maulin.


1. Have fun @ http://faq.javaranch.com/java/JavaRaq
2. Looking for simple infix2postfix conversion and postfix evaluation package? Click here
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Linebreaks inside select pull down
 
Similar Threads
MyFaces-Date/TimeZone Issue?
display format date
Getting date as a string from util.date object in desired format format
Oracle Date problem
Why oracle keep complaining "Invalid number" when using hibernate