page.writeElement("input", "type", "hidden", "name", TYPE_PARAMETER, "value", type != null ? type.getId() : null);
page.writeElement("input", "type", "hidden", "name", PREDICATE_PARAMETER, "value", predicate);
page.writeElement("input", "type", "hidden", "name", "returnUrl", "value", page.url(""));
for (ObjectField field : fields) {
page.writeElement("input", "type", "hidden", "name", FIELDS_PARAMETER, "value", field.getInternalName());
}
page.writeStart("ul", "class", "pagination");
if (result.hasPrevious()) {
page.writeStart("li", "class", "next");