How to avoid a run <rich:componentControl> a sample </ rich: modalPanel> if the required fields are not filled.
If I have two text fields required and button that is assigned an event onclic if required fields are filled not avoid showing the modalPanel
<a4j:commandButton action="#{procesoMasivo.procesarTodos}" value="Procesar Asientos" id="botonProcesar" />
<rich:componentControl for="panelInfo" attachTo="botonProcesar" operation="show" event="onclick" disableDefault="true" />
thanks for your help and sorry for my English