Questions Tagged With jsfhttps://answers.axonivy.com/tags/jsf/?type=rss&user=docvominhquestions tagged <span class="tag">jsf</span>enThu, 06 Jul 2017 09:47:34 -0400Start process of Ivycomponent in ManagedBeanhttps://answers.axonivy.com/questions/2736/start-process-of-ivycomponent-in-managedbean<p>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.</p> <pre><code> 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]); </code></pre> <p>But when i try to call componentMethod() in component logic, it show method not found error : method not found <strong>example.main.componentMethod().</strong></p> <p>Update : each dialog had it own ManagedBean, and i fail to call when i use component ManagedBean.</p> <p>Seem like current context is not belong to component, have anyone meet this before ?</p> <p>Thank you :)</p> <p><img alt="alt text" src="http://answers.axonivy.com/upfiles/Capture.PNG"></p>docvominhThu, 06 Jul 2017 09:47:34 -0400https://answers.axonivy.com/questions/2736/start-process-of-ivycomponent-in-managedbeanjsf