Subversion Repository Public Repository

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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
<?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['listarArtigos.Caminho']}"
                               style="font-weight: bold"/>
            </ui:define>

            <ui:define name="conteudoCentro">
                <p:layout>
                    <h:form id="form">
                        <p:growl id="growl"
                                 showDetail="true"
                                 life="3000"/>
                        <p:layoutUnit position="center">
                            <center>
                                <h:outputLabel value="#{msg['listarArtigos.ArtigosCadastrados']}"
                                               style="font-size: 25px; font-weight: bold"/>
                            </center>
                            <hr/>
                            <p:growl showDetail="true"/>
                            <p:panel id="panel"
                                     style="border-color: transparent">
                                <p:dataTable value="#{artigoBean.artigos}"
                                             paginator="true"
                                             rows="50"
                                             var="artigo">
                                    <p:column headerText="#{msg['listarArtigos.Artigo']}"
                                              sortBy="#{artigo.titulo}">
                                        <a href="http://dx.doi.org/#{artigo.doi}"
                                           target="_blank"
                                           style="color: blue">
                                            <h:outputText value="#{artigo.titulo}"/>
                                        </a>
                                    </p:column>

                                    <p:column style="width: 15%">
                                        <p:commandButton title="#{msg['listarArtigos.DetalhesArtigo']}"
                                                         onclick="dialogDetalhes.show();"
                                                         update=":form:displayDetalhes"
                                                         icon="ui-icon-newwin">
                                            <f:setPropertyActionListener value="#{artigo}"
                                                                         target="#{artigoBean.artigoSalvo}"/>
                                        </p:commandButton>
                                        <p:commandButton title="#{msg['listarArtigos.EditarArtigo']}"
                                                         onclick="editar.show();"
                                                         update=":formEdic:edicao"
                                                         icon="ui-icon-pencil"
                                                         rendered="#{colaboradorBean.administrador}">
                                            <f:setPropertyActionListener value="#{artigo}"
                                                                         target="#{artigoBean.artigoSalvo}"/>
                                        </p:commandButton>
                                        <p:commandButton title="#{msg['listarArtigos.ExcluirArtigo']}"
                                                         onclick="confirmation.show();"
                                                         icon="ui-icon-trash"
                                                         rendered="#{colaboradorBean.administrador}">
                                            <f:setPropertyActionListener value="#{artigo}"
                                                                         target="#{artigoBean.artigoSalvo}"/>
                                        </p:commandButton>
                                    </p:column>
                                </p:dataTable>
                            </p:panel>
                        </p:layoutUnit>

                        <p:dialog header="#{msg['listarArtigos.DetalhesArtigo']}"
                                  widgetVar="dialogDetalhes"
                                  appendToBody="true"
                                  modal="true"
                                  resizable="false"
                                  closeOnEscape="true"
                                  width="1000">
                            <p:panel id="displayDetalhes"
                                     style="border-color: transparent">
                                <h:outputLabel value="#{msg['listarArtigos.TituloDp']}"
                                               style="font-weight: bold"/>
                                <h:outputText value="#{artigoBean.artigoSalvo.titulo}"/>
                                <br/>
                                <h:outputLabel value="#{msg['listarArtigos.AbstractDp']}"
                                               style="font-weight: bold"/>
                                <h:outputText value="#{artigoBean.artigoSalvo.abstract1}"/>
                                <br/>
                                <h:outputLabel value="#{msg['listarArtigos.DOIDp']}"
                                               style="font-weight: bold"/>
                                <h:outputText value="#{artigoBean.artigoSalvo.doi}"/>
                                <br/>
                                <hr/>
                                <h:outputLabel value="#{msg['listarArtigos.ConferenciaDp']}"
                                               style="font-weight: bold"/>
                                <h:outputText value="#{artigoBean.artigoSalvo.edicao.conferencia.nome} "/>
                                <h:outputText value="(#{artigoBean.artigoSalvo.edicao.conferencia.sigla})"
                                              rendered="#{artigoBean.artigoSalvo.edicao.conferencia.sigla.length() != 0}"/>
                                <br/>
                                <h:outputLabel value="#{msg['listarArtigos.AnoDp']}"
                                               style="font-weight: bold"/>
                                <h:outputText value="#{artigoBean.artigoSalvo.edicao.ano}"/>
                                <br/>
                                <h:outputLabel value="#{msg['listarArtigos.CidadeConferenciaDp']}"
                                               style="font-weight: bold"/>
                                <h:outputText value="#{artigoBean.artigoSalvo.edicao.cidade}"/>
                                <br/>
                                <h:outputLabel value="#{msg['listarArtigos.PaisConferenciaDp']}"
                                               style="font-weight: bold"/>
                                <h:outputText value="#{artigoBean.artigoSalvo.edicao.pais}"/>
                                <br/>
                                <h:outputLabel value="#{msg['listarArtigos.EdicaoDp']}"
                                               style="font-weight: bold"/>
                                <h:outputText value="#{artigoBean.artigoSalvo.edicao.edicao}"/>
                                <br/>
                                <hr/>
                                <h:outputLabel value="#{msg['listarArtigos.Autores']}"
                                               style="font-weight: bold"/>
                                <h:dataTable value="#{artigoBean.artigoSalvo.autorList}"
                                             var="autor">
                                    <h:column>
                                        <h:outputText value="#{autor.nome}"/>
                                        <h:outputText value=" - #{autor.afiliacaoList.get(0).nome}"
                                                      rendered="#{!autor.afiliacaoList.isEmpty()}"/>
                                    </h:column>
                                </h:dataTable>
                                <hr/>
                                <p:commandButton value="#{msg['listarArtigos.Fechar']}"
                                                 title="#{msg['listarArtigos.FecharJanela']}"
                                                 onclick="dialogDetalhes.hide();"
                                                 icon="ui-icon-close"
                                                 iconPos="right"/>
                            </p:panel>
                        </p:dialog>
                    </h:form>

                    <p:dialog header="#{msg['listarArtigos.EdicaoDadosArtigo']}"
                              widgetVar="editar"
                              appendToBody="true"
                              modal="true"
                              draggable="false"
                              resizable="false"
                              closeOnEscape="true">
                        <h:form id="formEdic">
                            <h:panelGrid id="edicao"
                                         columns="1"
                                         width="100%">
                                <h:outputLabel value="#{msg['listarArtigos.Titulo']}"
                                               style="font-weight: bold"/>
                                <p:inputText value="#{artigoBean.artigoSalvo.titulo}"
                                             required="true"
                                             requiredMessage="#{msg['listarArtigos.TituloObrigatorio']}"
                                             style="width: 100%"/>
                                <br/>
                                <h:outputLabel value="#{msg['listarArtigos.Abstract']}"
                                               style="font-weight: bold"/>
                                <p:inputTextarea value="#{artigoBean.artigoSalvo.abstract1}"
                                                 rows="3"
                                                 autoResize="false"
                                                 style="width: 100%"/>
                                <br/>
                                <h:outputLabel value="#{msg['listarArtigos.DOI']}"
                                               style="font-weight: bold"/>
                                <p:inputText value="#{artigoBean.artigoSalvo.doi}"
                                             required="true"
                                             requiredMessage="#{msg['listarArtigos.DOIObrigatorio']}"
                                             style="width: 100%"/>
                                <hr/>
                            </h:panelGrid>
                            <h:panelGrid columns="2"
                                         width="100%">
                                <p:commandButton value="#{msg['listarArtigos.Salvar']}"
                                                 title="#{msg['listarArtigos.SalvarAlteracoes']}"
                                                 action="#{artigoBean.atualizar()}"
                                                 ajax="false"
                                                 style="width: 200px"
                                                 icon="ui-icon-disk"
                                                 iconPos="right"/>
                                <p:commandButton value="#{msg['listarArtigos.Cancelar']}"
                                                 title="#{msg['listarArtigos.CancelarEdicao']}"
                                                 onclick="editar.hide();"
                                                 style="width: 200px"
                                                 icon="ui-icon-cancel"
                                                 iconPos="right"/>
                            </h:panelGrid>
                        </h:form>
                    </p:dialog>

                    <p:dialog header="#{msg['listarArtigos.ConfirmacaoExclusao']}"
                              widgetVar="confirmation"                   
                              appendToBody="true"
                              modal="true"
                              draggable="false"
                              closable="false"
                              resizable="false"
                              closeOnEscape="true">
                        <h:outputText value="#{msg['listarArtigos.TemCertezaExcluir']}"/>
                        <hr/>
                        <h:form dir="RTL">
                            <p:commandButton value="#{msg['listarArtigos.Nao']}"
                                             title="#{msg['listarArtigos.ManterArtigo']}"
                                             onclick="confirmation.hide();"
                                             style="width: 100px"
                                             icon="ui-icon-closethick"
                                             iconPos="right"/>
                            <p:commandButton value="#{msg['listarArtigos.Sim']}"
                                             title="#{msg['listarArtigos.ExcluirArtigo']}"
                                             action="#{artigoBean.excluir()}"
                                             ajax="false"
                                             style="width: 100px"
                                             icon="ui-icon-check"
                                             iconPos="right"/>
                        </h:form>
                    </p:dialog>    
                </p:layout>
            </ui:define>
        </ui:composition>
    </h:body>
</html>

Commits for ramani/Ramani/web/restrito/listarArtigos.xhtml

Diff revisions: vs.
Revision Author Commited Message
569 Diff Diff heartle picture heartle Tue 27 Jan, 2015 03:42:36 +0000
519 Diff Diff masahiro.arthur picture masahiro.arthur Tue 15 Jul, 2014 19:38:03 +0000
377 Diff Diff nascimento picture nascimento Sat 25 Jan, 2014 12:31:27 +0000
376 Diff Diff nascimento picture nascimento Fri 24 Jan, 2014 12:06:35 +0000
375 Diff Diff nascimento picture nascimento Thu 23 Jan, 2014 21:11:58 +0000
360 Diff Diff nascimento picture nascimento Fri 13 Dec, 2013 19:45:05 +0000

Refatoração do snowballing.

343 Diff Diff nascimento picture nascimento Wed 04 Dec, 2013 07:52:22 +0000

Refatoração das páginas.

339 Diff Diff nascimento picture nascimento Mon 02 Dec, 2013 19:19:10 +0000

Finalização do breakpoint.

334 Diff Diff nascimento picture nascimento Sat 30 Nov, 2013 20:55:59 +0000

Refatoração das páginas.

319 nascimento picture nascimento Sun 17 Nov, 2013 18:26:28 +0000

Refatoração das páginas.