JSF - ternary operator in value attribute

倖福魔咒の 提交于 2019-12-25 03:11:00

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!