How to hide and show component in a XPage way?

Hi there… a simple question…

Imagine by selecting radiobuttons you want to display different tables in the same page. It is matter of few mintues to do this with traditional Javascript (Display:none/block)… but how is this done in a XPage way? How do I make my radiobutton to display a table (or a component as panel)?

  • Should I have all tables in the same page with “Display:None” and when radiobutton “Selected” > “Display:block”?

  • Should I have Custom Control/Form for every table and by selecting a radiobutton display the Custom Control/Form?

I would like to this in a XPage way… Can you help? thanks!

Subject: use the visible option

Hi

I worked out how to do this from this post:

http://www-10.lotus.com/ldd/nd85forum.nsf/5f27803bba85d8e285256bf10054620d/026247380ecf1a4c852576b7005a93be?OpenDocument

Put your hidden field/table in a panel then partial refresh the panel with a change to the radio button. On the field/table put your visible code to see if the scope variable is x.

Hope that makes sense

Subject: Beware that if it is not “visible” than any code will not see any component in that panel

To hide something but still access the values programatically, both client and server side script, requires hiding via CSS.

Howard