• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: using Application.java
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: using Application.java


  • Subject: Re: using Application.java
  • From: Raphael <email@hidden>
  • Date: Thu, 19 May 2005 12:37:49 +0200

Nice! it work´s!

Thank you!!
Raphael

Am 19.05.2005 um 10:54 schrieb <email@hidden> <email@hidden>:

public class Application
    extends WOApplication
{

    public MyClass myInstance()
    {
        return _myInstance;
    }
}

public class MyComponent
    extends WOComponent
{
    Application application = (Application) application();
    MyClass instance = application.myInstance();
    Object result = instance.function();
}

-----Original Message-----
From: webobjects-dev-bounces+pierre.bernard=email@hidden
[mailto:webobjects-dev-bounces +pierre.bernard=email@hidden]On
Behalf Of John Q.
Sent: Thursday, May 19, 2005 10:44 AM
To: email@hidden
Subject: Re: using Application.java



Sorry, I have miss the main point from my problem. my problem is to access the written class. I create a normal instance like MyClass myClass = new MyClass(); and then how can I access the class? I have try application ().myClass.funktion(); but wo can not find myClass!!

Thanks
Raphael

Am 19.05.2005 um 10:32 schrieb John Q.:


Hi,
I would like to create a instance of a own class in the
Application.java wich i would like to access from
the WOComponents.
Is their a how to in the net ? or has someone a answer?

Thanks
Raphael



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
@bcl.lu


This email sent to email@hidden




********************************************************************** This email and any files transmitted with it are intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the sender of this message. (email@hidden) This email message has been checked for the presence of computer viruses; however this protection does not ensure this message is virus free. Banque centrale du Luxembourg; Tel ++352-4774-1; http://www.bcl.lu **********************************************************************



_______________________________________________ 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
References: 
 >RE: using Application.java (From: <email@hidden>)

  • Prev by Date: RE: using Application.java
  • Next by Date: Re: "bit" as External Data Type in EO modeling SQL Server
  • Previous by thread: RE: using Application.java
  • Next by thread: File Management Program
  • Index(es):
    • Date
    • Thread