Vaadin 8 Grid cell focus - focus

I have a large project on Vaadin, it works fine on Vaadin 7. But i have start to upgrade it to 8.0 and then to 8.1 versions. Everything is fine but focusing on ComboBoxes inside Grid. It sometimes works, but sometimes not. I look at debug console online and see that there is command to set focus received. But it not always really set focus on right component. On Chrome focus can lost from all components, in Firefox focus stays on previously focused component.
I have created simple testing Servlet with Grid component, which has some ComboBoxes as columns. It must imitate problem from large project's Servlet.
On each ComboBox added valueChangeListener, which moves focus to next ComboBox. At the last ComboBox there is moving focus on next line first ComboBox. And so on, until to last line, where it move focus on first line first ComboBox.
In test Servlet i cannot find error, all works like i want. Almost two weeks i tried to solve my problem, but cannot.

Update 2017-10-18:
I think i found my problem. There is an focus lost occured if line with focused component moves to another position.
I attach simple example. It is an Vaadin Servlet with 2-columns Grid. For focus testing i added static trigger with button. Open servlet in two browsers, select some values in ComboBoxes and play with buttons. On press button in first page it must react on second page and mix two lines. Periodically check focus on second page. On some button press line with focused ComboBox will move to another place and lost focus.
Link to example source on Vaadin forum
Link to example source on Dropbox

Related

Firemonkey and Mobile Navigation

I have an interesting observation and question, but first a comment. I have been using Delphi for 14 years and have taken a job developing an iOS mobile application using XE5. This is my first time using FMX and frankly I feel like I am stepping back in time many moons ago. In other words, if this is the future, then it feels like I have crippled. No problem though. Roll with the punches. Developing in this brave new world is not just a job. It is an adventure.
Now my question. Start a FMX mobile project using the "Header/Footer with Navigation" as your base. Then add an edit control (Edit1) to the first tab item. Then set the tab control align to none and move it to the right until you can clearly see the form itself. Then add an edit control (Edit2) to the form.
Now set the form's active control to Edit1 and run the app - no focus on Edit1. Now set the form's active control to Edit2 and run the app - focus is placed on Edit2. Interesting. Tab is a foreign word to tablets, right? Why have active control or even setfocus available? Is this an oversight by Embarcadero? Any thoughts?
Long story short I think they both have potential uses.
I use the SetFocus call to manually show the keyboard. Lets say the user navigates to a page where they're 100% sure to be putting in their username (or any text), I'll use ctrl.SetFocus to show the keyboard just to save them having to click (or is it press now?) on the edit.
I don't see ActiveControl being as useful, but it could definitely still be used. You could possibly use it to set up some sort of tabbing like structure for when the user presses Next on the keyboard (when the edit's ReturnKeyType is rkNext).

Hidden textarea momentarily taking focus

I'm having an issue with hidden (relevant='false()') textarea controls. When tabbing across the hidden control (ie hitting tab in the previous control) the focus disappears for a moment then reappears in the same control. Tabbing twice quickly will get to the next control successfully.
To recreate, create a 3 control form: input, textarea and input. Make the textarea visibility=false(). Test the form and tab away from the first control.
Using Orbeon 4.3 PE. Doesn't occur with hidden input or output controls.
Anyone seen this before?
Regards
Jez
This was due to a bug (issue 1387), which is fixed as of Orbeon Forms 4.4.

UI Slider - Click Drag Issue in IE only

Has anyone encountered this rather odd issue with UI Slider in IE. It's a basic slider, with a customised image for the handle. In IE, when you click and drag the handle, it only increases the value by one step (as defined via the 'step' parameter). It won't let you carry on dragging to the next "step" unless you click again and then drag it again manually.
Works fine in every other browser - you can slide to any step with a single click and drag.
Ideas appreciated.
This is an old question but for posterity: I had this problem as well and upgrading to the latest version of jQuery UI resolved it.

Forms' focus malfunctioning when both have ribbon

I encountered yet another problem with ribbon. When I have two forms (one of them is main) and I put ribbon on both of them, they behave strangely. When I open the second form by Form2.Show;, every time I click a ribbon menu button on the second form, it loses focus and the main form gets it.
This happens at pure blank project, so what could I possibly be doing wrong?
Here is a video, just in case: Watch YT
And to be clear, the Action1 button has only Caption:='a'; code.
The ribbon control assumes that there is only one per application, and misbehaves if it is not the only control. You could try to modify the Ribbon.pas code, but it is doing some hacks that probably rely on Ribbon.Parent being Application.MainForm only.

Problems with leaving ComboBox on Delphi 7

I have just noticed a strange behavior of ComboBox component. I am using it in DropDownList style. If I click on it, it drops down the list of items, as usual. But then if I click on some other component on the form, the combobox will not let me leave it, unless I select one of the items. I thought of adding onmouseleave event, but in that case it would close even if I move mouse out of combobox area a little, which is undesirable. What I would like to see is combobox losing focus whenever i click somewhere outside of its area. Is that possible?
Actually, I just did what you did: started a new application and threw ComboBox and TEdit. Ran the program. It drops down the list just as you said when you clicked on it. Also, when I clicked on the TEdit, the combobox closed automatically as expected. So, I don't know what is the problem with your program.

Resources