W3C home > Mailing lists > Public > www-jigsaw@w3.org > January to February 1997

Re: Resource attributes in constructor

From: Dave Makower <davemak@pencom.com>
Date: Thu, 23 Jan 1997 16:34:23 -0500
Message-Id: <l03010d0aaf0d8909e87d@[192.168.112.81]>
To: Jigsaw Mailing List <www-jigsaw@www10.w3.org>
The class is instantiated by Jigsaw in a generic way, with
Class.newInstance().  This calls the default constructor for your class.
After the default constructor exits, Jigsaw calls your class'
initialize(Object[] values) method.  If you want something to be done as
soon as possible after the attributes are set, then you can put it in the
initialize(Object[] values) method, after calling super.initialize(values).

If I've made any errors here, I'm sure others will correct them, but I
believe this is the way it works.

>Hi,
>
>Hope this is an easy one for somebody out there.
>
>I can't seem to access my resources attributes in the constructor for
>the class.  When I do a getValue, nothing is returned?  I'm not getting
>an IllegalAttributeException or anything, just no value.  When the same
>call is placed in the get() method, the proper value is returned.
>
>Any ideas on what I'm missing?
>
>TIA
>--
>Scott Jewell
>jewellsc@pop.mts.kpnw.org
>
>The opinions and actions mentioned are my own and no one else.



+---------------------+-------------------------+---------------------+
|    Dave Makower     |    davemak@pencom.com   |   WWW Specialist    |
+---------------------+-------------------------+---------------------+
|     Co-author of "Java Programming Basics" (Henry Holt/MIS:Press)   |
|                 http://www.pencom.com/javabasics/                   |
+----------------------------------+----------------------------------+
|   Pencom Web Works               |   (212) 513-7777   voice         |
|   Pencom Systems Inc.            |   (212) 513-1975   fax           |
|   40 Fulton St.                  |                                  |
|   New York, NY  10038            |   http://www.pencom.com/         |
+----------------------------------+----------------------------------+
Received on Thursday, 23 January 1997 16:33:55 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 9 April 2012 12:13:25 GMT