Re: Show Stacktrace in ErrorPage

2013-12-09 Thread Andrea Del Bene
You can add a RequestCycle listener that returns your custom page when an exception is thrown: http://blog.wizche.ch/2011/12/wicket-15custom-exception-page.html Hello, my application runs in deployment-mode and if an exception is thrown, wicket shows his internal error page without the

Re: Components can no longer be added

2013-12-09 Thread Sven Meier
Hi, once rendering of components via Ajax has started, you cannot update components. AbstractTree#expand() is a convenience method that updates the expanded branch automatically, hence you get the IllegalStateException. You should just add all expanded nodes to your tree's model. That's

Re: Thanks!

2013-12-09 Thread Martin Grigorov
We are glad you like Wicket! Keep making good software with it and spread the word! Also don't hesitate to say a good or bad word about it at Twitter, just mention #ApacheWicket. Negative feedback is also very welcome! On Fri, Dec 6, 2013 at 4:18 PM, Peter Henderson peter.hender...@starjar.com

Re: Example for presenting pdf in modal window

2013-12-09 Thread MyScheme
hey Ernesto, I could not find a new example for embedding a Pdf in wicket so i tried your code from 2009.But i always get a Null Pointer at this.resourceListener.onResourceRequested(); using your Code. Caused by: java.lang.NullPointerException at

Re: Example for presenting pdf in modal window

2013-12-09 Thread Ernesto Reinaldo Barreiro
Hi, https://github.com/reiern70/antilia-bits/tree/master/content-iframe I think this is the same example ported to Wicket 6 On Mon, Dec 9, 2013 at 1:51 PM, MyScheme katerc...@web.de wrote: hey Ernesto, I could not find a new example for embedding a Pdf in wicket so i tried your code

Re: Example for presenting pdf in modal window

2013-12-09 Thread Ernesto Reinaldo Barreiro
According to POM wicket.version6.6.0/wicket.version I guess it will work as well for latest wicket. On Mon, Dec 9, 2013 at 4:50 PM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Hi, https://github.com/reiern70/antilia-bits/tree/master/content-iframe I think this is the same

Re: Show Stacktrace in ErrorPage

2013-12-09 Thread Gabriel Landon
In your application init() method add : getExceptionSettings().setUnexpectedExceptionDisplay(IExceptionSettings.SHOW_EXCEPTION_PAGE); Regards, Gabriel. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Show-Stacktrace-in-ErrorPage-tp4662842p4662863.html Sent from

response headers in Wicket 6

2013-12-09 Thread Entropy
Hi, I'm converting one of our apps from 1.4.7 to 6.12. the old code extended WebResource. I changed it to extend ByteArrayResource. I changed setheaders to setResponseHeaders. But the code inside, I am not sure how to change to Wicket 6 as the parameters are very different. @Override

Re: response headers in Wicket 6

2013-12-09 Thread Entropy
Second question (the first is still open), in 1.4.7 the page object supported a removePersistedFormData() method and the TextField has a method setPersistent() on it. Both appear gone, and I don't see anything in the6 or 1.5 conversion guides about them. What is the replacement? -- View this

Re: response headers in Wicket 6

2013-12-09 Thread Francois Meillet
For the last two lines : data.getHeaders().addHeader(key, value); or ((WebResponse) attributes.getResponse()).addHeader(key, value); for response.setAttachmentHeader(defaultFileName); (from WebResponse.java) setHeader(Content-Disposition, attachment + ((!Strings.isEmpty(filename)) ? (;