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);
- }
No comments:
Post a Comment