Start process of Ivycomponent in ManagedBean
Hi everyone,
I had a dialog, and an ivyComponent. component is included into dialog
When i try to call process in Logic of Dialog like this, it work fine.
FacesContext context = FacesContext.getCurrentInstance();
ExpressionFactory elFactory = context.getApplication().getExpressionFactory();
ELContext elContext = context.getELContext();
MethodExpression methodExpression = elFactory
.createMethodExpression(elContext, "#{logic.mainMethod()}", String.class, new Class[0]);
MethodInfo info = methodExpression.getMethodInfo(elContext);
methodExpression.invoke(elContext, new Object[0]);
But when i try to call componentMethod() in component logic, it show method not found error : method not found **example.main.componentMethod().**
Update : each dialog had it own ManagedBean, and i fail to call when i use component ManagedBean.
Seem like current context is not belong to component, have anyone meet this before ?
Thank you :)
![alt text][1]
[1]: http://answers.axonivy.com/upfiles/Capture.PNG