Re: IHeaderContributor of invisible Components

2011-07-15 Thread Benedikt Rothe
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.07.2011 14:15, schrieb Rodrigo Heffner: When you say "my javascript is not loaded", do you mean it's not added to the pa

Re: IHeaderContributor of invisible Components

2011-07-15 Thread Martin Grigorov
Check 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.07.2011 14:15,

Re: Generate ajax link

2011-07-15 Thread Martin Grigorov
This JavaScript is generated by AbstractDefaultAjaxBehavior. On Thu, Jul 14, 2011 at 11:26 PM, Lurtz Nazgul wrote: > Thanks Martin; but it doesn't make sense to me, sorry. > > Wicket generates below code for a simple counter increment example. > >  var wcall = > wicketAjaxGet('?wicket:interface=:

Re: getRelativePathPrefixToWicketHandler & String index out of range

2011-07-15 Thread Martin Grigorov
Hi On Thu, Jul 14, 2011 at 8:10 PM, Jonathan Gray wrote: > please excuse me if this is a dupe - i posted to the general apache forum > and then MOVED it to the users forum & i wasn't sure if the post would go to > the mailing list if it was moved rather than originally posted > there...anyway: >

Re: IHeaderContributor of invisible Components

2011-07-15 Thread Benedikt Rothe
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* to do? a) JavaScript-header-Contributor shall be mentioned in

Re: IHeaderContributor of invisible Components

2011-07-15 Thread Martin Grigorov
Wicket calls renderHead() for each component added in the AjaxRequestTarget. Then for each call of IHeaderResponse.renderXYZ() Wicket checks whether this is static resource and whether it is already rendered. If it is not then it renders it. If it is non-static (e.g. renderOnDomReady or renderOnLoa

Re: getRelativePathPrefixToWicketHandler & String index out of range

2011-07-15 Thread nojyarg
you asked "what is forwardUrl" - it is the httprequest attribute javax.servlet.forward.servlet_path & forwardUrl is just the variable name that this attribute is assigned to in the ServletWebRequest.getRelativePathPrefixToWicketHandler method. i will try to get 1.5 going. it seems strange to me,

Re: getRelativePathPrefixToWicketHandler & String index out of range

2011-07-15 Thread Martin Grigorov
I know people in the mailing lists said that the combination mod_rewrite + Wicket works for them. Maybe you forgot some mod_rewrite setting, or you added one that breaks the things... Without a quickstart/tutorial I'm unable to help you. On Fri, Jul 15, 2011 at 5:09 PM, nojyarg wrote: > you asked

Re: IHeaderContributor of invisible Components

2011-07-15 Thread Benedikt Rothe
Thank you for your good explanation. I will have to reflect about your explanation first. May be I'll come back :-) Am 15.07.2011 11:12, schrieb Martin Grigorov: Wicket calls renderHead() for each component added in the AjaxRequestTarget. Then for each call of IHeaderResponse.renderXYZ() Wi

Re: IHeaderContributor of invisible Components

2011-07-15 Thread Benedikt Rothe
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 change visibilities ... target.ad

Re: IHeaderContributor of invisible Components

2011-07-15 Thread Martin Grigorov
There is no AjaxRequestTarget#onComponentTagBody() The 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 w

Re: IHeaderContributor of invisible Components

2011-07-15 Thread Benedikt Rothe
> There is no AjaxRequestTarget#onComponentTagBody() Sorry: AjaxRequestTarget#respondHeaderContribution closes the HeaderResponse. I'll try to switch to wicket 1.4.17. Benedikt Am 15.07.2011 17:32, schrieb Martin Grigorov: There is no AjaxRequestTarget#onComponentTagBody() The bug with #cl

Re: IHeaderContributor of invisible Components

2011-07-15 Thread Benedikt Rothe
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 Wicket. On Fri, Jul 15, 2011 at 6:25 PM,

How to combine two wicket maven archetypes

2011-07-15 Thread hariharansrc
I am having a maven project for wicket hibernate integration and wicket jasper-reports integration now i want to combine it to have both features in my application can anyone tell how to do that or any other better solution like create applications without combining the maven projects -- View th

Re: IHeaderContributor of invisible Components

2011-07-15 Thread Martin Grigorov
ticket + quickstart On Fri, Jul 15, 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 b

Controlling head element order with renderHead(IHeaderResponse)

2011-07-15 Thread Scott Reed
I am adding script and css references on the fly using renderHead(IHeaderResponse). However this adds the head elements after the Wicket scripts and that interferes with how my scripts and css work. When I hardcode my elements before the Wicket elements everything works as we need. How can I ad

Re: Controlling head element order with renderHead(IHeaderResponse)

2011-07-15 Thread Martin Grigorov
You'll need to setup custom response decorator. See http://www.wicket-library.com/wicket-examples/resourceaggregation On Fri, Jul 15, 2011 at 9:01 PM, Scott Reed wrote: > I am adding script and css references on the fly using > renderHead(IHeaderResponse). However this adds the head elements afte

Re: Controlling head element order with renderHead(IHeaderResponse)

2011-07-15 Thread Scott Reed
Thanks, Martin. That example is about the Wicket "header". Will that also work somehow for the HTML head? If so, how? Scott On 7/15/2011 2:07 PM, Martin Grigorov wrote: You'll need to setup custom response decorator. See http://www.wicket-library.com/wicket-examples/resourceaggregation On

Re: Controlling head element order with renderHead(IHeaderResponse)

2011-07-15 Thread Scott Reed
Looking at that code some more I realize I have no idea what it's doing and I'm finding the javadocs and comments pretty opaque. Is there anything you can refer me to that will give me the background to understand this? I have both Wicket in Action and the Cookbook. On 7/15/2011 2:07 PM, Marti

Re: IHeaderContributor of invisible Components

2011-07-15 Thread Benedikt Rothe
Martin, I stated, that the "bug with close()" still occurs in Wicket 1.4.17. I had a closer look. This was a mistake. The bug is in Wicket 1.4.14 but *not* in Wicket 1.4.17. Thanks and sorry Benedikt Am 15.07.2011 18:41, schrieb Martin Grigorov: ticket + quickstart On Fri, Jul 15, 2011 at 7:0