尝试一下……我只使用了一个o:验证订单并更改进程“pnllengths”,在不影响面板网格布局的情况下处理整个div。
<h:panelGrid columns="2" id="pnlLengths">
<h:panelGroup id="nlength">
<p:outputLabel value="Bolt Length" />
<h:panelGrid columns="3">
<h:outputLabel value="nominal:" />
<p:inputText size="1" id="bolt_length" value="#{cc.attrs.bolt.nominal_fastener_length}">
<p:ajax process="pnlLengths" update="nlength tlength boltFeedback" />
</p:inputText>
</h:panelGrid>
</h:panelGroup>
<h:panelGroup id="tlength">
<p:outputLabel value="Thread Length" />
<h:panelGrid columns="3">
<h:outputLabel value="nominal:" />
<p:inputText size="1" id="thread_length" value="#{cc.attrs.bolt.nominal_thread_length}">
<p:ajax process="pnlLengths" update="tlength nlength boltFeedback" />
</p:inputText>
</h:panelGrid>
</h:panelGroup>
<o:validateOrder type="gt" components="bolt_length thread_length" message="Nominal Thread Length must not exceed Nominal Bolt Length" disabled="#{empty cc.attrs.bolt.nominal_fastener_length and empty cc.attrs.bolt.nominal_thread_length}" />
</h:panelGrid>