Re: Upgrade to 6.12.0+ with AjaxFormComponentUpdatingBehavior reloads the page

2014-07-31 Thread Sven Meier
I have no idea what that might be good for :(. Sven On 07/30/2014 11:29 PM, Behrooz Nobakht wrote: Thanks for the hint. It seems that we had a custom MountedMapper with the following specifics: @Override protected void encodePageComponentInfo(Url url, PageComponentInfo

Form.isRootForm() question

2014-07-31 Thread Urbani, Edmund
Hello all, after running into problems submitting an AJAX form in a modal window with Safari or Chrome, I found this solution: I simply override isRootForm() and let it return false. I do have similar cases like this to fix, and I was wondering what problems could arise from this change, or

Re: Form.isRootForm() question

2014-07-31 Thread Ernesto Reinaldo Barreiro
Hi, From Java doc of ModalWindow - * If you want to use form in modal window component make sure that you put the modal window itself * in another form (nesting forms is legal in Wicket) and that the form on modal window is submitted *

Re: Form.isRootForm() question

2014-07-31 Thread Urbani, Edmund
And I see that this has not changed in Wicket 6 (or even 7), so we'll definitely do it that way. Thanks! On 07/31/2014 11:08 AM, Ernesto Reinaldo Barreiro wrote: Hi, From Java doc of ModalWindow - * If you want to use form in modal window

Re: Wicketstuff restannotations example throws IllegalStateException: STREAMED with https

2014-07-31 Thread Andrea Del Bene
Hi, how did you started the example application? I want to use the wicketstuff-restannotations library to implement a restful web service. It seem very handy and I was able to get the example code working fine. To make sure I understood how everything was working and how to access from another

Re: Wicketstuff restannotations example throws IllegalStateException: STREAMED with https

2014-07-31 Thread Bruce Lombardi
I just stated it by running Start.java as a java application to start Jetty from Eclipse. Bruce Sent from my iPad On Jul 31, 2014, at 6:09 AM, Andrea Del Bene an.delb...@gmail.com wrote: Hi, how did you started the example application? I want to use the wicketstuff-restannotations

Re: onfocus event getting called recursively in Apache wicket

2014-07-31 Thread suvojit168
Hi Sven, Can you please make me understand why should I use JS here over wicket. I have read somewhere lately that onfocus in wicket has some fault (Perhaps in version 1.4. I am not sure if it has been fixed in 1.6 or not. BTW I cant find the source now :( ). Are you indicating the same fault in

Re: Wicketstuff restannotations example throws IllegalStateException: STREAMED with https

2014-07-31 Thread Andrea Del Bene
I started the example app with Maven and enabling the SSL port. I've tested it with Firefox, although I had to disable the flag security.mixed_content.block_active_content to load the JS libraries. I had no problem with the REST operations (GET, POST, DELETE...), everything worked fine usin

Re: Wicketstuff restannotations example throws IllegalStateException: STREAMED with https

2014-07-31 Thread Bruce Lombardi
Thanks, I'll try it with another approach. I'll let you know. Bruce Sent from my iPad On Jul 31, 2014, at 8:05 AM, Andrea Del Bene an.delb...@gmail.com wrote: I started the example app with Maven and enabling the SSL port. I've tested it with Firefox, although I had to disable the flag

Excel spreadsheet and cache duration

2014-07-31 Thread Entropy
We have an ajax button that submits a form that, if the parameters are right, will download an excel file. The developers who wrote the page used an ajax behavior and then write the request out as javascript like so: target.appendJavaScript((CharSequence) (window.location.href=' +

Re: Excel spreadsheet and cache duration

2014-07-31 Thread Ernesto Reinaldo Barreiro
Append some random noise to the download URL. See NonCaching image as example. On Thu, Jul 31, 2014 at 3:24 PM, Entropy blmulholl...@gmail.com wrote: We have an ajax button that submits a form that, if the parameters are right, will download an excel file. The developers who wrote the page

Re: Excel spreadsheet and cache duration

2014-07-31 Thread Martin Grigorov
On Jul 31, 2014 4:25 PM, Entropy blmulholl...@gmail.com wrote: We have an ajax button that submits a form that, if the parameters are right, will download an excel file. The developers who wrote the page used an ajax behavior and then write the request out as javascript like so:

Re: Excel spreadsheet and cache duration

2014-07-31 Thread Entropy
That workaround had occurred to us. We thought there might be a better way, but if that is the recommended solution, we feel better about it. Just didn't want to overlook a silver bullet. While it isn't the exact same thing, I am also having an exception maybe someone could shed light on in the

Re: Upgrade to 6.12.0+ with AjaxFormComponentUpdatingBehavior reloads the page

2014-07-31 Thread Martin Grigorov
On Jul 31, 2014 12:30 AM, Behrooz Nobakht nob...@gmail.com wrote: Thanks for the hint. It seems that we had a custom MountedMapper with the following specifics: @Override protected void encodePageComponentInfo(Url url, PageComponentInfo info) { // do nothing so

Re: Excel spreadsheet and cache duration

2014-07-31 Thread Urbani, Edmund
My guess is that whatever browser you are using is trying to PROPFIND for more information about the file. And yes, that method is commonly used by WebDAV capable servers and will usually result in HTTP status code 405 otherwise. That would make it a WAS7 / browser issue and not a Wicket

Re: Lightbox2 Integration

2014-07-31 Thread Nigel W
These fixes seem to be exactly what I need. How do I get hold of them? Thanks, Nigel On Fri, Jul 18, 2014 at 11:24 AM, Martin Grigorov mgrigo...@apache.org wrote: Thanks a lot! Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Fri, Jul 18, 2014 at 6:23

RE: Wicketstuff restannotations example throws IllegalStateException: STREAMED with https

2014-07-31 Thread Bruce Lombardi
Andrea, I have the SSL working fine when I call it from a Java program using HttpsURLConnection. So it was something with curl. I wonder if you could suggest how I could pass a username and password along with the json string and authenticate the request. Thanks, Bruce -Original

Re: Lightbox2 Integration

2014-07-31 Thread Martin Grigorov
They will be released with WicketStuff 6.17.0 soon after Wicket 6.17.0 is released. On Jul 31, 2014 11:39 PM, Nigel W weymon...@gmail.com wrote: These fixes seem to be exactly what I need. How do I get hold of them? Thanks, Nigel On Fri, Jul 18, 2014 at 11:24 AM, Martin Grigorov