I have a form with a bunch of normal TEXT_FIELDs and one larger TEXT_AREA which is a sort of ‘comments’ box.
However, I can’t seem to get it to activate via the tab ordering. That is, if I click in the field in the tab order preceeding my TEXT_AREA field and hit tab, the cursor just disappears like no fields are active (and indeed if I type anything it goes nowhere.) If I hit tab again, it properly goes on to the next field in the tab order after my TEXT_AREA field.
My TEXT_AREA field is set to editable, and even if I turn on selectOnEnter it doesn’t highlight the text in the field when tabbing into it. If I manually click in the field, everything works as expected so I’m not sure what I could have set wrong.
One further thing to check:
Have you included any other elements in the tab sequence ?
The tab sequence can include buttons, images and labels too which could explain your disappearing cursor !
I created a new form and put 3 fields on it, all with a displayType of TEXT_FIELD. Setup tab ordering; exit design mode and test by clicking in field 1 and tabbing through. Works fine.
Back into design mode, I change the displayType of the middle field to a TEXT_AREA. Exit design mode, test again - problem persists. Click in field 1, hit tab, cursor disappears. Hit tab again, cursor appears in field 3 as expected.
Servoy Dev under Windows, 3.5.3 Build 516.
Java version 1.6.0_03-b05
Maybe its a Java issue? It also seems like on portals, no matter if I turn off ‘resizeable’ and ‘reorderable’, I can still do both.
I will try on an entirely new solution tomorrow, but gotta get to bed for now.
Well, I made a new solution and repeated the test above with 3 fields, and get the same results… cursor disappears/field never activates when tabbed into.
I set an onFocusGained method for the field and it doesn’t seem to get called either (when it’s a TEXT_AREA - if I change nothing else but make it a TEXT_FIELD, it works all as expected.)
I’m not sure how the database end works for you in this case, but I am personally using a MySQL server; I created a new table for this solution which simply has 3 text fields (length 255) called field_a, field_b, and field_c.
I just imported your sample solution to the Servoy example database with Sybase as the back end. The tabs work perfectly on text fields and the textarea field. No changes were required.
Dean Westover
Choices Software, Inc.
Servoy Developer
Version 3.5.3-build 516
Java version 1.5.0_05-b05 (Windows XP)
OK. I un-installed JRE 1.6 and put on 1.5; I can tab into and through the TEXT_AREA now properly, although I can’t shift-tab OUT of it going backwards.
So I dunno if in the case or JRE 1.6 if it’s a Java issue or a Servoy issue but something definately doesn’t work (I’m going to just keep running 1.5). The shift-tab is an oddity but I can live with that for now.
This still isn’t working for me. I can’t into a text_area correctly. The cursor disappears. I’m on Java 6 update 7 on Windows XP, running Servoy 3.5.6.
So now I can tab into the text_area, but it selects all my text, then when I try to tab through to the next field, it replaces all my text with the tab character within the text_area.
I can see there may be differing opinions, but my preference would be to have the cursor tab through the fields, not stop on one field and replace all the highlighted text, causing me to lose my data. Maybe Alt-Tab or Ctrl-Tab could be used within a text_area field if you need to insert a tab character.
My users are data-entry centric, so keyboard navigation being predictable and fast is important.
Thanks for addressing these little things. They do make a difference.