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!

ADF-BC JSF How to use the ReturnName of a methodAction

371798Jan 13 2008 — edited Jan 14 2008
Hi everyone
I have created a view object that results to service requests in a given date range. I have also created a method in this view object which returns the percentage of closed requests for the period. Finally I have also added this method to the view object's client Interface.

I was then able to drug the method in a JSF page, and create a method binding that looks like this
    <methodAction id="getPercentage"
                  InstanceName="SRServiceDataControl.RequestsPerDeptAndDateRange"
                  DataControl="SRServiceDataControl" MethodName="getPercentage"
                  RequiresUpdateModel="true" Action="999"
                  IsViewObjectMethod="true"
                  ReturnName="SRServiceDataControl.methodResults.SRServiceDataControl_RequestsPerDeptAndDateRange_getPercentage_result"/>
I now want to be able to use the return name so as to display the value in my page just under the table containing the selected rows. Can anybody explain how ? ( I have tried the expression #{bindings.getPercentage.result} but it doesn't work.

Thanassis
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 11 2008
Added on Jan 13 2008
1 comment
917 views