7 Replies Latest reply on Mar 19, 2009 2:56 AM by stank0

    'undefined' value of Modal Panel parameter

    zeppelinux

      Hi,

      I'm trying to pass the parameters to the modal panel as it is described in the manual, but it doesn't work for me.
      'param1' is always 'undefined' in onshow.

      Here is the code:

      
      <f:view locale="En" contentType="text/html">
      
       <h:graphicImage id="link" value="imagePath.jpg"
       onclick="Richfaces.showModalPanel('modalPanelId', {width: 500}, {height: 300}, {param1: 'test parameter'});"/>
      
      
       <rich:modalPanel id="modalPanelId" autosized="true"
       onshow="alert(event.parameters.param1);">
      
       <h:outputText value="test modal panel parameters"/>
      
       </rich:modalPanel>
      </f:view>
      


      What I'm doing wrong?

      Thanks,