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) :
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
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
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
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:
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
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
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
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
I'm located in Paris. We are just missing somebody from Lille and Nice for a
perfect dispatch :)
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:
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
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/
...
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
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
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
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
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
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
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,
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
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
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
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
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
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
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
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
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,
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
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
31 matches
Mail list logo