I want to display java arraylist into JSF page. I generated arraylist from database. Now I want to display the list into JSF page by calling the list elements index by index number. Is it possible to pass a parameter to bean method from an EL expression in JSF page directly and display it?
相关问题
- java.lang.NullPointerException at java.io.PrintWri
- h:selectOneMenu in p:dataTable doesn't submit
- binary search tree path list
- PrimeFaces block UI does not work when the compone
- primefaces orderlist not getting updated with the
相关文章
- ArrayList性能问题
- Comparing string and boolean in Expression languag
- Java: Efficient ArrayList filtering?
- How to allow numbers only using f:validateRegex
- Why does Java's List have “List.toArray()”, bu
- JSF 2.0: ajax request when press ENTER
- How to use gson to convert json to arraylist if th
- Best Way to Convert ArrayList to String in Kotlin
You can access a list element by a specific index using the brace notation
[]
.As to parameter passing, surely it's possible. EL 2.2 (or JBoss EL when you're still on EL 2.1) supports calling bean methods with arguments.
See also:
I however wonder if it isn't easier to just use a component which iterates over all elements of the list, such as
<ui:repeat>
or<h:dataTable>
, so that you don't need to know the size beforehand nor to get every individual item by index. E.g.or
See also: