Author: bpoussin Date: 2012-08-07 16:05:56 +0200 (Tue, 07 Aug 2012) New Revision: 229 Url: http://chorem.org/repositories/revision/chorem/229 Log: delete old jsp view replaced now by taglib Removed: trunk/chorem-webmotion/src/main/webapp/WEB-INF/jsp/wikittyFieldView.jsp Deleted: trunk/chorem-webmotion/src/main/webapp/WEB-INF/jsp/wikittyFieldView.jsp =================================================================== --- trunk/chorem-webmotion/src/main/webapp/WEB-INF/jsp/wikittyFieldView.jsp 2012-08-03 16:54:22 UTC (rev 228) +++ trunk/chorem-webmotion/src/main/webapp/WEB-INF/jsp/wikittyFieldView.jsp 2012-08-07 14:05:56 UTC (rev 229) @@ -1,64 +0,0 @@ -<%-- - #%L - Chorem webmotion - $Id:$ - $HeadURL:$ - %% - Copyright (C) 2011 - 2012 CodeLutin - %% - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU Affero General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU Affero General Public License - along with this program. If not, see <http://www.gnu.org/licenses/>. - #L% - --%> -<%@page contentType="text/html" pageEncoding="UTF-8"%> -<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> -<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %> - -<c:choose> - <c:when test="${ext.getFieldType(fieldName).type == 'BOOLEAN'}"> - ${fieldName}: ${wikitty.getFieldAsBoolean(ext.name, fieldName)} - </c:when> - <c:when test="${ext.getFieldType(fieldName).type == 'DATE'}"> - <c:choose> - <c:when test="${ext.getFieldType(fieldName).hasPattern()}"> - ${fieldName}: <fmt:formatDate value="${wikitty.getFieldAsDate(ext.name, fieldName)}" - pattern="${ext.getFieldType(fieldName).getPattern()}"/> - </c:when> - <c:otherwise> - ${fieldName}: <fmt:formatDate value="${wikitty.getFieldAsDate(ext.name, fieldName)}"/> - </c:otherwise> - </c:choose> - </c:when> - <c:when test="${ext.getFieldType(fieldName).type == 'NUMERIC'}"> - <c:choose> - <c:when test="${ext.getFieldType(fieldName).hasPattern()}"> - ${fieldName}: <fmt:formatNumber value="${wikitty.getFieldAsBigDecimal(ext.name, fieldName)}" - pattern="${ext.getFieldType(fieldName).getPattern()}"/> - </c:when> - <c:otherwise> - ${fieldName}: ${wikitty.getFieldAsBigDecimal(ext.name, fieldName)} - </c:otherwise> - </c:choose> - </c:when> - <c:when test="${ext.getFieldType(fieldName).type == 'STRING'}"> - ${fieldName}: <c:out value="${wikitty.getFieldAsString(ext.name, fieldName)}"/> - </c:when> - <c:when test="${ext.getFieldType(fieldName).type == 'WIKITTY'}"> - <c:if test="${wikitty.getFieldAsWikitty(ext.name, fieldName, false) != null}"> - ${fieldName}: <a href="<c:url value="/wikitty/view/${wikitty.getFieldAsWikitty(ext.name, fieldName, false).getId()}"/>"><c:out value="${wikitty.getFieldAsWikitty(ext.name, fieldName, false)}"/></a> - </c:if> - </c:when> - <c:otherwise> - ${fieldName}: ${wikitty.getFieldAsObject(ext.name, fieldName)} (${ext.getFieldType(fieldName).toDefinition("")}) - </c:otherwise> -</c:choose> \ No newline at end of file