<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