You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by mm...@apache.org on 2007/08/12 14:58:43 UTC

svn commit: r565059 - in /myfaces/core/branches/1_2_1/api/src/main/resources/META_INF: ./ rsc/ rsc/facelet-dev-debug.xml rsc/facelet-dev-error.xml

Author: mmarinschek
Date: Sun Aug 12 05:58:42 2007
New Revision: 565059

URL: http://svn.apache.org/viewvc?view=rev&rev=565059
Log:
fix for https://issues.apache.org/jira/browse/MYFACES-1702: Thanks to Bernhard Huemer

Added:
    myfaces/core/branches/1_2_1/api/src/main/resources/META_INF/
    myfaces/core/branches/1_2_1/api/src/main/resources/META_INF/rsc/
    myfaces/core/branches/1_2_1/api/src/main/resources/META_INF/rsc/facelet-dev-debug.xml
    myfaces/core/branches/1_2_1/api/src/main/resources/META_INF/rsc/facelet-dev-error.xml

Added: myfaces/core/branches/1_2_1/api/src/main/resources/META_INF/rsc/facelet-dev-debug.xml
URL: http://svn.apache.org/viewvc/myfaces/core/branches/1_2_1/api/src/main/resources/META_INF/rsc/facelet-dev-debug.xml?view=auto&rev=565059
==============================================================================
--- myfaces/core/branches/1_2_1/api/src/main/resources/META_INF/rsc/facelet-dev-debug.xml (added)
+++ myfaces/core/branches/1_2_1/api/src/main/resources/META_INF/rsc/facelet-dev-debug.xml Sun Aug 12 05:58:42 2007
@@ -0,0 +1,55 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+<title>Debug - @@message@@</title>
+<style type="text/css">
+body, div, span, td, th, caption { font-family: 'Trebuchet MS', Verdana, Arial, Sans-Serif; font-size: small; }
+ul, li, pre { padding: 0; margin: 0; }
+h1 { color: #090; }
+h2, h2 span { font-size: large; color: #339; }
+h2 a { text-decoration: none; color: #339; }
+.grayBox { padding: 8px; margin: 10px 0; border: 1px solid #CCC; background-color: #f9f9f9;  }
+#view { color: #090; font-weight: bold; font-size: medium; }
+#tree, #vars { display: none; }
+code { font-size: medium; }
+#tree dl { color: #006; }
+#tree dd { margin-top: 2px; margin-bottom: 2px; }
+#tree dt { border: 1px solid #DDD; padding: 4px; border-left: 2px solid #666; font-family: "Courier New", Courier, mono; font-size: small; }
+.uicText { color: #999;  }
+.highlightComponent { color: #FFFFFF; background-color: #FF0000;  }
+table { border: 1px solid #CCC; border-collapse: collapse; border-spacing: 0px; width: 100%; text-align: left; }
+td { border: 1px solid #CCC; }
+thead tr th { padding: 2px; color: #030; background-color: #F9F9F9; }
+tbody tr td { padding: 10px 6px; }
+table caption { text-align: left; padding: 10px 0; font-size: large; }
+</style>
+<style type="text/css" media="print">
+#trace, #tree, #vars { display: block; }
+</style>
+<script language="javascript" type="text/javascript">
+function toggle(id) {
+	var style = document.getElementById(id).style;
+	if ("block" == style.display) {
+		style.display = "none";
+		document.getElementById(id+"Off").style.display = "inline";
+		document.getElementById(id+"On").style.display = "none";
+	} else {
+		style.display = "block";
+		document.getElementById(id+"Off").style.display = "none";
+		document.getElementById(id+"On").style.display = "inline";
+	}
+}
+</script>
+</head>
+<body>
+<h1>Debug Output</h1>
+<div id="error" class="grayBox" style="border: 1px solid #090;">@@message@@</div>
+<h2><a href="#" onclick="toggle('tree'); return false;"><span id="treeOff">+</span><span id="treeOn" style="display: none;">-</span> Component Tree</a></h2>
+<div id="tree" class="grayBox"><code>@@tree@@</code></div>
+<h2><a href="#" onclick="toggle('vars'); return false;"><span id="varsOff">+</span><span id="varsOn" style="display: none;">-</span> Scoped Variables</a></h2>
+<div id="vars">@@vars@@</div>
+<div class="grayBox" style="text-align: right; color: #666;">@@now@@ - Generated by MyFaces - for information on disabling or modifying this error-page, see <a
+href="http://wiki.apache.org/myfaces/Handling_Server_Errors">Server error handling</a></div>
+</body>
+</html>

Added: myfaces/core/branches/1_2_1/api/src/main/resources/META_INF/rsc/facelet-dev-error.xml
URL: http://svn.apache.org/viewvc/myfaces/core/branches/1_2_1/api/src/main/resources/META_INF/rsc/facelet-dev-error.xml?view=auto&rev=565059
==============================================================================
--- myfaces/core/branches/1_2_1/api/src/main/resources/META_INF/rsc/facelet-dev-error.xml (added)
+++ myfaces/core/branches/1_2_1/api/src/main/resources/META_INF/rsc/facelet-dev-error.xml Sun Aug 12 05:58:42 2007
@@ -0,0 +1,57 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+<title>Error - @@message@@</title>
+<style type="text/css">
+body, div, span, td, th, caption { font-family: 'Trebuchet MS', Verdana, Arial, Sans-Serif; font-size: small; }
+ul, li, pre { padding: 0; margin: 0; }
+h1 { color: #900; }
+h2, h2 span { font-size: large; color: #339; }
+h2 a { text-decoration: none; color: #339; }
+.grayBox { padding: 8px; margin: 10px 0; border: 1px solid #CCC; background-color: #f9f9f9;  }
+#error { color: #900; font-weight: bold; font-size: medium; }
+#trace, #tree, #vars { display: none; }
+code { font-size: medium; }
+#tree dl { color: #006; }
+#tree dd { margin-top: 2px; margin-bottom: 2px; }
+#tree dt { border: 1px solid #DDD; padding: 4px; border-left: 2px solid #666; font-family: "Courier New", Courier, mono; font-size: small; }
+.uicText { color: #999;  }
+.highlightComponent { color: #FFFFFF; background-color: #FF0000;  }
+table { border: 1px solid #CCC; border-collapse: collapse; border-spacing: 0px; width: 100%; text-align: left; }
+td { border: 1px solid #CCC; }
+thead tr th { padding: 2px; color: #030; background-color: #F9F9F9; }
+tbody tr td { padding: 10px 6px; }
+table caption { text-align: left; padding: 10px 0; font-size: large; }
+</style>
+<style type="text/css" media="print">
+#trace, #tree, #vars { display: block; }
+</style>
+<script language="javascript" type="text/javascript">
+function toggle(id) {
+	var style = document.getElementById(id).style;
+	if ("block" == style.display) {
+		style.display = "none";
+		document.getElementById(id+"Off").style.display = "inline";
+		document.getElementById(id+"On").style.display = "none";
+	} else {
+		style.display = "block";
+		document.getElementById(id+"Off").style.display = "none";
+		document.getElementById(id+"On").style.display = "inline";
+	}
+}
+</script>
+</head>
+<body>
+<h1>An Error Occurred:</h1>
+<div id="error" class="grayBox" style="border: 1px solid #900;">@@message@@<br/><br/>Caused by:<br/>@@cause@@</div>
+<h2><a href="#" onclick="toggle('trace'); return false;"><span id="traceOff">+</span><span id="traceOn" style="display: none;">-</span> Stack Trace</a></h2>
+<div id="trace" class="grayBox"><pre><code>@@trace@@</code></pre></div>
+<h2><a href="#" onclick="toggle('tree'); return false;"><span id="treeOff">+</span><span id="treeOn" style="display: none;">-</span> Component Tree</a></h2>
+<div id="tree" class="grayBox"><code>@@tree@@</code></div>
+<h2><a href="#" onclick="toggle('vars'); return false;"><span id="varsOff">+</span><span id="varsOn" style="display: none;">-</span> Scoped Variables</a></h2>
+<div id="vars">@@vars@@</div>
+<div class="grayBox" style="text-align: right; color: #666;">@@now@@ - Generated by MyFaces - for information on disabling or modifying this error-page, see <a
+href="http://wiki.apache.org/myfaces/Handling_Server_Errors">Disabling error handling in MyFaces</a></div>
+</body>
+</html>