My bad, sorry

On 30 October 2014 13:15, Martin Grigorov <[email protected]> wrote:

> @Maxim,
>
> It seems you didn't read the message till the end. It says that it uses
> JQuery UI Dialog.
>
> @Prasad: Wicket filters out any JS or CSS resource at the client side if it
> is already loaded. I.e. The server may contribute <script
> src=".../jquery.js"> but while processing the Ajax response
> (<ajax-response> XML element) wicket-ajax-jquery.js will take the value of
> the src attribute and check whether there is another <script> element in
> the document with the same url. If there is then the contribution is
> ignored.
> Please check whether the urls are same.
>
> Martin Grigorov
> Wicket Training and Consulting
> https://twitter.com/mtgrigorov
>
> On Thu, Oct 30, 2014 at 5:09 AM, Maxim Solodovnik <[email protected]>
> wrote:
>
> > I believe this is because you are using ModalWindow with page, Maybe you
> > better use it with panel?
> > Or use dialog from wicket-jqueryui:
> > http://www.7thweb.net/wicket-jquery-ui/dialog/MessageDialogPage ?
> >
> > On 30 October 2014 06:08, prasad.bhandagi <[email protected]>
> > wrote:
> >
> > > I have a Wicket v6 page with couple of AjaxButtons. When the AjaxButton
> > is
> > > clicked, am opening a modal window using jQuery ui Dialog passing the
> URL
> > > of
> > > a second page. The second wicket page also has a AjaxButton. When
> wicket
> > > fetches the second page using Ajax to be rendered in the modal window,
> it
> > > loads jQuery js again.
> > >
> > > I think this causes issues and it gives me error subsequently
> > > "jQuery(...).dialog is not a function".
> > >
> > > Is there a way I can tell Wicket to NOT to load the jQuery js when
> > > rendering
> > > the page in the modal window? Wicket Ajax components automatically add
> > > jQuery reference always. Am looking for a way to remove the jQuery
> > > reference
> > > before the page is rendered.
> > >
> > > Note: I am not using the Wicket extension for Modal Window. Am using
> > jQuery
> > > UI Dialog directly to open modal window. But I think the problem of
> > jQuery
> > > getting loaded again will occur when Modal Window used also.
> > >
> > > --
> > > View this message in context:
> > >
> >
> http://apache-wicket.1842946.n4.nabble.com/Wicket-jQuery-js-loaded-twice-when-modal-window-opened-tp4668156.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]
> > >
> > >
> >
> >
> > --
> > WBR
> > Maxim aka solomax
> >
>



-- 
WBR
Maxim aka solomax

Reply via email to