view src/main/webapp/home/createNewFile.xhtml @ 0:7682c04c63a8

First commit of the source code!
author "jurzua <jurzua@mpiwg-berlin.mpg.de>"
date Tue, 10 Mar 2015 14:50:41 +0100
parents
children 1f56cf4f80d4
line wrap: on
line source

<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:ace="http://www.icefaces.org/icefaces/components"
	xmlns:ice="http://www.icesoft.com/icefaces/component"
	xmlns:icecore="http://www.icefaces.org/icefaces/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:cl="http://java.sun.com/jsf/composite/jsf/cl"
	template="../templates/publicTemplate.xhtml">
	
	<ui:define name="content">
		
			<ice:form styleClass="content">
			
				<ice:outputLabel value="Create New File (Branch)" styleClass="subTitle"/>
			
				<h:panelGrid columns="2">
					
					<h:outputLabel value="Label"/>
					<h:inputText value="#{sessionBean.fileCreator.label}"/>
					
					
					<h:outputLabel value="Section Id"/>
					<h:panelGrid columns="2">
						<ace:autoCompleteEntry
							value="#{sessionBean.fileCreator.sectionId}"
							textChangeListener="#{sessionBean.fileCreator.changeSectionInput}">
							<f:selectItems value="#{sessionBean.fileCreator.sectionSuggestion}"/>
						</ace:autoCompleteEntry>
						<h:commandButton value="Load" actionListener="#{sessionBean.fileCreator.listenerLoadSection}"/>
					</h:panelGrid>
					
					<h:outputText rendered="#{sessionBean.fileCreator.section != null}"/>
					<h:panelGrid columns="2" rendered="#{sessionBean.fileCreator.section != null}">
						<h:outputLabel value="Section Name"/>
						<h:outputLabel value="#{sessionBean.fileCreator.section.name}"/>
						
						<h:outputLabel value="Book Id"/>
						<h:outputLabel value="#{sessionBean.fileCreator.section.book.id}"/>
						
						<h:outputLabel value="Book Name"/>
						<h:outputLabel value="#{sessionBean.fileCreator.section.book.name}"/>
						
						<h:outputLabel value="Text"/>
						<h:inputTextarea value="#{sessionBean.fileCreator.section.text}" style="width: 500px; height: 200px;"/>
						
						<h:outputText/>
						<h:panelGrid columns="2">
							<h:commandButton value="Save" actionListener="#{sessionBean.fileCreator.listenerSaveNewFile}" onclick="#{appBean.JSConfirmationSave}"/>
							<h:commandButton value="Reset" actionListener="#{sessionBean.fileCreator.listenerReset}"/>
						</h:panelGrid>					
					</h:panelGrid>
					
					

					
				</h:panelGrid>
			
				
			</ice:form>
			
	</ui:define>
	
		
	
</ui:composition>