Re: How to include resources from project (jar)

2016-04-14 Thread Martin Grigorov
Hi, CssResoourceReference uses the passed Class as a scope, i.e. it is something like TheClass.class.getResourceAsStream("theNameOfTheResource.css"). If you put your .css file at src/main/resources/ then at runtime it is at the root of the classpath. I.e. to load it you need to use

Re: HTML and Binding generator for Wicket

2016-04-14 Thread andrea del bene
Nice work! I remember I tried to do something similar in an old project but the final result was much more rudimental. Thank you! On 12/04/2016 15:28, subes wrote: Hi there, I have a framework to announce that was built on top of Wicket and Wicket-Bootstrap. It applies the Naked Objects

Re: Evicting the page store to force Wicket to create a new instance of a page after using the back-button

2016-04-14 Thread Thorsten Schöning
Guten Tag Joachim Rohde, am Donnerstag, 14. April 2016 um 15:35 schrieben Sie: > 1) Checking in every isVisible() if the user is null. This *does* > work but I have quite a lot of links and I would like > to go with this solution only if I cannot find any other. [...] > Long story short: is there

Re: Evicting the page store to force Wicket to create a new instance of a page after using the back-button

2016-04-14 Thread subes
Or you are just missing a call to "Session.get().invalidate()" despite calling "((ServletWebRequest) RequestCycle.get().getRequest( )).getContainerRequest().getSession().invalidate();" on logout. 2016-04-14 15:59 GMT+02:00 subes : > Hi, > > I had a similar problem while

Re: Evicting the page store to force Wicket to create a new instance of a page after using the back-button

2016-04-14 Thread subes
Hi, I had a similar problem while developing the model aware page cache in the NoWicket framework. I used a page factory wrapper to control when a new page or an old page is required.

Evicting the page store to force Wicket to create a new instance of a page after using the back-button

2016-04-14 Thread Joachim Rohde
Hello, short version of my question: how do I evict the page store to force Wicket to create a new instance after using the back-button? Longer version: A user is redirected after login to my main page. On my main page I have several links in onInitialize() which overwrites isVisible checking

How to include resources from project (jar)

2016-04-14 Thread Lon Varscsak
Hey guys, I’m new here and I’m trying to get a URL for a resource (css) located in /src/main/resources/. I can across CssResourceReference, but if I use “resources/whatever.css” or “/resources/whatever.css” the file isn’t found. If I use "../../../../whatever.css” it works. I’m assuming