Facelets ui:debug and Spring Web Flow
Posted 2009/12/31 at 12:57 in
Software Development
Apparently, it’s too much to ask to get a single line change in an open source project these days. It must be the economy. So, if you want ui:debug to work with SWF, and you happen to be using something approximately around Facelets 1.1.15, here’s the diff:
--- src/java/com/sun/facelets/tag/ui/UIDebug.java.orig 2009-10-15 10:03:16.000000000 -0500
+++ src/com/sun/facelets/tag/ui/UIDebug.java 2009-12-31 12:45:57.000000000 -0600
@@ -75,7 +75,7 @@
sb.append("function faceletsDebug(URL) { day = new Date(); id = day.getTime(); eval(\"page\" + id + \" = window.open(URL, '\" + id + \"', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=800,height=600,left = 240,top = 212');\"); };");
sb.append("var faceletsOrigKeyup = document.onkeyup; document.onkeyup = function(e) { if (window.event) e = window.event; if (String.fromCharCode(e.keyCode) == '" + this.getHotkey() + "' & e.shiftKey & e.ctrlKey) faceletsDebug('");
sb.append(actionId);
- sb.append('?');
+ sb.append(actionId.contains("?") ? '&' : '?');
sb.append(KEY);
sb.append('=');
sb.append(writeDebugOutput(faces));
Wow.

Facelets ui:debug and Spring Web Flow by cum grano salis — nobody likes a clever bastard, unless otherwise expressly stated, is licensed under a Creative Commons Attribution-Noncommercial-No Derivative Works 3.0 United States License.

Leave a Reply
You must be logged in to post a comment.