// ist dieses Tag in einem Formular?
if (pageContext.getAttribute(Constants.FORM_KEY, PageContext.REQUEST_SCOPE) == null)
throw new JspException("element only allowed in forms");
Pagination pagination = (Pagination) TagUtils.getInstance().lookup(pageContext, name, property, scope);
long pages = 0;
long pageNr = 0;
if (pagination != null) {
pages = pagination.getCount() / pagination.getPage().getStep();
if ((pagination.getCount() % pagination.getPage().getStep()) > 0)
pages++;
pageNr = pagination.getPage().getPage();
}
if (pages > 1) {
if("true".equalsIgnoreCase(properties.getProperty("simpleType"))) {
for (int i = 1; i <= pages; i++) {