You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Hans Lesmeister <ha...@lessy-software.de> on 2011/10/30 20:10:54 UTC

Re: Toggling Web markup container visibility

Hi,

You should setOutputMaarkupPlaceholder to true (sorry probably not exactly
the correct methode name but very similar...)

Tip: do not override isVisible but override onConfigure and then call
setvisible(...) in there

Cheers
Hans


Am 30.10.11 21:14 schrieb "Josh Kamau" unter <jo...@gmail.com>:

> Hi there;
> 
> I want to toggle a visibility of a group of components. So i have put them
> in a WebMarkupContainer and overriden the isVisible method to return the
> value gotten from a check box.
> 
> The webmarkupcontainer is not toggled as expected when i added it to the
> target object. The individual form components get toggled as expected. What
> could be the problem ? is there a better way of grouping form components
> other than a web makup container? in the html file i have a div.
> 
> Regards.
> Josh.



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Toggling Web markup container visibility

Posted by Josh Kamau <jo...@gmail.com>.
It worked perfectly. Thanks for the hint Hans.

Josh

On Sun, Oct 30, 2011 at 11:11 PM, Josh Kamau <jo...@gmail.com> wrote:

> thanks.  will try that
>
> On 30 Oct 2011 23:06, "Hans Lesmeister" <ha...@lessy-software.de>
> wrote:
>
> Hi,
>
> You should setOutputMaarkupPlaceholder to true (sorry probably not exactly
> the correct methode name but very similar...)
>
> Tip: do not override isVisible but override onConfigure and then call
> setvisible(...) in there
>
> Cheers
> Hans
>
>
> Am 30.10.11 21:14 schrieb "Josh Kamau" unter <jo...@gmail.com>:
>
>
> > Hi there;
> >
> > I want to toggle a visibility of a group of components. So i have put
> them
> > in a ...
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

Re: Toggling Web markup container visibility

Posted by Josh Kamau <jo...@gmail.com>.
thanks.  will try that

On 30 Oct 2011 23:06, "Hans Lesmeister" <ha...@lessy-software.de>
wrote:

Hi,

You should setOutputMaarkupPlaceholder to true (sorry probably not exactly
the correct methode name but very similar...)

Tip: do not override isVisible but override onConfigure and then call
setvisible(...) in there

Cheers
Hans


Am 30.10.11 21:14 schrieb "Josh Kamau" unter <jo...@gmail.com>:


> Hi there;
>
> I want to toggle a visibility of a group of components. So i have put them
> in a ...
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org