Primefaces resetinput取消按钮挂起其他选项卡

时间:2013-08-22 06:32:12

标签: primefaces

我遇到了primefaces resetinput的问题。当我按下取消按钮时,我所有其他标签都被挂了。我正在使用primefaces 3.5。

        <p:commandButton id="cancelMainButton" process="@this"
             value="#{bundle.Cancel}" update=":ss_form:ss_tabView:main_tab"
             actionListener="#{eccmServiceSpecController.cancelServiceSpec}"
            icon="ui-icon-cancel">
            <p:resetInput target=":ss_form"/>
        </p:commandButton>


    **Controller**  
    @Named("eccmServiceSpecController")
    @SessionScoped

    public void cancelServiceSpec(ActionEvent event) {
        eccmServiceSpec = ejbFacade.findByServiceSpec(eccmServiceSpec);
        this.setSelected(eccmServiceSpec);
    }

    **Facade** Statefull session bean with Extended mode.
public EccmServiceSpec findByServiceSpec(EccmServiceSpec eccmServiceSpec){
    this.getEntityManager().detach(eccmServiceSpec);
    eccmServiceSpec = this.find(eccmServiceSpec.getServSpecId());
    eccmServiceSpec = this.getEntityManager().merge(eccmServiceSpec);
    return eccmServiceSpec;
}

感谢您的回复。我添加了我的控制器和Facade请看这个。我会感激你的。

0 个答案:

没有答案