-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
b:commandButton onclick executed twice? #826
Comments
It seems the onclick handler is rendered twice: <b:commandButton value="Delete" iconAwesome="trash"
action="#{car.edit}"
onclick="debugger">
<f:ajax execute="@this" render="@form" />
</b:commandButton> <button type="submit" id="j_idt351:j_idt352:14:j_idt363"
name="j_idt351:j_idt352:14:j_idt363" class="btn btn-default"
onclick="debugger;debugger;BsF.ajax.callAjax(this, event,'j_idt351','j_idt351:j_idt352:14:j_idt363',null,null,null,null);;;return false;">
<span><i class="fa fa-trash"></i></span> Delete
</button> |
The reproducer can be simplified to <h:body>
<h:form>
<b:commandButton
onclick="debugger">
<f:ajax/>
</b:commandButton>
</h:form>
</h:body> |
I guess the problem is that |
@chongma Maybe you want to review my last change. It should do the trick, but it's kind of a hack. If you've got a better solution, just tell me (or commit it yourself :)). |
looks good to me |
I still can't think of a better solution, so I'll close this ticket. @chongma , thanks for testing! |
If I click the button described below it prompts me twice to confirm. Is the code being executed twice?
Bear in mind the code was inside a b:dataTable
The text was updated successfully, but these errors were encountered: