Generating absolute URLs from Seam emails

Is there a way to coax tags h:outputLink

or s:link

generate absolute urls? In the Seam email, I want to be able to do something like

<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 url-encoded messaging by adding protocol, host, context path, etc.

+1


source to share


1 answer


Nothing ... I should have looked more closely at my copy of Shem in Action before asking this question. Setting the attribute urlBase

on the tag m:message

did the trick.



+1


source







All Articles