Hi,
exactyl like in the form.
You can define a radioButton and in the onChange event you can do a partial refresh on the element you want to hide/show.
You should build in both views and set them to rendered =false (or at least one of them.)
Then, in the event you can access the view with getCompoent("id") and set rendered to true and vice versa.
Hope this helps
http://mnicklisch.wordpress.com