File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Add a value to Drop-Down List

Sam Saha
Ranch Hand
Posts: 104
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a form where I have text field for the Name of Financial Institution, one check box to Add to Financial Institution List and one Drop down for Select Financial Institution. If we enter a name in the Name field and checked the check box and then hit the OK button of the form the name of the Name should be added in the Drop down for Select Financial Institution. When we come back to that form in edit mode we can see that Name in the Drop down Financial Institution.
I have using the “finOrgs” in the JSP and using the public List<SelectItem> getFinOrgs() to display the values in the drop down menu. I am using the condition for checking the checkbox and setting the value in the OK handler. I am getting the right value here newFinOrg.setName(getActiveLienholder().getName());

But I am not able to return the right value from the public List<SelectItem> getFinOrgs()
Because I am getting problem to add the right value which is newFinOrg.setName(getActiveLienholder().getName()); to the drop down Select menu.

I agree. Here's the link:
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic