j'ai fais un teste sur le disable du bouton et et quand je le rend enable le bouton ne fais plus le traitement voici le code :
<script type="text/javascript">
function keyUp(obj,obj2)
{
if ((obj.value!="")&&(obj2.value!=""))
{
document.getElementById('form1:ok').disabled=false;
}
else
{
document.getElementById('form1:ok').disabled=true;
}
}
</script>
<h:inputText id="pi"
onkeyup="keyUp(this,document.forms['form1'].elements['form1:po'])" required="true"/>
<h:inputText id="po"
onkeyup="keyUp(this,document.forms['form1'].elements['form1:pi'])"/>
<h:commandButton value="commandButton1"
binding="#{backing_untitled2.ok}"
id="ok"
action="#{backing_untitled2.commandButton1_action2}"
disabled="true"/>

 

 
		
		 
        

 
			
			




 bouton disable ne marche pas
 bouton disable ne marche pas
				 Répondre avec citation
  Répondre avec citation
Partager