Re: DI in wicket

2011-09-20 Thread manuelbarzi
see also org.apache.wicket.spring.common.web.ExampleApplication in wicket-examples On Mon, Sep 19, 2011 at 9:20 PM, Sven Meier s...@meiers.net wrote: see https://cwiki.apache.org/WICKET/spring.html On 09/19/2011 09:08 PM, sakthi vel wrote: Hi All, I would like to know how to use

Re: Should wicket-devutils be initialized when development utilies are disabled?

2011-09-20 Thread Martin Grigorov
Hi Mikko, This is a good point! I'll improve it. Thanks! On Mon, Sep 19, 2011 at 8:46 PM, Mikko Pukki mikko.pu...@syncrontech.com wrote: Hi, I just noticed that when wicket-devutils is included in compilation, Application's initializeComponents initializes

Re: Should wicket-devutils be initialized when development utilies are disabled?

2011-09-20 Thread Martin Grigorov
https://issues.apache.org/jira/browse/WICKET-4067 On Tue, Sep 20, 2011 at 11:24 AM, Martin Grigorov mgrigo...@apache.org wrote: Hi Mikko, This is a good point! I'll improve it. Thanks! On Mon, Sep 19, 2011 at 8:46 PM, Mikko Pukki mikko.pu...@syncrontech.com wrote: Hi, I just noticed

Re: Arabic characters not appearing correctly from .properties file

2011-09-20 Thread Andrea Del Bene
Hi, try starting your web server with these parameters: -Djavax.servlet.request.encoding=UTF-8 -Dfile.encoding=UTF-8 Hello , I have written many .properties pages to show error messages in Arabic and saved them in UTF-8 format and they display like that : يجب ادخال اسم الدخول

Re: Arabic characters not appearing correctly from .properties file

2011-09-20 Thread Andrea Del Bene
...or try these instructions http://davidbits.blogspot.com/2010/12/how-to-change-tomcat-default-character.html Hello , I have written many .properties pages to show error messages in Arabic and saved them in UTF-8 format and they display like that : يجب ادخال اسم الدخول

Re: Arabic characters not appearing correctly from .properties file

2011-09-20 Thread aabfattah
I am not using tomcat , I am using jetty . I guess the problem is in properties files encoding. On 20 September 2011 13:05, Andrea Del Bene-2 [via Apache Wicket] ml-node+s1842946n3826434...@n4.nabble.com wrote: ...or try these instructions

Re: Arabic characters not appearing correctly from .properties file

2011-09-20 Thread Martijn Dashorst
This also only works on Java 6 and newer (UTF-8 support for properties files is a java 6 feature). Martijn On Tue, Sep 20, 2011 at 12:53 PM, aabfattah ahmed.abdelfattah.elshem...@gmail.com wrote: Hello , I have written many .properties pages to show error messages in Arabic and saved them in

Re: Arabic characters not appearing correctly from .properties file

2011-09-20 Thread aabfattah
I am using jdk1.6.0_23 On 20 September 2011 13:19, Martijn Dashorst [via Apache Wicket] ml-node+s1842946n3826458...@n4.nabble.com wrote: This also only works on Java 6 and newer (UTF-8 support for properties files is a java 6 feature). Martijn On Tue, Sep 20, 2011 at 12:53 PM, aabfattah

Re: Arabic characters not appearing correctly from .properties file

2011-09-20 Thread aabfattah
I get this info always in console : INFO - PropertiesFactory - Loading properties files from file:/D:/Ahmed_sandbox/Projects/EclipseProj/call-to-fix-17-9-5PM/call-to-fix/target/classes/com/orange/cairolab/sdp/calltofix/web/customer/AddNewCustomerPage.properties with loader

Re: Arabic characters not appearing correctly from .properties file

2011-09-20 Thread aabfattah
The problem maybe in *IsoPropertiesFilePropertiesLoader* *In the API it says *Load properties from properties file. The encoding of the file must be ISO 8859-1. * * On 20 September 2011 13:22, Ahmed Abdelfattah ahmed.abdelfattah.elshem...@gmail.com wrote: I get this info always in console :

Re: Arabic characters not appearing correctly from .properties file

2011-09-20 Thread Martin Grigorov
Better use .properties.xml format. The XML properties files are much more safe than plain .properties. See http://java.sun.com/dtd/properties.dtd and java.util.Properties.loadFromXML(InputStream) On Tue, Sep 20, 2011 at 2:24 PM, aabfattah ahmed.abdelfattah.elshem...@gmail.com wrote: The problem

Re: Arabic characters not appearing correctly from .properties file

2011-09-20 Thread Martin A
Hi, Ahmed, As the Java specification defines, the .properties file contains only characters in ISO-8859-1, also known as Latin-1. Therefore you cannot enter arabic characters in a properties file. You have two options here: 1. Unicode escape your arabic characters, using converters, like

Re: Arabic characters not appearing correctly from .properties file

2011-09-20 Thread aabfattah
Well , the xml file didn't load and it loaded the default .properties files from wicket But the first trick worked :) On 20 September 2011 13:41, Martin A [via Apache Wicket] ml-node+s1842946n3826499...@n4.nabble.com wrote: Hi, Ahmed, As the Java specification defines, the .properties file

Re: Arabic characters not appearing correctly from .properties file

2011-09-20 Thread Martijn Dashorst
On Tue, Sep 20, 2011 at 1:41 PM, Martin A wml...@gmail.com wrote: Hi, Ahmed, As the Java specification defines, the .properties file contains only characters in ISO-8859-1, also known as Latin-1. Therefore you cannot enter arabic characters in a properties file. Wrong: with Java 6 you can

Re: Arabic characters not appearing correctly from .properties file

2011-09-20 Thread Martin Grigorov
On Tue, Sep 20, 2011 at 3:18 PM, Martijn Dashorst martijn.dasho...@gmail.com wrote: On Tue, Sep 20, 2011 at 1:41 PM, Martin A wml...@gmail.com wrote: Hi, Ahmed, As the Java specification defines, the .properties file contains only characters in ISO-8859-1, also known as Latin-1. Therefore you

Re: Arabic characters not appearing correctly from .properties file

2011-09-20 Thread Christian Huber
Just a short addition, the resource bundle editor plugin for eclipse is great for handling .properties files with UTF-8 characters. The files are stored with ISO encoding and UTF-8 characters are escaped correctly while you can use the unescaped in the editor. The Sanity Resort

Re: Arabic characters not appearing correctly from .properties file

2011-09-20 Thread Martin Grigorov
On Tue, Sep 20, 2011 at 3:26 PM, Christian Huber hub...@butterbrot.org wrote: Just a short addition, the resource bundle editor plugin for eclipse is great for handling .properties files with UTF-8 characters. The files are stored with ISO encoding and UTF-8 characters are escaped correctly

Re: Arabic characters not appearing correctly from .properties file

2011-09-20 Thread Christian Huber
Am 20.09.2011 14:31, schrieb Martin Grigorov: On Tue, Sep 20, 2011 at 3:26 PM, Christian Huberhub...@butterbrot.org wrote: Just a short addition, the resource bundle editor plugin for eclipse is great for handling .properties files with UTF-8 characters. The files are stored with ISO encoding

Detecting when a session is destroyed

2011-09-20 Thread Matt Schmidt
I am trying to override WebApplication.sessionDestroyed() to perform an action any time a user's session is terminated, either by manually logging out, session expiring, or closing the browser. But unfortunately sessionDestroyed() doesn't seem to get called when the browser is closed. Is there any

Re: Detecting when a session is destroyed

2011-09-20 Thread Martin Grigorov
The method will be method when the respective session expires. So close the browser, wait session-timeout minutes and it will fire. On Tue, Sep 20, 2011 at 6:12 PM, Matt Schmidt mschmid...@gmail.com wrote: I am trying to override WebApplication.sessionDestroyed() to perform an action any time a

Re: Arabic characters not appearing correctly from .properties file

2011-09-20 Thread Andrea Del Bene
I had experience with a site which should have been used by both Chinese and English users. IMHO in this scenario the best solution is to have the entire stack setted to utf-8, which includes properties file (not XML), web server and database (extra ISO chars can be written to db). If you

Re: Detecting when a session is destroyed

2011-09-20 Thread Matt Schmidt
Ahhh, so what happens if the user closes the browser, launches the browser and logs in again before the first session expires? On Tue, Sep 20, 2011 at 11:16 AM, Martin Grigorov mgrigo...@apache.orgwrote: The method will be method when the respective session expires. So close the browser, wait

Re: Detecting when a session is destroyed

2011-09-20 Thread Martin Grigorov
a new session is created On Tue, Sep 20, 2011 at 6:22 PM, Matt Schmidt mschmid...@gmail.com wrote: Ahhh, so what happens if the user closes the browser, launches the browser and logs in again before the first session expires? On Tue, Sep 20, 2011 at 11:16 AM, Martin Grigorov

Re: Detecting when a session is destroyed

2011-09-20 Thread Martin Grigorov
On Tue, Sep 20, 2011 at 6:27 PM, Martin Grigorov mgrigo...@apache.org wrote: a new session is created unless there is remember me functionality in place On Tue, Sep 20, 2011 at 6:22 PM, Matt Schmidt mschmid...@gmail.com wrote: Ahhh, so what happens if the user closes the browser, launches the

Re: Detecting when a session is destroyed

2011-09-20 Thread Matt Schmidt
Alright, thanks! On Tue, Sep 20, 2011 at 11:28 AM, Martin Grigorov mgrigo...@apache.orgwrote: On Tue, Sep 20, 2011 at 6:27 PM, Martin Grigorov mgrigo...@apache.org wrote: a new session is created unless there is remember me functionality in place On Tue, Sep 20, 2011 at 6:22 PM, Matt

Re: ModalWindow problem

2011-09-20 Thread Andrea Del Bene
Hi, we dealt this topic in this issue: https://issues.apache.org/jira/browse/WICKET-3809 Basically starting from Wicket 1.5 you can't share static models between pages. Hello. I have a problem with ModalWindow in wicket 1.5.0. I create a ModalWindow from a page, and that modal window

How to get request page in Wicket 1.5

2011-09-20 Thread Florian B.
Hi I'm looking for a way to get the page of the current request on Wicket 1.5. I found an wiki entry about this but unfortunately I don't understand how to retrieve the page. https://cwiki.apache.org/WICKET/requestcycle-in-wicket-15.html Perhaps someone can push me in the right direction.

Re: How to get request page in Wicket 1.5

2011-09-20 Thread Igor Vaynberg
why do you need the page? -igor On Tue, Sep 20, 2011 at 9:27 AM, Florian B. florian.bernst...@gmail.com wrote: Hi I'm looking for a way to get the page of the current request on Wicket 1.5. I found an wiki entry about this but unfortunately I don't understand how to retrieve the page.

Wicket 1.5 and Google Analytics

2011-09-20 Thread Bruno Borges
With Wicket, versioned pages are being gattered as individual/different pages at Google Analytics. For example: /app/Home has X pageviews /app/Home?1= has Y pageviews /app/Home?2= has Z pageviews And so on. Does anyone have any idea on how to fix this, except by disabling page versioning?

Re: Wicket 1.5 and Google Analytics

2011-09-20 Thread Attila Király
If nothing else helps I think you can exclude query parameters in Google Analytics: http://www.google.com/support/analytics/bin/answer.py?answer=55499 http://www.google.com/support/analytics/bin/answer.py?answer=55461 Attila 2011/9/20 Bruno Borges bruno.bor...@gmail.com With Wicket, versioned

Re: Wicket 1.5 and Google Analytics

2011-09-20 Thread Don Ferguson
Using the async analytics apis, you can pass a parameter to trackPageView, as in: _gaq.push(['_trackPageview', 'Home']); which gives you explicit control over the URL being tracked by analytics. -Don On Sep 20, 2011, at 11:38 AM, Bruno Borges wrote: With Wicket, versioned pages are

Cleaning resources on session timeout

2011-09-20 Thread Niranjan Rao
Hi folks, Using wicket 1.5. We would like to clean some resources we are holding in the session when session times out. I did read docs and most of the methods like detach/destroy seem to be related to request. Method destory in the session is also a private method. Does wicket fires any

Re: Cleaning resources on session timeout

2011-09-20 Thread Dan Retzlaff
I just learned that Wicket provides this hook today! Check out WebApplication.sessionDestroyed(). http://apache-wicket.1842946.n4.nabble.com/Detecting-when-a-session-is-destroyed-td3827137.html Dan On Tue, Sep 20, 2011 at 12:10 PM, Niranjan Rao nhr...@gmail.com wrote: Hi folks, Using wicket

Re: Cleaning resources on session timeout

2011-09-20 Thread Niranjan Rao
Thanks for the help. This sounds like exactly what I wanted. But I can't find this method defined neither in WebApplication nor in the Application class. At least it does not seem to be the method that I can not override. Regards, Niranjan On 09/20/2011 12:16 PM, Dan Retzlaff wrote: I just

Re: Cleaning resources on session timeout

2011-09-20 Thread Dan Retzlaff
It looks like it was renamed to WebApplication.sessionUnbound in 1.5. http://svn.apache.org/repos/asf/wicket/branches/wicket-1.4.18/wicket/src/main/java/org/apache/wicket/protocol/http/WebApplication.java

Re: Wicket 1.5 and Google Analytics

2011-09-20 Thread Diego Fincatto
I agree with Bruno and there's more related problems, such the redirecting it does: for SEO is a bad practice! Google may even penalize our sites. We have to think in a different way to retrieve the state of webpages. Otherwise, the Wicket becomes unusable for most seriously site. On Tue, Sep

Re: Wicket 1.5 and Google Analytics

2011-09-20 Thread Martin Grigorov
On Tue, Sep 20, 2011 at 10:51 PM, Diego Fincatto diego.finca...@gmail.com wrote: I agree with Bruno and there's more related problems, such the redirecting it does: for SEO is a bad practice! Google may even penalize our sites. We have to think in a different way to retrieve the state of

Re: Footnote-Support

2011-09-20 Thread Christian Huber
Well, after about two days I finally got it working ;-) I'll try to scratch together a blog post in the next days with the details :-) The Sanity Resort http://sanityresort.blogspot.com/ Am 19.09.2011 16:41, schrieb Dan Retzlaff: I see now. Forget the behavior approach. :) How about keeping

Wicket Spring and JSR 330

2011-09-20 Thread Fabio Cechinel Veronez
Hello all, Up until now I have been using SpringBean annotation to inject spring beans at my page instance. By I would like to know if it possible to use JSR 330 annotations like Inject and Qualifier to indicate to Spring what bean should be injected. Thanks in advance. -- Fabio Cechinel

RE: Wicket 1.5 and Google Analytics

2011-09-20 Thread Chris Colman
I agree, this could really screw with the SEO quality of Wicket sites. We're the process of porting our CMS to Wicket 1.5 but will have to hold off on final release until we've found a way to make it work like 1.4.x with the same URLs with no versioning (including the parameters arranged as

Re: Basement Coders Meetup at JavaOne 2011

2011-09-20 Thread Don Ferguson
Count me in. -Don On Sep 17, 2011, at 1:15 PM, Igor Vaynberg wrote: a bunch of people sitting in a bar chatting and drinking beer... :) -igor On Fri, Sep 16, 2011 at 4:44 PM, Nelson Segura nsegu...@gmail.com wrote: Can you explain how does it work? I am thinking on going to java

Re: Wicket Spring and JSR 330

2011-09-20 Thread Igor Vaynberg
currently it is not, but we are looking into it... -igor On Tue, Sep 20, 2011 at 5:08 PM, Fabio Cechinel Veronez fabio.vero...@gmail.com wrote: Hello all, Up until now I have been using SpringBean annotation to inject spring beans at my page instance. By I would like to know if it possible

RE: BookmarkablePageLink works differently in 1.5?

2011-09-20 Thread Chris Colman
It looks like the parameter encoding/decoding is all done via the interface: IPageParametersEncoder Which has only a single implementation which obviously encodes/decodes the new 1.5 style. Would it be possible to provide a 1.4 legacy implementation of IPageParametersEncoder to allowing

Re: Wicket Spring and JSR 330

2011-09-20 Thread Fabio Cechinel Veronez
Is there some issue we could follow? On Tue, Sep 20, 2011 at 10:00 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: currently it is not, but we are looking into it... -igor On Tue, Sep 20, 2011 at 5:08 PM, Fabio Cechinel Veronez fabio.vero...@gmail.com wrote: Hello all, Up until now I

Re: BookmarkablePageLink works differently in 1.5?

2011-09-20 Thread Igor Vaynberg
mountmapper also uses pageparameters, can you not mount your pages? -igor On Tue, Sep 20, 2011 at 6:31 PM, Chris Colman chr...@stepaheadsoftware.com wrote: It looks like the parameter encoding/decoding is all done via the interface: IPageParametersEncoder Which has only a single

RE: BookmarkablePageLink works differently in 1.5?

2011-09-20 Thread Chris Colman
The pages are mounted but with 1.4 I mounted them all like: mountPage(/content/home); mountPage(/content/about); mountPage(/content/product); ... Any links to the page would suffix the parameters to the mount point like: /content/home/o/123 /content/about/o/123 /content/product/o/123/p/756 ...

Re: BookmarkablePageLink works differently in 1.5?

2011-09-20 Thread Igor Vaynberg
i meant: mount(new MountedMapper(/content/home, HomePage.class, new MyCustomPageParameterEncoder()); -igor On Tue, Sep 20, 2011 at 9:12 PM, Chris Colman chr...@stepaheadsoftware.com wrote: The pages are mounted but with 1.4 I mounted them all like: mountPage(/content/home);