Mercurial > hg > ismi-richfaces
view src/main/webapp/browse/components/showAllResult.xhtml @ 103:03dcbaf8b8cf
add download-as-csv button to browse repository.
author | casties |
---|---|
date | Thu, 03 Nov 2016 20:10:58 +0100 |
parents | 764f47286679 |
children |
line wrap: on
line source
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:a4j="http://richfaces.org/a4j" xmlns:rich="http://richfaces.org/rich"> <body> <ui:composition> <h:outputText value="#{EntityRepository.resultSummaryMsg}" rendered="#{!empty EntityRepository.resultSummaryMsg}" styleClass="sumaryMsg"/> <h:column rendered="#{!empty EntityRepository.entities}"> <h:outputText value="go to page" styleClass="sumaryMsg"/> <h:inputText value="#{EntityRepository.page}" size="4"/> <h:commandButton value="submit" actionListener="#{EntityRepository.listenerGoToPage}" /> <h:outputText value=" #{EntityRepository.pageMsg}" rendered="#{!empty EntityRepository.pageMsg}" style="color:red" /> </h:column> <h:column rendered="#{!empty EntityRepository.entities}"> <h:panelGroup> <h:commandButton action="#{EntityRepository.first}" title="rewind" image="/resources/css/xp/css-images/arrow-first.gif" /> <h:commandButton action="#{EntityRepository.fastRewind}" title="fast rewind" image="/resources/css/xp/css-images//arrow-fr.gif" /> <h:commandButton action="#{EntityRepository.previous}" title="previous" image="/resources/css/xp/css-images//arrow-previous.gif" /> <h:outputText value="#{EntityRepository.paginator.recordStatus}" styleClass="sumaryMsg" /> <h:commandButton action="#{EntityRepository.next}" title="next" image="/resources/css/xp/css-images//arrow-next.gif" /> <h:commandButton action="#{EntityRepository.fastForward}" title="fast forward" image="/resources/css/xp/css-images//arrow-ff.gif" /> <h:commandButton action="#{EntityRepository.last}" title="fast forward" image="/resources/css/xp/css-images//arrow-last.gif" /> </h:panelGroup> </h:column> <h:column> <rich:dataTable id="entitiesDataTable" value="#{EntityRepository.entities}" rendered="#{!empty EntityRepository.entities}" var="entity" styleClass="rsPanel" columnClasses="rsPanelColumn"> <h:column> <h:outputText value="[#{entity.objectClass}] " /> <h:outputLink value="#{ApplicationBean1.root}/browse/entityDetails.xhtml?eid=#{entity.id}"> <h:outputText value="#{entity.ownValue} - [#{entity.id}, #{entity.privacity}]" /> </h:outputLink> <h:commandButton action="#{EntityRepository.actionEdit}" rendered="#{Session.canEdit}" image="/resources/css/xp/css-images//edit16.gif" title="Edit this entity"/> </h:column> </rich:dataTable> </h:column> <h:column rendered="#{!empty EntityRepository.entities}"> <h:panelGroup> <h:commandButton action="#{EntityRepository.first}" title="rewind" image="/resources/css/xp/css-images/arrow-first.gif" /> <h:commandButton action="#{EntityRepository.fastRewind}" title="fast rewind" image="/resources/css/xp/css-images//arrow-fr.gif" /> <h:commandButton action="#{EntityRepository.previous}" title="previous" image="/resources/css/xp/css-images//arrow-previous.gif" /> <h:outputText value="#{EntityRepository.paginator.recordStatus}" styleClass="sumaryMsg" /> <h:commandButton action="#{EntityRepository.next}" title="next" image="/resources/css/xp/css-images//arrow-next.gif" /> <h:commandButton action="#{EntityRepository.fastForward}" title="fast forward" image="/resources/css/xp/css-images//arrow-ff.gif" /> <h:commandButton action="#{EntityRepository.last}" title="fast forward" image="/resources/css/xp/css-images//arrow-last.gif" /> </h:panelGroup> </h:column> <h:column rendered="#{!empty EntityRepository.entities}"> <h:commandButton value="download all as CSV" actionListener="#{EntityRepository.downloadAllCsv}" /> </h:column> </ui:composition> </body> </html>