开发者

Prettyfaces how to rewrite two different view-id with one pattern

I have 开发者_开发技巧two different view-id

/faces/rcg/index.xhtml and /faces/MasterRiskManager/index.xhtml Is it possible to rewrite them both with one pattern /inex.html?


No. How would PrettyFaces know which page to rewrite the incoming /index.html as?

If your idea is to rewrite /index.html to one page or the other depending on other factors such as get or post params, you could just choose one then make the redirect decision in that page (using an f:event tag) in a PreRenderViewEvent handler.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜