| Author |
Reduce the render time
|
sathish Tl
Greenhorn
Joined: Sep 02, 2008
Posts: 7
|
|
can any one help,
How can we reduce the response time(render time) of page containing the 30-40 richface components
Thanks in advance
|
Sathish TL
SCJP 5,SCWCD 5
|
 |
Tim Holloway
Saloon Keeper
Joined: Jun 25, 2001
Posts: 14487
|
|
Consider not loading the page with 30-40 richfaces components.
In fact, consider not loading the page with so many components, period.
You can use reRender/AJAX to update the page selectively and that can help, but the initial page display is still going to be a major hit on the user's patience. Simplicity is a virtue.
|
Customer surveys are for companies who didn't pay proper attention to begin with.
|
 |
Rajneesh K Rajput
Greenhorn
Joined: Nov 14, 2009
Posts: 10
|
|
sathish Tl wrote:
How can we reduce the response time(render time) of page containing the 30-40 richface components
Yes, rendering for 30-40 components could be slow but not that much. We have used lots of components in a single page.
You can try to figure out if it is really components, or the queries involved and taking time itself to provide data to JSF page.You can see, if there are proper null checks added while filling values for the components specially if values are being populated by hitting database.
This is the major factor, if methods calls again will hit unnecessarliy to database for the same value.
|
 |
Tim Holloway
Saloon Keeper
Joined: Jun 25, 2001
Posts: 14487
|
|
30-40 components isn't really a lot if most of them are simple components (like datagrid). 30-40 complex components may be a different matter.
But I had a single component (menu) that downloaded 3MB on each page refresh, so I had to address that. Firefox's network monitor is handy for stuff like that.
|
 |
 |
|
|
subject: Reduce the render time
|
|
|