-
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
CommandButton: actions are called twice #259
Comments
I'm also seeing this problem. However, when I have a <b:commandButton
value="UP"
action="#{questionPage.changeOrder('up', question, assessmentGroup)}"
ajax="true"
update="@form"
rendered="#{question.questionOrder ne 1}" /> It does not double trigger. If I use one with a glyphicon: <b:commandButton
icon="arrow-up"
action="#{questionPage.changeOrder('up', question, assessmentGroup)}"
ajax="true"
update="@form"
rendered="#{question.questionOrder ne 1}" /> I can reliably get it to double-trigger when clicking on the icon directly but if I click on the button outside the icon, then it does not double-trigger. |
Interesting. I looked for the error at a different part of the source code. The tab demo is a non-AJAX commandButton without icon. I'll keep it in mind, anyways - you might be up to something. |
Non-AJAX commandButtons generate HTML code that calls |
I've fixed the bug and uploaded a developer snapshot to Maven Central. @XaeroDegreaz The bug I've found has nothing to do with the glyphicon. Would you mind to test your code again to verify the bug has been solved? If not, please reopen the issue. See #151 on how to get the developer snapshot. |
Yes. The bug is fixed. I was facing the same issue since last week. Just now I have tested with the new jar and have found it working. The issue was happenning with Chrome only. |
Great! Thanks for giving us feedback! |
I noticed this in the tab demo. The action is called twice. Someone else reported a similiar issue concerning datatable. Might be a general problem.
The text was updated successfully, but these errors were encountered: