2 Replies Latest reply: Mar 18, 2013 4:24 AM by gimbal2 RSS

    JSF 2.0 and javascript function

    Anjana.S-Oracle
      I am using jsf 2.0, NetBeans 7.2 and WLS 12c.

      In JSF page I am callling a js script function and on submit it should invoking the backing beans method.

      <h:commandButton id="btnUpload" value="Login" onclick="showProgress(); return false;" action="#{login.dologin}" />

      Because return false is used it invokes the js function but does not do the invoke the method specified in the action attribute. instead i get new window which is a duplicate of the current.

      If js method is not there it invokes the action method.