我想在表单中包含一个弹出窗口。正常的方法是使用 2 种形式,例如:
<div class="wrapper" >
<h:form>
<h:panelGroup id="id1" layout="block">
<ui:include src= content1 />
</h:panelGroup>
</h:form>
</div>
<h:form id="modalId">
<ui:include src= popupContent >
</ui:include>
</h:form>
并使用 content1 中的按钮呈现,即包含弹出窗口的表单“modalId”。
我在“content1”中包含的外部组件中有弹出表单。由于弹出表单在另一个表单内,因此渲染效果不佳。我该如何解决?这个想法是使用我所有的 xhtml 视图都通用的组件