Anil's Blog is Best Viewed on GOOGLE CHROME

Friday, April 25, 2014

Make OAF page readonly

In the Controller process request method just write the below code to make whole page read only in one go.

import com.oaframework.toolkit.util.WebBeanUtil;

    public void processRequest(OAPageContext pageContext, OAWebBean webBean) {
        super.processRequest(pageContext, webBean);
     // this class loops all the webbean hierarchy and make read only each and even bean and also sets the CSS accordingly.

      WebBeanUtil.setViewOnlyRecursive(pageContext, webBean);

In case of you are not able to get the WebBeanUtil file then please mail me I will provide you.


No comments:

Post a Comment

Note: Only a member of this blog may post a comment.