cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carsten Ziegeler" <>
Subject Strange code in CForms Binding
Date Fri, 13 Aug 2004 11:48:21 GMT
While looking through the cforms binding code I found at some places
code like this:

if (convertorEl != null) {
  String datatype = DomHelper.getAttribute(convertorEl, "datatype");
  String localeStr = convertorEl.getAttribute("datatype");
  if (!localeStr.equals("")) {
    convertorLocale = I18nUtils.parseLocale(localeStr);
  convertor = assistant.getDatatypeManager().createConvertor(datatype,

Now it seems that a locale informations is read from the datatype,
but as the datatype is not a correct locale information, always the
default locale is used (inside parseLocale()).

So, is this a typo?


Carsten Ziegeler 
Open Source Group, S&N AG

View raw message