[jboss-dev-forums] [Design of JBoss Wiki] - Re: JBoss Wiki Beta2 Released
dayal_78
do-not-reply at jboss.com
Thu Jul 13 11:45:11 EDT 2006
Tomek,
I think I found the problem and this seems to be a bug.
The file "WikiEngine.java" seems to read language codes from an xml file:
"CountryCodes.xml". All the two letter language codes in this file are CAPITALIZED:
| Eg: <twoLetterCode>EN</twoLetterCode>
|
So when this java class (WikiEngine.java) is looking for a certain language data source:
WikiEngine.java (line: 120)
-------------------------------
| return getByName(pageName, wikiContext, languageDataSources
| .get(langCode));
|
languageDataSources.get(langCode) is returning 'null' as there is no corresponding datasource for the languageCode 'en'.
So instead of directly getting the language data source from the Map we can call a method that will return the language data source from the Map case insensitively.
Please let me know if you are going to fix this in the above manner or whichever you find comfortable.
Thanks
Dayal
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3957790#3957790
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3957790
More information about the jboss-dev-forums
mailing list