Skip to content
Snippets Groups Projects
Commit 4463166c authored by Bruno Nocera Zanette's avatar Bruno Nocera Zanette
Browse files

Fix bugs of Municipio's select popup [Working]

Fix bugs of Municipio's select popup
parent e0124f6b
Branches
No related tags found
No related merge requests found
......@@ -181,7 +181,7 @@ public class OcorrenciaMunicipalController {
}
MunicipioController munc = new MunicipioController();
munc.addDateTimeFormatPatterns(uiModel);
return "municipios/selectmunicipios";
return "municipios/select";
}
}
else if (op == 1) {
......@@ -203,7 +203,7 @@ public class OcorrenciaMunicipalController {
uiModel.addAttribute("municipios", ocorrenciaMunicipal.getMunicipios());
MunicipioController munc = new MunicipioController();
munc.addDateTimeFormatPatterns(uiModel);
return "municipios/selectmunicipios";
return "municipios/select";
}
else {
populateEditForm(uiModel, ocorrenciaMunicipalGlobal);
......
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<div xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:page="urn:jsptagdir:/WEB-INF/tags/form" xmlns:table="urn:jsptagdir:/WEB-INF/tags/form/fields" version="2.0">
<jsp:directive.page contentType="text/html;charset=UTF-8"/>
<jsp:output omit-xml-declaration="yes"/>
<page:list id="pl_br_ufpr_c3sl_estacaojuventude_Municipio" items="${municipios}" >
<table:table data="${municipios}" id="l_br_ufpr_c3sl_estacaojuventude_Municipio" path="/selecionar" pathShow="municipios" select="true" create="false" update="false" delete="false" >
<table:column id="c_br_ufpr_c3sl_estacaojuventude_Municipio_nome" property="nome" />
<table:column id="c_br_ufpr_c3sl_estacaojuventude_Municipio_uf" property="uf" />
</table:table>
</page:list>
</div>
\ No newline at end of file
......@@ -13,6 +13,7 @@
<definition extends="default" name="municipios/update">
<put-attribute name="body" value="/WEB-INF/views/municipios/update.jspx"/>
</definition>
<definition extends="default" name="municipios/selectmunicipios">
<put-attribute name="body" value="/WEB-INF/views/municipios/selectmunicipios.jspx"/>
</definition>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment