public class ExportTag
extends javax.servlet.jsp.tagext.TagSupport
JSP tag used to configure an export type in the current table.
Note that this tag will be processed only once, at the first iteration.
Usage example:
<datatables:table id="myTableId" data="${persons}" row="person" export="xls"> <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" display="html"> <a href="mailto:${person.mail}">${person.mail}</a> </datatables:column> <datatables:column title="Mail" property="mail" display="xls" /> <datatables:export type="xls" autoSize="true" cssClass="btn" label="XLS export!" /> </datatables:table>
ExportConf
,
Serialized FormConstructor and Description |
---|
ExportTag() |
Modifier and Type | Method and Description |
---|---|
int |
doEndTag() |
int |
doStartTag() |
void |
setAutoSize(Boolean autoSize) |
void |
setCssClass(String cssClass) |
void |
setCssStyle(String cssStyle) |
void |
setEscapeXml(boolean escapeXml) |
void |
setFileExtension(String fileExtension) |
void |
setFileName(String fileName) |
void |
setIncludeHeader(Boolean includeHeader) |
void |
setLabel(String label) |
void |
setMethod(String method) |
void |
setMimeType(String mimeType) |
void |
setOrientation(String orientation) |
void |
setType(String type) |
void |
setUrl(String url) |
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 setFileName(String fileName)
public void setType(String type)
public void setLabel(String label)
public void setCssStyle(String cssStyle)
public void setCssClass(String cssClass)
public void setIncludeHeader(Boolean includeHeader)
public void setAutoSize(Boolean autoSize)
public void setUrl(String url)
public void setMethod(String method)
public void setOrientation(String orientation)
public void setFileExtension(String fileExtension)
public void setMimeType(String mimeType)
public void setEscapeXml(boolean escapeXml)
Copyright © 2013–2015 Dandelion Project. All rights reserved.