Uploaded image for project: 'RichFaces'
  1. RichFaces
  2. RF-1112

3.1.2RC1: Javascript error for PanelMenuItem

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Critical
    • Resolution: Done
    • Affects Version/s: 3.1.2
    • Fix Version/s: 3.1.2, 3.2.0
    • Component/s: None
    • Labels:
      None
    • Environment:

      RichFaces 3.1.2RC1, JBoss 4.2.1 with JSF 1.2_05RC3, JDK 1.6.0_03, Eclipse 3.3.1, WTP 2.0.1, JBossTools 2.0beta4

      Description

      I'm using the internal webbrowser of JBossTools 2.0beta4 which again uses Eclipse's WTP. When invoking a page with panelMenuItem I get the following error message (translated from German and mayby not exactly correct). This error message doesn't occur with RichFaces 3.1.1

      "There was a runtime error.
      Do you want to start the debugging mode?

      Line: 51
      Error: 'params' is undefined"

      --------------------------------------------------------------------
      This is the contents of lines 50 and 51:

      new PanelMenu('j_id33:j_id34',false,'');
      new PanelMenuItem(params,

      {myId:'j_id33:j_id36',parentId:'j_id33:j_id34'}

      ,

      {type:"item",onopen:"",onclose:"",event:"click",mode:"None",target:"",disabled:false,target:"",name:"j_id36"}

      ,{},new Array("dr-pmenu-hovered-element","rich-pmenu-hovered-element"),0,false,false,false,"A4J.AJAX.Submit('_viewRoot','j_id33',event,{'parameters':

      {'j_id33:j_id36':'j_id33:j_id36'}

      ,'actionUrl':'/hska/faces/index.xhtml'} )","","left","/hska/faces/a4j_3_1_2.CR1org.richfaces.renderkit.html.iconimages.PanelMenuIconDisc/DATB/eAFjYGAAAAADAAE_","/hska/faces/a4j_3_1_2.CR1org.richfaces.renderkit.html.iconimages.PanelMenuIconDisc/DATB/eAFjYGAAAAADAAE_" ,"" ,"/hska/faces/a4j_3_1_2.CR1org.richfaces.renderkit.html.iconimages.PanelMenuIconSpacer/DATB/eAFjYGAAAAADAAE_");

        Gliffy Diagrams

          Activity

          Hide
          juergen.zimmermann Juergen Zimmermann added a comment -

          Here are the according lines using 3.1.1:

          new PanelMenu('j_id33:j_id34',false,'');
          new PanelMenuItem(

          {myId:'j_id33:j_id36',parentId:'j_id33:j_id34'}

          ,

          {type:"item",onopen:"",onclose:"",event:"click",mode:"None",target:"",disabled:false,target:"",name:"j_id36"}

          ,{},new Array("dr-pmenu-hovered-element","rich-pmenu-hovered-element"),0,false,false,false,"A4J.AJAX.Submit('_viewRoot','j_id33',event,{'parameters':

          {'j_id33:j_id36':'j_id33:j_id36'}

          ,'actionUrl':'/hska/faces/index.xhtml'} )","","left","/hska/faces/a4j_3_1_1-CR2org.richfaces.renderkit.html.iconimages.PanelMenuIconDisc/DATB/eAFjYGAAAAADAAE_","/hska/faces/a4j_3_1_1-CR2org.richfaces.renderkit.html.iconimages.PanelMenuIconDisc/DATB/eAFjYGAAAAADAAE_" ,"" ,"/hska/faces/a4j_3_1_1-CR2org.richfaces.renderkit.html.iconimages.PanelMenuIconSpacer/DATB/eAFjYGAAAAADAAE_");

          Show
          juergen.zimmermann Juergen Zimmermann added a comment - Here are the according lines using 3.1.1: new PanelMenu('j_id33:j_id34',false,''); new PanelMenuItem( {myId:'j_id33:j_id36',parentId:'j_id33:j_id34'} , {type:"item",onopen:"",onclose:"",event:"click",mode:"None",target:"",disabled:false,target:"",name:"j_id36"} ,{},new Array("dr-pmenu-hovered-element","rich-pmenu-hovered-element"),0,false,false,false,"A4J.AJAX.Submit('_viewRoot','j_id33',event,{'parameters': {'j_id33:j_id36':'j_id33:j_id36'} ,'actionUrl':'/hska/faces/index.xhtml'} )","","left","/hska/faces/a4j_3_1_1-CR2org.richfaces.renderkit.html.iconimages.PanelMenuIconDisc/DATB/eAFjYGAAAAADAAE_","/hska/faces/a4j_3_1_1-CR2org.richfaces.renderkit.html.iconimages.PanelMenuIconDisc/DATB/eAFjYGAAAAADAAE_" ,"" ,"/hska/faces/a4j_3_1_1-CR2org.richfaces.renderkit.html.iconimages.PanelMenuIconSpacer/DATB/eAFjYGAAAAADAAE_");
          Hide
          abelevich Anton Belevich added a comment -

          Are you sure that panelMenu.js isn't cashed. Try to clear clear browser cash.

          Show
          abelevich Anton Belevich added a comment - Are you sure that panelMenu.js isn't cashed. Try to clear clear browser cash.
          Hide
          abelevich Anton Belevich added a comment -

          Sorry. I've found bug.

          Show
          abelevich Anton Belevich added a comment - Sorry. I've found bug.
          Hide
          viktor_volkov Viktor Volkov added a comment -

          verifiedon 3.1.2 CR2

          Show
          viktor_volkov Viktor Volkov added a comment - verifiedon 3.1.2 CR2

            People

            • Assignee:
              viktor_volkov Viktor Volkov
              Reporter:
              juergen.zimmermann Juergen Zimmermann
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development