Navigation in JavaServer Faces, redirecting with correct parameters

前端 未结 2 634
情话喂你
情话喂你 2021-01-28 07:00

I have a page: http://mypage.com/items.jsf.

This page takes the following for granted:

  • ID is set by GET or ID is set by POST.

Now, I can man

2条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-28 07:25

    If you are stuck with JSF1.2, you can also use the and nest tags within it. The outputLink will include the parameters as query-params: ?name=value

    If you need page-actions, navigation from methods, or jsut want to let an extension manage this for you, you can use PrettyFaces – SEO, Dynamic Parameters, Bookmarks, and Navigation for JSF / JSF2

    It includes much simplified JSF navigation and linking.

提交回复
热议问题