已弃用的 Primefaces 布局组件的首选替代方案是什么 [英] What is the preferred alternative to the deprecated Primefaces Layout component

查看:57
本文介绍了已弃用的 Primefaces 布局组件的首选替代方案是什么的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

查看 Primefaces Showcase,看起来 Layout 组件已被弃用.这是链接:https://www.primefaces.org/showcase/ui/panel/layout/element.xhtml

Looking at the Primefaces Showcase it looks like the Layout component is deprecated. Here is link : https://www.primefaces.org/showcase/ui/panel/layout/element.xhtml

那么如果我想创建一个包含页眉、正文和页脚的模板,我们现在应该使用哪个 Primefaces 组件?

So if I want to create a template that will have header, body and footer what Primefaces component should we be using now?

提前感谢您的建议!

推荐答案

在 PrimeFaces 扩展中有一个类似的组件:https://www.primefaces.org/showcase-ext/views/layout.jsf

There is a similar component in PrimeFaces extensions: https://www.primefaces.org/showcase-ext/views/layout.jsf

它基于相同的 Jquery Layout 组件,但是我同意 @Kukeltje 你应该只在需要打开/关闭功能时使用这个组件.如果没有,使用纯 CSS 可能是您更好的长期选择.

it is based on the same Jquery Layout component however I agree with @Kukeltje you should only use this component if you need to the open/close capability. If not, using straight CSS is probably your better longer term option.

这篇关于已弃用的 Primefaces 布局组件的首选替代方案是什么的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆