How to reproduce specific Friendly URL?

前端 未结 2 412
星月不相逢
星月不相逢 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:31

    This is cross posted on: http://ocpsoft.com/support/topic/how-to-reproduce-specific-friendly-url (Please follow up there.)

    0 讨论(0)
  • 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 <h:link> only accepts a navigation outcome, not an URL. Use <h:outputLink> instead.

    <h:outputLink value="firstSite/aChannel/aSubChannel">A sub channel</h:outputLink>
    

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

    0 讨论(0)
提交回复
热议问题