public class CallbackTag
extends javax.servlet.jsp.tagext.TagSupport
JSP tag used to add a DataTables callback.
Note that this tag will be processed only once, at the first iteration.
Usage example:
<script> function myInitCallback(oSettings, json) { // some stuff } </script> ... <datatables:table id="myTableId" data="${persons}"> <datatables:column title="Id" property="id" /> <datatables:column title="Firstname" property="firstName" /> <datatables:column title="LastName" property="lastName" /> <datatables:column title="City" property="address.town.name" /> <datatables:column title="Mail" property="mail" /> <datatables:callback type="init" function="myInitCallback" /> </datatables:table>
Constructor and Description |
---|
CallbackTag() |
Modifier and Type | Method and Description |
---|---|
int |
doEndTag() |
int |
doStartTag() |
void |
setFunction(String function) |
void |
setType(String type) |
public int doStartTag() throws javax.servlet.jsp.JspException
doStartTag
in interface javax.servlet.jsp.tagext.Tag
doStartTag
in class javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.JspException
public int doEndTag() throws javax.servlet.jsp.JspException
doEndTag
in interface javax.servlet.jsp.tagext.Tag
doEndTag
in class javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.JspException
public void setType(String type)
public void setFunction(String function)
Copyright © 2013–2015 Dandelion Project. All rights reserved.