在jsf ajax事件中,将加载阶段置于结果就绪之前

在jsf ajax事件中,将加载阶段置于结果就绪之前,ajax,jsf,Ajax,Jsf,我想在把结果交给我之前先放上装货标志 例如,我可以使用以下命令更改按键的不同颜色: <!-- ColorFilter --> <span class="select-one-container"> <p:selectOneButton id="colorFilter" value="#{productView.color}">

我想在把结果交给我之前先放上装货标志

例如,我可以使用以下命令更改按键的不同颜色:

<!-- ColorFilter -->
                    <span class="select-one-container">
                        <p:selectOneButton id="colorFilter" value="#{productView.color}">
                            <p:ajax update="mainForm" listener="#{productView.applyFilters}" oncomplete="PF('colorTable').filter();"/>
                            <f:selectItem itemLabel=" #{colorText.filter_new} " itemValue="red" itemDescription="#{pRevText.filter_new_description}"/>
                            <f:selectItem itemLabel=" #{pRevText.filter_marked}" itemValue="blue" itemDescription="#{pRevText.filter_marked_description}"/>                            
                        </p:selectOneButton>
                    </span>

在“applyFilters”完成之前,它应该只显示加载符号,我不想在那里看到旧的结果

或者在结果出来之前什么都不显示

对于ajax事件,“oncomplete”之前有选项吗

对于ajax事件,“oncomplete”之前有选项吗

onstart

另一个选项是ajax状态:

和@AshishMathew建议的blockUI。

是否尝试使用?