Facelets 和 JSP 在同一个项目中?
是否可以在同一个项目中使用 Facelets 页面和 .jsp 样式的 ICEfaces 页面?在查看 ICEFaces Facelets 教程时,迁移似乎是一个全-或无开关。是否可以同时支持两者(用于缓慢迁移)?
Is it possible to use Facelets pages and .jsp style ICEfaces pages in the same project? In looking at the ICEFaces Facelets tutorial, the migration appears to be an all-or-nothing switch. Is it possible to support both (for a slow migration)?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
我实际上现在正在尝试,但它应该可以工作:
http:// wiki.java.net/bin/view/Projects/FaceletsFAQ#How_do_I_use_Facelets_and_JSP_in
I'm actually trying it right now, but it should work:
http://wiki.java.net/bin/view/Projects/FaceletsFAQ#How_do_I_use_Facelets_and_JSP_in
我从未尝试过,但认为您可以编写高优先级过滤器来在 JSP 或 ICEF 之间分派请求。并放置到web.xml中以拦截所有
I've never try, but thinking you can write high priority filter to dispatch request between JSP or ICEF. And place to web.xml to intercept all
您可以一起使用 Facelet 和 IceFaces。 Facelet 是 JSF 应用程序的视图处理程序。如果你想在你的应用程序中使用facelet,你必须将其设置为faces-config.xml中的视图处理程序,如下所示
我认为Iceface将拥有默认的过滤器和调度程序。
You can use Facelet and IceFaces together. Facelet is view handler for JSF applications. If you want to use the facelet in your application you have to set it as the viewhandler in faces-config.xml as follows
I think Iceface will be having their default filters and dispatchers .
我个人发现从 JSP 到 Facelets 的迁移非常简单。我能够在一天之内迁移一个大小合适的应用程序。我认为任何拼凑在一起的解决方案所增加的复杂性都会给您带来更多的麻烦,而不是硬着头皮快速移植。调试功能、改进的错误消息和提高的速度都是很好的优点。
如果我没记错的话,我在 JSF 2.0 上看到的最后一次演讲表明未来将需要 Facelets。
I personally found the migration from JSP to facelets pretty simple. I was able to migrate a decent sized app within the span of a day. I would think the added complexity from any hacked together solution will cause you more headaches than just biting the bullet and porting quickly. The debugging features, improved error messages and gained speed are nice pluses.
If I recall correctly, the last talk I saw on JSF 2.0 suggested that Facelets was going to be required going forward.