You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Lon Varscsak <lo...@gmail.com> on 2016/08/03 23:49:12 UTC
Trouble updating component when using markup inheritance
Hey guys,
I’ve got a component (ComponentB) that subclasses from another component
(ComponentA). In ComponentB I call a method on ComponentA that updates a
div (ajax) that wraps some content on ComponentA in addition to the
<wicket:child> (which is ComponentB’s content). While this updates
correctly, if I have any links in the Child, no Ajax handlers are returned
in the ajax call, so the updated values are correct, but none of the links
work anymore.
If there are any links in ComponentA’s html, they will have the proper
handlers regenerated and called.
I have a quick start here that demonstrates the problem:
https://dl.dropboxusercontent.com/u/549221/test.zip
Any thoughts?
Thanks,
Lon
Re: Trouble updating component when using markup inheritance
Posted by Lon Varscsak <lo...@gmail.com>.
Perfect! Thank you so much for getting me situated!
-Lon
On Sat, Aug 6, 2016 at 3:03 AM, Sven Meier <sv...@meiers.net> wrote:
> Hi,
>
> this is a known problem with TransparentWebMarkupContainers, see
> WICKET-5479
>
> You should use a WebMarkupContainer and #queue() instead.
>
> Regards
> Sven
>
>
>
> On 04.08.2016 01:49, Lon Varscsak wrote:
>
>> Hey guys,
>>
>> I’ve got a component (ComponentB) that subclasses from another component
>> (ComponentA). In ComponentB I call a method on ComponentA that updates a
>> div (ajax) that wraps some content on ComponentA in addition to the
>> <wicket:child> (which is ComponentB’s content). While this updates
>> correctly, if I have any links in the Child, no Ajax handlers are returned
>> in the ajax call, so the updated values are correct, but none of the links
>> work anymore.
>>
>> If there are any links in ComponentA’s html, they will have the proper
>> handlers regenerated and called.
>>
>> I have a quick start here that demonstrates the problem:
>> https://dl.dropboxusercontent.com/u/549221/test.zip
>>
>> Any thoughts?
>>
>> Thanks,
>>
>> Lon
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
Re: Trouble updating component when using markup inheritance
Posted by Sven Meier <sv...@meiers.net>.
Hi,
this is a known problem with TransparentWebMarkupContainers, see WICKET-5479
You should use a WebMarkupContainer and #queue() instead.
Regards
Sven
On 04.08.2016 01:49, Lon Varscsak wrote:
> Hey guys,
>
> I\u2019ve got a component (ComponentB) that subclasses from another component
> (ComponentA). In ComponentB I call a method on ComponentA that updates a
> div (ajax) that wraps some content on ComponentA in addition to the
> <wicket:child> (which is ComponentB\u2019s content). While this updates
> correctly, if I have any links in the Child, no Ajax handlers are returned
> in the ajax call, so the updated values are correct, but none of the links
> work anymore.
>
> If there are any links in ComponentA\u2019s html, they will have the proper
> handlers regenerated and called.
>
> I have a quick start here that demonstrates the problem:
> https://dl.dropboxusercontent.com/u/549221/test.zip
>
> Any thoughts?
>
> Thanks,
>
> Lon
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org