9 Replies Latest reply on Jan 6, 2011 7:16 PM by anonyin

    <h:commandButton onClick action...

    anonyin

      I have following line of code in my xhtml and I can't make it work. When I lcik on the Save button mnothing is happening, I'm not even getting the onClick event alert('Hi').

       

      What am I missing ? Thanks in advance.

       

      <h:commandButton value="Save" action="#{treeBean.wait1}" onClick="javascript:alert('Hi');javascript:Richfaces.showModalPanel('waitPanel');" onComplete="javascript:Richfaces.hideModalPanel('waitPanel');windowClose();" style="width:70px;"/>

       

      Thanks.