users@javaserverfaces.java.net

JSF, rendered attribute, backing bean method called repeatedly

From: Richard Bremner <richard.bremner.nb_at_googlemail.com>
Date: Tue, 11 Dec 2007 03:43:21 -0800 (PST)

Hi,

We are having some strange behaviour with our JSF (sun reference
implementation) application. I am running on Glassfish V2 final.

say I have a page with the following panelGroup's, eg:

<h:panelGroup rendered="BackingBean1.show">
...
</h:panelGroup>

<h:panelGroup rendered="BackingBean2.show">
...
</h:panelGroup>

<h:panelGroup rendered="BackingBean3.show">
...
</h:panelGroup>

Then, for instance, the "show" method in "BackingBean1" will be called 3
times, as there are 3 "rendered" attributes. If I add a fourth, it will be
called four times, if I remove them all but 2, it will be called twice, if
there is only 1 "rendered" then the show method will be called only once.
What on earth is causing this?

cheers

Richard
-- 
View this message in context: http://www.nabble.com/JSF%2C-rendered-attribute%2C-backing-bean-method-called-repeatedly-tp14272361p14272361.html
Sent from the javaserverfaces users mailing list archive at Nabble.com.