Re: Handling page refresh or redirect when the server reboots

2014-10-21 Thread Martin Grigorov
Hi, HttpXmlRequest is asynchronous by default. It is not finished by the time you return from your function. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Tue, Oct 21, 2014 at 8:37 AM, msalman mohammad_sal...@yahoo.com wrote: Sebastian, thanks for your

Re: Could not clear select2Choice component model value.

2014-10-21 Thread Martin Grigorov
Hi Maxim, Please prepare a quickstart at GitHub and I'll take a look. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Fri, Oct 17, 2014 at 5:42 PM, Maxim Solodovnik solomax...@gmail.com wrote: Martin, I have forked select2, unfortunately I'm still not sure

Re: ModalWindow - full screen

2014-10-21 Thread Marieke Vandamme
Hi, We've tried your proposal, but it doesn't work, because the setCssClassName doesn't apply to the div that needs to be resized. In code underneath you can see the structure. The class should be place on the div that now has wicket-modal, but this is not possible, or is it? - cannot depend on

Re: ModalWindow - full screen

2014-10-21 Thread Martin Grigorov
Hi, I see two ways to do it then: 1) ModalWindow#setMarkupId(myFullscreenId); $(#myFullscreenId) 2) $(.OWN_CLASS_NAME).closest(div) both gives you a reference to the div.modal-window. From there on you can manipulate it to make it fullscreen. Martin Grigorov Wicket Training and Consulting

Re: Could not clear select2Choice component model value.

2014-10-21 Thread Maxim Solodovnik
Here it is: https://github.com/solomax/WicketSelect2Clear somehow in this example nothing works as expected :( I tried 2 different approaches, correct new value arrives to the page (according to wicket debug) but select2 is not being updated :( On 21 October 2014 13:23, Martin Grigorov

Lock timeout per page class

2014-10-21 Thread Guillaume Smet
Hi, We have a few pages in our application which might take a long time to generate. This is definitely not the usual case but there are a few of them. Thus we were forced to define a high lockTimeout to be sure these pages can be served. The fact is that we would really like to have a far

Re: Lock timeout per page class

2014-10-21 Thread Martin Grigorov
Hi Guillaume, You can use org.apache.wicket.request.cycle.PageRequestHandlerTracker#getFirstHandler() to check what is the requested page in your own org.apache.wicket.settings.def.RequestCycleSettings#getTimeout Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On

Re: Lock timeout per page class

2014-10-21 Thread Guillaume Smet
Thanks Martin! We will give it a try and post what we got. -- Guillaume On Tue, Oct 21, 2014 at 1:19 PM, Martin Grigorov mgrigo...@apache.org wrote: Hi Guillaume, You can use org.apache.wicket.request.cycle.PageRequestHandlerTracker#getFirstHandler() to check what is the requested page

org.apache.wicket.util.upload.FileUploadBase#fileSizeMax

2014-10-21 Thread Roman Grigoriadi
Hi Wicket users, I am trying to check size of a single file in a multi file upload POST request. It seems there is a parameter for this in FileUploadBase class called fileSizeMax which is used for checking length of an input stream for a file during parsing request and writing files to disk temp.

Re: org.apache.wicket.util.upload.FileUploadBase#fileSizeMax

2014-10-21 Thread Martin Grigorov
Hi, It is not clear to me what you want to accomplish. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Tue, Oct 21, 2014 at 4:39 PM, Roman Grigoriadi roman.grigori...@gmail.com wrote: Hi Wicket users, I am trying to check size of a single file in a multi

FeedbackPanel / just showing one error message / missing messages

2014-10-21 Thread Patrick Davids
Hi all, I'm struggling around with a feedback panel. What I would like to implement is a single global feedback panel in the top hierarchy of my page inheritence. Its a sort of fallback-panel. If no other feedback panel catches the messages, it should display them, so its a FencedFeedback. A

DataView: Sission ID generated for big pages and not for small one?!

2014-10-21 Thread Fuad Efendi
Hello, I have a scenario, just to be quick (developing sample application problem isolation will take some more time): I use custom DataView with custom DataProvider, custom pagination (based on existing one, but with BookmarkablePageLink) Whenever I use itemsPerPage=20 or smaller

RE: DataView: Sission ID generated for big pages and not for small one?!

2014-10-21 Thread Fuad Efendi
Please ignore previous message; I found the bug in my code: in the paginated list, item No.21 contained link to internal image (unexpectedly non-bookmarkable): .add(new Image(linkToImage, new ModelString(no_image.jpg))); And this item created Session for everything. Thanks. From: Fuad

Re: Lock timeout per page class

2014-10-21 Thread Guillaume Smet
Hi Martin, On Tue, Oct 21, 2014 at 1:19 PM, Martin Grigorov mgrigo...@apache.org wrote: You can use org.apache.wicket.request.cycle.PageRequestHandlerTracker#getFirstHandler() to check what is the requested page in your own org.apache.wicket.settings.def.RequestCycleSettings#getTimeout

Re: Could not clear select2Choice component model value.

2014-10-21 Thread Maxim Solodovnik
It seems like script generated in renderInitializationScript should be added to AjaxRequestTarget on every Ajax update ... On 21 October 2014 17:09, Maxim Solodovnik solomax...@gmail.com wrote: Here it is: https://github.com/solomax/WicketSelect2Clear somehow in this example nothing works as

Re: org.apache.wicket.util.upload.FileUploadBase#fileSizeMax

2014-10-21 Thread Roman Grigoriadi
I am trying to check size of each of uploaded files, when there is more than one file in one POST request. While there may be other way to do so, it looks like fileSizeMax in FileUploadBase, does just the right thing, aborting processing multipart POST by throwing FileUploadException which