Requirement was to build an OAF page which will display the files stored in the filesystem.OA Framework doesn't support this functionality natively.But core java comes in handy during these situations.
1) Dynamically read the files from a specific directory.
2) Create the link items dynamically and provide action type programatically
3) Filter the files by name
4) Open the pdf file using a custom function(OA Framework supports FileDownload from a blob but we need to show that from file-system).
Below code addresses all the challenges above and creates a seamless approach to read the file from filesystem and display them in an OAF Page.