Mercurial > hg > ismi-richfaces
view src/main/webapp/entry/place.xhtml @ 199:8af530c5b4cd
new find-lost-alias function in clean menu to delete aliases without relations.
author | Robert Casties <casties@mpiwg-berlin.mpg.de> |
---|---|
date | Wed, 23 Jan 2019 20:28:00 +0100 |
parents | 22a18bfc66b0 |
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" xmlns:ismi="http://java.sun.com/jsf/composite/components/ismi"> <body> <ui:composition> <h:panelGrid> <h:outputText value="Place - #{CurrentCity.entity.ownValue}" rendered="#{!empty CurrentCity.entity.ownValue}" styleClass="titlePanel"/> <h:outputText value="Place" rendered="#{empty CurrentCity.entity.ownValue}" styleClass="titlePanel"/> </h:panelGrid> <h:panelGrid columns="3" styleClass="createPanel" columnClasses="createPanelFirstColumn" id="placePanel"> <h:outputText id="name" value="Name" /> <h:inputText size="100" value="#{CurrentCity.attributes['name']}" /> <h:outputText /> <h:outputText value="Type" /> <h:selectOneMenu value="#{CurrentCity.attributes['type']}"> <f:selectItems value="#{CurrentCity.suggestedTypes}" /> </h:selectOneMenu> <h:outputText /> <h:outputText value="This place is part of" /> <ismi:autocomplete lo="#{CurrentCity.countryLo}" /> <h:panelGrid> <h:commandButton alt="edit" image="#{ApplicationBean1.editImage}" rendered="#{!empty CurrentCity.countryLo.entity.id}" actionListener="#{CurrentCity.editThisCountryAction}" /> <h:commandButton alt="edit" image="#{ApplicationBean1.imgRemove16}" rendered="#{!empty CurrentCity.countryLo.entity.id}" actionListener="#{CurrentCity.removeThisCountryAction}" /> </h:panelGrid> <h:outputText value="Places that are part of this"/> <h:panelGrid columns="2" id="placePartOfThisPanel"> <rich:dataGrid var="place" style="border:none;" value="#{CurrentCity.placesPartOfThis}"> <h:column style="border:none;"> <h:selectBooleanCheckbox value="#{place.selected}" /> </h:column> <h:column> <h:outputText value="#{place.label}" /> </h:column> </rich:dataGrid> </h:panelGrid> <h:panelGrid columns="1"> <a4j:commandButton value="Remove" actionListener="#{CurrentCity.listenerRemovePlacesPartOfThis}" render="placePartOfThisPanel" 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}" /> <h:commandButton value="#{CurrentCity.saveButtonLabel}" rendered="#{CurrentCity.renderSaveButton}" onclick="#{ApplicationBean1.JSConfirmationSave}" action="#{CurrentCity.save}" /> <h:commandButton value="Clear Form" action="#{CurrentCity.clearAction}" onclick="#{ApplicationBean1.JSConfirmationCleanForm}" /> <h:outputText rendered="#{CurrentCity.create_error}" value="Place already exists - not saved!" /> <!-- Unity Warning --> <h:panelGrid id="placeUnityWarningPP"> <h:panelGroup rendered="#{CurrentCity.renderUnityCheckerDialog}"> <div style="z-index: 100;" class="rf-pp-shade"> <button class="rf-pp-btn" tabindex="-1" accesskey="" /> </div> <h:panelGrid columns="1" class="rf-pp-cntr" style="height: 100px; left: 100px; position: fixed; top: 50px; width: 300px; z-index: 100;"> <div class="rf-pp-shdw" style="height: 100px; left: 100px; left: 5px; top: 5px; bottom: -5px; opacity: 0.1;"> </div> <div class="rf-pp-hdr " style="cursor: default;"> <div class="rf-pp-hdr-cnt">Unity Warning</div> </div> <h:panelGrid columns="1" class="rf-pp-cnt-scrlr" style="width: 300px; height: 200px;"> <h:outputText value="#{CurrentCity.unityCheckerMsg}"/> <h:panelGrid> <a4j:commandButton value="Load Entity" action="#{CurrentCity.loadCloneEntity}"/> <a4j:commandButton value="Continue Editing" action="#{CurrentCity.hideUnityCheckerDialog}" /> </h:panelGrid> </h:panelGrid> </h:panelGrid> </h:panelGroup> </h:panelGrid> </ui:composition> </body> </html>