This content has been marked as final.
Show 6 replies
-
1. Re: Different modalPanel from each cell of a dataGrid?
mwkohout Sep 18, 2007 3:07 PM (in response to david.spark)Was a solution to this problem discovered? I'm facing the same issue.......
-
2. Re: Different modalPanel from each cell of a dataGrid?
mwkohout Sep 18, 2007 3:09 PM (in response to david.spark)FYI, I'm using RF 3.1.1 + Seam 2
-
3. Re: Different modalPanel from each cell of a dataGrid?
sergeysmirnov Sep 18, 2007 3:20 PM (in response to david.spark)JSF does not allow to use EL inside the id. So, this code might not work from the very beginning.
Right way is share one instance of the modal panel, defining it outside of the iteration component. -
4. Re: Different modalPanel from each cell of a dataGrid?
mwkohout Sep 18, 2007 4:15 PM (in response to david.spark)I think I've done what you suggested, but I'm still tripping up somewhere.
I've got a a4j commandButton within my iterated list, with an action method that loads the item-to-view somewhere(which is working)<a4j:commandButton type="submit" value="View Events" rendered="#{viewStudyAction.study.studySubjects.contains(studySubject)}" action="#{viewStudyAction.viewSubjectEvents(studySubject)}" reRender="viewEvents" oncomplete="Richfaces.showModalPanel('viewEvents')" />
and the actual panel itself:<rich:modalPanel render="true" id="viewEvents" height="400" width="400" > <rich:dataTable value="#{viewStudyAction.selectedStudySubject.events.toArray()}" var="event" > . . .
when I click the action button, all my breakpoints in my code are hit. But (to my naked eye) the modalPanel doesn't show up.
If I remove the reRender attribute of the button, the modal panel shows up, but since it isn't being reloaded, it holds stale data.
What I think is happening is that the action method is called, then the oncomplete javascript, then the code generated by reRender. But for whatever reason the modal panel doesn't stay visible.
Am I right? Is this a bug? And if not, how do I achieve my goal?
thanks
Mike Kohout -
5. Re: Different modalPanel from each cell of a dataGrid?
ilya_shaikovsky Sep 19, 2007 6:24 AM (in response to david.spark)please try to update the content of a panel but not the panel itself.
-
6. Re: Different modalPanel from each cell of a dataGrid?
mwkohout Sep 19, 2007 12:06 PM (in response to david.spark)that did the trick. thanks!