0

Does anyone know if you can call an angularjs method from a jsf commandButton. A button like this:

<h:commandButton actionListener="#{taskController.stopAllTasks}"
    ng-click="deActivateTasks()"
    styleClass="btn btn-default"
    value="Reset To Idle"">
</h:commandButton>

I tried using the ng-click but the deActivateTasks() method is not called and no error is recorded either.

I can call deActivateTasks() from non JSF tags so I know the method is accessible. I need to be able to execute the action taskController.stopAllTasks and call the angular method.

Marcelo
  • 4,395
  • 1
  • 18
  • 30
RBall444
  • 111
  • 1
  • 2
  • 5

0 Answers0