Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to fill values in selectbox dynamically

 
kavitha vasu
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can any one explain how can i populate values into select box from database while

form loading itself.


Currently am using ajax , I want to know how can i do this without using ajax


Regards
Kavitha
 
rahul khanna
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use LabelValueBean
 
kavitha vasu
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sorry i did not get you

Please explain me brief
 
rahul khanna
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
google on 'LabelValueBean'
 
kavitha vasu
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi rahul


Thanks.


I have populated my select box with values from DB by using LabelValueBean.


Now i have problem,


I have 2 fields in my form

one is select box , in that am populating values from DB,

second field is password

Am selecting district from select box

and click submit button without giving password

In form bean am doing validation


so , its shows Enter Password!

Now the selected district in my select box is not retained.

How to retain that old district in my select box



Please help me.

Its urgent.


Thanks
Kavitha
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic