diff src/main/webapp/clean/components/publicShowSubjects.xhtml @ 170:8604b368ec19 public_by_author

still more work on publicByAuthor feature.
author Robert Casties <casties@mpiwg-berlin.mpg.de>
date Thu, 31 May 2018 21:25:45 +0200
parents 0b5d02012299
children 50b8103ec85c
line wrap: on
line diff
--- a/src/main/webapp/clean/components/publicShowSubjects.xhtml	Thu May 31 20:26:10 2018 +0200
+++ b/src/main/webapp/clean/components/publicShowSubjects.xhtml	Thu May 31 21:25:45 2018 +0200
@@ -9,8 +9,8 @@
 <body>
 	<ui:composition>
 
-   <!-- <h:outputStylesheet name="/css/ismi-db/repository.css" /> -->
-            
+		<!-- <h:outputStylesheet name="/css/ismi-db/repository.css" /> -->
+
 
 
 		<h:panelGrid columns="3" styleClass="displayPanel"
@@ -18,28 +18,34 @@
 
 			<h:outputLabel value="Person ID" />
 			<h:inputText value="#{Session.publicByAuthor.selectedPersonId}" />
-            <h:outputText value="#{Session.publicByAuthor.selectedPerson.ownValue}" />
+			<h:outputText
+				value="#{Session.publicByAuthor.selectedPerson.ownValue}" />
 
-            <a4j:commandButton value="search"
-                actionListener="#{Session.publicByAuthor.listenerAuthorIdSearch}"
-                render="selectSubjectPanel" />
+			<a4j:commandButton value="search"
+				actionListener="#{Session.publicByAuthor.listenerAuthorIdSearch}"
+				render="selectSubjectPanel" />
 
 		</h:panelGrid>
 
 		<h:panelGrid id="selectSubjectPanel" columns="1"
-			style="margin-left: auto; margin-right: auto; text-align: center; width: 100%;"
-			>
-	                 <rich:dataTable
-                        rendered="#{!empty Session.publicByAuthor.selectedPersonTexts}"
-                        value="#{Session.publicByAuthor.selectedPersonTexts}" var="titleItem"
-                        styleClass="select">
-                        <rich:column>
-                                <div>#{titleItem.ownValue}</div>
-                        </rich:column>
-                    </rich:dataTable>
+			style="margin-left: auto; margin-right: auto; text-align: center; width: 100%;">
+			<rich:dataTable
+				value="#{Session.publicByAuthor.selectedPersonSubjects}"
+				var="subject" styleClass="select">
+				<rich:column>
+					<div>#{subject}</div>
+					<rich:dataTable
+						value="#{Session.publicByAuthor.selectedPersonSubjectMap.get(subject)}"
+						var="text" styleClass="select">
+						<rich:column>
+							<div>#{text.ownValue}</div>
+						</rich:column>
+					</rich:dataTable>
+				</rich:column>
+			</rich:dataTable>
 
-			
-			
+
+
 		</h:panelGrid>