Primefaces: the commandButton inside the rowexpander not perform the action at first click

381 Views Asked by At

I have a problem on a page with primefaces framwork, this is my fragment code:

            <p:rowExpansion rendered="#{riepilogoExtra.approvato == '0'}" >   
                <p:panelGrid columns="3" style="width:50px; border: 0px" >                            
                    <h:outputText value="Ore" />
                    <h:outputText value="Minuti" />
                    <h:outputText value="Note" />
                    <p:inputText id="QTA_MASSIMAHH" value="#{riepilogoExtra.qtaMassimaHH}" size="1" />
                    <p:inputText id="QTA_MASSIMAMM" value="#{riepilogoExtra.qtaMassimaMM}" size="1" />                        
                    <p:inputTextarea id="NOTE" rows="2" cols="20" value="#{riepilogoExtra.note}" /> 
                </p:panelGrid>     
                <p:commandButton 
                        ajax="true"
                        id="update" 
                        value="Salva" 
                        update="@form" 
                        action="#{riepilogoExtraResponsabileManagedBean.update(riepilogoExtra)}" 
                        icon="ui-icon-check" 
                        styleClass="ui-priority-primary" />

            </p:rowExpansion>
1

There are 1 best solutions below

1
sghaier ali On

hy,

if you have the problem for button don't work in the first click you must verify your console javascript you have error, resolve the problem and all is ok :)