🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #17533

Reading an Object array from a property editor.

#17533
From: Dillan Fernando
Date: Wed, 28 Oct 1998 00:00
24 lines
1139 bytes
Hi!

I�m writing a bean which has a property that excepts an object array. I have
written a custom property editor which gets the user�s input and fires the
following code

MyBean1.setMyProperty(new Object[] {new MyObject1(.. some parameters..), new
MyObject2(�someParameters..),�..});

Now the problem is when  I want to read the data I have written. What I have
done was the following in my custom property editor;

Object objArr[] = (Object[])editor.getValue();

The objArr[] has the correct no of elements. But all the elements are null.
Ie. (ObjArr[0] == null ) -> true

What am I doing wrong

Kind Regards

Dillan Fernando
Senior Analyst
Palmware (Pvt) Ltd.
Technical Details
Message-ID: <717gfk$enj2@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: f74b3,6b5082e93475d013,start
X-Google-Attributes: gidf74b3,public
From: "Dillan Fernando" <dillan@geocities.com>
Subject: Reading an Object array from a property editor.
Date: 1998/10/28
Message-ID: <717gfk$enj2@forums.borland.com>
X-Deja-AN: 405971801
Organization: Palmware
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4
Newsgroups: borland.public.jbuilder.java.language