webtier@glassfish.java.net

serious performance bug with JSF2

From: <webtier_at_javadesktop.org>
Date: Tue, 28 Sep 2010 13:18:01 PDT

Hi,

Considering code below:
[code]
        <h:panelGroup id="p" rendered="false">

            <h:dataTable var="d" value="#{myBean.values}">
                <h:column>
                    <h:outputText value="#{d}"/>
                </h:column>
            </h:dataTable>
        </h:panelGroup>
[/code]

how many times the method getValues (from #{myBean.values}) should be called?

Answer:

* if you are using JSF 1.2 (Mojarra's 2.0.2 implementation): zero times. That is correct as panelGroup "p" is not rendered.

* if you are using JSF2 (Mojarra's 2.0.2 implementation): 10 times. That is incredible wrong!

Can anyone plase explain what's happening?

  Thanks.
[Message sent by forum member 'leandro_komosinski']

http://forums.java.net/jive/thread.jspa?messageID=483866