diff src/main/webapp/home/mainPage.xhtml @ 5:5316e79f9a27

Implementation of search pagination and lazy loading to display the result set of a search.
author "jurzua <jurzua@mpiwg-berlin.mpg.de>"
date Mon, 16 Mar 2015 11:25:36 +0100
parents 7682c04c63a8
children
line wrap: on
line diff
--- a/src/main/webapp/home/mainPage.xhtml	Wed Mar 11 16:32:06 2015 +0100
+++ b/src/main/webapp/home/mainPage.xhtml	Mon Mar 16 11:25:36 2015 +0100
@@ -14,11 +14,8 @@
 			<ice:form styleClass="content">
 				<ice:outputLabel value="User's Branches" styleClass="subTitle"/>
 				
-				<h:panelGrid columns="1">
 					
-					<h:commandButton value="Reload" actionListener="#{sessionBean.listenerReloadBranches}"/>
-					 
-					<h:panelGrid columns="1" rendered="#{!empty sessionBean.branches}">
+					<h:panelGrid columns="1" rendered="#{!empty sessionBean.branches}" style="width: 90%; margin-left: auto;margin-right: auto;">
 						<ace:dataTable value="#{sessionBean.branches}" var="soBranch">
 							 
 							 <ace:column headerText="ID">
@@ -55,8 +52,8 @@
 							 <ace:column headerText="Extraction Interface">
 							 	<h:commandButton value="Load" 
 									onclick="branchInExtractionInterface(#{soBranch.obj.id}, #{soBranch.obj.currentLastFileId}, #{soBranch.obj.sectionId}, '#{soBranch.obj.sectionName}', #{soBranch.obj.book.id}, '#{soBranch.obj.book.name}', #{sessionBean.user.id}, '#{appBean.extractionInterfaceUrl}');"
-									image="#{appBean.editBranchImage}"
-									title="Edit Branch in Extraction Interface"/>
+									image="#{appBean.showImage}"
+									title="Show Branch in Extraction Interface"/>
 							 </ace:column>
 							 <ace:column headerText="Dataverse">
 							 	<h:commandButton value="Publish file" image="#{appBean.publishImage}"
@@ -66,17 +63,19 @@
 								<h:outputLink 
 									value="#{appBean.rootServer}/home/branchEditor.xhtml?branchId=#{soBranch.obj.id}"
 									title="Manage Branch">
-									<h:graphicImage value="#{appBean.branchDetailsImage}"/>
+									<h:graphicImage value="#{appBean.editBranchImage}"/>
 								</h:outputLink>
 							 </ace:column>
 							 <ace:column headerText="Select">
 							 	<h:selectBooleanCheckbox value="#{soBranch.selected}"/>
 							 </ace:column>
 						</ace:dataTable>	
-						<h:commandButton value="Delete" actionListener="#{sessionBean.listenerDeleteBranch}" onclick="#{appBean.JSConfirmationDelete}"/>
+						<h:panelGrid columns="2">
+							<h:commandButton value="Reload" actionListener="#{sessionBean.listenerReloadBranches}"/>
+							<h:commandButton value="Delete" actionListener="#{sessionBean.listenerDeleteBranch}" onclick="#{appBean.JSConfirmationDelete}"/>
+						</h:panelGrid>
 					</h:panelGrid>
 				
-				</h:panelGrid>
 			
 				
 			</ice:form>