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-and-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]