comparison 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
comparison
equal deleted inserted replaced
-1:000000000000 0:7682c04c63a8
1 <ui:composition xmlns="http://www.w3.org/1999/xhtml"
2 xmlns:h="http://java.sun.com/jsf/html"
3 xmlns:f="http://java.sun.com/jsf/core"
4 xmlns:c="http://java.sun.com/jsp/jstl/core"
5 xmlns:ace="http://www.icefaces.org/icefaces/components"
6 xmlns:ice="http://www.icesoft.com/icefaces/component"
7 xmlns:icecore="http://www.icefaces.org/icefaces/core"
8 xmlns:ui="http://java.sun.com/jsf/facelets"
9 xmlns:cl="http://java.sun.com/jsf/composite/jsf/cl"
10 template="../templates/publicTemplate.xhtml">
11
12 <ui:define name="content">
13
14 <ice:form styleClass="content">
15
16 <ice:outputLabel value="Create New File (Branch)" styleClass="subTitle"/>
17
18 <h:panelGrid columns="2">
19
20 <h:outputLabel value="Label"/>
21 <h:inputText value="#{sessionBean.fileCreator.label}"/>
22
23
24 <h:outputLabel value="Section Id"/>
25 <h:panelGrid columns="2">
26 <ace:autoCompleteEntry
27 value="#{sessionBean.fileCreator.sectionId}"
28 textChangeListener="#{sessionBean.fileCreator.changeSectionInput}">
29 <f:selectItems value="#{sessionBean.fileCreator.sectionSuggestion}"/>
30 </ace:autoCompleteEntry>
31 <h:commandButton value="Load" actionListener="#{sessionBean.fileCreator.listenerLoadSection}"/>
32 </h:panelGrid>
33
34 <h:outputText rendered="#{sessionBean.fileCreator.section != null}"/>
35 <h:panelGrid columns="2" rendered="#{sessionBean.fileCreator.section != null}">
36 <h:outputLabel value="Section Name"/>
37 <h:outputLabel value="#{sessionBean.fileCreator.section.name}"/>
38
39 <h:outputLabel value="Book Id"/>
40 <h:outputLabel value="#{sessionBean.fileCreator.section.book.id}"/>
41
42 <h:outputLabel value="Book Name"/>
43 <h:outputLabel value="#{sessionBean.fileCreator.section.book.name}"/>
44
45 <h:outputLabel value="Text"/>
46 <h:inputTextarea value="#{sessionBean.fileCreator.section.text}" style="width: 500px; height: 200px;"/>
47
48 <h:outputText/>
49 <h:panelGrid columns="2">
50 <h:commandButton value="Save" actionListener="#{sessionBean.fileCreator.listenerSaveNewFile}" onclick="#{appBean.JSConfirmationSave}"/>
51 <h:commandButton value="Reset" actionListener="#{sessionBean.fileCreator.listenerReset}"/>
52 </h:panelGrid>
53 </h:panelGrid>
54
55
56
57
58 </h:panelGrid>
59
60
61 </ice:form>
62
63 </ui:define>
64
65
66
67 </ui:composition>