Article View: borland.public.jbuilder.java.swing
Article #11548Re: jdbTextArea data does not post properly
From: Sjaak Wolfert
Date: Fri, 21 May 1999 00:00
Date: Fri, 21 May 1999 00:00
43 lines
1827 bytes
1827 bytes
Patrick,
I encountered the same problem and didn't find out how to solve it properly
but I have a workaround as shown on the focus lost event below.
I would really appreciate it when somebody gave me the real solution or
perhaps it is a real JDK bug and needs to be fixed.
Sjaak Wolfert
void jdbTxtAreaComments_focusLost(FocusEvent e)
{
try
{
jdbTxtAreaComments.postRow(new DataChangeEvent(e.getSource(),6));
}
catch (Exception exc)
{
exc.printStackTrace();
}
try
{
if(!jdbTxtAreaComments.getDataSet().isOpen())
jdbTxtAreaComments.getDataSet().open();
jdbTxtAreaComments.getDataSet().saveChanges();
}
catch (DataSetException dse)
{
dse.printStackTrace();
}
}
patrick rears wrote in message <37432C48.C345342E@netera.com>...
>I am using the component jdbTextArea. It is connected to a
>querydataset. The querydataset has rowid disabled for metaDataUpdate.
>When I make a change in this field and post the data, my changes
>disappear. If I go into the jdbTextArea a second time (without
>refreshing) and make a change again... and post... the change stays.
>What is causing this and how can I resolve it. It is very annoying for
>my client and tough for me to debug.
>
>Thanks in advance...
>Patrick R
>
Technical Details
Message-ID:
<7i3891$ind6@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<37432C48.C345342E@netera.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,aebcb0dcb72d406c X-Google-Attributes: gid111d45,public From: "Sjaak Wolfert" <sjaak.wolfert@users.info.wau.nl> Subject: Re: jdbTextArea data does not post properly Date: 1999/05/21 Message-ID: <7i3891$ind6@forums.borland.com> X-Deja-AN: 480459601 References: <37432C48.C345342E@netera.com> Organization: Another Netscape Collabra Server User X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3155.0 Newsgroups: borland.public.jbuilder.java.swing