You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Lester Chua <ci...@gmail.com> on 2009/12/04 06:43:06 UTC
Question pertaining to manipulation of divs
Hi,
I have a component that is embedded as follows:
<div class="some-style">
<span wicket:id="mycomponent">
</span>
</div>
Is there a way for me to manipulate the div containing some style?
I tried creating a panel and using that as a parent but it feels very
cumbersome and involves an additional html (wicket disallowed me to do
an anonymous Panel without html).
What I need is a technique to do that at page creation.
I.e. just instantiate "something" and add mycomponent to it.
That "something" can then be manipulated with standard wicket tag
modification.
Can someone shed some light on this?
Lester
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Question pertaining to manipulation of divs
Posted by Lester Chua <ci...@gmail.com>.
Thanks!
Love the quick replies.
Igor Vaynberg wrote:
> that "something" is called a WebMarkupContainer
>
> -igor
>
> On Thu, Dec 3, 2009 at 9:43 PM, Lester Chua <ci...@gmail.com> wrote:
>
>> Hi,
>>
>> I have a component that is embedded as follows:
>>
>> <div class="some-style">
>> <span wicket:id="mycomponent">
>> </span>
>> </div>
>>
>> Is there a way for me to manipulate the div containing some style?
>> I tried creating a panel and using that as a parent but it feels very
>> cumbersome and involves an additional html (wicket disallowed me to do an
>> anonymous Panel without html).
>> What I need is a technique to do that at page creation.
>> I.e. just instantiate "something" and add mycomponent to it.
>> That "something" can then be manipulated with standard wicket tag
>> modification.
>>
>> Can someone shed some light on this?
>>
>> Lester
>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Question pertaining to manipulation of divs
Posted by Igor Vaynberg <ig...@gmail.com>.
that "something" is called a WebMarkupContainer
-igor
On Thu, Dec 3, 2009 at 9:43 PM, Lester Chua <ci...@gmail.com> wrote:
> Hi,
>
> I have a component that is embedded as follows:
>
> <div class="some-style">
> <span wicket:id="mycomponent">
> </span>
> </div>
>
> Is there a way for me to manipulate the div containing some style?
> I tried creating a panel and using that as a parent but it feels very
> cumbersome and involves an additional html (wicket disallowed me to do an
> anonymous Panel without html).
> What I need is a technique to do that at page creation.
> I.e. just instantiate "something" and add mycomponent to it.
> That "something" can then be manipulated with standard wicket tag
> modification.
>
> Can someone shed some light on this?
>
> Lester
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org