<!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.2900.2523" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2><SPAN class=391221417-20122004><SPAN
class=556374610-23122004>Answering myself ...</SPAN></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=391221417-20122004><SPAN
class=556374610-23122004></SPAN></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=391221417-20122004><SPAN
class=556374610-23122004>/opencms/opencms/system/workplace/editors/editor.jsp?resource=<<link
to the content>></SPAN></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=391221417-20122004><SPAN
class=556374610-23122004></SPAN></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=391221417-20122004><SPAN
class=556374610-23122004>But it generates a nasty NPE (see
below)</SPAN></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=391221417-20122004><SPAN
class=556374610-23122004></SPAN></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=391221417-20122004><SPAN
class=556374610-23122004>This is not the correct way, isn't
it?</SPAN></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=391221417-20122004><SPAN
class=556374610-23122004></SPAN></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=391221417-20122004><SPAN
class=556374610-23122004></SPAN></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=391221417-20122004><SPAN
class=556374610-23122004>------</SPAN></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=391221417-20122004><SPAN
class=556374610-23122004>java.lang.NullPointerException<BR> at
org.opencms.workplace.editors.CmsXmlContentEditor.initElementLanguage(CmsXmlContentEditor.java:610)<BR> at
org.opencms.workplace.editors.CmsXmlContentEditor.initWorkplaceRequestValues(CmsXmlContentEditor.java:176)<BR> at
org.opencms.workplace.CmsWorkplace.<init>(CmsWorkplace.java:172)<BR> at
org.opencms.workplace.CmsDialog.<init>(CmsDialog.java:171)<BR> at
org.opencms.workplace.editors.CmsEditor.<init>(CmsEditor.java:174)<BR> at
org.opencms.workplace.editors.CmsXmlContentEditor.<init>(CmsXmlContentEditor.java:109)<BR> at
org.apache.jsp.editor_form_jsp._jspService(editor_form_jsp.java:49)<BR> at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)<BR> at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)<BR> at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:210)<BR> at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)<BR> at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)<BR> at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)<BR> at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)<BR> at
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:575)<BR> at
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:498)<BR> at
org.opencms.flex.CmsFlexRequestDispatcher.includeExternal(CmsFlexRequestDispatcher.java:357)<BR> at
org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:163)<BR> at
org.opencms.loader.CmsJspLoader.service(CmsJspLoader.java:410)<BR> at
org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:293)<BR> at
org.opencms.loader.CmsJspLoader.dispatchJsp(CmsJspLoader.java:442)<BR> at
org.opencms.loader.CmsJspLoader.load(CmsJspLoader.java:387)<BR> at
org.opencms.loader.CmsResourceManager.loadResource(CmsResourceManager.java:648)<BR> at
org.opencms.main.OpenCmsCore.showResource(OpenCmsCore.java:1346)<BR> at
org.opencms.main.OpenCmsServlet.doGet(OpenCmsServlet.java:103)<BR> at
javax.servlet.http.HttpServlet.service(HttpServlet.java:740)<BR> at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)<BR> at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)<BR> at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)<BR> at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)<BR> at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)<BR> at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)<BR> at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)<BR> at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)<BR> at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)<BR> at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)<BR> at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)<BR> at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)<BR> at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)<BR> at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)<BR> at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)<BR> at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)<BR> at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)<BR> at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)<BR> at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)<BR> at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)<BR> at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)<BR> at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)<BR> at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)<BR> at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)<BR> at
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)<BR> at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594)<BR> at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)<BR> at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)<BR> at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)<BR> at
java.lang.Thread.run(Thread.java:534)</DIV>
<DIV><PRE>-----</PRE></SPAN></SPAN></FONT></DIV></BODY></HTML>