ramani
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
|
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:p="http://primefaces.org/ui"
xmlns:f="http://java.sun.com/jsf/core">
<h:head/>
<h:body>
<ui:composition template="../template.xhtml">
<ui:define name="caminho">
<h:outputLabel value="#{msg['mindmapAfiliacaoArtigo.Caminho']}"
style="font-weight: bold"/>
</ui:define>
<ui:define name="conteudoCentro">
<p:layout>
<h:form id="formMind">
<p:layoutUnit position="center">
<center>
<h:outputLabel value="#{msg['mindmapAfiliacaoArtigo.Mindmap']}"
style="font-size: 25px; font-weight: bold"/>
</center>
<p:wizard
flowListener="#{graficoMindMap.verificarElementosMinimos}"
backLabel="Anteterior"
nextLabel="Proximo"
>
<p:tab id="autor" title="#{msg['mindmapAfiliacaoArtigo.Afiliacao']}">
<p:growl showSummary="true" autoUpdate="true" />
<p:panel header="#{msg['mindmapAfiliacaoArtigo.SelecioneAfiliacao']}">
<h:panelGrid id="autorSelecao" columns="3" columnClasses="label, value" style="margin: 0 auto">
<h:outputText value="#{msg['mindmapAfiliacaoArtigo.NomeAfiliacaoDp']}"/>
<p:autoComplete
required="true"
requiredMessage="#{msg['mindmapAfiliacaoArtigo.InformeAfiliacao']}"
id="autoCompleteAutor"
forceSelection="true"
minQueryLength="4"
value="#{graficoMindMap.afiliacao}"
converter="AfiliacaoConverter"
completeMethod="#{graficoMindMap.autoCompleteAfiliacao}"
var="autorComplete"
itemLabel="#{autorComplete.nome}"
itemValue="#{autorComplete}"
/>
</h:panelGrid>
</p:panel>
</p:tab>
<p:tab id="map" title="#{msg['mindmapAfiliacaoArtigo.Mindmap']}">
<p:panel header="#{msg['mindmapAfiliacaoArtigo.Mindmap']} #{graficoMindMap.afiliacao.nome}">
<h:panelGrid columns="2" columnClasses="label, value" style="margin: 0 auto" >
<f:ajax render="mindAutor">
<p:mindmap id="mindAutor" value="#{graficoMindMap.rootAfiliacao}" style="width:1024px;height:768px;border:1px solid black;">
<p:ajax event="select" listener="#{graficoMindMap.onNodeSelectAfiliacaoArtigo}" />
</p:mindmap>
</f:ajax>
</h:panelGrid>
</p:panel>
</p:tab>
</p:wizard>
</p:layoutUnit>
</h:form>
</p:layout>
</ui:define>
</ui:composition>
</h:body>
</html>
|