This content has been marked as final.
Show 2 replies
-
1. Re: calling a servlet with a url different of .seam
cerdiogenes Sep 18, 2008 2:09 AM (in response to cerdiogenes)Hi,
I was able to solve the problem using the a4j:commandButton.
The solution become this one:
<h:form> <a4j:commandButton value="Resultados da Etapa" title="teste" onclick='location.href="#{facesContext.externalContext.requestContextPath}/seam/resource/report.pdf"'></a4j:commandButton> </h:form>
If someone see any drawback doing this, please, let me know. Oh, I saw one, the button (or the form) broken the line, something that I don't intended.
Best regards,
Carlos. -
2. Re: calling a servlet with a url different of .seam
bashan Sep 18, 2008 9:20 AM (in response to cerdiogenes)It seems ok, though I think you can skip the full url and stay with a relative one:
take this off:#{facesContext.externalContext.requestContextPath}/