aspose file tools*
The moose likes JSF and the fly likes how can i add item to list box dynamicall Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "how can i add item to list box dynamicall " Watch "how can i add item to list box dynamicall " New topic
Author

how can i add item to list box dynamicall

biny panackal
Ranch Hand

Joined: Apr 12, 2007
Posts: 72
How can i add data to the select box from been..
Please help me to sort out form this problem.


Biny Balan
binypanackal@gmail.com
Rafael Fagundes
Ranch Hand

Joined: Sep 23, 2004
Posts: 52
Hi.

Well, waht you need is (in "general lines"):

1. Premises: you need to make a binding of your select box (and it item list component to the respective html component in your managed bean).
2. Some component of your web page must generate an ActionEvent.
3. In the ActionEvent you will add the "extra data" in your select box component through your item list component (add new itens on it).

Now I do not remember the names of the components and properties and
these are the reasons for which I gave the general lines to you.

Holpe this help!


Thanks,
Rafa
Rafael Fagundes
Ranch Hand

Joined: Sep 23, 2004
Posts: 52
Hi.

Well, waht you need is (in "general lines"):

1. Premises: you need to make a binding of your select box (and it item list component to the respective html component in your managed bean).
2. Some component of your web page must generate an ActionEvent.
3. In the ActionEvent you will add the "extra data" in your select box component through your item list component (add new itens on it).

Now I do not remember the names of the components and properties and
these are the reasons for which I gave the general lines to you.

Hope this help!

PS: sorry for my bad english!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how can i add item to list box dynamicall
 
Similar Threads
dymamic generate text input field
adding items to jcombo box
JavaScript Problem
how can i add select box dynamically in html form using javascript
Adding horizontal scroll bars to list box