You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by ne...@apache.org on 2007/10/31 16:42:34 UTC

svn commit: r590721 - in /lenya/trunk/src/modules/profiling: config/menu.xsp sitemap.xmap

Author: nettings
Date: Wed Oct 31 08:42:33 2007
New Revision: 590721

URL: http://svn.apache.org/viewvc?rev=590721&view=rev
Log:
partly reverted context prefix change.
we must handle the context prefix in the xsp, since it's not processed
by the proxy transformer, but it should not be necessary in the sitemap.

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

Modified: lenya/trunk/src/modules/profiling/config/menu.xsp
URL: http://svn.apache.org/viewvc/lenya/trunk/src/modules/profiling/config/menu.xsp?rev=590721&r1=590720&r2=590721&view=diff
==============================================================================
--- lenya/trunk/src/modules/profiling/config/menu.xsp (original)
+++ lenya/trunk/src/modules/profiling/config/menu.xsp Wed Oct 31 08:42:33 2007
@@ -18,15 +18,18 @@
          <menu i18n:attr="name" name="Development">
             <block>
                <!-- 
-                    This is a semi-nasty kind of hack. The goal is to open 
+                    This is a 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,
+                    attribute, i.e. we can't use onclick="" or target="" here. 
+                    To make sure the window always pops up in front,
                     we focus() it.
                     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. 
+                    Unfortunately, we need to take care of the webapp context
+                    prefix manually, because Lenya's ProxyTransformer can't 
+                    reach into this javascript: link.
                 -->
                <item>
                  <xsp:attribute> 

Modified: lenya/trunk/src/modules/profiling/sitemap.xmap
URL: http://svn.apache.org/viewvc/lenya/trunk/src/modules/profiling/sitemap.xmap?rev=590721&r1=590720&r2=590721&view=diff
==============================================================================
--- lenya/trunk/src/modules/profiling/sitemap.xmap (original)
+++ lenya/trunk/src/modules/profiling/sitemap.xmap Wed Oct 31 08:42:33 2007
@@ -14,7 +14,7 @@
     <map:transform src="xslt/xmlverbatimwrapper.xsl">
       <map:parameter 
           name="css-stylesheet" 
-          value="{page-envelope:context-prefix}/modules/profiling/css/xmlverbatim.css"
+          value="/modules/profiling/css/xmlverbatim.css"
       />
     </map:transform>
     <map:transform type="proxy"/>



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org