diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/component/ConfirmPanel.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/component/ConfirmPanel.java index 4ae9303ac0..b98f06664d 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/component/ConfirmPanel.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/component/ConfirmPanel.java @@ -344,6 +344,15 @@ public final class ConfirmPanel extends Div pnlBtnCenter.appendChild(cbb); } + /** + * Add checkbox to center panel + * @param cb + */ + public void addComponentsCenter(Checkbox cb){ + pnlBtnCenter.appendChild(cb); + + } + /** * return button of the specified id * @param id button id @@ -529,8 +538,11 @@ public final class ConfirmPanel extends Div // IDEMPIERE-1334 start while (iter3.hasNext()) { - Button button = (Button)iter3.next(); - button.addEventListener(event, listener); + Object element = iter3.next(); + if (element instanceof Button) + { + ((Button)element).addEventListener(event, listener); + } } // IDEMPIERE-1334 start }