Re: simple java question with WOComponent sub-classes
Re: simple java question with WOComponent sub-classes
- Subject: Re: simple java question with WOComponent sub-classes
- From: Miguel Arroz <email@hidden>
- Date: Thu, 6 Jul 2006 21:05:30 +0100
Hi!
That's the problem with the lack of multiple inheritance on Java.
Try to google for Java Multiple Inheritance so that you may find
patterns and solutions for this problem.
One obvious way is to include all the functionality on an external
class, and access it from both your WOComponent subclasses... but, of
course, it sucks.
Yours
Miguel Arroz
On 2006/07/06, at 19:18, Baiss Eric Magnusson wrote:
I have a class
public class SecureComponent extends WOComponent {
I have
public class ReviewTrans extends SecureComponent {
I want it to be
public class ReviewTrans extends SecureComponent {
where <SecureComponent> is a sub-class of WOLongResponsePage, not
WOComponent, but only for this one class.
NOTE: WOLongResponsePage is a sub-class of WOComponent.
All I can see to do is duplicate the code in SecureComponent and
create another class <SecureComponentLong>.
----
Baiss Eric Magnusson
<http://www.Track-Your-Finances.com>
<http://www.CascadeWebDesign.com>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40guiamac.com
This email sent to email@hidden
"I felt like putting a bullet between
the eyes of every Panda that wouldn't
scr*w to save its species." -- Fight Club
Miguel Arroz
http://www.ipragma.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden