variable return-classes
variable return-classes
- Subject: variable return-classes
- From: jacques couzteau <email@hidden>
- Date: Fri, 5 Sep 2003 19:21:24 +0200
hello,
I've a a simple qustion which is probably very fundamental for
programming with java in general.
I made a component which is for editing data of an object from my
database (a row) called EditStory. This editing component is can be
called from 2 (may be later more) different other components. For
instance I have a list view where many rows are shown (Blog) and
detailview where only on row is shown at a time (FullStory). Both of
these can call the edit page 'EditStory'.
After making the changes in the EditView (and saving them), i want to
return to the calling component.
My first approach was to pass the name of the calling class as string
to EditStory. But then i have to do quite inflexible handling of the
arguments of the calling classes.
So my 2nd idea was to that the calling component passes itself as an
argument to the EditStory-component. Now I don't know if that is
possible and how it can be accomplished, since i'm new to java.
Alternatively i was considering to create a new component initialise
that and then pass the clone as argument (the calling clones itself
before going to edit and passes this to Edit).
inside the FullStory-Object:
FullStory objectToReturnToFromEdit = new FullStory();
But i get the compiletime error message: cannot resolve symbol:
construtor Fullstory(ec);
I don't know which way is best (easiest, cleanest and sevest)
can someone explain?
greetz couzteau
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.