从facelets 1.1迁移到faclets 2.0 - FaceletViewHandler
我读过以下帖子,非常有帮助 从 JSF 1.2 迁移到 JSF 2.0
但我迁移时遇到问题,因为我有一个从 FaceletViewHandler 扩展的自定义视图处理程序 - 这不是 faclets 2 的一部分。
我正在 JBoss 4.2.2 上迁移以下内容: - JSF 1.2 到 JSF 2.0
我还想迁移 faclets - 我遇到了上述问题。
在我的应用程序中,我也使用 Tomahawk - 此迁移有任何问题吗?
提前致谢。
埃利科.
I have read the following post which was very helpful
Migrating from JSF 1.2 to JSF 2.0
but I am having a problem with the migration as I have a custom view handler which extends from FaceletViewHandler - this is not part of faclets 2.
I am migrating on JBoss 4.2.2 the following:
- JSF 1.2 to JSF 2.0
I also want to migrate the faclets - which i have a problem described above.
In my application, I am also using Tomahawk - is there any problem with this migration?
Thanks in advance.
Elico.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
是的,您需要将
FaceletViewHandler
替换为ViewHandlerWrapper
。因此,以下基本
FaceletViewHandler
实现:需要更新如下:
我已相应地更新了有关迁移问题的答案。
Right, you need to replace
FaceletViewHandler
byViewHandlerWrapper
.So the following basic
FaceletViewHandler
implementation:needs to be updated as follows:
I've updated my answer on the migration question accordingly.
要激活 MyViewHandler 例如对于 JEE7,WEB-INF/faces-config.xml 应定义如下:
To activate MyViewHandler e.g. for JEE7, WEB-INF/faces-config.xml should be defined like: