Monday, March 7, 2011

Programmatically Adding the Fire Partical Action to a Bean

In some situations where you need to add the Fire Action (Action Type) to the Bean @runtime. Below is the code to achieve the same.

 
import oracle.cabo.ui.action.FireAction;
import oracle.cabo.ui.action.FirePartialAction;
OAMessageChoiceBean mb=(OAMessageChoiceBean)webBean.findChildRecursive("BeanId");
FireAction firePartialAction = new FirePartialAction("DelAction");
mb.setAttributeValue(PRIMARY_CLIENT_ACTION_ATTR,firePartialAction);

No comments:

Post a Comment