-
1. Re: rerender modalPanel on showing
ilya_shaikovsky Sep 11, 2007 4:40 AM (in response to matze.imhof)what do you mean by "wrong order"?
-
2. Re: rerender modalPanel on showing
matze.imhof Sep 11, 2007 5:31 AM (in response to matze.imhof)The first thing to be executed should be the action.
Then the rerendering should be executed.
And last of all the modalPanel should pop up.
In the action I set the content of the modalPanel. -
3. Re: rerender modalPanel on showing
ilya_shaikovsky Sep 11, 2007 5:54 AM (in response to matze.imhof)The order of the steps is just you specified. action invoked on the fifth phase, reRender called after responce come and oncomplete called the last.
-
4. Re: rerender modalPanel on showing
matze.imhof Sep 11, 2007 6:37 AM (in response to matze.imhof)solved it:
I missed to get the right panel with a setter method.
The method "setActionContent" was missing ...
Now the content is rerendered correctly.
Thanx for your help !public HtmlPanelGrid getActionContent() { this.actionPanel = new HtmlPanelGrid(); this.refreshActionDialog(); return this.actionPanel; } public void setActionContent(HtmlPanelGrid grid) { this.actionPanel = grid; } private void refreshActionDialog() { this.actionPanel.getChildren().clear(); if (this.action != null) { this.actionPanel.getChildren().add(this.action.getContent()); } }
-
5. Re: rerender modalPanel on showing
konstantin_grigoriev Sep 11, 2007 6:48 AM (in response to matze.imhof)I have the same problem in rc6, in older versions worked ok. Modal panel hasn't been rerendered completely, but oncomplete has been already performed. If i use debug in FF, everything is ok.
-
6. Re: rerender modalPanel on showing
konstantin_grigoriev Sep 11, 2007 7:20 AM (in response to matze.imhof)I've discovered that this trouble appears if i rerender whole modalPanel, if i rerender only part of it, everything is ok.
-
7. Re: rerender modalPanel on showing
maumau Sep 12, 2007 8:27 AM (in response to matze.imhof)I'm having the same trouble when I force rerendering a modal panel
when showing it. The modal panel does no show up.
Example<a4j:commandButton value="Edit" type="button" reRender="editModelGeneralData" oncomplete="javascript:Richfaces.showModalPanel('editModelGeneralData',{width:600, height:500})" />
-
8. Re: rerender modalPanel on showing
tjakopec Sep 12, 2007 8:33 AM (in response to matze.imhof)I had the same problem nad solution is the same as Konstantin_Grigoriev, I rerender content inside the panel, not whole panel
-
9. Re: rerender modalPanel on showing
ilya_shaikovsky Sep 13, 2007 11:57 AM (in response to matze.imhof)reRender the content inside the panel.
-
10. Re: rerender modalPanel on showing
konstantin_grigoriev Sep 17, 2007 9:29 AM (in response to matze.imhof)I think http://jira.jboss.com/jira/browse/RF-932 JIRA issue describes this problem.