view src/main/webapp/clean/components/findAuthor.xhtml @ 168:e9ab943ec528 public_by_author

new start for publicByAuthor using EntityRepositoryBean.
author Robert Casties <casties@mpiwg-berlin.mpg.de>
date Wed, 30 May 2018 20:23:45 +0200
parents 85fdcca37a0d
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:panelGrid columns="2" styleClass="displayPanel"
			columnClasses="displayPanelColumn01,displayPanelColumn02">

			<h:panelGrid columns="1">
				<h:outputLabel value="Person name" />
				<h:outputLabel value="(name_translit)" />
			</h:panelGrid>
			<h:inputText value="#{Session.publicByAuthor.browseBean.personNameTranslit}" />

            <a4j:commandButton value="show all"
                actionListener="#{Session.publicByAuthor.listenerAllAuthorSearch}"
                render="selectPersonPanel" />

			<a4j:commandButton value="search"
				actionListener="#{Session.publicByAuthor.browseBean.actionSearchByAttributes}"
				render="selectPersonPanel" />


		</h:panelGrid>

		<h:panelGrid id="selectPersonPanel" columns="1"
			style="margin-left: auto; margin-right: auto; text-align: center; width: 100%;"
			>


			<h:outputText
				value="#{Session.publicByAuthor.browseBean.resultSummaryMsg}"
				rendered="#{!empty Session.publicByAuthor.browseBean.resultSummaryMsg}"
				styleClass="sumaryMsg" />

			<h:column
				rendered="#{!empty Session.publicByAuthor.browseBean.entities}">
				<h:outputText value="go to page" styleClass="sumaryMsg" />
				<h:inputText value="#{Session.publicByAuthor.browseBean.page}"
					size="4" />
				<h:commandButton value="submit"
					actionListener="#{Session.publicByAuthor.browseBean.actionGoToPageAdvancedResult}" />
				<h:outputText value=" #{Session.publicByAuthor.browseBean.pageMsg}"
					rendered="#{!empty Session.publicByAuthor.browseBean.pageMsg}"
					style="color:red" />
			</h:column>


			<h:column
				rendered="#{!empty Session.publicByAuthor.browseBean.entities}">
				<h:panelGroup>
					<h:commandButton
						image="/resources/css/xp/css-images/arrow-first.gif"
						style="border:none;" title="First Page"
						action="#{Session.publicByAuthor.browseBean.advancedFirst}" />

					<h:commandButton image="/resources/css/xp/css-images/arrow-fr.gif"
						style="border:none;" title="Fast Backwards"
						action="#{Session.publicByAuthor.browseBean.advancedFastRewind}" />

					<h:commandButton
						image="/resources/css/xp/css-images/arrow-previous.gif"
						style="border:none;" title="Previous Page"
						action="#{Session.publicByAuthor.browseBean.advancedPrevious}" />

					<h:outputText
						value="#{Session.publicByAuthor.browseBean.advancedPaginator.recordStatus}"
						styleClass="sumaryMsg" />

					<h:commandButton
						image="/resources/css/xp/css-images/arrow-next.gif"
						style="border:none;" title="Next Page"
						action="#{Session.publicByAuthor.browseBean.advancedNext}" />

					<h:commandButton image="/resources/css/xp/css-images/arrow-ff.gif"
						style="border:none;" title="Fast Forward"
						action="#{Session.publicByAuthor.browseBean.advancedFastForward}" />

					<h:commandButton
						image="/resources/css/xp/css-images/arrow-last.gif"
						style="border:none;" title="Last Page"
						action="#{Session.publicByAuthor.browseBean.advancedLast}" />
				</h:panelGroup>
			</h:column>

			<rich:dataTable id="advancedDataTable" rows="10"
				value="#{Session.publicByAuthor.browseBean.currentEntities}"
				rendered="#{!empty Session.publicByAuthor.browseBean.currentEntities}"
				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="#{Session.publicByAuthor.browseBean.actionEdit}"
						rendered="#{Session.canEdit}"
						image="/resources/css/xp/css-images//edit16.gif"
						title="Edit this entity" />
				</h:column>
			</rich:dataTable>

			<h:column
				rendered="#{!empty Session.publicByAuthor.browseBean.entities}">
				<h:panelGroup>
					<h:commandButton
						image="/resources/css/xp/css-images/arrow-first.gif"
						style="border:none;" title="First Page"
						action="#{Session.publicByAuthor.browseBean.advancedFirst}" />

					<h:commandButton image="/resources/css/xp/css-images/arrow-fr.gif"
						style="border:none;" title="Fast Backwards"
						action="#{Session.publicByAuthor.browseBean.advancedFastRewind}" />

					<h:commandButton
						image="/resources/css/xp/css-images/arrow-previous.gif"
						style="border:none;" title="Previous Page"
						action="#{Session.publicByAuthor.browseBean.advancedPrevious}" />

					<h:outputText
						value="#{Session.publicByAuthor.browseBean.advancedPaginator.recordStatus}"
						styleClass="sumaryMsg" />

					<h:commandButton
						image="/resources/css/xp/css-images/arrow-next.gif"
						style="border:none;" title="Next Page"
						action="#{Session.publicByAuthor.browseBean.advancedNext}" />

					<h:commandButton image="/resources/css/xp/css-images/arrow-ff.gif"
						style="border:none;" title="Fast Forward"
						action="#{Session.publicByAuthor.browseBean.advancedFastForward}" />

					<h:commandButton
						image="/resources/css/xp/css-images/arrow-last.gif"
						style="border:none;" title="Last Page"
						action="#{Session.publicByAuthor.browseBean.advancedLast}" />
				</h:panelGroup>
			</h:column>


		</h:panelGrid>



	</ui:composition>
</body>
</html>