关闭对话框时为什么调用 setDataTransferRangeInSeconds() 方法?通常关闭对话框时我可能不会被调用?
<h:form>
<p:dialog header="Service Alarm Options"
widgetVar="updatedlg"
closable="true"
minWidth="500"
minHeight="1000"
resizable="false"
dynamic="false"
>
<h:panelGrid id="servicedetails">
<p:commandButton value="Save"
action="#{alarmBean.updateServiceOptions}" />
<p:commandButton value="#{messages.exit}" icon="ui-icon-close"
style="valign:bottom;float:right;padding-right:20px"
oncomplete="updatedlg.hide();">
</p:commandButton>
<p:inputText
value="#{alarmBean.selectedDocument.dataTransferRangeInSeconds}"></p:inputText>
</h:panelGrid>
</p:dialog>
</h:form>
更新。
<p:dialog header="Service Alarm Options" widgetVar="updatedlg"
closable="true" minWidth="500" minHeight="1000" resizable="false"
dynamic="false">
<h:form>
<h:panelGrid id="servicedetails">
<p:commandButton value="Save"
action="#{alarmBean.selectedDocument.saveNewFeatures}" />
<p:commandButton value="#{messages.exit}" icon="ui-icon-close"
style="valign:bottom;float:right;padding-right:20px"
onclick="updatedlg.hide();" type="button" />
<p:inputText
value="#{alarmBean.selectedDocument.dataTransferRangeInSeconds}"></p:inputText>
</h:panelGrid>
</h:form>
</p:dialog>