类似桌面的 jsf-web-application

发布于 2024-11-17 20:17:27 字数 256 浏览 5 评论 0原文

我想使用 JSF 2.0 和 Primefaces 2.2.1 创建一个类似桌面的应用程序 我创建了一个包含两个 div 的主布局,上面的 div 包含一个带有几个子菜单的菜单栏。当用户选择一个菜单项时,我想在主布局的底部 div 中显示指定的 xhtml 页面,而不加载整个页面。所以我就想到用Ajax来做这件事。但我不知道如何实现它。

顺便问一下,是否有机会通过 javascript 更改 ap:menubar 或 ap:submenu ?

有人可以帮助我吗?

I want to create a desktop-like application with JSF 2.0 and Primefaces 2.2.1
I created a main Layout with two divs, the upper div containing a menubar with several submenus. When the user chooses a menuitem, I want to show the spezifyed xhtml page in the bottom div of my main layout, without loading the full page. So I am thinking of Ajax to do it. But I don't know how to realize it.

And by the way, is there a chance to change a p:menubar or a p:submenu by javascript?

Can someone help me?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

世态炎凉 2024-11-24 20:17:27

冒着被否决的风险,我可以建议,既然听起来您正处于项目的开始阶段,那么您应该考虑 JSF 2.0 以外的框架,因为这听起来像是您在自吹自擂。 GWT 是最明显的候选者。如果您习惯于桌面应用程序开发(尤其是 Java),Vaadin 是另一个不错的选择。

At the risk of being down-voted, may I suggest that since it sounds like you're at the beginning of your project, you should consider a framework other than JSF 2.0 because it sounds like you're shoe-horning. GWT is the most obvious candidate. If you're used to desktop app development (especially in Java), Vaadin is another great candidate.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文