I have a search page, it will allow user to search all the existing records in the custom database table.Results will be displayed in advance table.
In my main page(creation page) I have a column called attachment. In that column users will upload pdf file. its optional column. they might ot mightnot attach attachments.
My scenerio is :
I have record no.1 with attachment
record no.2 with out attachment
If i search from my search page, i wil get 2 records in my results. If i click on record 1 it will call my main page and in my main page the attachments column SHOULD display..(render true)
similarly If i click on record 2 the attachments column in the creation page SHOULD NOT display.(render false)
hope it is clear, if you need any another information please let me know.
Please try with this code in PR method on next page controller
OAMessageFileUploadBean fileUploadBean = (OAMessageFileUploadBean)webBean.findChildRecursive("id of upload bean");
String s = pageContext.getParameter("UPLOAD_FILE_NAME");(keep this UPLOAD_FILE_NAME as it is )
try this code ,in case of any error ,please let me know with error stack