webtier@glassfish.java.net

Re: serious performance bug with JSF2

From: <webtier_at_javadesktop.org>
Date: Tue, 28 Sep 2010 13:45:32 PDT

Just to complement:

MyBean code:

[code]
public class MyBean {

    /** Creates a new instance of MyBean */
    public MyBean() {
    }

    public List<Integer> getValues) {
        System.out.println("getValues called");
        List<Integer> lista = new ArrayList<Integer>();

        lista.add(45);
        lista.add(50);

        return lista;
    }
}

[/code]

I'm running with Tomcat 6.0.26.

As long as i understand, as dataTable component is inside a non rendered component (panelGroup in my example) the EL "#{myBean.values}" should not be evaluated. But, as I said in previous post, El expression is called 10 times if using JSF 2 (and zero times if using JSF1.2).
[Message sent by forum member 'leandro_komosinski']

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