struts-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From herma...@apache.org
Subject svn commit: r442935 - /struts/struts2/trunk/core/src/main/resources/template/simple/debug.ftl
Date Wed, 13 Sep 2006 10:47:11 GMT
Author: hermanns
Date: Wed Sep 13 03:47:10 2006
New Revision: 442935

URL: http://svn.apache.org/viewvc?view=rev&rev=442935
Log:
Debug tag does not render id attribute correctly
o backport from WW 2.2.3

Issue Number: WW-1438

Modified:
    struts/struts2/trunk/core/src/main/resources/template/simple/debug.ftl

Modified: struts/struts2/trunk/core/src/main/resources/template/simple/debug.ftl
URL: http://svn.apache.org/viewvc/struts/struts2/trunk/core/src/main/resources/template/simple/debug.ftl?view=diff&rev=442935&r1=442934&r2=442935
==============================================================================
--- struts/struts2/trunk/core/src/main/resources/template/simple/debug.ftl (original)
+++ struts/struts2/trunk/core/src/main/resources/template/simple/debug.ftl Wed Sep 13 03:47:10
2006
@@ -15,8 +15,8 @@
 </script>
 <p/>
 
-<a href="#" onclick="toggleDebug('${parameters.id?default("debug")}');return false;">[Debug]</a>
-<div style="display:none" id="${parameters.id?default("debug")}">
+<a href="#" onclick="toggleDebug('<#if parameters.id?if_exists != "">${parameters.id?html}<#else>debug</#if>');return
false;">[Debug]</a>
+<div style="display:none" id="<#if parameters.id?if_exists != "">${parameters.id?html}<#else>debug</#if>">
 <h2>Struts ValueStack Debug</h2>
 <p/>
 



Mime
View raw message