1 Reply Latest reply on Nov 19, 2007 6:13 AM by david.spark

    modalPanel with data per iteration

    trouby

      Hey,

      I have a datatable that iterates over a list,

      Now per each row I want to be able to open a 'modalPanel' and set some values(properties) of the current iterated object element.

      Is there anyway to build one modalPanel and send a reference of the iterated object element to the modalPanel somehow?



      Many thanks,

      Asaf.

        • 1. Re: modalPanel with data per iteration

          This is indeed possible :-)

          What I do is store the ID of the clicked item in the backing bean then re-render the modelPanel before displaying it. In my case I do this using a:jsFunction but this is because I want the clickable item to be a panel, I suspect that if you're clicking on a link or button then it's a bit easier.