Re: Reg : Multiple versions of jQuery's are loaded on same page causing conflict

2022-05-31 Thread sundar saba
Hi Martin,

Thanks, I will try as suggested.


Re: One button in a form shall show result in new tab

2022-05-31 Thread Joachim Schrod


Hi,

Martin Grigorov writes:
> 
> On Tue, May 31, 2022 at 6:50 AM Joachim Schrod  wrote:
> >
> > So I need to have the
> > following functionality for this button:
> >  -- Before the submit, a target attribute "_blank" get's added to the
> > form.
> >  -- The form is submittet, by this button. (I.e., its onSubmit() must
> > be called.)
> >  -- Afterwards, the target attribute is deleted from the form.
> >
> > I'm looking for best practice to achieve that functionality with the
> > available Wicket API. I.e., I want to prepend and append Javascript to
> > the Wicket-supplied submit functionality of a button or ajax submit
> > action. I have looked at Javadoc and source code of the following
> > classes (and their superclasses) and didn't found any hook/method
> > where I can achieve my desired result:
> >  -- AjaxRequestAttributes: No methods to prepend/append JS code.
> 
> Actually this is the one you need ^^
> atrts.getAjaxCallListeners().add(new
> AjaxCallListener().onBefore("...").onComplete("..."));
> 
> see also onBeforeSend() and onAfter()

Thanks a lot for this tip, it worked like a charm. I learned something
new about Wicket; that's always a good thing. :-)

When I did read "Listener" in the classe name, I associated it with
some callback or event hook on the server side -- seems, that I need
to pay more attention to the AJAX mechanisms, how they work.

Cheers,
Joachim

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Joachim Schrod, Roedermark, Germany
Email: jsch...@acm.org

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Written in Wicket, OneDev UI is 10x~30x faster than GitLab

2022-05-31 Thread OneDev
Dear wicket users, 

Just want to share my recent performance comparison of OneDev, which is written 
in Wicket, with GitLab:

https://robinshen.medium.com/performance-compasion-of-onedev-and-gitlab-c11fc27b25be

Robin
-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Reg : Multiple versions of jQuery's are loaded on same page causing conflict

2022-05-31 Thread Martin Grigorov
On Tue, May 31, 2022 at 1:03 PM sundar saba 
wrote:

> Hi all,
>
>  Based on your solution my actual problem is solved. May I  know from
> where another version of jQuery v2.2.4 is loaded? And I know that jQuery
> v3.6.0 is loaded from the "JavaScriptLibrarySettings" class by default.
>

I'd bet it comes from here:
https://github.com/adessoSE/wicked-charts/blob/master/wicket/wicked-charts-wicket8/src/main/java/de/adesso/wickedcharts/wicket8/JavaScriptResourceRegistry.java#L81
You can set v3 with
https://github.com/adessoSE/wicked-charts/blob/d0bec5cda557112adaad8ad528b893d84bc06415/wicket/wicked-charts-wicket8/src/main/java/de/adesso/wickedcharts/wicket8/JavaScriptResourceRegistry.java#L236



>
>
>


Re: Reg : Multiple versions of jQuery's are loaded on same page causing conflict

2022-05-31 Thread Maxim Solodovnik
Can you share quick-start project?

from mobile (sorry for typos ;)


On Tue, May 31, 2022, 17:03 sundar saba  wrote:

> Hi all,
>
>  Based on your solution my actual problem is solved. May I  know from
> where another version of jQuery v2.2.4 is loaded? And I know that jQuery
> v3.6.0 is loaded from the "JavaScriptLibrarySettings" class by default.
>


Re: Reg : Multiple versions of jQuery's are loaded on same page causing conflict

2022-05-31 Thread sundar saba
Hi all,

 Based on your solution my actual problem is solved. May I  know from
where another version of jQuery v2.2.4 is loaded? And I know that jQuery
v3.6.0 is loaded from the "JavaScriptLibrarySettings" class by default.