How to pass parameters to a new conversation in Seam application.

Solution Verified - Updated -

Issue

  • How to pass parameters to a new conversation in Seam application.

In my Seam application, I have a link which starts a new conversation and passes some input parameters to it:

<s:link id="linkId" propagation="begin" view="/newPage.seam" rendered="true"
     <f:param name="domId" value="#{bean.value}" />
     <h:graphicImage value="images/pdf.png"/>
</s:link>

The page called from this link is newPage.xhtml. If in the beginning of this page I call a Seam bean to search the parameters sent by s:link, I cannot find them using FacesContext:

String firstchance =FacesContext.getCurrentInstance().getExternalContext().getRequestHeaderMap().get("domId");
String secondChance=(String)FacesContext.getCurrentInstance().getExternalContext().getApplicationMap().get("domId");

Why the value is null?

Environment

  • JBoss Enterprise Application Platform (EAP) 4.3.0.GA_CP07

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.