I have just a question in passing parameters on backing beans method.
I would like pass an EL value between a method parameters like:
<p:selectOneMenu id="somsgroup" value="#{store_itemController.filter_sgroup}">
<f:selectItems value="#{commonDataFunctions.getItemByName('store_sgroup', 'id', 'title', '[tb:store_sgroup][fd:title]=${store_itemController.filter_group}', '[tb:store_sgroup][fd:title]', true)}"/>
</p:selectOneMenu>
it seems like ${store_itemController.filter_group}
it is not translated because the method receives ${store_itemController.filter_group}
just like a string.
Is there a solution?
I would like to suggest to use
JBoss EL
. If so, you need to configure as below inweb.xml
. Download jar file here and reference for previous post.You can indeed not nest EL expressions this way. EL expressions can only be inlined.
You can use
<c:set>
to create a new variable wherein the desired expression is inlined in the desired value and then reuse this variable as argument of another EL expression.