Re: IHeaderContributor of invisible Components

2011-07-15 Thread Benedikt Rothe
2011 at 7:05 PM, Benedikt Rothe wrote: The bug with #close() has been fixed in later version of Wicket. wicket4.1.17 still has the bug. Am 15.07.2011 17:32, schrieb Martin Grigorov: There is no AjaxRequestTarget#onComponentTagBody() The bug with #close() has been fixed in later version of W

Re: IHeaderContributor of invisible Components

2011-07-15 Thread Benedikt Rothe
, Benedikt Rothe wrote: I made some further investigations. I do think there is a bug in wicket 1.4.14. My Ajax-Request add's *two* targets which shall be rerenderd: class MyLink extends AjaxLink { ... public void onClick(AjaxRequestTarget target) { ... do Something and c

Re: IHeaderContributor of invisible Components

2011-07-15 Thread Benedikt Rothe
bug with #close() has been fixed in later version of Wicket. On Fri, Jul 15, 2011 at 6:25 PM, Benedikt Rothe wrote: I made some further investigations. I do think there is a bug in wicket 1.4.14. My Ajax-Request add's *two* targets which shall be rerenderd: class MyLink extends AjaxLink { .

Re: IHeaderContributor of invisible Components

2011-07-15 Thread Benedikt Rothe
uses one HeaderResponse-Instance. For each of the components the Method AjaxRequestTarget#onComponentTagBody will be called. After the first call onComponentTagBody will "close()" the HeaderResponse-Instance. Therefore the HeaderResponse-Instance rejects further Header-Contributions.

Re: IHeaderContributor of invisible Components

2011-07-15 Thread Benedikt Rothe
n Fri, Jul 15, 2011 at 11:39 AM, Benedikt Rothe wrote: Check Ajax Debug panel for errors. I did check the Ajax-Debug-Panel. No error. Situation: A Component has JavaScript-header-Contributors but is invisible. Visibility is switched during an AjaxRequest. What is Wicket's *supposed

Re: IHeaderContributor of invisible Components

2011-07-15 Thread Benedikt Rothe
eck Ajax Debug panel for errors. On Fri, Jul 15, 2011 at 10:35 AM, Benedikt Rothe wrote: When you say "my javascript is not loaded", do you mean it's not added to the page or it's added but doesn't work? It is not added to the page. There's no script-tag. Am 14

Re: IHeaderContributor of invisible Components

2011-07-15 Thread Benedikt Rothe
quot;, do you mean it's not added to the page or it's added but doesn't work? On 14 Jul 2011 12:21, "Benedikt Rothe" wrote: I have a problem with IHeaderContributor and invisible Components: A Panel "MyPanel" implements IHeaderContributor. The renderHead-Method

IHeaderContributor of invisible Components

2011-07-14 Thread Benedikt Rothe
I have a problem with IHeaderContributor and invisible Components: A Panel "MyPanel" implements IHeaderContributor. The renderHead-Methods adds some JavaScript-References. When the page is rendered this panel is invisible. So these JavaScript-References are not loaded when the page is loaded. L

RepeatingView/RefreshingView: Inform children about being deleted

2011-02-18 Thread Benedikt Rothe
Hi Are the existing children of a RepeatingView/RefreshingView being informed, when the View is newly populated (RefreshingView.onPopulate). I'd like to clean some internal references in this case. I tried: - aChild.onRemove is not called in this situation - aChild.setParent(null) is called. I

Re: Add Component if markup exists?

2011-01-29 Thread Benedikt Rothe
f you need it to have a normal lifecycle you can analyze the markup and add the component if not already added. in 1.5 you can use getmarkup in onmarkupattached() or oninitialize() -igor On Fri, Jan 28, 2011 at 2:11 PM, Benedikt Rothe wrote: Hi everybody Is it possible to add a Wicket-Component

Add Component if markup exists?

2011-01-28 Thread Benedikt Rothe
Hi everybody Is it possible to add a Wicket-Component depending on the existence of a wicket:id in the Markup? Something like // Code with adding Components if there is a Markup-Element with WicketId "Submit" then this.add(new Button("Submit",...)); As far as I understood, it is no