<%--
 * Copyright by Intland Software
 *
 * All rights reserved.
 *
 * This software is the confidential and proprietary information
 * of Intland Software. ("Confidential Information"). You
 * shall not disclose such Confidential Information and shall use
 * it only in accordance with the terms of the license agreement
 * you entered into with Intland.
 *
 * $Revision$ $Date$
--%>

<%@ taglib uri="jstl-c" prefix="c" %>
<%@ taglib uri="http://www.opensymphony.com/sitemesh/decorator" prefix="decorator" %>
<%@ taglib uri="log" prefix="log"%>

<%@ page import="com.intland.codebeamer.wicket.layout.SitemeshModuleDefaults"%>
<%@ page import="com.intland.codebeamer.Config"%>

<%-- small fragment sets up the default values (SitemeshModuleDefaults) object for the current module.
	 only used if <meta name="useModuleDefaults" value="true"> meta tag is set.

	 Any values in the moduleDefaults is only used if an explicit meta tag for that module is not set.
 --%>
<c:set var="useModuleDefaults" ><decorator:getProperty property="meta.useModuleDefaults"/></c:set>
<log:debug>moduleDefaults.jsp: useModuleDefaults: ${useModuleDefaults}</log:debug>
<c:if test="${useModuleDefaults}">
	<c:set var="module"><decorator:getProperty property="meta.module"/></c:set>
	<c:set var="moduleDefaults" value="<%=SitemeshModuleDefaults.getModuleDefaults((String)pageContext.findAttribute(\"module\"))%>"></c:set>

	<c:if test="<%=Config.isDevelopmentMode()%>">
		<!-- Sitemesh is using module defaults: ${moduleDefaults} -->
 	</c:if>
</c:if>
