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

    'undefined' value of Modal Panel parameter

    Dmitry Shultz Novice


      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"
       <h:outputText value="test modal panel parameters"/>

      What I'm doing wrong?