<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1106" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=137342014-21092006><FONT face=Arial color=#0000ff size=2>Hi 
Radu,</FONT></SPAN></DIV>
<DIV><SPAN class=137342014-21092006><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=137342014-21092006><FONT face=Arial color=#0000ff size=2>it is 
not a bug. You have to add the languages to your body-template which is usually 
located in the default-bodies directory of your module.</FONT></SPAN></DIV>
<DIV><SPAN class=137342014-21092006><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=137342014-21092006><FONT face=Arial color=#0000ff 
size=2>Regards</FONT></SPAN></DIV>
<DIV><SPAN class=137342014-21092006><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=137342014-21092006><FONT face=Arial color=#0000ff 
size=2>Kai</FONT></SPAN></DIV>
<BLOCKQUOTE dir=ltr 
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
  <DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma 
  size=2>-----Ursprüngliche Nachricht-----<BR><B>Von:</B> 
  opencms-dev-bounces@opencms.org [mailto:opencms-dev-bounces@opencms.org]<B>Im 
  Auftrag von </B>Radu Sora<BR><B>Gesendet:</B> Donnerstag, 21. September 2006 
  10:42<BR><B>An:</B> opencms-dev@opencms.org<BR><B>Betreff:</B> [opencms-dev] 
  Add Locale Problem<BR><BR></FONT></DIV>Hello,<BR><BR>I have some problems when 
  adding different locales to a OpenCMS site.<BR><BR>The steps to reproduce the 
  bug (assuming is a bug, and i am not doing something wrong) are the 
  following:<BR><BR>1) Edit opencms-system.xml to add more 
  languages:<BR><BR>Exemple:<BR><BR>[...]<BR><BR><internationalization><BR>      
  <localehandler 
  class="org.opencms.i18n.CmsDefaultLocaleHandler"/><BR>      
  <localesconfigured><BR>        
  <locale>ro</locale> <BR>        
  <locale>hu</locale><BR>        
  <locale>en</locale><BR>      
  </localesconfigured><BR>      
  <localesdefault><BR>        
  <locale>ro</locale><BR>      
  </localesdefault> <BR>    
  </internationalization><BR><BR>[...]<BR><BR>2) Restart tomcat 
  server<BR><BR>3) Create a JSP template<BR><BR>4) Create a "Page with free 
  text" based on the template selected on step 3.<BR><BR>5) Try to "Edit Page" 
  on the template <BR><BR>The error generated is: 
  <DIV class="dialogblockborder dialogblockborderheadline">
  <DIV class=dialogblock><SPAN class=dialogblockhead>Error</SPAN> 
  javax.servlet.jsp.JspException: Index: 0, Size: 0 <BR><BR>Some notes:<BR><BR>- 
  if i try to edit controlcode, and manually created the xml structure for all 
  the languages, then i can edit page corectlly.<BR>- the problem doesnt exists 
  for structured content editing; <BR><BR>The stack for the error is:<BR><BR>21 
  Sep 2006 11:39:37,445 ERROR [ina.core.ApplicationDispatcher: 704] 
  Servlet.service() for servlet jsp threw 
  exception<BR>java.lang.IndexOutOfBoundsException: Index: 0, Size: 
  0<BR>    at 
  java.util.ArrayList.RangeCheck(ArrayList.java:546)<BR>    at 
  java.util.ArrayList.get(ArrayList.java:321)<BR>    at 
  org.opencms.workplace.editors.CmsDefaultPageEditor.initBodyElementName(CmsDefaultPageEditor.java:548) 
  <BR>    at 
  org.opencms.workplace.editors.CmsSimplePageEditor.initWorkplaceRequestValues(CmsSimplePageEditor.java:258)<BR>    
  at 
  org.opencms.editors.fckeditor.CmsFCKEditor.initWorkplaceRequestValues(CmsFCKEditor.java:178)<BR>    
  at 
  org.opencms.workplace.CmsWorkplace.initWorkplaceMembers(CmsWorkplace.java:2067)<BR>    
  at 
  org.opencms.workplace.CmsWorkplace.<init>(CmsWorkplace.java:253)<BR>    
  at org.opencms.workplace.tools.CmsToolDialog.<init>( 
  CmsToolDialog.java:93)<BR>    at 
  org.opencms.workplace.CmsDialog.<init>(CmsDialog.java:249)<BR>    
  at 
  org.opencms.workplace.editors.CmsEditor.<init>(CmsEditor.java:186)<BR>    
  at org.opencms.workplace.editors.CmsDefaultPageEditor 
  .<init>(CmsDefaultPageEditor.java:115)<BR>    at 
  org.opencms.workplace.editors.CmsSimplePageEditor.<init>(CmsSimplePageEditor.java:90)<BR>    
  at org.opencms.editors.fckeditor.CmsFCKEditor.<init>(CmsFCKEditor.java 
  :92)<BR>    at 
  org.apache.jsp.WEB_002dINF.jsp.offline.system.workplace.editors.fckeditor.editor_jsp._jspService(editor_jsp.java:51)<BR>    
  at 
  org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)<BR>    
  at javax.servlet.http.HttpServlet.service 
  (HttpServlet.java:802)<BR>    at 
  org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)<BR>    
  at 
  org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)<BR>    
  at org.apache.jasper.servlet.JspServlet.service 
  (JspServlet.java:264)<BR>    at 
  javax.servlet.http.HttpServlet.service(HttpServlet.java:802)<BR>    
  at 
  org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)<BR>    
  at org.apache.catalina.core.ApplicationFilterChain.doFilter 
  (ApplicationFilterChain.java:173)<BR>    at 
  org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)<BR>[...]<BR><BR><BR>Any 
  clue on what may be causing that? I suppose is a problem on the script that 
  creates the initial xmlstructure for a page (is doesn't cycle correctly 
  through all the languages). <BR><BR>Thank 
  you,<BR>Radu<BR><BR><BR><BR></DIV></DIV></BLOCKQUOTE></BODY></HTML>