How to reproduce specific Friendly URL?

前端 未结 2 430
星月不相逢
星月不相逢 2021-01-16 06:11

we are trying to refactor an JSP/XSLT application to JSF. We use a CMS for content management. Technologies : JSF 2.0 using Mojarra, PrimeFaces 2.2.1 and Tomcat 6.29 The org

2条回答
  •  逝去的感伤
    2021-01-16 06:33

    Can i reproduce the FURL with prettyfaces or should i implemented by mysefl (like explains in this article)?

    I would definitely recommend PrettyFaces. You end up with less complicated code and configuration. The same is also mentioned in the top of the linked article.

    And with h:link, i don't see actionListener or action attribute, so how i can update my context?

    The only accepts a navigation outcome, not an URL. Use instead.

    A sub channel
    

    As to invoking actions on GET requests, use the constructor or @PostConstruct of the bean which is associated with the view.

提交回复
热议问题