1 Reply Latest reply on Mar 20, 2008 12:44 PM by Pierre Masse

    Parameters in modalpanel

    John Smith Newbie

      Hi there,

      I'm trying to access a parameter in a ModalPanel, but cannot find any info in docs except accessing the parameters in javascript

      My code:

      <rich:modalPanel id="cancelConfirm" minHeight="200" minWidth="450" height="200" width="500" zindex="2000" onshow="alert(event.parameters.folderId);">
      <a href="javascript:Richfaces.hideModalPanel('cancelConfirm')">Close</a>
      <s:link action="archiveFolder">Archive
       <f:param name="folderId" value="I WANT FOLDERID HERE!"/>

      Calling code:

      <a href="javascript:Richfaces.showModalPanel('cancelConfirm', {folderId: #{item.id}})">

      the onshow javascript event takes place displaying the correct passed in folderId

      How can I get the folderId into the f:param, do I have to use javascript, if so any pointers would be great as my javascript is not too hot