2 or 3 since there is no relevant state on the server side you want to
consider to implement the component visibility rule.

On Tue, Jun 1, 2010 at 7:37 AM, Iain Reddick
<iain.redd...@beatsystems.com>wrote:

> Say I have a form with a check box that, when checked, shows some other
> field (i.e. it controls the visibility of other form components).
>
> What is the best approach to handling this?
>
> From what I understand, you have 3 options:
>
> 1. Add ajax behaviour to the check box (re-render relevant components).
> 2. Add javascript from the Java code (e.g. add some kind of show/hide
> behaviour).
> 3. Add javascript directly to the HTML.
>
> What are peoples experiences of the 3 methods, and which is best?
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


-- 
Pedro Henrique Oliveira dos Santos

Reply via email to