开发者

Passing parameters between JSF pages

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜