Rev 1355 | Rev 1358 | 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 | |||
12 | |||
1356 | jmachado | 13 | <html:form action="/user/paginasSeccoes" > |
14 | <jsp:useBean id="PaginasSeccoesForm" scope="request" type="pt.estgp.estgweb.web.controllers.paginaseseccoes.PaginasSeccoesForm"/> |
||
1355 | jmachado | 15 | |
16 | <input type="hidden" name="dispatch"/> |
||
17 | |||
18 | <html:hidden property="pagina.id"/> |
||
19 | |||
20 | Titulo: <html:text property="pagina.nome"/> |
||
21 | |||
22 | |||
23 | <br/> |
||
24 | <logic:equal value="0" name="PaginasSeccoesForm" property="pagina.id"> |
||
25 | <button type="button" onclick="set(this.form,'criarPagina');this.form.submit();" >Criar</button> |
||
26 | </logic:equal> |
||
27 | |||
28 | |||
29 | |||
30 | <logic:notEqual value="0" name="PaginasSeccoesForm" property="pagina.id"> |
||
31 | <button type="button" onclick="set(this.form,'atualiza');this.form.submit();" >Actualiza</button> |
||
1356 | jmachado | 32 | |
33 | |||
34 | <div style="border:1px solid black"> |
||
35 | <h3>Criar Seccao</h3> |
||
36 | Titulo da Seccao <html:text property="seccao.titulo"/><br/> |
||
37 | <button type="button" onclick="set(this.form,'addSeccao');this.form.submit();" >Adicionar</button> |
||
38 | </div> |
||
39 | |||
1355 | jmachado | 40 | </logic:notEqual> |
1356 | jmachado | 41 | <nested:root name="PaginasSeccoesForm"> |
42 | <nested:iterate id="item" property="pagina.seccoes" type="pt.estgp.estgweb.domain.Seccao"> |
||
43 | Seccao Titulo (${item.id}) <nested:text property="titulo"/><br/> |
||
44 | </nested:iterate> |
||
45 | </nested:root> |
||
1355 | jmachado | 46 | |
1356 | jmachado | 47 | |
1355 | jmachado | 48 | </html:form> |