diff src/main/webapp/entry/place.xhtml @ 107:99f9a55a4957

add alias to place entry form.
author casties
date Mon, 07 Nov 2016 19:59:49 +0100
parents a142159f09c1
children 22a18bfc66b0
line wrap: on
line diff
--- a/src/main/webapp/entry/place.xhtml	Mon Nov 07 17:04:43 2016 +0100
+++ b/src/main/webapp/entry/place.xhtml	Mon Nov 07 19:59:49 2016 +0100
@@ -65,6 +65,32 @@
 						rendered="#{!empty CurrentCity.placesPartOfThis}"/>			
 			</h:panelGrid>
 						
+            <h:outputText value="Aliases" />
+            <h:panelGrid columns="1">
+                <h:panelGrid columns="2">
+                    <h:dataTable value="#{CurrentCity.aliasList.entities}" var="item"
+                        rendered="#{!empty CurrentCity.aliasList.entities}">
+                        <h:column>
+                            <h:outputText value="#{item.ownValue}" />
+                        </h:column>
+                        <h:column>
+                            <h:selectBooleanCheckbox
+                                value="#{CurrentCity.aliasList.selections[item.id]}" />
+                        </h:column>
+                    </h:dataTable>
+                    <h:commandButton value="Remove Selected"
+                        actionListener="#{CurrentCity.aliasList.listenerRemoveSelection}"
+                        rendered="#{!empty CurrentCity.aliasList.entities}" />
+                </h:panelGrid>
+                
+                <h:panelGrid columns="2">
+                    <h:inputText value="#{CurrentCity.aliasList.input}" />
+                    <h:commandButton value="CREATE"
+                        actionListener="#{CurrentCity.aliasList.listenerCreate}" />
+                </h:panelGrid>
+            </h:panelGrid>
+            <h:outputText />
+
 		</h:panelGrid>
 
 		<ismi:refWidget entityForm="#{CurrentCity}" />