Swap the values from one item to other items
public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
{
super.processFormRequest(pageContext, webBean);
if(pageContext.getParameter("item3")!=null)
{
String name=pageContext.getParameter("item1");
OAMessageStyledTextBean mst= (OAMessageStyledTextBean)webBean.findChildRecursive("item2");
mst.setValue(pageContext,name);
OAMessageTextInputBean mtib = (OAMessageTextInputBean)webBean.findChildRecursive("item1");
mtib.setValue(pageContext,null);
}
}
public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
{
super.processFormRequest(pageContext, webBean);
if(pageContext.getParameter("item3")!=null)
{
String name=pageContext.getParameter("item1");
OAMessageStyledTextBean mst= (OAMessageStyledTextBean)webBean.findChildRecursive("item2");
mst.setValue(pageContext,name);
OAMessageTextInputBean mtib = (OAMessageTextInputBean)webBean.findChildRecursive("item1");
mtib.setValue(pageContext,null);
}
}
No comments:
Post a Comment