Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSP nested Select & nested Text tag

 
Bhavik Patel
Ranch Hand
Posts: 155
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hii ,

I was wondering how can i create a parent dropdown and child text box such that selecting value from parent will change the value in the text field ( text field is read only ) ..

so lets say i have a dropdown with Department codes then if i change the department code its description ( one text box) and dept head name( another text box) populates automatically ,....

I can do this with AJAX also but how do i do this with custom tags..make sure that my parent tag should also have behaviour of dropdown and child tag should have behaviour of text box..

Waiting for the reply..

Bhavik
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64990
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Bhavik Patel:
but how do i do this with custom tags


Client-side activity must take place using client-side technology; namely, HTML, JavaScript and Ajax. You can use custom tags to generate the client-side code, but before you do anything like that, you need to figure out what the client-side code needs to be.

Waiting for the reply..


Please avoid putting statements like this in your posts. It makes you sound impatient and demanding. Neither of these traits are condusive to making others want to help you.
[ July 02, 2007: Message edited by: Bear Bibeault ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic