???? Are you just guessing have you actually tried it?
Facelets isn't the perf issue here, building the component
tree is cheap-- most of the performance issues come from
actually evaluating the component tree (rendering) which
isn't a responsibility of Facelets, but of the components
themselves. The 'rendered' attribute is allowed on
ui:fragment, and the child components should not be
evaluated/rendered, avoiding the overhead.
==================================================
thanks for your reply,
but there is not rendered attribute for ui:fragment, why it
can help me?In
my case , the rendered property is very important. i guess
jsf doesn't
creat these inputText instances when rendered of f:subview
is false, but not
facelets.
----- Original Message -----
From: <jacob hookom.net>
To: <users facelets.dev.java.net>
Sent: Thursday, June 21, 2007 4:25 PM
Subject: RE: performance Problem with ajax and facelets
> If you run into performance problems with your usecase
and worked around
it with subview, then try using ui:fragment instead from the
developer docs.
>
>
> hi,
>
> I meet a performance problem in a huge page when
sending ajax request. i m
> using ajax4jsf, facelet and myfaces. I'll explicate it
in a very simple
> example. a commandlink who send ajax request, then a
panelGrid who has
2000
> inputText. Without these 2000 inputText, a ajax request
spends 400ms, with
> them, it spends 3-4 second(depend on pc). Before i add
facelets in my
> projet, i used f:subview with dynamique reRender to
resolve this problem.
> but now, that does not work any more. Does facelets do
something different
> with f:subview?
>
> any idea thanks
>
> <a4j:form><a4j:commandLink
value="dddd"/></a4j:form>
>
> <f:subview rendered="false">
>
> <t:panelGrid columns="10">
<t:inputText />(repeat 2000
> tims)</t:panelGrid>
>
> </f:subview>
>
>
------------------------------------------------------------
---------
> To unsubscribe, e-mail: users-unsubscribe facelets.dev.java.net
> For additional commands, e-mail: users-help facelets.dev.java.net
>
>
------------------------------------------------------------
---------
> To unsubscribe, e-mail: users-unsubscribe facelets.dev.java.net
> For additional commands, e-mail: users-help facelets.dev.java.net
>
------------------------------------------------------------
---------
To unsubscribe, e-mail: users-unsubscribe facelets.dev.java.net
For additional commands, e-mail: users-help facelets.dev.java.net
------------------------------------------------------------
---------
To unsubscribe, e-mail: users-unsubscribe facelets.dev.java.net
For additional commands, e-mail: users-help facelets.dev.java.net
|