Sponsored Link •
|
Advertisement
|
Advertisement
|
This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.
Message:
It all depends on your requirements and designs. If the values you have to display in textfield corresponding to the value selected in the dropdown are fixed but not many e.g. 10 to 20 options then you can fetch those values in one go and on onChange of dropdown you can display the correcsponding value in text field without hitting webserver and/or database. Of course, you will have to do some javascript manipulations.However, if the list of values to be displayed in textfield is big then better do your way. We were working on a document management system in a last couple of weeks and we had a similar situation. We had to display the list of projects and when user selects one project then we had to display all teams under that project and when user selects a team then we had to display all documents type for that team and so on... We did it as follows. Thanx
Replies: |
Sponsored Links
|