开发者

Passing parameters between JSF pages

开发者 https://www.devze.com 2023-04-05 15:02 出处:网络
actually I use h:link with h:param to pass parameters from one page to another. The problem is t开发者_运维知识库hat so the parameters come in the url too and in some cases I don\'t want it (the page

actually I use h:link with h:param to pass parameters from one page to another.

The problem is t开发者_运维知识库hat so the parameters come in the url too and in some cases I don't want it (the page should not be bookmarkable).

How can I do? What should I use?

Thank you in advance Francesco


You can use an h:commandLink instead of h:link. Your page invocation will be done through a POST command instead of a GET command. Hence, parameter will not show up in URL.

Here's is an example I got from here:

<h:commandLink>
    <h:outputText value="welcome"/>
    <f:param name="outcome" value="welcome"/>
</h:commandLink>
0

精彩评论

暂无评论...
验证码 换一张
取 消