<p:resetinput>无法正常工作</p:resetinput>

时间:2014-01-24 09:59:34

标签: jsf-2 primefaces

我有一段代码:

<p:dialog dynamic="true" widgetVar="details" id="detailsDialog" position="center" closeOnEscape="true" resizable="false"
        header="#{prop['tum.editteam.detailsfor']} #{teamListController.selectedProjectsDTO.groupname}" modal="true" draggable="false"
        showEffect="fade" hideEffect="slide" height="500" width="1280" rendered="#{authenticationController.sessionUser.admin}" styleClass="teamEditStyle">
        <p:panel id="teamEditPanel">
            <ui:include src="/WEB-INF/includes/editteamlist.xhtml"/>
        </p:panel>
        <f:facet name="footer">
            <p:row>
                <p:column colspan="2">
                    <p:outputPanel layout="block" style="float:right;">
                        <p:commandButton value="#{prop['tum.addteam.resetbutton']}"
                            styleClass="buttonStyle" process="@this" update="teamEditPanel">
                            <p:resetInput target="teamEditPanel"/>
                        </p:commandButton>
                        <p:spacer width="10"/>
                        <p:commandButton value="#{prop['tum.editteam.updatebutton']}" 
                            onclick="confirmUpdateTeamEdit.show();" styleClass="buttonStyle"/>
                    </p:outputPanel>
                </p:column>
            </p:row>
        </f:facet>
    </p:dialog>

这里, <p:resetInput>无效。 请帮助,我不明白为什么这不起作用。 提前谢谢!

0 个答案:

没有答案