Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在为一个包含许多选择框和复选框列表的表单设计一个数据库。
我不确定是从数据库中的表还是从选择的 html 文本中填充这些列表。
作为 db 设计最佳实践的一部分,这是首选方法。
如果您希望表单元素(复选框、列表)可能经常更改,或者是有条件的(基于可配置的权限/角色),那么它们应该来自数据库。 但是,如果它们大部分是静态的(很少更改,不依赖于可配置的权限),那么您应该对它们进行硬编码。对它们进行硬编码的最大好处是减少了数据库上的流量。这将产生最佳性能。
嗨,我有一个命令链接,所以当单击它时,当字段集 处于相同状态时,我将渲染action="#{projectAdminisrationMB.showGroups(userObj)}"一个字段集,但当我将它放在单独的 ui:define 中时,它将不会被渲染。<p:fieldset legend="Manage User Groups" id="manage
action="#{projectAdminisrationMB.showGroups(userObj)}"
<p:fieldset legend="Manage User Groups" id="manage