This content has been marked as final.
Show 1 reply
-
1. Re: how to call modal panel from managed bean
angeldstu Dec 19, 2008 7:03 AM (in response to jaabax)You can use "oncomplete" event of a a4j components (like a4j:commandLink) to call Model Panel after doing something instead of your solution.
<a4j:commandButton value="button€" oncomplete="javascript:Richfaces.showModalPanel('CustomPanel')" action="#{someBean.someMethod}" reRender="CustomPanel"/>
public class SomeBean { private String fatalErrMsg = new String("Fatal Error!"); public String getFatalErrMsg() { return fatalErrMsg; } public void someMethod() { //doing something with fatalErrMsg } }
<rich:modalPanel> <h:outputText value="#{someBean.fatalErrMsg}"/> </rich:modalPanel>