[英]How to define forms in JSF primefaces with pe:layoutPane
我有一個帶有JSF 2和primefaces和primefaces擴展layoutPane的模板布局。 左側有一個搜索區域和一個結構。 右側是詳細信息區域。 這是模板的簡短形式:
<html>
<f:view contentType="text/html">
<h:head>
</h:head>
<h:body style="width: 100%; height: 100%;">
<pe:layout id="layoutId">
<pe:layoutPane id="layoutPaneWestId" position="west" size="30%" closable="false" resizeWhileDragging="true">
<pe:layoutPane id="layoutPaneSearchId" position="north" closable="false" resizable="false">
<h:form id="searchForm">
<ui:insert name="search" />
</h:form>
</pe:layoutPane>
<pe:layoutPane id="layoutPaneContentId" position="center">
<h:form id="structureForm">
<ui:insert name="content" />
</h:form>
</pe:layoutPane>
</pe:layoutPane>
<pe:layoutPane id="layoutPaneDetailId" position="center" size="70%" closable="false">
<h:form id="detailsForm">
<ui:insert name="details" />
</h:form>
</pe:layoutPane>
</pe:layout>
</h:body>
每個區域都有自己的形式。 現在,我問自己如何使用全局p:growl來處理eg。 應該采用哪種形式? 據我所知,嵌套表格是無效的html。 另一個大問題是,當我在searchForm的搜索字段中鍵入內容並單擊structureForm中的手風琴面板時,將提交搜索字段的內容。 為什么?
親切的問候奧利
您應該以pe:layout
之外的其他形式放置global p:growl
。
第二個問題可能與從structureForm
到searchForm
調用的某些更新有關
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.