JSF CommandButton onclick does not call Javascript function

后端 未结 3 1474
我寻月下人不归
我寻月下人不归 2021-01-12 19:16

I am using a command button from JSF. I don\'t know why I can\'t call my javascript function. NO alert will show when I click the button.



        
3条回答
  •  被撕碎了的回忆
    2021-01-12 19:56

    1. Check your generated code (open the page -> view source)
    2. Check your javascript console (Firefox) for errors
    3. make sure your function is callable from a normal
    4. lowercase your button type.

    Otherwise, it should work - I have exactly the same piece of code in my current codebase that works perfectly.

提交回复
热议问题