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 build af:fileDownloadActionListener programmatically

User501417-OracleApr 29 2015 — edited May 5 2015

Jdev 12.1.3

Hi,

I have a link that allows download of file like this:

   <af:link text="Test" id="l5" immediate="true">

                                                                  <af:fileDownloadActionListener method="#{viewScope.itasHomeBean.downloadFile}"

contentType="#{row.bindings.DocumentType.inputValue}"

                                                             filename="#{row.bindings.DocumentName.inputValue}" />

                                                            </af:link>

I need to build this link in the bean programmatically and I need some guidance.  What's the java version of af:fileDownloadActionListener? Should it be added as ActionListener to the link like this?

RichLink link = new RichLink();

link.addActionListener( xxx );

Please advise.

Thanks

-Mina

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 2 2015
Added on Apr 29 2015
10 comments
2,320 views