Skip to content

Commit

Permalink
Trying to add export feature.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rishabh Rao committed Dec 15, 2012
1 parent 952c55e commit 1c197bb
Showing 1 changed file with 8 additions and 7 deletions.
Expand Up @@ -15,7 +15,10 @@
emptyMessage="No organizations found."
filteredValue="#{organizationManagedBean.filteredOrganizations}"
draggableColumns="true"
styleClass="datatable-header-toolbar">
styleClass="datatable-header-toolbar"
paginator="true"
rows="10"
paginatorTemplate="{FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink}">

<f:facet name="header">
<p:toolbar>
Expand All @@ -24,18 +27,16 @@
<div class="span4">
<p:toolbarGroup align="left">
<p:commandButton styleClass="pull-left" id="new-organization-commandbutton" type="button" value="New" icon="ui-icon-document" />
<p:menuButton styleClass="pull-left" value="Export...">
<p:menuitem value="as PDF" icon="ui-icon-document" />
<p:menuitem value="as Excel" icon="ui-icon-document" />
<p:menuitem value="as CSV" title="Comma separated value file." icon="ui-icon-document" />
</p:menuButton>
<p:commandButton value="Export as XML...">
<p:dataExporter type="xml" target="organization-datatable" fileName="organizations" />
</p:commandButton>
</p:toolbarGroup>
</div>
<div class="span4">

</div>
<div class="span4">
<!-- <p:inputText id="globalFilter" styleClass="pull-right" onkeyup="organizationDatatable.filter()" />-->
<!--<p:inputText id="globalFilter" styleClass="pull-right" onkeyup="organizationDatatable.filter()" />-->
</div>
</div>
</p:toolbarGroup>
Expand Down

0 comments on commit 1c197bb

Please sign in to comment.