Rev 1358 | Rev 1360 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1355 | jmachado | 1 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> |
2 | <%@ taglib uri="/WEB-INF/tlds/struts-html.tld" prefix="html" %> |
||
3 | <%@ taglib uri="/WEB-INF/tlds/struts-logic.tld" prefix="logic" %> |
||
4 | <%@ taglib uri="/WEB-INF/tlds/struts-bean.tld" prefix="bean" %> |
||
5 | <%@ taglib uri="/WEB-INF/tlds/struts-nested.tld" prefix="nested" %> |
||
6 | <%@ taglib uri="/WEB-INF/tlds/jomm.tld" prefix="jomm" %> |
||
7 | <%@ taglib uri="/WEB-INF/tlds/baco.tld" prefix="baco" %> |
||
8 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> |
||
9 | |||
10 | OLA A TODOS |
||
11 | |||
1359 | jmachado | 12 | <% |
13 | try{ |
||
14 | %> |
||
1355 | jmachado | 15 | |
1356 | jmachado | 16 | <html:form action="/user/paginasSeccoes" > |
17 | <jsp:useBean id="PaginasSeccoesForm" scope="request" type="pt.estgp.estgweb.web.controllers.paginaseseccoes.PaginasSeccoesForm"/> |
||
1355 | jmachado | 18 | |
19 | <input type="hidden" name="dispatch"/> |
||
20 | |||
21 | <html:hidden property="pagina.id"/> |
||
22 | |||
23 | Titulo: <html:text property="pagina.nome"/> |
||
24 | |||
25 | |||
26 | <br/> |
||
27 | <logic:equal value="0" name="PaginasSeccoesForm" property="pagina.id"> |
||
28 | <button type="button" onclick="set(this.form,'criarPagina');this.form.submit();" >Criar</button> |
||
29 | </logic:equal> |
||
30 | |||
31 | |||
32 | |||
33 | <logic:notEqual value="0" name="PaginasSeccoesForm" property="pagina.id"> |
||
34 | <button type="button" onclick="set(this.form,'atualiza');this.form.submit();" >Actualiza</button> |
||
1356 | jmachado | 35 | |
36 | |||
37 | <div style="border:1px solid black"> |
||
38 | <h3>Criar Seccao</h3> |
||
39 | Titulo da Seccao <html:text property="seccao.titulo"/><br/> |
||
40 | <button type="button" onclick="set(this.form,'addSeccao');this.form.submit();" >Adicionar</button> |
||
41 | </div> |
||
42 | |||
1355 | jmachado | 43 | </logic:notEqual> |
1356 | jmachado | 44 | <nested:root name="PaginasSeccoesForm"> |
45 | <nested:iterate id="item" property="pagina.seccoes" type="pt.estgp.estgweb.domain.Seccao"> |
||
1358 | jmachado | 46 | <nested:hidden property="id"/><br/> |
1356 | jmachado | 47 | Seccao Titulo (${item.id}) <nested:text property="titulo"/><br/> |
48 | </nested:iterate> |
||
49 | </nested:root> |
||
1355 | jmachado | 50 | |
1356 | jmachado | 51 | |
1359 | jmachado | 52 | </html:form> |
53 | |||
54 | <% |
||
55 | }catch(Throwable e) |
||
56 | { |
||
57 | System.out.println(e.toString()); |
||
58 | e.printStackTrace(); |
||
59 | } |
||
60 | %> |