Re: Design Question

Joshua Marker <[email protected]>
Newsgroups gmane.comp.web.webobjects.devel
Message-ID <[email protected]>
On 21 Jul  2006, at 7:12, Michael Deninger wrote:

> Thanks everyone for the input. The problem was necessarily
> complicated by the fact the I did not create nor can I change the DB
> being used (hence the extra effort needed)
>
> The winning solution is one that I  but SHOULD have figured out
> myself (I was on the right track). I have loaded the static data from
> disk into Application. Where I fell on my face is in accessing
> Application from an EOGenericRecord. While it does not have an
> inherited application() method (which I was trying to use) I can use:
>
> On Jul 21, 2006, at 2:01 AM, Paul Lynch wrote:
>
> > Application application = (Application)Application.application();
>
> from anywhere. This is exactly what I was missing as I was trying...
>
> Application application = (Application)application(); // doesn't work
> in EOGenericRecords while it does work in WOComponents

	But then you have to import appserver.* into your EOs, and break the  
model-display paradigm and introduce new dependencies. Why do you  
need to access the application from the data? Why not have the  
application take actions or make decisions based on the data?


>
> <Homer Simpson>DOH!</Homer Simpson>
>
> Regards,
>
> Mike
>
> _______________________________________________
> WebObjects-dev mailing list
> [email protected]
> http://www.omnigroup.com/mailman/listinfo/webobjects-dev
>

_______________________________________________
WebObjects-dev mailing list
[email protected]
http://www.omnigroup.com/mailman/listinfo/webobjects-dev
PGP.sig (application/pgp-signature, 514 B) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.