Is that possible to define dynamic value of tag "var" in richfaces datatable?
I have a component that contains rich datatable inside and I want to use custom "var" name.
I do so
Component:
<rich:extendedDataTable id="#{id}_list" cellspacing="0" rows="#{rows}" var="#{itemName}"
value="#{data}">
Page:
<wh:list id="f" data="#{deviceListBean.data}" rows="20" itemName="item">
But I get such exception:
javax.servlet.ServletException: var cannot be EL-expression
javax.faces.webapp.FacesServlet.service(FacesServlet.java:606)
I want to be able use custom "var" name. May be there is some another way to do that?
Here is a trick (name attribute of ui:param can be EL-expression):
<ui:param name="#{itemName}" value="#{item}"/>
<rich:extendedDataTable var="item" value="#{data}">
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With