[opencms-dev] Problem with CmsEditorFrameset

Alessio Brizi alessio.brizi at gmail.com
Tue Nov 18 09:12:20 CET 2008


Hi to all, I realized a web app with its backoffice so the users don’t have
to use the workplace to edit the content.
When a backoffice user try to edit a file I redirect it to the following
url:
/opencms/opencms/system/workplace/editors/editor.jsp?directedit=true&resourc
e=/sites/default/<resource_path>&backlink=/backoffice?section=redirect 

I analyze the server response through a debugging proxy
and it returns me the following HTML:
*******************************************************
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html>
<head>
<meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css"
href="/opencms/export/system/workplace/commons/style/workplace.css">
<script type="text/javascript">
function submitAction(actionValue, theForm, formName) {
                if (theForm == null) {
                                theForm = document.forms[formName];
                }
                theForm.framename.value = window.name;
                if (actionValue == "ok") {
                                return true;
                }
                theForm.action.value = actionValue;
                theForm.submit();
                return false;
}
var onlineHelpUriCustom = null;
</script>

<script type="text/javascript">
<!--
this.location.href = "/opencms/opencms/backoffice?section=redirect";
//-->
</script>
<body>
</body>
</html><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>(Admin) - Editing /sites/default/<resource_path></title>
<script type="text/javascript">
<!--
                // change window name when opening editor in direct edit
mode 
                // to avoid loss of content when previewing another resource
in Explorer view
                if (window.name == "preview") {
                                window.name = "editor_directedit";
                }
//-->
</script>
</head>

<frameset rows="*,24,0" border="0" frameborder="0" framespacing="0">
    <frame name="edit"
src="/opencms/opencms/system/workplace/editors/editor_main.jsp?backlink=%2Fb
ackoffice%3Fsection%3Dredirect&resource=%2Fsites%2Fdefault%2F<resource_path>
&directedit=true" noresize scrolling="no">
    <frame name="foot"
src="/opencms/opencms/system/workplace/views/top_foot.jsp" noresize
scrolling="no">
    <frame name="closeframe"
src="/opencms/opencms/system/workplace/editors/editor_close.jsp" noresize
scrolling="no">
</frameset>
*******************************************************

It seems like 2 HTML pages!!
The first part redirects me to /backoffice?section=redirect preventing me to
edit the resource.
Analyzing the /system/workplace/editors/editor.jsp file I found that the
first part of the response comes from this line of code:
CmsEditorFrameset wp = new CmsEditorFrameset(cms);

Is it possible? In the OpenCMS source code (I use version 6.2.2) I didn’t
found anything that can send me the response above.
Can you help me?
Thanks in advance

Alessio Brizi




More information about the opencms-dev mailing list