Andrew: That is perfect. With the default boolean value being false, this worked great.
Thank you. --Todd -----Original Message----- From: Andrew Robinson [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 06, 2006 1:01 PM To: MyFaces Discussion Subject: Re: How do I use t:div to hide a component when a page loads, then display it on a h:commandButton event? <t:div rendered="#{mybean.myProp}"> This is optionally rendered </t:div> <t:commandButton value="click me" actionListener="#{mybean.toggle}" /> @Name("mybean") public class MyBean { private boolean myProp; public boolean isMyProp() { return myProp; } public void setMyProp(boolean myProp) { this.myProp = myProp; } public void toggle(ActionEvent evt) { myProp = !myProp; } } On 6/6/06, Todd Patrick <[EMAIL PROTECTED]> wrote: > > > How do I use t:div to hide a component or components within the t:div > when a page loads, then display the component(s) within the t:div on a > h:commandButton event? > > Thanks, > > --Todd

