Re: Blogging platform written in Wicket?

2013-11-05 Thread Ondrej Zizka
Hello, On 4.11.2013 17:02, Decebal Suiu wrote: Hi I decided to open this platform under Apache License. It will be available on github. Nice. I've already converted application to wicket 6 and bootstrap 3. In fact, my intention was to create a modular debate platform (using plugins), somethin

mount images

2013-11-05 Thread Ladislav DANKO
Hi folks! I'm using wicket 1.5.10, tomcat 7 and Java 6. In my code i do: public final class Images{ public static void mountGlobalStaticImages(){ //loading images from database works perfect List imagesParams = GlobalTemplatesDAO.getGlobalImages(); for(Object record : imagesParams){

Re: mount images

2013-11-05 Thread Martin Grigorov
Hi, Check http://wicketinaction.com/2011/07/wicket-1-5-mounting-resources/ On Tue, Nov 5, 2013 at 10:49 AM, Ladislav DANKO wrote: > Hi folks! > > I'm using wicket 1.5.10, tomcat 7 and Java 6. In my code i do: > public final class Images{ > public static void mountGlobalStaticImages(){ >

Re: Cannot get to desired error page on handling RuntimeException in AbstractRequestCycleListener#onException()

2013-11-05 Thread Martin Grigorov
Hi, On Mon, Nov 4, 2013 at 4:00 PM, dgn wrote: > I'm using Wicket 6. > > As you can see I'm already using new PageProvider(new CustomErrorPage()) > Sven suggested you to try with the other constructor of PageProvider - the one that access a Class. > when I get the runtime exception I'm targe

Re: mount images

2013-11-05 Thread Ladislav DANKO
Martin, thank, I have read it (have the book), but don't find any info why this: AppStart.get().getSharedResources().add(imagePath, imageData); from my code below not working. Guess that example is for dynamicly loaded images but my example is for static images in database (website logo etc) not

Re: mount images

2013-11-05 Thread Martin Grigorov
On Tue, Nov 5, 2013 at 11:19 AM, Ladislav DANKO wrote: > Martin, thank, I have read it (have the book), but don't find any info why > this: > I am not sure we talk about the same thing. The blog article is not related to any book. And additionally it shows how to load images from DB dynamically.

Re: mount images

2013-11-05 Thread Ladislav DANKO
I don't need to mount images "dynamicaly" (at the moment of the user click). For example I have image logo.png and it's loaded just once when app start and mounted at some url path. This path is still same, not needed to be loaded dynamicaly "when user click". For this purpose this 'mountResourc

Re: mount images

2013-11-05 Thread Martin Grigorov
On Tue, Nov 5, 2013 at 11:42 AM, Ladislav DANKO wrote: > I don't need to mount images "dynamicaly" (at the moment of the user > click). For example > I have image logo.png and it's loaded just once when app start and mounted > at some url path. This path > is still same, not needed to be loaded d

Re: mount images

2013-11-05 Thread Ladislav DANKO
With size isn't problem, it's around 20 images with total size max 1,5MB. For me this is point that somethink is going wrong with mounting: 127.0.0.1 - - [04/Nov/2013:23:52:09 +0100] "GET /images/images/headerbackground.png HTTP/1.1" 302 - 127.0.0.1 - - [04/Nov/2013:23:52:09 +0100] "GET /images

Re: mount images

2013-11-05 Thread Ladislav DANKO
One more info - in tomact log there is: Calculating context relative path from: context path '', filterPrefix '', uri '/images/images/headerbackground.png' One compatible mapper found for URL '/images/images/headerbackground.png?53' -> 'Mapper: org.apache.wicket.request.mapper.BufferedResponseMa

Re: mount images

2013-11-05 Thread Martin Grigorov
On Tue, Nov 5, 2013 at 1:09 PM, Ladislav DANKO wrote: > One more info - in tomact log there is: > Calculating context relative path from: context path '', filterPrefix '', > uri '/images/images/headerbackground.png' > One compatible mapper found for URL '/images/images/headerbackground.png?53' >

Re: mount images

2013-11-05 Thread Ladislav DANKO
Sorry, it's just macro in my text editor which replace one uccurence with two when I copy-paste from log. One is correct and in log is just one. On 5.11.2013 12:13, Martin Grigorov wrote: On Tue, Nov 5, 2013 at 1:09 PM, Ladislav DANKO wrote: One more info - in tomact log there is: Calculat

Re: (Probably) A Bug in AjaxLink and list

2013-11-05 Thread lambdad...@gmail.com
Dear Group, I haven't received any reply yet. Wasn't I clear enough in my query? cheers, L On Mon, Nov 4, 2013 at 1:00 PM, lambdad...@gmail.com wrote: > Hi, > > I am showing a list on wicket page. Each item (is a div) in the list, it > has few labels and two AjaxLinks - show and hide, which sh

Re: (Probably) A Bug in AjaxLink and list

2013-11-05 Thread Martin Grigorov
Hi, The first mail didn't make it to the list. At least I haven't seen it. Show us your code please. On Tue, Nov 5, 2013 at 10:58 AM, lambdad...@gmail.com wrote: > Dear Group, > > I haven't received any reply yet. Wasn't I clear enough in my query? > > cheers, > L > > > On Mon, Nov 4, 2013 at

Back button not calling onConfigure()

2013-11-05 Thread Artur Kronenberg
Hi, I have a rather odd problem with a page of mine. The design is that the model on the page gets a flag set that indicates that the send button has been clicked (so the user doesn't send multiple times by clicking it vigurously over and over again). The problem now is that on browser back, t

Re: Back button not calling onConfigure()

2013-11-05 Thread Martin Grigorov
Hi, It looks like the page is loaded from the browser/proxy cache. Can you verify that the web container is hit ? E.g. check its access logs On Tue, Nov 5, 2013 at 4:05 PM, Artur Kronenberg < artur.kronenb...@openmarket.com> wrote: > Hi, > > I have a rather odd problem with a page of mine. The

Re: getPage(pageReference) == null since Wicket 6.10.0

2013-11-05 Thread Dieter Tremel
Am 12.10.2013 12:19, schrieb Dieter Tremel: > Sometimes I have the impression that a Glassfish and wicket are not a > couple in great love. Seems that Glassfish and Oracle are not in great love either, since commercial Glassfish is dead, and this is no good future for the open source edition: ht

Re: Cannot get to desired error page on handling RuntimeException in AbstractRequestCycleListener#onException()

2013-11-05 Thread dgn
Ah, now I read more closely. My apologies... Yes, using new PageProvider(new CustomErrorPage.class) results in the desired behavior where AbstractRequestCycleListener#onException() is only called once. I'm curious why using an explicit constructor of a class as a parameter of "new PageProvider()"

Re: Cannot get to desired error page on handling RuntimeException in AbstractRequestCycleListener#onException()

2013-11-05 Thread Sven Meier
I'm curious why using an explicit constructor of a class as a parameter of "new PageProvider()" causes multiple calls to onException() We're curious too, please create a quickstart exposing this behavior. And please check with the latest Wicket 6.x version. Sven On 11/05/2013 07:27 PM, dgn

Re: Cannot get to desired error page on handling RuntimeException in AbstractRequestCycleListener#onException()

2013-11-05 Thread Martin Grigorov
On Tue, Nov 5, 2013 at 8:27 PM, dgn wrote: > Ah, now I read more closely. My apologies... > > Yes, using new PageProvider(new CustomErrorPage.class) results in the > desired behavior where AbstractRequestCycleListener#onException() is only > called once. > > I'm curious why using an explicit cons

"Document mode restart from > IE9 Standards to Quirks" - any ideas?

2013-11-05 Thread Matt Steele
Hi folks - I'm running into a really strange issue on IE9 where an ajax request from Wicket triggers the browser to render Quirks Mode, which fails the Ajax request, and renders the page unusable. The error we see in the F12 console is: "*HTML1113*: *Document mode restart from IE9 Standards to Qui

Re: Cannot get to desired error page on handling RuntimeException in AbstractRequestCycleListener#onException()

2013-11-05 Thread dgn
Here's what I've come up with. My error page, CustomErrorPage.java, has 3 constructors: 1) no-arg 2) CustomErrorPage(PageParameters pp) 3) CustomErrorPage(Exception e) Once I added Session.get().bind() immediately before returning the custom error page instance I get the desired page dispatching.

Re: Cannot get to desired error page on handling RuntimeException in AbstractRequestCycleListener#onException()

2013-11-05 Thread Martin Grigorov
On Tue, Nov 5, 2013 at 10:46 PM, dgn wrote: > Here's what I've come up with. > > My error page, CustomErrorPage.java, has 3 constructors: > 1) no-arg > 2) CustomErrorPage(PageParameters pp) > 3) CustomErrorPage(Exception e) > > Once I added Session.get().bind() immediately before returning the cu

Re: "Document mode restart from > IE9 Standards to Quirks" - any ideas?

2013-11-05 Thread Martin Grigorov
Hi, Check the network tab in IE9 Dev Tools. I had success before finding the reason for such switch in modes in one of the static resources. I don't remember the concrete reason :-/ On Tue, Nov 5, 2013 at 11:53 PM, Matt Steele wrote: > Hi folks - I'm running into a really strange issue on IE9