Author: schof
Date: Sun Sep 3 16:51:39 2006
New Revision: 439876
URL: http://svn.apache.org/viewvc?view=rev&rev=439876
Log:
Added a WARN message when no dialog configuration information is found.
(SHALE-271)
Modified:
shale/sandbox/shale-dialog2-legacy/src/main/java/org/apache/shale/dialog2/legacy/LegacyDialogManager.java
Modified:
shale/sandbox/shale-dialog2-legacy/src/main/java/org/apache/shale/dialog2/legacy/LegacyDialogManager.java
URL:
http://svn.apache.org/viewvc/shale/sandbox/shale-dialog2-legacy/src/main/java/org/apache/shale/dialog2/legacy/LegacyDialogManager.java?view=diff&rev=439876&r1=439875&r2=439876
==============================================================================
---
shale/sandbox/shale-dialog2-legacy/src/main/java/org/apache/shale/dialog2/legacy/LegacyDialogManager.java
(original)
+++
shale/sandbox/shale-dialog2-legacy/src/main/java/org/apache/shale/dialog2/legacy/LegacyDialogManager.java
Sun Sep 3 16:51:39 2006
@@ -22,6 +22,8 @@
import java.util.Map;
import javax.faces.FacesException;
import javax.faces.context.FacesContext;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
import org.apache.shale.dialog2.Constants;
import org.apache.shale.dialog2.DialogContext;
import org.apache.shale.dialog2.DialogContextManager;
@@ -37,6 +39,13 @@
*/
public final class LegacyDialogManager implements DialogContextManager,
Serializable {
+ // -------------------------------------------------------- Static
Variables
+
+ /**
+ * <p>The <code>Log</code> instance for this class.</p>
+ */
+ private static final Log log =
LogFactory.getLog(DialogContextManager.class);
+
// ------------------------------------------------------ DialogContext
Variables
@@ -140,6 +149,8 @@
context.getExternalContext().getInitParameter(Globals.CONFIGURATION);
if (resources == null) {
resources = "";
+ log.warn("No dialog configuration information present. Comma
separated files should be listed under the " +
+ "context parameter: " + Globals.CONFIGURATION);
}
int comma = 0;
String path = null;