How to reproduce specific Friendly URL?

杀马特。学长 韩版系。学妹 提交于 2019-12-01 13:24:09

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

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.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!