Create Request Manually

2014-07-31 Thread hoosssein
I use Hibernate in wicket and i create a Hibernate Session at the beginning of each request. now i want to create a TimerTask and work with database but there is no open session in this thread and if I open session manually, it doesn't work because my entities work with the session that give form R

Re: Wicket StackOverflowError in Serializing or Seserializing Session

2014-07-31 Thread hoosssein
thanks a a lot. I found the object that did not implement Serializable. On Mon, Jul 28, 2014 at 1:56 PM, Martin Grigorov-4 [via Apache Wicket] < ml-node+s1842946n4666765...@n4.nabble.com> wrote: > Hi, > > Wicket will use CheckingObjectOutputStream in DEV mode only if the normal > serialization h

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" 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 > wrote: > > > Th

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 Messag

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 wrote: > Thanks a lot! > > Martin Grigorov > Wicket Training and Consulting > https://twitter.com/mtgrigorov > > > On Fri, Jul 18, 2014 at 6:23 PM, Jered Mye

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 proble

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" 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 that

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: Excel spreadsheet and cache duration

2014-07-31 Thread Martin Grigorov
On Jul 31, 2014 4:25 PM, "Entropy" 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: > > target.appendJavaScript((C

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 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 > beh

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='" + getCallbackUr

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 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 > security.mixed_c

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 SS

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 w

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 wrote: > > Hi, > > how did you started the example application? >> I want to use the wicketstuff-restannotations library to imple

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: 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 c

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 * befor

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 wh