Author: nbelaevski
Date: 2010-12-27 18:53:45 -0500 (Mon, 27 Dec 2010)
New Revision: 20821
Modified:
trunk/ui/core/ui/src/main/java/org/richfaces/renderkit/LogRendererBase.java
trunk/ui/core/ui/src/main/resources/META-INF/resources/org.richfaces/log.js
Log:
https://issues.jboss.org/browse/RF-10092
Modified: trunk/ui/core/ui/src/main/java/org/richfaces/renderkit/LogRendererBase.java
===================================================================
--- trunk/ui/core/ui/src/main/java/org/richfaces/renderkit/LogRendererBase.java 2010-12-27
23:37:21 UTC (rev 20820)
+++ trunk/ui/core/ui/src/main/java/org/richfaces/renderkit/LogRendererBase.java 2010-12-27
23:53:45 UTC (rev 20821)
@@ -31,7 +31,7 @@
protected boolean isInline(Object attributeValue) {
LogMode mode = (LogMode) attributeValue;
- return mode == LogMode.inline;
+ return mode == null || mode == LogMode.inline;
}
}
Modified: trunk/ui/core/ui/src/main/resources/META-INF/resources/org.richfaces/log.js
===================================================================
--- trunk/ui/core/ui/src/main/resources/META-INF/resources/org.richfaces/log.js 2010-12-27
23:37:21 UTC (rev 20820)
+++ trunk/ui/core/ui/src/main/resources/META-INF/resources/org.richfaces/log.js 2010-12-27
23:53:45 UTC (rev 20821)
@@ -173,6 +173,8 @@
this.attachToDom();
richfaces.setLog(this);
+ options = options || {};
+
this.level = options.level;
this.hotkey = options.hotkey;
this.mode = (options.mode || 'inline');