* Johannes Schneider: > can anyone tell me how I can escape German umlauts when using > TextFields or Labels? Component.setEscapeModelStrings( true) > does not replace them. And I really don't want to create a > custom IModel for every component I add....
Have a look at Strings#escapeMarkup(String, boolean, boolean) The last argument is called convertToHtmlUnicodeEscapes and by reading the Javadoc I think it does what you want. But now, that doesn't mean you can use it from the Component or FormComponent class. We need to find an acceptable solution to expose this feature to the Component level. What do you propose? Just curious, why do you want to escape those characters? Don't you have your page encoding correctly set? It should display correctly, I for one wouldn't need to escape accented characters in the first place. Cheers, -- Jean-Baptiste Quenot aka John Banana Qwerty http://caraldi.com/jbq/ ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user