问题
Is it possible to put a ternary operator to have a condition in a "value" attribute of a JSF tag ? And moreover is it possible in a datatable tag to have something like this :
<h:dataTable id="table" value="#{myBean.choice ? myBean.listOne : myBean.listTwo}"
var="item" >
. . .
来源:https://stackoverflow.com/questions/22382466/jsf-ternary-operator-in-value-attribute