How to concatenate two variables and pass to managed bean method
The following is modeled after Steve Muench's TwoBeanDCsInOneTable example:
<af:table value="#{bindings.ActualException11.collectionModel}"
var="row"
...
...
<af:column
<af:outputText value="#{MyBean.rowByCompKey[row.Accountid].DataValue}"/>
</af:column>
...
</af:table>
We wanted to pass two columns from row: Accountid and Productid to the bean method MyBean.rowByCompKey. I tried concatenate the two using '-' as a delimiter. But it did not work:
<af:outputText value="#{MyBean.rowByCompKey[row.Accountid-row.Productid].DataValue}"/>
Any help on this issue would be highly appreciated.
Also, if anyone knows the precise syntax on the use of parentheses, curly braces, and brackets in this context, please let me know. I searched high and low and could not find any documentation.
Thank you.