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

Change Url/Path definition to adapt to ProxyServer

Change Url/Path definition to adapt to ProxyServer
parent 3f85eadd
No related branches found
No related tags found
No related merge requests found
......@@ -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}&amp;op=0"/> -->
<a href="${url}${path}/selecionar?tipo=${field}&amp;op=0" id="_${id}_add">
<a href="${base_url}/selecionar?tipo=${field}&amp;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}&amp;op=1" /> -->
<a href="${url}${path}/selecionar?tipo=${field}&amp;op=1" id="_${id}_remove" >
<a href="${base_url}/selecionar?tipo=${field}&amp;op=1" id="_${id}_remove" >
<img alt="${fn:escapeXml(remove_label)}" class="image" src="${remove_image_url}" title="Remover" />
</a>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment