Mercurial > hg > ismi-richfaces
view src/main/webapp/events/copyEvent.xhtml @ 112:59f26a5ef2b3
AliasListenerObject adds aliases to ListenerObject. Change all forms to enable ALIAS for (historical) PLACE fields. Remove REPOSITORY from event forms.
author | casties |
---|---|
date | Tue, 13 Dec 2016 19:04:45 +0100 |
parents | 764f47286679 |
children | 07e4eae9027f |
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> <a4j:commandButton value="Create new copy event" actionListener="#{Session.listenerCreateCopyEvent}" /> <h:panelGrid columns="2" styleClass="createPanel" columnClasses="createPanelFirstColumn"> <h:outputLabel value="Own value" /> <h:outputLabel value="#{Session.copyEventForm.event.ownValue}" /> <h:outputLabel value="Text" /> <h:panelGrid columns="1"> <ismi:autocomplete lo="#{Session.copyEventForm.textLo}" /> <a4j:outputPanel ajaxRendered="true"> <h:selectOneMenu rendered="#{Session.copyEventForm.textLo.statusImage.ok}" value="#{Session.copyEventForm.witnessId}" valueChangeListener="#{Session.copyEventForm.listenerChangeWitness}"> <f:selectItems value="#{Session.copyEventForm.witnessList}" /> <a4j:ajax event="change" render="selectedWitness0" /> </h:selectOneMenu> <h:panelGrid id="selectedWitness0" style="width: 500px;" columns="1" rendered="#{Session.copyEventForm.witness != null}"> <h:outputLabel value="Witness associated:" /> <h:outputLabel value="#{Session.copyEventForm.witness.ownValue} [ID=#{Session.copyEventForm.witness.id}]" /> </h:panelGrid> <h:outputLabel rendered="#{Session.copyEventForm.witness != null}" /> </a4j:outputPanel> </h:panelGrid> <h:panelGrid columns="1"> <h:outputLabel value="Person" /> <h:outputLabel value="copying text" /> </h:panelGrid> <ismi:autocomplete lo="#{Session.copyEventForm.personCopyingTextLo}" /> <h:panelGrid columns="1"> <h:outputLabel value="Person" /> <h:outputLabel value="copied for" /> </h:panelGrid> <ismi:autocomplete lo="#{Session.copyEventForm.personCopiedForLo}" /> <h:outputLabel value="Place" /> <ismi:autocomplete lo="#{Session.copyEventForm.placeLo}" /> <h:outputLabel value="Notes" /> <h:inputTextarea cols="80" rows="5" value="#{Session.copyEventForm.attributes['notes']}"/> <h:outputLabel value="Date of Event" /> <ismi:date date="#{Session.copyEventForm.date}"/> <h:outputText /> <h:commandButton value="#{(empty Session.copyEventForm.event.id) ? 'Create' : 'Change'}" actionListener="#{Session.copyEventForm.listenerSave}" /> </h:panelGrid> </ui:composition> </body> </html>