1 Reply Latest reply on Mar 15, 2009 11:58 AM by nbelaevski

    show modalPanel trouble

    krasig

      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'})">
      ..
      .
      .

      and everything is ok.


      But if i have:
      <a4j:jsFunction name="testJsFunc2" action="#{myModal.loadTree}"
       reRender="#{myId},kg_tree" data="#{myModal}"
       oncomplete="Richfaces.showModalPanel(data.formName,data.modalParams)">


      and in bean i have:
      .
      .
      public String getModalParams() {
       if (LOGGER.isDebugEnabled()) {
       LOGGER.debug("getModalParams() - start ");
       }
       return "{top:'10px',width:'570px',height:'300px'}";
       }


      so, the problem is that parameters for panel not applayed.
      What is wrong?