-
Notifications
You must be signed in to change notification settings - Fork 101
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:inputText with ajax="true" loses focus after update #680
Comments
Probably this bug and the previous bugs can be fixed by defining the correct default action in the JSF component class.
… |
What's a sensible default event setting? Tentatively, I'll set it to |
I've uploaded a new developer snapshot to Maven Central. See #369 on how to get it. I'll close this issue, but keep listening to the comments. If the issue turned out not to be solved, don't hesitate to re-open it. |
I've tested it and it works, but I personally prefer the previous behaviour, as now I have to move the focus out of the field. Would it be possible to just regain focus? Or is it too difficult for now? |
Yes, regaining the focus is almost impossible. Or rather, it's difficult to do it right. Mind you, it's easy to regain the focus. But then, you'd also regain the focus when the user hits the TAB key. And what happens if the user uses the cursor keys to navigate within the field? The field is replaced when the BTW, you can easily restore the old functionality by using the |
The h:inputText default event in mojarra is change. I think It shouldn't have problems with focus too. |
BTW, I'll align the default event with standard JSF. There, it's "onchange", as you've suggested in #679. |
@NicolaIsotta Thanks for confirming that. The default event of the JSF class |
This is somewhat related to #678. When using <b:inputText value="#{...}" ajax="true" />, every key that is pressed results in an AJAX request, rerendering the whole form and losing input focus.
Two workarounds I see:
The text was updated successfully, but these errors were encountered: