Mailingliste - Einträge 2006

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [qftestJUI] JTextField not reading value ??

  • Subject: Re: [qftestJUI] JTextField not reading value ??
  • From: Gregor Schmid <Gregor.Schmid@?.de>
  • Date: 18 May 2006 12:57:38 +0200

Hi everyone,

the problem Ronnie had is not uncommon, so I'll summarize:

In some cases applications use KeyListeners on TextFields to determine
whether there was any input and possibly validate that input.

qftestJUI's "Text input" node has two modes of operation: A shortcut
method, where it simply inserts the text into a text-field and the
slower but safer one where each character is replayed as a single

The attribute "Replay single events" of the "Text input" node
determines which method is used. In Ronnie's case, he needed to
activate that attribute to make sure the KeyListeners receive the
expected events.

The global option 'Record->Events to pack->Always set "Replay single
events" attribute of recorded "Text input" nodes' determines the way
that "Text input" nodes are recorded. If some text-fields of your
application require single event replay because the shortcut doesn't
work properly, activate that option.

Best regards,

"Michaelis, Mark" <mark.michaelis@?.com> writes:

> Hello Ronnie,
> as I don't have any problem filling JTextFields it might be interesting to
> know if there is something special about your application. How do you check
> if the field is empty? And is there anything special with the JTextField
> (some type-ahead feature implemented or such)?
> Regards,
>   Mark
> > -----Original Message-----
> > From: qftestjui-list-bounces@?.de 
> > [mailto:qftestjui-list-bounces@?.de] On Behalf Of RHo@?.com
> > Sent: Wednesday, May 17, 2006 5:04 PM
> > To: Gregor Schmid
> > Cc: qftestJUI-list@?.de
> > Subject: [qftestJUI] JTextField not reading value ??
> > 
> > 
> > Hi all, 
> > 
> > For some reason, a JTextField of a form is not reading the 
> > value. I created a script to put "100" onto a JTextField 
> > object, but when I try to submit the form, my application 
> > throws me an error to indicate that I left the field empty. 
> > If I type it in manually, then it goes through. Why? Thanks. 
> > 
> > Ronnie

Gregor Schmid                                Gregor.Schmid@?.de
Quality First Software GmbH           
Tulpenstr. 41                                Tel: +49 8171 919870
DE-82538 Geretsried                          Fax: +49 8171 919876