Hi, first of all, sorry for my poor english
My problem is:
Have a page
jsf with 2 SelectOneMenu and 1 commandButton like this
<h:selectOneMenu binding="#{nuevoExpediente.cbObra}" valueChangeListener="# {bean.cbObra_OnChange}" onchange="submit()" >
<f:selectItem itemLabel="Nuevo" itemValue="-1" itemDescription="Introducir nuevo poseedor" />
<f:selectItems binding="#{bean.listobras}" />
</h:selectOneMenu>
<h:selectOneMenu binding="#{bean.cbCliente}" valueChangeListener="# {bean.cbCliente_OnChange}" onchange="submit()" >
<f:selectItem itemLabel="Nuevo" itemValue="-1" itemDescription="Introducir nuevo poseedor" />
<f:selectItems binding="#{bean.listclientes}" />
</h:selectOneMenu>
<h:commandButton id="cmdInsertar" value="Aceptar" action="#{bean.cmdInsertar_OnClick}" />
Cool, now, when the pages FIRST time that i select one item on selectonemenu or click button, page fires ALL events. I think this it because when initialize SelectOneMenu with value="#....", an one event onChange wait on a queue and when any object of form make submit() all event on a queue are throws.
this is:
1� time when page load
- click on a button
- cbObra_OnChange fire ( on queue for give values? )
- cbCliente_OnChange fire ( on queue for give values? )
- cmbInsertar_OnClick fire ( yes, im clicked

)
how i can do this? i want that when click on the button first time, only event of button fires.
thanks for all