Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to concatenate two variables and pass to managed bean method

user599896-OracleApr 22 2008 — edited Jun 3 2010
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.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 1 2010
Added on Apr 22 2008
3 comments
3,572 views