lastValue = "<img src='"+sRootPath+"/images/last.gif'"+"/>";
gotoPageStart = RequestUtils.message(super.pageContext, bundle, localeKey, "label.tag.page.turn");
gotoPageEnd = RequestUtils.message(super.pageContext, bundle, localeKey, "label.tag.page");
}
private String generateNextPageJS(String method) {
StringBuffer results = new StringBuffer();
results.append("function nextPage_"+property+"(frm) {\n");
results.append(" frm.elements[\""+property+".paginationActionTag\"].value = \"Next\";\n");
results.append("ajaxAnywhere.submitAJAX(");
results.append("'"+method+"',");
results.append("'"+zone+"')\n");
results.append("}\n");
return results.toString();
}
private String generatePrevPageJS(String method) {
StringBuffer results = new StringBuffer();
results.append("function prevPage_"+property+"(frm) {\n");
results.append(" frm.elements[\""+property+".paginationActionTag\"].value = \"Previo\";\n");
results.append("ajaxAnywhere.submitAJAX(");
results.append("'"+method+"',");
results.append("'"+zone+"')\n");
results.append("}\n");
return results.toString();
}
private String generateFirstPageJS(String method) {
StringBuffer results = new StringBuffer();
results.append("function firstPage_"+property+"(frm) {\n");
results.append(" frm.elements[\""+property+".paginationActionTag\"].value = \"First\";\n");
results.append("ajaxAnywhere.submitAJAX(");
results.append("'"+method+"',");
results.append("'"+zone+"')\n");
results.append("}\n");
return results.toString();
}
private String generateLastPageJS(String method) {
StringBuffer results = new StringBuffer();
results.append("function lastPage_"+property+"(frm) {\n");
results.append(" frm.elements[\""+property+".paginationActionTag\"].value = \"Last\";\n");
results.append("ajaxAnywhere.submitAJAX(");
results.append("'"+method+"',");
results.append("'"+zone+"')\n");
results.append("}\n");
return results.toString();
}