JSF default behavior

I am building a vanilla JSF application and I am having a hard time understanding how forms work in this framework.

If I create a JavaScript form ...

document.myForm.submit();

      

... in this JSF form ...

<h:form id="myForm">
  ...
  <h:commandButton value="Continue" action="#{foo.continueButton}"></h:commandButton>
</h:form>

      

... how to define the method to be called in the foo bean? Is there a standard JSF method to define the default submit method?

0


source to share


1 answer


Is there a standard JSF method to define the default submit method?

Unfortunately not, but not in JavaScript.



You could simulate a click on a button to perform an action though.

+1


source







All Articles