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

    RichFaces 3.1.4 modalPanel and tree problems

    maxusoltsev

      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"
       onshow="updateVarId(event.parameters.param1);">
      ...
      

      html output generated by RichFaces 3.1.1 (and its same in 3.1.3):
      <script type="text/javascript">
      
      //<![CDATA[
      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
       });
      //]]>
      </script>
      


      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:


      <a4j:form>
      
       <rich:tree switchType="ajax" id="sectionsTree" limitToList="true"
       reRender="sectionContentPanel" icon="/img/iconFolder.gif"
       iconLeaf="/img/iconFolder.gif"
       nodeSelectListener="#{jcrController.nodeSelectedEvent}">
      
       <rich:recursiveTreeNodesAdaptor roots="#{jcrController.jcrRoot}"
       var="item" nodes="#{item.nodes}">
       <rich:treeNode>
      
       <a4j:commandLink
       action="#{jcrController.nodeSelectedClick(item.path)}"
       value="#{item.humanName} (#{item.nodeCount}/#{item.contentCount})"
       reRender="sectionContentPanel" />
      
       </rich:treeNode>
      
       </rich:recursiveTreeNodesAdaptor>
      
       </rich:tree>
      


      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