users@javaserverfaces.java.net

How do I control a component in a single f:subview from different managed beans?

From: Todd Patrick <Todd.Patrick_at_dtn.com>
Date: Thu, 31 May 2007 09:18:21 -0500

I have a single jsp that is referenced by three different jsp pages by a single f:subview. Within the f:subview there is a single h:panelGroup. JSPSubview | ---------------------- | | | JSP1 JSP2 JSP3 | | | MB1 MB2 MB3 Each of the three JSPs have a managed bean with a request scope. From each of the three managed beans, I want to control the h:panelGroup (again, located in the f:subview) attribute "rendered". Therefore if I send a response to JSP1, MB1 sets the h:panelGroup rendered attribute to true. If I send a response to JSP2, MB2 sets the h:panelGroup rendered attribute to false. In a nutshell, how do I reference the h:panelGroup in the f:subview from each of the three managed beans in code? Thanks, --Todd ----------------------------------------- NOTICE: This email message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message.