Commit c6caa73621a5e9c0d02326c311e5f8c9f209ffde
1 parent
4874e08c
Exists in
master
and in
1 other branch
Correção de código jstl que impede a adição de linhas com conteúdo em
branco.
Showing
1 changed file
with
8 additions
and
6 deletions
Show diff stats
src/main/webapp/WEB-INF/jsp/avaliacao/detalhesAvaliacao.jsp
@@ -68,7 +68,8 @@ | @@ -68,7 +68,8 @@ | ||
68 | 68 | ||
69 | <tbody> | 69 | <tbody> |
70 | <c:forEach items="${detalhe.criterios}" var="criterio"> | 70 | <c:forEach items="${detalhe.criterios}" var="criterio"> |
71 | - | 71 | + <c:if test="${criterio.id != null}"> |
72 | + <c:if test="${not empty criterio.id}"> | ||
72 | <tr> | 73 | <tr> |
73 | <!-- retirar o ponto da recomendação --> | 74 | <!-- retirar o ponto da recomendação --> |
74 | <c:set var="var_recomendacaoComPonto" value="${rn}" /> | 75 | <c:set var="var_recomendacaoComPonto" value="${rn}" /> |
@@ -78,11 +79,10 @@ | @@ -78,11 +79,10 @@ | ||
78 | href="${pageContext.request.contextPath}/criteriosSucesso#criterio_${var_RecomendacaoSemPonto}${criterio.id}"> ${criterio.id} </a></td> | 79 | href="${pageContext.request.contextPath}/criteriosSucesso#criterio_${var_RecomendacaoSemPonto}${criterio.id}"> ${criterio.id} </a></td> |
79 | Fim retirar o ponto da recomendação --> | 80 | Fim retirar o ponto da recomendação --> |
80 | 81 | ||
81 | - <c:if test="${criterio.id != null}"> | ||
82 | - | ||
83 | - <td headers="criterio" class="celula"><a | 82 | + |
83 | + <td headers="criterio" class="celula"><a | ||
84 | href="${pageContext.request.contextPath}/criteriosSucesso#criterio_${var_RecomendacaoSemPonto}${criterio.id}">${rn}.${criterio.id} ${criterio.descricao}</a></td> | 84 | href="${pageContext.request.contextPath}/criteriosSucesso#criterio_${var_RecomendacaoSemPonto}${criterio.id}">${rn}.${criterio.id} ${criterio.descricao}</a></td> |
85 | - </c:if> | 85 | + |
86 | <td headers="quantidade" class="celula"> | 86 | <td headers="quantidade" class="celula"> |
87 | 87 | ||
88 | <c:choose> | 88 | <c:choose> |
@@ -167,8 +167,10 @@ | @@ -167,8 +167,10 @@ | ||
167 | </c:choose> | 167 | </c:choose> |
168 | 168 | ||
169 | </td> | 169 | </td> |
170 | + | ||
170 | </tr> | 171 | </tr> |
171 | - | 172 | + </c:if> |
173 | + </c:if> | ||
172 | </c:forEach> | 174 | </c:forEach> |
173 | </tbody> | 175 | </tbody> |
174 | 176 |