* @param pageContext
* @return
*/
protected ApplicationStyle settingAppStyle(PageContext pageContext) {
String styleName = null;
ApplicationStyle style = (ApplicationStyle) pageContext.getAttribute(_STYLE_ID, PageContext.APPLICATION_SCOPE);
if (style == null) {
// TODO 是否采用配置
style = ApplicationStyle.WMS;
pageContext.setAttribute(_STYLE_ID, style, PageContext.APPLICATION_SCOPE);
} else {
styleName = (String) pageContext.getAttribute(_PAGE_STYLE_ID, PageContext.REQUEST_SCOPE);
if (styleName != null) {
style = ApplicationStyle.valueOf(styleName);
pageContext.setAttribute(_STYLE_ID, style, PageContext.APPLICATION_SCOPE);
}
}
ApplicationStyle.setCurrentStyle(style);
pageContext.setAttribute(_PAGE_STYLE_ID, style.name(), PageContext.APPLICATION_SCOPE);
return style;
}