如何在 jsf 2.0 中创建选项卡行为
这是一个简单的问题,到目前为止我还不知道如何以最好的方式去做。 我正在开始一个新项目,所以我仍然有些灵活性。
JSF 2.0,Facelets是受欢迎的(虽然我才刚刚开始学习什么是facelets),无论你推荐什么核心技术,我都会考虑。 它也应该适用于 IE6(但如果有一个真正足够的解决方案不适用于 IE6,请告诉我)
如何在 Web 应用程序中创建类似选项卡的行为? (我猜最好的例子是 Gmail,其中侧边栏可以更改内容而无需刷新页面)。
无需赘述,我只是在寻找其背后的技术以及指向正确方向的手指。
谢谢你!
Simple question that I couldn't figure out how to do so far in the best way.
I'm starting a new project so I'm still somewhat flexible.
JSF 2.0, Facelets are welcome (Although I'm just starting to learn what facelets are), whatever core technology you recommend, I will consider.
It should also work on IE6 (But if there is a really adequate solution that doesn't work on IE6, let me know)
How Do I create a Tab-Like behaviour in a webapp? (The best example would be Gmail, I guess, where the sidebar changes the contents without refreshing the page).
No need to go into details, I'm just looking for the technology behind it and a finger pointing in the right direction.
Thank you!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
知道我知识渊博,我使用 jQuery BBQ 插件和 AJAX。
使用此链接查看完整的解决方案:
从网络应用程序更新网址栏以表示当前状态
IE6/7后退/前进按钮不更改window.location .哈希
Know That I Am more knowlegdable I use the jQuery BBQ plugin with AJAX.
Use this links to see the full solution:
Updating the url bar from the webapp to represent the current state
IE6/7 Back/Forward button don't change window.location.hash
如果您想“自己做”,您可以使用 f:ajax 标签。这需要三个参数:
Richfaces、Primefaces 和 Icefaces 组件库都有您可以使用的解决方案。
If you want to "do it yourself," you would use the f:ajax tag. This takes three parameters:
The Richfaces, Primefaces, and Icefaces component libraries all have solutions you could use as well.
Primefaces Tabview 组件怎么样。 Primefaces 是一个基于 JSF 2.0 的组件库。 (从未在 IE6 上尝试过。我建议在 IE6 中尝试给定的示例)
How about Primefaces Tabview component. Primefaces is a component library based on JSF 2.0. (Never tried it on IE6. I'd suggest to try the given examples in IE6)