Re: Link - open modal on left click, new tab/window on right-click/context

2016-08-05 Thread Martin Grigorov
Hi, Please show us what you have done so we can tell you what is still missing. Google for "JavaScript preventDefault" and "JavaScript left middle right click" to find out more about how those work. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Wed, Jul 27,

Re: AbstractPageableView calling IDataProvider.size() when it maybe shouldn't

2016-08-05 Thread Martin Grigorov
Hi, On Wed, Jul 27, 2016 at 11:24 PM, Janos Cserep wrote: > Hi, > > I noticed a possible inefficiency in AbstractPageableView's > getItemModels() method: > > /** > * This method retrieves the subset of models for items in the current > page and allows > *

Re: POST parameters are empty in Apache wicket

2016-08-05 Thread Martin Grigorov
Hi, This has been fixed in 6.x/7.x series. 1.5.x is not supported anymore. It receives only security related fixes. We recommend you to upgrade to a more recent version! Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Fri, Aug 5, 2016 at 4:53 PM, senlog80

POST parameters are empty in Apache wicket

2016-08-05 Thread senlog80
Hello, My Wicket Application code is deployed as a war file in JBOSS application server. I am raising a POST request from vbscript. But, always My request post parameters are empty in my HomePage.java. If I use the GET request the I can get the query string values from page parameters. Apache

CVE-2016-3092 & CVE-2013-2186 Apache Commons Fileupload vulnerabilities

2016-08-05 Thread Martin Grigorov
Severity: Important Vendor: The Apache Software Foundation Versions Affected: Apache Wicket 1.5.x, 6.x and 7.x Descriptions: CVE-2016-3092: A malicious client can send file upload requests that cause the HTTP server using the Apache Commons Fileupload library to become unresponsive, preventing

Re: Confirmation on drag

2016-08-05 Thread Sebastien
I agree it's ugly, it is just for the PoC. Nothing prevent using a jquery-ui dialog intead, but it should be in js directly, not trough wicket because it will be too late in the cycle (whenever #onDrop should call dialog#open) So, something like this: return new

Re: Confirmation on drag

2016-08-05 Thread Maxim Solodovnik
Browser native confirm is blocking and ugly :( Is there any option to use jquery-ui confirm? WBR, Maxim (from mobile, sorry for the typos) On Aug 5, 2016 20:09, "Sebastien" wrote: > Hi Maxim, > > Seems its a common question in the jquery-ui world... > The best I can propose

Re: Confirmation on drag

2016-08-05 Thread Sebastien
Hi Maxim, Seems its a common question in the jquery-ui world... The best I can propose you for now is something like the following code. It does *not* use revert, but use a clone helper. This example is also using a browser-native "confirm" dialog... Inspired from http://jsfiddle.net/WbHAr/1/

Confirmation on drag

2016-08-05 Thread Maxim Solodovnik
Hello Sebastian, Is it possible to show confirmation dialog on drop (even pure JS or Wicket) and "revert" file if user choose cancel? -- WBR Maxim aka solomax