svn commit: r590601 - /lenya/trunk/src/modules/profiling/config/menu.xsp

[email protected]
Newsgroups gmane.comp.cms.lenya.cvs
Message-ID <[email protected]>
Author: nettings
Date: Wed Oct 31 02:19:16 2007
New Revision: 590601

URL: http://svn.apache.org/viewvc?rev=590601&view=rev
Log:
fix missing context in profiling menu link

Modified:
    lenya/trunk/src/modules/profiling/config/menu.xsp

Modified: lenya/trunk/src/modules/profiling/config/menu.xsp
URL: http://svn.apache.org/viewvc/lenya/trunk/src/modules/profiling/config/menu.xsp?rev=590601&r1=590600&r2=590601&view=diff
==============================================================================
--- lenya/trunk/src/modules/profiling/config/menu.xsp (original)
+++ lenya/trunk/src/modules/profiling/config/menu.xsp Wed Oct 31 02:19:16 2007
@@ -6,32 +6,33 @@
    -->
 
 
-<xsp:page xmlns:uc="http://apache.org/cocoon/lenya/usecase/1.0"
-          xmlns:i18n="http://apache.org/cocoon/i18n/2.1"
-          xmlns="http://apache.org/cocoon/lenya/menubar/1.0"
-          xmlns:xsp="http://apache.org/xsp"
-          language="java">
+<xsp:page 
+    xmlns:i18n="http://apache.org/cocoon/i18n/2.1"
+    xmlns:input="http://apache.org/cocoon/xsp/input/1.0"
+    xmlns:xsp="http://apache.org/xsp"
+    xmlns="http://apache.org/cocoon/lenya/menubar/1.0"
+    language="java"
+>
    <menu>
       <menus>
          <menu i18n:attr="name" name="Development">
             <block>
                <!-- 
-                    this is a semi-nasty kind of hack. the goal is to open 
-                    the profiler output in a separate window with javascript.
-                    the UsecaseMenuTransformer will only accept a href="" 
+                    This is a semi-nasty kind of hack. The goal is to open 
+                    the profiler output in a separate window with Javascript.
+                    The UsecaseMenuTransformer will only accept a href="" 
                     attribute, i.e. we can't use onclick="" here. 
-                    to make sure the window always pops up in front, we
+                    to make sure the window always pops up in front,
                     we focus() it.
-                    at the same time, we want the original window to remain 
+                    At the same time, we want the original window to remain 
                     unchanged, so we use the "void" operator to suppress the
                     return value of the whole expression. 
                 -->
                <item>
                  <xsp:attribute> 
                    <xsp:param name="name">href</xsp:param>
-                   <xsp:expr>
-                      "javascript: void window.open('"
-                    + parameters.getParameter("servlet-context", "[context]") 
+                   <xsp:expr>"javascript:void window.open('"
+                    + <input:get-attribute module="page-envelope" as="string" name="context-prefix"/> 
                     + "/modules/profiling/profile.html',"
                     + "'Cocoon Profiler',"
                     + "'location=yes,scrollbars=yes,menubar=no,"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.