All Downloads are FREE. Search and download functionalities are using the official Maven repository.

META-INF.resources.xava.editors.cardsEditor.jsp Maven / Gradle / Ivy

There is a newer version: 7.4.3
Show newest version
<%@ include file="../imports.jsp"%>

<%@ page import="org.openxava.util.Is" %>
<%@ page import="org.openxava.controller.ModuleManager" %>
<%@ page import="org.openxava.web.editors.Card" %>
<%@ page import="org.openxava.web.editors.CardIterator" %>
<%@ page import="org.openxava.tab.impl.IXTableModel" %>
<%@ page import="org.openxava.tab.Tab"%>
<%@ page import="org.openxava.view.View"%>




<% ModuleManager manager = (ModuleManager) context.get(request, "manager", "org.openxava.controller.ModuleManager"); Tab tab = (Tab) context.get(request, "xava_tab"); View view = (View) context.get(request, "xava_view"); String action=request.getParameter("rowAction"); action=action==null?manager.getEnvironment().getValue("XAVA_LIST_ACTION"):action; boolean loadMore = false; int limit = tab.getTableModel().getRowCount() - 1; if (tab.getTableModel().isAllLoaded()) limit = Integer.MAX_VALUE - 2; int chunkSize = tab.getTableModel().getChunkSize(); if (limit % chunkSize != 0) limit += 2; if (limit < chunkSize) limit = chunkSize; int i = 0; for (Card card: new CardIterator(tab, view, request, errors)) { %>
<%=card.getHeader()%>
<%=card.getSubheader()%>
<%=card.getContent()%>
<% if (i >= limit) { loadMore = true; break; } } if (loadMore) { %>
...
<% } else if (i == 0) { %>
<% } %>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy