Re: Wicket + Spring Security (PreAuthentication)

2009-08-31 Thread Olivier Bourgeois
Looks like more of a spring-security question that a Wicket one : try the spring-security forums. I suggest you have a look at this : http://forum.springsource.org/showthread.php?t=52377 And this nice example up to date (but it's for wicket-swarn) :

Re: UTF-8

2009-08-31 Thread Olivier Bourgeois
I am using Wicket 1.4 with UTF-8 pages and properties, and I added in my Application : getMarkupSettings().setDefaultMarkupEncoding(UTF-8); getRequestCycleSettings().setResponseRequestEncoding(UTF-8); That's enough. For the localization properties files I had to use XML

Re: UTF-8

2009-09-01 Thread Olivier Bourgeois
messages into ASCII escaped. Regards, Wojtek Olivier Bourgeois pisze: That's exactly what I said : I had to use XML properties files to have UTF-8 localized properties. You can't use simple properties format because Java can't handle natively anything else than ISO. We use also Tapestry here

Re: UTF-8

2009-09-01 Thread Olivier Bourgeois
Yeah, one charset to rule them all ! :-) 2009/9/1 Johan Compagner jcompag...@gmail.com: Everybody should stop using any other encoding then UTF-8 Common people we should start this change from happening now :) Drop all charsets and all over the world. ban them everywhere, it should be

Re: UTF-8

2009-09-02 Thread Olivier Bourgeois
But I'm sure you can write a properties implementation that reads from UTF-8 in a few hours max, especially now that you have an example in Tapestry's code. Patch is welcome :-) Eelco - To unsubscribe, e-mail:

Re: UTF-8

2009-09-02 Thread Olivier Bourgeois
I had a look at T5 and Spring code : - Spring checks if the JDK supports UTF-8 files, and if it does not support it acts like T4 and parses the properties file. The implementation is much more compact than in T4. - T5 does a native2ascii conversion of the properties files on the fly. So I

Re: UTF-8

2009-09-03 Thread Olivier Bourgeois
Allright, I fed the daemon ;) I created a new issue in https://issues.apache.org/jira/browse/WICKET-2451 and I found that WICKET-1443 is similar but already closed since 1 year. 2009/9/2 Eelco Hillenius eelco.hillen...@gmail.com: The result is in the attachment file (sorry but I don't have a

Re: wicket.properties conflict 1.2.6 vs 1.4.1

2009-09-14 Thread Olivier Bourgeois
Except that you can parameter JBoss to use an optimization of its own : UnifiedClassloader : http://www.jboss.org/community/wiki/classloadingconfiguration In jboss-3.2.3, the jbossweb-tomcat41.sar is configured to use a unified class loader as the web application class loader. This is

Re: wicket.properties conflict 1.2.6 vs 1.4.1

2009-09-14 Thread Olivier Bourgeois
nino.martinez.w...@gmail.com I meant ear files 2009/9/14 nino martinez wael nino.martinez.w...@gmail.com: You can if you put them in different wars.. That will work. We have a similar setup that does this. 2009/9/14 Olivier Bourgeois olivier.bourgeois@gmail.com: Except that you can

Re: Wicket in France

2009-09-24 Thread Olivier Bourgeois
I'm located in Paris. We are just missing somebody from Lille and Nice for a perfect dispatch :)

Re: How do you achieve persistency

2009-10-07 Thread Olivier Bourgeois
Why would you replace the Wicket filter ? You can have multiple filters defined in your web.xml , they are chained by your application server. 2009/10/7 Peter Arnulf Lustig u...@yahoo.de Great piece of software! But how did you manage to replace the web.xml filterclass into:

Re: How do you achieve persistency

2009-10-07 Thread Olivier Bourgeois
dispatcherREQUEST/dispatcher dispatcherERROR/dispatcher /filter-mapping Just add your Cayenne filter in your web.xml and you're done. 2009/10/7 Peter Arnulf Lustig u...@yahoo.de Cayenne needs his own filter. - Urspr√ľngliche Mail Von: Olivier Bourgeois

Re: Feedback messages, input and label

2009-10-07 Thread Olivier Bourgeois
Have you tried something like this in your page.java : pwd.setLabel(new ModelString(Password)); ? 2009/10/7 Tom√°s Rossi tro...@mecon.gov.ar Hi, lets say you have this in you html form: -- ... label for=pwdPassword/label input type=password id=pwd wicket:id=inputPwd/ ...

Re: Wicket Bulgarian translation (bg)

2009-10-12 Thread Olivier Bourgeois
What version of Wicket are you using ? You should have native2ascii encoded strings in the property file : Required=\u00d0\u0178\u00d0\u00be\u00d0\u00bb\u00d0\u00b5\u00d1\u201a\u00d0\u00be '${label}' \u00d0\u00b5

Re: Wicket Bulgarian translation (bg)

2009-10-12 Thread Olivier Bourgeois
2009/10/12 Girts Ziemelis girts.zieme...@gmail.com Wicket version is 4.1 Regarding encoding - I know - it is encoded in the properties file -strings I posted are once the strings are decoded to UTF-8 -for IDE (Netbeans, for example, does this automatically for *.properties files) and for the

Re: Wicket Bulgarian translation (bg)

2009-10-12 Thread Olivier Bourgeois
girts.zieme...@gmail.com Olivier Bourgeois wrote: I'm using BG translations for my app, but not the Wicket default ones, and I am using a mix of UTF-8 properties files and XML files. I just had a look with wicket 1.4.2 and the BG translations are broken : I think something went wrong

Re: Howto accept other then first locale in HTTP header Accept-Language?

2009-10-16 Thread Olivier Bourgeois
If you are using Apache + Mod-JK in front of your webapp, you can use mod_rewrite features to rewrite the HTTP headers and force the accepted language field to a value your application supports. Otherwise you can simply create a class that extends WebPage, then override the getLocale() method and

Re: Localization of values coming from my Model

2009-10-19 Thread Olivier Bourgeois
Use the StringResourceModel with properties bundle, it is very powerful because you can add dynamic data coming from the model. I've done some things like this, assuming infoModel.dateFormat() returns a formated date : new Label(tableTitle, new StringResourceModel(table.title, this, new

Re: Howto accept other then first locale in HTTP header Accept-Language?

2009-10-19 Thread Olivier Bourgeois
2009/10/16 Per Newgro per.new...@gmx.ch Hi Olivier, isn't mod_jk a bit heavyweight for this little usecase? I don't know your case, for mine, every project I worked on already had a mod_jk. And it is a common pattern with J2EE development : simply because when you have static resources to

Re: Howto accept other then first locale in HTTP header Accept-Language?

2009-10-19 Thread Olivier Bourgeois
Ho well, I didn't understood correctly your question, sorry. Have you tried tho use a custom WebSession ? - in your WebApplication class overload the newSession method : @Override public Session newSession(Request request, Response response) { return new YourCustomSession(this,

Re: Howto accept other then first locale in HTTP header Accept-Language?

2009-10-19 Thread Olivier Bourgeois
Well, you can't change the behaviour of ServletRequest.getLocale() unless you want to patch your servlet container :) But you make me think it would be great in the Servlet API to have something like setAcceptedLocales(Enumeration e) and let the servlet container do the work of matching the

How to add a dynamic HTML comment ?

2009-10-19 Thread Olivier Bourgeois
Hi list, I'm trying to add to my page header a comment that contains some informations extracted from my app, like this : !-- App Version 1.0.0 - Build: 2009-10-19 16:20:00 -- But I just can't find a way to do this in Wicket : a component inside a comment is not recognised, and there is no

Re: How to add a dynamic HTML comment ?

2009-10-19 Thread Olivier Bourgeois
Ha thanks Jeremy ! And I didn't think of that :( 2009/10/19 Jeremy Thomerson jer...@wickettraining.com add(new Label(comment, !-- foo bar --).setEscapeModelStrings(false)); -- Jeremy Thomerson http://www.wickettraining.com

Re: Wicket Eclipse plugin, is there another?

2009-10-22 Thread Olivier Bourgeois
2009/10/21 dtoffe dto...@yahoo.com.ar By the way, just out of curiosity, what are the specific features you are missing in Wicket Bench ?? Regards, Daniel Hi, I tried a little bit Wicket Bench and stoped because it's missing one important feature for me : a way to use a custom

Re: Where to put HTML files?

2009-10-29 Thread Olivier Bourgeois
You can also override the template loader for the application. That's what I've done and our templates and properties are in a different project than the application. I also have two differents SVN repos. The pros : - you have instant template/properties reloading in development mode without

Re: Wicket 1.4-rc6 Swarm

2009-12-22 Thread Olivier Bourgeois
Is there any news regarding a release of Swarm 1.4 ? Because there's still only the 1.4 snapshots in the repository. For information, I'm currently using it with Wicket 1.4.3 and got no problem so far : page security and component conditional rendering works fine. 2009/7/10 Luca Provenzani

Localized sorting column in a DefaultDatatable

2009-07-07 Thread Olivier Bourgeois
Hi, I'm trying to implement a simple sortable datatable with Wicket, and I'm struggling with an issue I can't find a way to solve : how to build a sortable column when the data to be sorted is also to be translated and comes from the property files (not from the model directly) ? I've done this

Re: How to change content in ModalWindow

2010-01-25 Thread Olivier Bourgeois
Aren't you missing a : modalContentWindow.show(target) in the onClick callback ? 2010/1/25 Chris Colman chr...@stepaheadsoftware.com Searching Nable shows this question has been asked before but there none of the solutions proposed there work for me. I have a link in PanelA that, when

Re: Wicket and JEE6

2010-03-29 Thread Olivier Bourgeois
Hi, Wicket has very good support in Weld, but to make it work I had to update the weld-integration.jar, otherwise the sample Numberguess application is looking for an unexisting method in the 1.0.0 Weld API : this is your problem. If you don't want to do it by hand like suggested by Iskandar,

Re: Wicket and JEE6

2010-03-30 Thread Olivier Bourgeois
I do also think that it's because Wicket is not a managed framework : everything is simple unmanaged POJOs except for your classes extending WebPage which are managed. I've juste had a quick look at JSF 2.0 and never worked with it - but I worked with Wicket - so I did not expected Wicket JEE6

Re: Wicket and JEE6

2010-03-30 Thread Olivier Bourgeois
2010/3/30 Cemal Bayramoglu jweekend_for...@cabouge.com Olivier, I got Jame's stuff [1] up and running (thanks James) with just a few small changes to the POMs - maybe he has stuff already in his local Maven repo that is no longer on the main public repos) working with little effort. If