1 Reply Latest reply on Jan 31, 2008 5:53 AM by Maxim Usoltsev

    RichFaces 3.1.4 modalPanel and tree problems

    Maxim Usoltsev Newbie

      Hi !
      I'm using RichFaces with Seam on Jboss-4.2.1
      After upgrading RichFaces to 3.1.4 from 3.1.1 i'v got some troubles:
      1. modalPanel onshow event broken :

      xhtml code (updateVarId is a4j:jsFunction) :

      <rich:modalPanel id="mp" minHeight="200" minWidth="450" height="200"
       width="500" zindex="2000"

      html output generated by RichFaces 3.1.1 (and its same in 3.1.3):
      <script type="text/javascript">
      new ModalPanel('mp',
       width: 500,
       height: 200,
       minWidth: 450,
       minHeight: 200,
       resizeable: true,
       moveable: true,
       left: "auto",
       top: "auto",
       zindex: 2000,
       onshow: 'updateVarId(event.parameters.param1);',
       onhide: '',
       keepVisualState: false,
       showWhenRendered: false,
       selectBehavior: "disable",
       autosized: false

      but there is no
      onshow: 'updateVarId(event.parameters.param1);',
      line in html output generated by Richfaces 3.1.4 line

      2. i have a tree in my page:

       <rich:tree switchType="ajax" id="sectionsTree" limitToList="true"
       reRender="sectionContentPanel" icon="/img/iconFolder.gif"
       <rich:recursiveTreeNodesAdaptor roots="#{jcrController.jcrRoot}"
       var="item" nodes="#{item.nodes}">
       value="#{item.humanName} (#{item.nodeCount}/#{item.contentCount})"
       reRender="sectionContentPanel" />

      And then tree is loaded, i cant collapse/expand nodes using little image near node (but i see what ajax requests are processed). It looks like node collapsed and expanded somewhere on server, because if i click on image and then click on a4j:commandLink, node is expanded