From b563e2c0b451bc9adff4d45fe411dec93162e41c Mon Sep 17 00:00:00 2001 From: Bruno Nocera Zanette <brunonzanette@gmail.com> Date: Thu, 11 Sep 2014 18:01:26 -0300 Subject: [PATCH] Change Url/Path definition to adapt to ProxyServer Change Url/Path definition to adapt to ProxyServer --- src/main/webapp/WEB-INF/tags/form/fields/select.tagx | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/main/webapp/WEB-INF/tags/form/fields/select.tagx b/src/main/webapp/WEB-INF/tags/form/fields/select.tagx index c5e3963..12cbc84 100644 --- a/src/main/webapp/WEB-INF/tags/form/fields/select.tagx +++ b/src/main/webapp/WEB-INF/tags/form/fields/select.tagx @@ -242,21 +242,18 @@ <c:if test="${disabled == false}"> <spring:url value="/resources/images/add.png" var="add_image_url" /> <spring:url value="/resources/images/delete.png" var="remove_image_url" /> - <c:set var="req" value="${pageContext.request}" /> - <c:set var="url">${req.requestURL}</c:set> - <!-- <script type="text/javascript"> alert("${url}"); </script> --> - <c:set var="url">${fn:substring(url, 0, fn:length(url) - fn:length('/WEB-INF/layouts/default.jspx'))}</c:set> + <spring:url value="${path}" var="base_url" /> + <!-- <input id="_${id}_add" style="background:url(${add_image_url}) no-repeat; width:19px;" type="submit" value="adicionar" formaction="${url}${path}/selecionar?tipo=${field}&op=0"/> --> - - <a href="${url}${path}/selecionar?tipo=${field}&op=0" id="_${id}_add"> + <a href="${base_url}/selecionar?tipo=${field}&op=0" id="_${id}_add"> <img alt="${fn:escapeXml(add_label)}" class="image" src="${add_image_url}" title="Adicionar" /> </a> <!--<input id="_${id}_remove" style="background:url(${remove_image_url}) no-repeat; width:19px;" type="submit" value="remover" formaction="${url}${path}/selecionar?tipo=${field}&op=1" /> --> - <a href="${url}${path}/selecionar?tipo=${field}&op=1" id="_${id}_remove" > + <a href="${base_url}/selecionar?tipo=${field}&op=1" id="_${id}_remove" > <img alt="${fn:escapeXml(remove_label)}" class="image" src="${remove_image_url}" title="Remover" /> </a> -- GitLab