Hi all,
i have some like this:
<a4j:jsFunction name="testJsFunc2" action="#{myModal.loadTree}" reRender="#{myId},kg_tree" data="#{myModal}" oncomplete="Richfaces.showModalPanel(data.formName,{top:'10px',width:'570px',height:'300px'})"> .. . .
<a4j:jsFunction name="testJsFunc2" action="#{myModal.loadTree}" reRender="#{myId},kg_tree" data="#{myModal}" oncomplete="Richfaces.showModalPanel(data.formName,data.modalParams)">
. . public String getModalParams() { if (LOGGER.isDebugEnabled()) { LOGGER.debug("getModalParams() - start "); } return "{top:'10px',width:'570px',height:'300px'}"; }
Hi,
You should use #{data.modalParams}.