• 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: [NOT SOLVED] Re: Are Applets still valid solutions ...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [NOT SOLVED] Re: Are Applets still valid solutions ...


  • Subject: Re: [NOT SOLVED] Re: Are Applets still valid solutions ...
  • From: Erwin <email@hidden>
  • Date: Tue, 11 Jan 2005 11:01:47 +0100

Actually it doesn't run well.... : I don't know where to place the .jar and .class files neither how to define the bindings...

I need to get an HTML output like :

<APPLET archive=ptviewr.jar code=ptviewer.class width=320 height=200>
<PARAM name=file value=".... a dynamic file path"
</APPLET>

this WOApplet is defined in a ResultPage (resulting from a long request image conversion)
I defined the .wod like that

PtviewerAppplet: WOApplet {
code = "ptviewer.class";
file = convertedFilePath;
height = 200;
width = 300;
archiveNames = ptviewer.jar;
}

When I run the app, I got an error (I believe when loading the WOApplet component...)

[2005-01-11 10:53:12 CET] <WorkerThread8> <com.webobjects.appserver._private.WOComponentRequestHandler>: Exception occurred while handling request:
com.webobjects.foundation.NSKeyValueCoding$UnknownKeyException: [<ResultPage name: ResultPage subcomponents: null > valueForKey()]: lookup of unknown key: 'ptviewer'.
This WOComponent does not have an instance variable of the name ptviewer or _ptviewer, nor a method of the name ptviewer, _ptviewer, getPtviewer, or _getPtviewer
[2005-01-11 10:53:12 CET] <WorkerThread8> com.webobjects.foundation.NSKeyValueCoding$UnknownKeyException: [<ResultPage name: ResultPage subcomponents: null > valueForKey()]: lookup of unknown key: 'ptviewer'.
This WOComponent does not have an instance variable of the name ptviewer or _ptviewer, nor a method of the name ptviewer, _ptviewer, getPtviewer, or _getPtviewer
at com.webobjects.appserver.WOComponent.handleQueryWithUnboundKey(WOComponent.java:1566)
at com.webobjects.foundation.NSKeyValueCoding$Utility.handleQueryWithUnboundKey(NSKeyValueCoding.java:544)




Le Jan 11, 2005, à 9:58 AM, Erwin a écrit :

Thanks Colin, the basic usage seems pretty simple... I strated from WOApplet definition....

As a 'perfectionist' i like to understand the big picture, so I am also searching example about using the association class to transfer parameters...
that's why I ended lost into so many information searching Google... including things about WebStart (? from Sun) or EOApplet...

Erwin


Le Jan 10, 2005, à 4:41 PM, Colin Clark a écrit :

Hi Erwin,

I have seen a WOApplet component in the WO Doc , but no example on how to use it..
why.... is it so simple ? or it's never used ?
what's the difference with EOApplet ? (also available in the API )

WOApplet looks pretty simple to me. It's summarized in the WebObjects Dynamic Element reference documentation. Just bind up the parameters you need for your applet--for example, height, width, class name, jar file--and you're done.

If you want to do more complicated things such as messaging between the applet and your WO app, obviously there will be more involved. But it sounds like you just want to embed a simple Java applet in your application. You'd do this using the WOApplet dynamic element or the static HTML tags just like you would for any other site, WebOjects or not.

I check this list archive... nothing about it recently (5.2 /5.3) many information on NeXT/WO
is it deprecated ?

No, it's not deprecated and is still in WebObjects 5.2.3, the latest version.

Colin

---
Colin Clark
Dynamic Web and Database Development Lead,
Resource Centre for Academic Technology,
University of Toronto



 _______________________________________________
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

  • Follow-Ups:
    • Re: [NOT SOLVED] Re: Are Applets still valid solutions ...
      • From: Christian Brunschen <email@hidden>
References: 
 >Re: Are Applets still valid solutions ... (From: Colin Clark <email@hidden>)
 >[SOLVED] Re: Are Applets still valid solutions ... (From: Erwin <email@hidden>)

  • Prev by Date: [SOLVED] Re: Are Applets still valid solutions ...
  • Next by Date: Re: [NOT SOLVED] Re: Are Applets still valid solutions ...
  • Previous by thread: [SOLVED] Re: Are Applets still valid solutions ...
  • Next by thread: Re: [NOT SOLVED] Re: Are Applets still valid solutions ...
  • Index(es):
    • Date
    • Thread