webtier@glassfish.java.net

Re: [webtier] How to hide & unhide panels in JSF.

From: Mikael Andersson <mail.micke_at_gmail.com>
Date: Mon, 30 Jun 2008 19:04:06 +0100

Sounds like a job for the good old rendered attribute to me.

Ex:
<h:commandButton value="Button1" action="#{backingBean.myAction}"
rendered="#{controlVisibilityBean.buttonOneVisible}"/>


2008/6/30 <webtier_at_javadesktop.org>:

> Hello,
> I'm trying to hide/unhide JSF panels based on UI events.
> More specifically, I have radio buttons and drop down lists.
> Every component exists within its own panel.
> I need to make a panel visible based on radio button click or drop down
> list item select.
> I also need to make another panel invisible based on radio button click
> or drop down list item select.
>
> Thanks in advance,
> Dan
> [Message sent by forum member 'djdanjazz' (djdanjazz)]
>
> http://forums.java.net/jive/thread.jspa?messageID=283401
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: webtier-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: webtier-help_at_glassfish.dev.java.net
>
>