Re: Weird ClassNotFoundException (wicket7-M2)

2014-08-28 Thread Sebastien
Maxim, In case there is Droppable in wicket-jquey-ui. I don't know if it achieve the same need, you can have a look at the demo website... Best regards, Sebastien On Aug 28, 2014 5:12 AM, Maxim Solodovnik solomax...@gmail.com wrote: done, since I have commit access to wicketstuff I have

Re: identify if request is from AbstractAjaxTimerBehavior in /ajax/call/beforesend

2014-08-28 Thread Martin Grigorov
Hi, One way is to provide beforeSend hook for this specific ajax behavior: attributes.getAjaxCallListeners().add(new AjaxCallListener().onBeforeSend(YOUR CODE HERE)). Another way is to set a custom query parameter that will help you recognize it in the global ajax listener: 1) either override

Clearing pagestore

2014-08-28 Thread Erki
Hello! I have functionality that allows users to change their own role in the system. After changing their role I want to clear the pagestore, so users cannot access unauthorized pages with their back button. How should I do that?

Re: Weird ClassNotFoundException (wicket7-M2)

2014-08-28 Thread Maxim Solodovnik
Thanks Sebastien, will give it a try :) On 28 August 2014 13:24, Sebastien seb...@gmail.com wrote: Maxim, In case there is Droppable in wicket-jquey-ui. I don't know if it achieve the same need, you can have a look at the demo website... Best regards, Sebastien On Aug 28, 2014 5:12 AM,

Re: Clearing pagestore

2014-08-28 Thread Martin Grigorov
Hi, Using org.apache.wicket.Session#replaceSession() will do it. But it will replace the whole http session so this could be too much. To clear just the page store you need to do some more work: extend org.apache.wicket.DefaultPageManagerProvider and override

Re: Weird ClassNotFoundException (wicket7-M2)

2014-08-28 Thread Maxim Solodovnik
Sebastien, just take a look at it, it seems like i can use it and remove dnd dependency, thanks for the tip! On 28 August 2014 13:46, Maxim Solodovnik solomax...@gmail.com wrote: Thanks Sebastien, will give it a try :) On 28 August 2014 13:24, Sebastien seb...@gmail.com wrote: Maxim, In

Re: Weird ClassNotFoundException (wicket7-M2)

2014-08-28 Thread Sven Meier
Hi, release com.github.svenmeier.wicket-dnd for wicket7 the current version is compatible with Wicket 7. Regards Sven On 08/28/2014 05:12 AM, Maxim Solodovnik wrote: done, since I have commit access to wicketstuff I have created select2-wicket7 branch @Sven could you please release

Re: Weird ClassNotFoundException (wicket7-M2)

2014-08-28 Thread Maxim Solodovnik
Hello Sven, some wicket libraries: wicket-dashboard, wicket-select2 are compile time compatible with wicket7, but not compatible in runtime (was compiled with wicket6 and doesn't work with wicket7 based application) Have you tried wicket-dnd with wicket7 application (I cannot check due to other

Re: Clearing pagestore

2014-08-28 Thread Sven Meier
Hi, is it OK to revert the change in org.apache.wicket.page.PageStoreManager#sessionExpired(String) ? This way Wicket will attempt to clear the pages twice for the same sessionId but in case of Session Fixation Protection it may actually clear both the pages of the old and new sessions.

Re: Clearing pagestore

2014-08-28 Thread Martin Grigorov
But in this case it will try to delete the data in the page store for non-existing session id, right ? So it is just a no-op. getSession().getPageManager().sessionExpired(sessionId) is useful for the use case described by Erki. If PageStoreManager#sessionExpired(String) should be no-op then I

Re: Weird ClassNotFoundException (wicket7-M2)

2014-08-28 Thread Sven Meier
Hi, Have you tried wicket-dnd with wicket7 application yes, works here. Sven On 08/28/2014 09:23 AM, Maxim Solodovnik wrote: Hello Sven, some wicket libraries: wicket-dashboard, wicket-select2 are compile time compatible with wicket7, but not compatible in runtime (was compiled with wicket6

Re: Clearing pagestore

2014-08-28 Thread Sven Meier
Hi, org.apache.wicket.Application#sessionUnbound() should not call IPageManager#sessionExpired(String). agreed. But if the application needs to clear the data manually for any reason then it is OK, i.e. PageStoreManager#sessionExpired(String) will call pageStore.unbind(sessionId). 1) The

Re: Clearing pagestore

2014-08-28 Thread Martin Grigorov
Sounds good! (Wicket 7 only) Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Thu, Aug 28, 2014 at 12:06 PM, Sven Meier s...@meiers.net wrote: Hi, org.apache.wicket.Application#sessionUnbound() should not call IPageManager#sessionExpired(String). agreed.

Re: Clearing pagestore

2014-08-28 Thread Jack Berg
I actually did try replaceSession before but now I see that the reason it did not work was that I used it inside an ajax request. After doing a redirect with pageparameters instead, it worked. -- View this message in context:

Re: Clearing pagestore

2014-08-28 Thread Martin Grigorov
https://git-wip-us.apache.org/repos/asf?p=wicket.git;a=commit;h=b8382271 @Sven: does it look OK ? Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Thu, Aug 28, 2014 at 12:15 PM, Jack Berg erki.pub...@gmail.com wrote: I actually did try replaceSession before

Re: Clearing pagestore

2014-08-28 Thread Martin Grigorov
BTW Session#clear() seems to be no-op (broken) too in 6.x Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Thu, Aug 28, 2014 at 2:20 PM, Martin Grigorov mgrigo...@apache.org wrote: https://git-wip-us.apache.org/repos/asf?p=wicket.git;a=commit;h=b8382271

getResourceBundles().add css or javascript in wicket application

2014-08-28 Thread lucast
Dear forum, I want to bundle css files from inside my wicket application. I read wicket guide Resource management https://wicket.apache.org/guide/guide/resources.html chapter and wicket in action Wicket 6 resource management http://wicketinaction.com/2012/07/wicket-6-resource-management/

Re: getResourceBundles().add css or javascript in wicket application

2014-08-28 Thread Martin Grigorov
Hi, Bundle only local resources. If a resource is available thru a CDN network then it is recommended to use it directly from there. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Thu, Aug 28, 2014 at 2:53 PM, lucast lucastol...@hotmail.com wrote: Dear

Re: getResourceBundles().add css or javascript in wicket application

2014-08-28 Thread Sebastien
Hi Martin, Lucas, AFAIK font-awesome's license prevent to package/redistribute it, so the question might be how can I make a resource reference from an online/CDN file?...

Re: getResourceBundles().add css or javascript in wicket application

2014-08-28 Thread lucast
Hi Sebastein, and Martin Thank you for your post. I think until Martin's reply I had the impression that one could bundle local resources AND third party resources together. Based on Sebastien's post, that would not be possible for certain third party libraries such as font-awesome. Would that

Re: getResourceBundles().add css or javascript in wicket application

2014-08-28 Thread Martin Grigorov
Hi, It seems you don't value the benefit of CDNs... If you really want it you can extend few classes (ResourceReference related) and make it possible to bundle local and remote resources. But I don't recommend it. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On

resource encoding troubles

2014-08-28 Thread Garret Wilson
I have Wicket 7.0.0-M2 running on embedded Jetty, which is correctly returning a content type of UTF-8 for my Wicket page: Date: Thu, 28 Aug 2014 15:37:52 GMT Expires: Thu, 01 Jan 1970 00:00:00 GMT Pragma: no-cache Cache-Control: no-cache, no-store Content-Type: text/html;

Re: resource encoding troubles

2014-08-28 Thread Francois Meillet
Look at http://apache-wicket.1842946.n4.nabble.com/How-to-localize-options-in-drop-down-tt4661751.html#a4661768 François Meillet Formation Wicket - Développement Wicket Le 28 août 2014 à 17:47, Garret Wilson gar...@globalmentor.com a écrit : I have Wicket 7.0.0-M2 running on embedded

Re: resource encoding troubles

2014-08-28 Thread Garret Wilson
Please explain explicitly what you are trying to say. I don't see how that link is relevant. * I am using FooterPanel.properties. * Java properties files, as per the specification http://docs.oracle.com/javase/8/docs/api/java/util/Properties.html, are (and always have been) encoded in

Re: resource encoding troubles

2014-08-28 Thread Francois Meillet
use *.utf8.properties François Meillet Formation Wicket - Développement Wicket Le 28 août 2014 à 17:47, Garret Wilson gar...@globalmentor.com a écrit : I have Wicket 7.0.0-M2 running on embedded Jetty, which is correctly returning a content type of UTF-8 for my Wicket page: Date:

Re: resource encoding troubles

2014-08-28 Thread Garret Wilson
So are you saying that Wicket does not support ISO-8859-1 properties files that adhere do the Java standard? Or are you saying, I don't know what the problem is, I'm just giving you a workaround? If so, I appreciate the workaround tip, but that still doesn't explain what the problem is. I'm

Re: resource encoding troubles

2014-08-28 Thread Francois Meillet
http://wicket.apache.org/guide/guide/ François Meillet Formation Wicket - Développement Wicket Le 28 août 2014 à 19:24, Garret Wilson gar...@globalmentor.com a écrit : So are you saying that Wicket does not support ISO-8859-1 properties files that adhere do the Java standard? Or are you

Re: resource encoding troubles

2014-08-28 Thread Garret Wilson
Exactly! Quoting from the page you provided: Java uses the standard character set ISO 8859-11 to encode text files like properties files. ... (Note that this is a typo above---the author meant to say ISO 8859-1, not ISO 8859-11. The link to http://en.wikipedia.org/wiki/ISO/IEC_8859-1 in the

Re: resource encoding troubles

2014-08-28 Thread Andrea Del Bene
Have you tried using directly unicode character? i.e.: copyright=\u00A9 2014 Example, Inc. If you don't want to use unicode characters you should use an xml file as bundle file. Exactly! Quoting from the page you provided: Java uses the standard character set ISO 8859-11 to encode text files

Re: resource encoding troubles

2014-08-28 Thread Stefan Renz
Hi Garret, Garret Wilson wrote: Exactly! Quoting from the page you provided: Java uses the standard character set ISO 8859-11 to encode text files like properties files. ... (Note that this is a typo above---the author meant to say ISO 8859-1, not ISO 8859-11. The link to

Re: resource encoding troubles

2014-08-28 Thread Garret Wilson
I appreciate all the workarounds suggested. But no one has addressed the core issue: Is this a Wicket bug, or am I using standard property files incorrectly? Garret On 8/28/2014 10:42 AM, Andrea Del Bene wrote: Have you tried using directly unicode character? i.e.: copyright=\u00A9 2014

Re: resource encoding troubles

2014-08-28 Thread Garret Wilson
On 8/28/2014 10:53 AM, Stefan Renz wrote: ... if I read your original post correctly, you have not used ISO-8859-1 encoding in your property file, as I clearly see a (C) symbol. Since when is © (U+00A9) not part of ISO-8859-1? http://en.wikipedia.org/wiki/ISO/IEC_8859-1 Garret

Re: resource encoding troubles

2014-08-28 Thread Andrea Del Bene
It's just an encoding conflict: your properties uses ISO-8859-1, your page UTF-8. The result is a bad rendering, as you can see. When Java designers decided to adopt ISO-8859-1 they didn't consider most of the Asian languages... PS: just as a personal advice, try to be less rude in your

Re: resource encoding troubles

2014-08-28 Thread Sven Meier
Hi Garret, I like to find the source of the problem. Me too :). My configuration, as far as I can tell, is correct. From what you've written, I'd agree. You should create a quickstart. This will easily allow us to find a possible bug. Regards Sven On 08/28/2014 07:56 PM, Garret Wilson

Re: identify if request is from AbstractAjaxTimerBehavior in /ajax/call/beforesend

2014-08-28 Thread fachhoch
Thank You. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/identify-if-request-is-from-AbstractAjaxTimerBehavior-in-ajax-call-beforesend-tp4667186p4667225.html Sent from the Users forum mailing list archive at Nabble.com.

Re: DataTables Webjars Error

2014-08-28 Thread David Beer
Hi Martin Thanks for the updated DataTables in wicketstuff, this works well under tomcat, but deployed on wildfly I get the following error still. 20:59:56,175 WARN [org.apache.wicket.request.resource.ResourceReferenceRegistry] (default task-22) A ResourceReference wont be created for a

Re: DataTables Webjars Error

2014-08-28 Thread Martin Grigorov
Hi David, But you use Wicket Bootstrap already, no ? It uses Webjars a lot. Why do you face the VFS issue now ? Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Thu, Aug 28, 2014 at 11:20 PM, David Beer david.m.b...@gmail.com wrote: Hi All Got it to work

Re: DataTables Webjars Error

2014-08-28 Thread David Beer
Hi Martin, Yes I use the wicket-bootstrap which seems to work fine without the extra settings for vfs. If I remove the code to add vfs support DataTables does not load the css or js. As you can see from the below log output, the properties in wicket-bootstrap load fine, but those from the

Re: resource encoding troubles

2014-08-28 Thread Garret Wilson
On 8/28/2014 11:14 AM, Andrea Del Bene wrote: It's just an encoding conflict: your properties uses ISO-8859-1, your page UTF-8. The result is a bad rendering, as you can see. When Java designers decided to adopt ISO-8859-1 they didn't consider most of the Asian languages... PS: just as a

Re: resource encoding troubles

2014-08-28 Thread Garret Wilson
On 8/28/2014 12:08 PM, Sven Meier wrote: ... My configuration, as far as I can tell, is correct. From what you've written, I'd agree. You should create a quickstart. This will easily allow us to find a possible bug. Better than that, I'd like to trace down the bug, fix it, and file a

Re: resource encoding troubles

2014-08-28 Thread Andrew Geery
I created a Wicket quickstart (from http://wicket.apache.org/start/quickstart.html) [this is Wicket 6.16.0] and made two simple changes: 1) I created a HomePage.properties file, encoded as ISO-8859-1, with a single line as per the example above: copyright=© 2014 Example, Inc. 2) I added a line