2 Replies Latest reply on Sep 15, 2008 5:34 AM by ilya_shaikovsky

    Pass values from context menu to modal panel

      Hi,

      I have a question, is it possible to pass values from my context menu to a modal panel?

      Taking the example from the documentation

       <rich:menuItem ajaxSingle="true">
      
       <b>{car} {model}</b> details
      
       <a4j:actionParam name="det" assignTo="#{ddmenu.current}" value="{car} {model} details"/>
      
       </rich:menuItem>


      How can I pass the {car} and {model} values to a modal panel? I know how to pass parameters to the modal panel but if in the parameters I do something like:

      Richfaces.showModalPanel('panelId', {left: auto}, {param1: {car}});


      the code does not work.

      thanks