wood burning stoves 2.0
The moose likes JSF and the fly likes Custom BreadCrumb Component Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Custom BreadCrumb Component" Watch "Custom BreadCrumb Component" New topic

Custom BreadCrumb Component

Shasi Mitra
Ranch Hand

Joined: Nov 27, 2008
Posts: 101

I have a scenario where in i have to initiate nested method binding, ie

<t:datatable value="listOfSomething" var="item">
<h:commandLink action="#{item.getactionpath}"/>

As you can see the each item is having a method "getactionpath".
The "getactionpath" internally returns the method binding to some other managed bean (expression language), ie "getactionpath" could
return "#{customer.loadActSummary}"

Thus my commandlink should actually invoke the action on my "customer" object.

Is it possible to provide some custom method implementation to handle this scenario?
Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
If you use t:dataList instead of t:dataTable, it will work.
I agree. Here's the link: http://aspose.com/file-tools
subject: Custom BreadCrumb Component
It's not a secret anymore!