• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Focus Problem

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I have a focus problem..

I have some tabs and when I click on submit from nth tab,a validation will be thrown [as per reqt because of required field missing] and the tab which has missing details would be shown...

the scenario where problem occurs is like this ...

when I click on submit exception is thrown for first time and moved to corresponding tab..If I come back to previous tab from where I submitted all fields are accesible...If I submit again without giving mandatory data the exception is thrown again...as said previous If I go back to the same tab from where i submitted, the field[x] in which I entered some data previously gets disabled with cursor in it.
If I select some other field [field y in this tab] I could still do it but with a cursor in it[field y] as well..i.e two cursors in same tab.....

This is a peculiar focus problem...it happens only after second time the exception is thrown...and happens with all text field ..

I tried to gain focus with focus releated methods....grabfocus() ..Requestfocus()...but no response...

Pl provide your valuable suggestions to solve this issue...
 
reply
    Bookmark Topic Watch Topic
  • New Topic