jQuery in Action, 3rd edition
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Search fields Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Search fields" Watch "Search fields" New topic

Search fields

Anna Hays
Ranch Hand

Joined: Nov 09, 2003
Posts: 131
I have read some threads that the search fields (for retrieving a list of contactors in B&S) can be a text field or drop down. I prefer drop down. I am wondering how can we get a list of locations that is available to search?? I wouldn't be a hardcoded list would it?
Jacques Bosch
Ranch Hand

Joined: Dec 18, 2003
Posts: 319
IMHO, a combo box is not needed. Text fields are sufficient.
But anyway, if you want to use one, you'll have to populate your location combo from the DB file. Build a cache of unique locations and fill your combo with that.
Too much unnecessary work I think. But that's just IMO.

Jacques<br />*******<br />MCP, SCJP, SCJD, SCWCD
I agree. Here's the link: http://aspose.com/file-tools
subject: Search fields
It's not a secret anymore!