jsf - ajax javascript call not working due to a <h:form> -


problem:

i have button action , ajax call js function javascript function not executed. when remove <h:form> work perfectly. has idea why happens, , how fix it?

i use form.

code:

working:

                <h:commandbutton id="dice" alt="w&uuml;rfel" image="resources/img/wuerfel0.png" action="#{spiel.dice()}" tabindex="4" title="w&uuml;rfel">                     <f:ajax render="gameinfo" onevent="animate" />                 </h:commandbutton> 

not working:

         <h:form>                 <h:commandbutton id="dice" alt="w&uuml;rfel" image="resources/img/wuerfel0.png" action="#{spiel.dice()}" tabindex="4" title="w&uuml;rfel">                     <f:ajax render=":gameinfo" onevent="animate" />                 </h:commandbutton>          </h:form> 

i tried realize commandlink, same problem!


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -