Hi Daniel

Here are a couple of things you could try

[1] Your page includes all the components but you use the rendered=""
attribute on each panel using EL or a backing bean to determine if a
particular panel should be rendered

[2] Dynamically create the contents of the panel using a backing bean and
adding components directly to the panel via a binding. 

-----Original Message-----
From: Daniel Murley [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 13, 2006 6:53 AM
To: 'MyFaces Discussion'
Subject: Dynamically Changing Panel Grid

Hi There,

I have a situation where I want to switch between different panel grids on
the screen using a drop down.  So essentially I have one component bound to
the screen, and in the backing bean I want to change what that component
actually is.

This however is causing me much grief, as it seems JSF only reads the
bindings when it first renders the page.  Is this correct?  No matter what I
can't seem to be able to get it to change to another PanelGrid once its been
rendered.

Does anyone know how to best approach this?  Have I missed something crucial
here?

Thanks,

Daniel

Reply via email to