If You want to Create Any Item Or Region Dynamically Code Has to be written In Only Process request.These Items Doesn't Appear in the Structure Pane.
OAStackLayoutBean oastacklayoutbean=(OAStackLayoutBean)webBean.findIndexedChildRecursive("region2"); // Initialization of StackLayout
OAMessageTextInputBean oamessagetextinputbean=(OAMessageTextInputBean)createWebBean(pageContext,OAWebBeanConstants.MESSAGE_TEXT_INPUT_BEAN,null,"XX");
/*Creation MessagetextInputBean And Setting Prompt */
oamessagetextinputbean.setPrompt("YY");
oastacklayoutbean.addIndexedChild(oamessagetextinputbean);// adding item to the StackLayout
OAMessageCheckBoxBean oamessagecheckboxbean=(OAMessageCheckBoxBean)createWebBean(pageContext,OAWebBeanConstants.MESSAGE_CHECKBOX_BEAN,null,"YY");
oastacklayoutbean.addIndexedChild(oamessagecheckboxbean);
No comments:
Post a Comment