Bonjour,
j'ai un bouton supprimer qui me permet de supprimer les lignes sélectionnées dans ma dataTable et ceci grâce à des checkBox.
je voudrais, svp, n'afficher le message de confirmation que si l'une des lignes de ma dataTable est cochée.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4 <a4j:commandButton value="#{msgBundle['bouton.supprimer']}" actionListener="#{planningBean.supprimer}" reRender="planningForm" styleClass="button" onclick="if (!confirm('Etes-vous sûr de vouloir supprimer ?')) return false" />
voici le code de ma dataTable
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 <t:dataTable id="tablePlanning" var="recordPlanning" value="#{planningBean.helper.planningVO.listePhasePlanningVOImpl}" align="left" rows="5" headerClass="tableHeader" rowClasses="tableRow1,tableRow2" footerClass="tableFooter"> <t:column> <f:facet name="header"> <h:selectBooleanCheckbox id="CheckboxAllPlanning" rendered="#{!rapportInfoBean.helper.disableBoutton}" value="#{planningBean.helper.selectedAllPlanning}"> <a4j:support event="onchange" reRender="tablePlanning" actionListener="#{planningBean.selectAllPlanning}" /> </h:selectBooleanCheckbox> </f:facet> <h:selectBooleanCheckbox id="check" value="#{recordPlanning.booleanListeChecked}" rendered="#{!rapportInfoBean.helper.disableBoutton}" /> </t:column>.....
Partager