META-INF.resources.xava.list.jsp Maven / Gradle / Ivy
<%@ include file="imports.jsp"%>
<%@ page import="org.openxava.web.WebEditors" %>
<%@ page import="org.openxava.util.XavaResources"%>
<%@ page import="org.openxava.model.meta.MetaProperty" %>
<%@ page import="org.openxava.tab.Tab"%>
<%@ page import="org.openxava.util.Is" %>
<%
String tabObject = request.getParameter("tabObject");
tabObject = (tabObject == null || tabObject.equals(""))?"xava_tab":tabObject;
org.openxava.tab.Tab tab = (org.openxava.tab.Tab) context.get(request, tabObject);
String editor = tab.getEditor();
String collection = request.getParameter("collection");
org.openxava.controller.ModuleManager manager = (org.openxava.controller.ModuleManager) context.get(request, "manager", "org.openxava.controller.ModuleManager");
String groupBy = tab.getGroupBy();
boolean grouping = !Is.emptyString(groupBy);
%>
<%
if (collection == null || collection.equals("")) {
%>
>
>
<% if (style.isShowModuleDescription()) { %>
<%=manager.getModuleDescription()%>
<% } %>
<%
if (!tab.isAllConfiguration()) {
if (tab.isSaveConfigurationAllowed()) { %>
<%
}
else {
%>
<%
}
}
%>
<%
if (tab.isTitleVisible()) {
%>
<% if (style.isShowModuleDescription()) { %> - <% } %>
<%=tab.getTitle()%>
<%
}
%>
<% if (style.isShowRowCountOnTop() && !grouping) { // && grouping
int totalSize = tab.getTotalSize();
int finalIndex = Math.min(totalSize, tab.getFinalIndex());
%>
<%=XavaResources.getString(request, "header_list_count", new Integer(tab.getInitialIndex() + 1), new Integer(finalIndex), new Integer(totalSize))%>
<% } %>
<% if (manager.getDialogLevel() == 0) { %>
<% } %>
<%
}
%>