You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by ne...@freenet.de on 2009/02/12 11:00:54 UTC

XML-Properties for Validator throw ClassCastException

Hi all,
 i've a Panel with a Form wich has a TextField with a MinimumValidator and a FeedbackPanel for validation error messages.

First i've written a standard text propertie file to customize the error message and it works fine.
Then i've trouble to put in the Euro-Sign and found that it is possible to use xml propertie file, but this lead me to the following stack trace:
Caused by: java.lang.ClassCastException: org.apache.xerces.dom.DeferredTextImpl
    at org.apache.wicket.util.io.Streams.loadFromXml(Streams.java:158)
    at org.apache.wicket.resource.PropertiesFactory.loadPropertiesFile(PropertiesFactory.java:199)

The xml properties file looks like that:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd">
<properties>
<entry key="form.amount.NumberValidator.Minimum">The error text with the EURO Symbol.</entry>
</properties>

Does anyonen know what i've done wrong.

Thanks in advance,
Achim Luczyk



Ist Ihr wunschname@freenet.de noch frei?
Jetzt prüfen und kostenlose E-Mail-Adresse sichern!
http://email.freenet.de/dienste/emailoffice/produktuebersicht/basic/mail/index.html?pid=6829


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org