-
1. Re: ModalPanel shown very slowly!!
lmk Jun 18, 2008 3:36 AM (in response to lmk)hello,
no idea ?? it's impossible to use modalPanel if it take a lot of time to appear..
the problem occurs after migration to the last 3.2.2 snapshot..
event the content of the modalPanel is empty it takes more than 10s to be shown..
here the code that call the modalPanel inside dataTable..<a4j:support event="onRowDblClick" reRender="details" action="#{queryBean.getSelected}" oncomplete="javascript:Richfaces.showModalPanel('_panel',{left:'auto', top:'auto'})" />
-
2. Re: ModalPanel shown very slowly!!
ilya_shaikovsky Jun 18, 2008 4:00 AM (in response to lmk)Could you provide some example for compare? Feel free to create an issue. Then attach war and tell us for example that it will be one second under 3.x.x and 20-50 sec under 3.2.1. Then we will investigate this ASAP ;)
-
3. Re: ModalPanel shown very slowly!!
lmk Jun 18, 2008 6:33 AM (in response to lmk)"ilya_shaikovsky" wrote:
Could you provide some example for compare? Feel free to create an issue. Then attach war and tell us for example that it will be one second under 3.x.x and 20-50 sec under 3.2.1. Then we will investigate this ASAP ;)
thanks ilya;
tested on 3.2.1 CR4 and 3.2.2 snapshot, it takes 14s for both..
it is normal??
modalPanel on demo site appear very quickly..but I use a4j:support inside dataTable and not simple link.. -
4. Re: ModalPanel shown very slowly!!
ilya_shaikovsky Jun 18, 2008 7:15 AM (in response to lmk)So, maybe most of the time lost while server interaction?
-
5. Re: ModalPanel shown very slowly!!
lmk Jun 18, 2008 8:21 AM (in response to lmk)I test on local machine..server interaction is faster for other requests, even display filter or sort a dataTable with 1000 rows..
test with no action.just<a4j:support event="onRowDblClick" reRender="details" oncomplete="javascript:Richfaces.showModalPanel('_panel',{left:'auto', top:'auto'})" />
NB: use of myfaces 1.2.2 facelets 1.1.14. -
6. Re: ModalPanel shown very slowly!!
mmichalek Jun 18, 2008 10:57 AM (in response to lmk)We recently found a performance issue with ModalPanel that was caused by slow javascript - it's still unresolved for us. Maybe these are the same?
http://jira.jboss.com/jira/browse/RF-3670
http://jira.jboss.com/jira/browse/RF-3572 -
7. Re: ModalPanel shown very slowly!!
lmk Jun 20, 2008 3:45 AM (in response to lmk)"mmichalek" wrote:
We recently found a performance issue with ModalPanel that was caused by slow javascript - it's still unresolved for us. Maybe these are the same?
http://jira.jboss.com/jira/browse/RF-3670
http://jira.jboss.com/jira/browse/RF-3572
yes it seems similar, IE7 dont suggest to stop javascript execution, on FireFox it works better. -
8. Re: ModalPanel shown very slowly!!
lmk Jun 20, 2008 11:36 AM (in response to lmk)I can now specify the cases of the problem.
when i display all rows of dataTable more than 500 rows, modalPanel makes long time..
it works better if dataTable rows are not enormous.
regards! -
9. Re: ModalPanel shown very slowly!!
mail.micke Jul 10, 2008 5:09 AM (in response to lmk)Also having this problem; really slow on a page with a semi large table.
Would it be possible to add a property to the component telling it if it should disable the background elements or not.
Would be nice to just have it popup a dialog super quickly without having to worry about the background stuff (assuming this is what thakes time/cpu).
Cheers,
Micke -
10. Re: ModalPanel shown very slowly!!
ilya_shaikovsky Jul 10, 2008 5:17 AM (in response to lmk)lmk, try to add ajaxSingle=true to your support.