Is there a way to coax either the h:outputLink
or s:link
tags into generating absolute URLs? In a Seam email message, I want to be able to do something like
有没有办法哄骗h:outputLink或s:link标签生成绝对URL?在Seam电子邮件中,我希望能够做类似的事情
<s:link view="/someView.xhtml">
<f:param name="a" value="#{a.nastyParam}" />
<f:param name="b" value="#{b.nastyParam}" />
<h:outputText value="Come do something awesome!" />
</s:link>
and generate an absolute URL without the fuss of messing with URL encoding, prepending the protocol, host, context path, etc.
并生成一个绝对的URL,没有乱搞URL编码,前置协议,主机,上下文路径等。
1 个解决方案
#1
Never mind... I should have looked more closely at my copy of "Seam in Action" before asking this one. Setting the urlBase
attribute on the m:message
tag did the trick.
没关系......在问这个问题之前,我应该更仔细地查看我的“Seam in Action”。在m:message标签上设置urlBase属性就可以了。
#1
Never mind... I should have looked more closely at my copy of "Seam in Action" before asking this one. Setting the urlBase
attribute on the m:message
tag did the trick.
没关系......在问这个问题之前,我应该更仔细地查看我的“Seam in Action”。在m:message标签上设置urlBase属性就可以了。