able to show/hide components via radio button

34 views
Skip to first unread message

oggie

unread,
Oct 13, 2010, 9:23:22 AM10/13/10
to Wicket Web Beans
Is it possible with wwb to show/hide text boxes based on a selection a
user picks in a radio button?

For example, a residential address would have firstname, lastname, but
a customer address would only have business name.

if the user picks residential, we show the firstname and lastname
fields. If the user picks company,we hide the firstname and lastname
and show the customername field.

How does one do this if we don't actually add the individual fields to
the html page with wwb?

Daniel Toffetti

unread,
Oct 13, 2010, 8:18:39 PM10/13/10
to Wicket Web Beans
You can declare two different contexts and use one or another
based on some condition, please take a look at the Dynamic Contexts
example and ask again if you need further help.

Regards,

Daniel
Reply all
Reply to author
Forward
0 new messages