Found it :) A silly bug... I squashed it and committed a fix and released a new snapshot version. Can you guys verify it is working now?
wiquery-core 1.5-SNAPSHOT Hielke -----Original Message----- From: Hielke Hoeve [mailto:[email protected]] Sent: woensdag 21 december 2011 8:06 To: [email protected] Subject: RE: Problem with wicket 1.5.3 and wiquery 1.5.3 Thats something that i would like to know once you stumble upon it. Adding dummy behaviors to fix things should not be necessary. I will try and fix the problem. Hielke -----Original Message----- From: Chris Hawkins [mailto:[email protected]] Sent: dinsdag 20 december 2011 19:12 To: [email protected] Subject: Re: Problem with wicket 1.5.3 and wiquery 1.5.3 This sounds very similar to a problem that I had with WiQuery. I found that if a page did not have any WiQuery components or behaviors on it I got errors with the Wicket ajax javascript due to the WiQueryDecoratingResponseHeader. My solution was to force WiQuery to load jQuery by adding an empty WiQuery behavior to my base page. /** * This patch is intended to load jquery on every page because the WiQueryDecoratingHeaderResponse * is rewriting every JS call regardless of if there is WiQuery code on the page * @author chrish * */ public class WiQueryJsPatch extends WiQueryAbstractBehavior { private static final long serialVersionUID = 1L; @Override public JsStatement statement() { return null; } } On Dec 20, 2011, at 9:05 AM, dennisB wrote: > hi Hielke > > thanks for the fast reply. > > I create a simple example to demonstrate my problem: > > this is the scenario: > > In my application i have wicket 1.5.3 and i am using AjaxLazyLoadPanel > - > > add(new AjaxLazyLoadPanel("testPanel") { > @Override > public Component getLazyLoadComponent(String markupId) { > return new DataPanel(markupId);// simple panel which > includes only one Label > } > }); > > and it works fine... > > when i add wiquery 1.5.3 you have this code > > application.setHeaderResponseDecorator(new IHeaderResponseDecorator() > { > private static final long serialVersionUID = 1L; > > public IHeaderResponse decorate(IHeaderResponse > response) > { > return new > WiQueryDecoratingHeaderResponse(response); > } > }); > in the WiQueryCoreInitializer class > > now when i run this test it doesn't work correctly, and all > AjaxLazyLoadPanels in my application are not working. in ours real > application also other ajax events doesn't work correctly because of > wiquery . > > Thanks. > > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/Problem-with-wicket-1-5-3-a > nd-wiquery-1-5-3-tp4217860p4218578.html > Sent from the Users forum mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
