Basic class is SecuredPage.
In subclass HittegodsFinnInnlevSokRes there is getInnlevEDUpdate() method.
This method must be just invoked in HittegodsRegInnlev.
I can do it in static way but because of other things I must use non static method.
Please have a look for below 3 classes.
public class SecuredPage extends WebPage {
public SecuredPage(PageParameters pageParameters) {
super( pageParameters );
//THIS PAGE IS MENU WHICH IS VISIBLE IN ALL SUBCLASSES.
........
}
===========
public class HittegodsFinnInnlevSokRes extends SecuredPage{
public HittegodsFinnInnlevSokRes(PageParameters pageParameters) {
super(pageParameters);
public InnlevertEiendel getInnlevEDUpdate(){
return innlevEDUpdate;
}
..........
}
=========
publicclass HittegodsRegInnlev extends SecuredPage{
public HittegodsRegInnlev(PageParameters pageParameters) {
super(pageParameters);
InnlevertEiendel innlevertEiendelUpdate =
newInnlevertEiendel();
HittegodsFinnInnlevSokRes hittegodsFinnInnlevSokRes =
newHittegodsFinnInnlevSokRes(pageParameters); //THIS IS WRONG. HERE I MUST USE PROPER PROBABLY NON PARAMETER CONSTR.
innlevertEiendelUpdate = hittegodsFinnInnlevSokRes.getInnlevEDUpdate();
.........
}
}
Dnia 26-07-2011 o godz. 15:56 jeffrey napisał(a):
Will this work for you?:package com.mysamples;public class ConstructorStudyParent {String Name;public ConstructorStudyParent(String name) {this.Name = name;}}-------------------------------------------package com.mysamples;public class ConstructorStudyChild extends ConstructorStudyParent {String ChildName;public ConstructorStudyChild() {super("SettingParentConstructor");}}-------------------------------------------------------------
2011/7/26 Rafał Laczek <rafal_lac...@wp.pl>
Â
Hi,
Â
In base class I have constructor with parameters.
In subclass I must have constructor without parameters.
I canâ t add non-parameters constructor in basic class.
How to do it?
Regards,
Rafal
Â
--
You received this message because you are subscribed to the Google
Groups "Java EE (J2EE) Programming with Passion!" group.
To post to this group, send email to
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to
java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en
--
You received this message because you are subscribed to the Google
Groups "Java EE (J2EE) Programming with Passion!" group.
To post to this group, send email to
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to
java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en