view src/main/webapp/home/createNewFile.xhtml @ 10:5610250d021a default tip

SectionsIndex, we added a method to print the setting of the VM
author "jurzua <jurzua@mpiwg-berlin.mpg.de>"
date Thu, 19 Mar 2015 11:46:33 +0100
parents 1f56cf4f80d4
children
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="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="Create"
							 	title="Create Branch in Extraction Interface"
								onclick="sectionInExtractionInterface(#{sessionBean.fileCreator.section.id}, '#{sessionBean.fileCreator.section.name}', #{sessionBean.fileCreator.section.book.id}, '#{sessionBean.fileCreator.section.book.name}', #{sessionBean.user.id}, '#{appBean.extractionInterfaceUrl}');"/>
							<h:commandButton value="Reset" actionListener="#{sessionBean.fileCreator.listenerReset}"/>
						</h:panelGrid>					
					</h:panelGrid>
					
					

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