[jbossseam-issues] [JBoss JIRA] Commented: (JBSEAM-2915) Renderer should use it's own copy of JSF, based around a mock servlet context and mock requests

koen handekyn (JIRA) jira-events at lists.jboss.org
Mon Feb 2 10:28:44 EST 2009


    [ https://jira.jboss.org/jira/browse/JBSEAM-2915?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12450650#action_12450650 ] 

koen handekyn commented on JBSEAM-2915:
---------------------------------------

!!! this broke our application !!!

in the mails we send out we need to have a link back to the application. the application is multi tenant (it has different host names). we need to know the host name the user is using to build urls (email confirmation for example) to the correct host.

this should thus be at least configurable or an alternative should be proposed.

concretely we are using the below code:

	final String serverAddress;
		{
			final String proxy = externalContext.getRequestHeaderMap().get("x-forwarded-host");
			if (LangUtil.isEmpty(proxy)) {
				final HttpServletRequest request = (HttpServletRequest) externalContext.getRequest();
				final String local = request.getLocalAddr() + ":" + request.getLocalPort();
				log.debug("return local server: " + local);
				serverAddress = local;
			} else {
				log.debug("return proxy server: " + proxy);
				serverAddress = proxy;
			}
		}
		return serverAddress;



> Renderer should use it's own copy of JSF, based around a mock servlet context and mock requests
> -----------------------------------------------------------------------------------------------
>
>                 Key: JBSEAM-2915
>                 URL: https://jira.jboss.org/jira/browse/JBSEAM-2915
>             Project: Seam
>          Issue Type: Task
>          Components: Mail
>            Reporter: Samuel Mendenhall
>            Assignee: Pete Muir
>             Fix For: 2.1.0.BETA1
>
>
> Seam mail doesn't currently support sending mails asynchronously, there needs to be a rewrite to the way mail rendering works.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the seam-issues mailing list