Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within JSF
Search Coderanch
Advance search
Google search
Register / Login
Win a copy of
Helidon Revealed: A Practical Guide to Oracle’s Microservices Framework
this week in the
Java in General
forum!
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Tim Cooke
paul wheaton
Liutauras Vilda
Ron McLeod
Sheriffs:
Jeanne Boyarsky
Devaka Cooray
Paul Clapham
Saloon Keepers:
Scott Selikoff
Tim Holloway
Piet Souris
Mikalai Zaikin
Frits Walraven
Bartenders:
Stephan van Hulst
Carey Brown
Forum:
JSF
How to get values of 20 selectOneMenus
Yas El
Greenhorn
Posts: 11
posted 12 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
I have 20 Selectitems, and I want to store the selected values into a list ( in the Managed Bean )
Page.jsf
<c:forEach var="i" begin="1" end="20" step="1" varStatus ="status"> <p:selectOneMenu value="#{Bean.maValeur(????????)}" > <f:selectItems value="#{ConnectionBean.allO}"/> </p:selectOneMenu> <br></br> </c:forEach>
What should I put instead of (???)
bean.java
private List<String> maValeur; public List<String> getMaValeur() { return maValeur; } public void setMaValeur(String maValeur) { this.maValeur.add(maValeur); }
Thanks by advance
Alas, poor Yorick, he knew this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Display of hashmap values using jstl
EL tag for setting textfield values using Javascript
JSTL c:forEach not working
JSTL over a Set: Did not get data as expected
Iterating over hashMap in facelets not working
More...