Hi there!
I have a modalPanel that show a r:dataTable. The user should select one record from table and update two fields on parent form.
My modal's code is in the template.jspx (I'm using facelets).
It works, but as the modalPanel will be invoked from different pages (different backBeans), I wish to pass the backBean's name to modalPanel and use it to set the fields...
How can I do that ?
Here's the code:
Let's say on 'Page1.jspx':
<h:inputText id="idPerson" value="#{Bean1.idPerson}" /> <a4j:commandButton value="..." reRender="mymodal" oncomplete="Richfaces.showModalPanel('mymodal', {backBean: 'Bean1'}); return false;">
<h:inputText id="idPerson" value="#{Bean2.idPerson}" /> <a4j:commandButton value="..." reRender="mymodal" oncomplete="Richfaces.showModalPanel('mymodal', {backBean: 'Bean2'}); return false;">
<r:modalPanel id="mymodal"> ... <a4j:commandLink reRender="idPerson" oncomplete="Richfaces.hideModalPanel('mymodal');"> <a4j:actionparam name="paramId" value="#{item.id}" assignTo="#{HowToPutTheParamHere.idPerson}"/> </a4j:commandLink> </r:modalPanel>
Hmmm... sorry for posting on wrong topic...
Please, someone could move this to the RichFaces User Forum ?
Thanx.