[694] in java-interest

home help back first fref pref prev next nref lref last post

How to integrate applets into forms?

daemon@ATHENA.MIT.EDU (Tientien Li)
Thu Jul 13 14:40:05 1995

Date: Thu, 13 Jul 1995 10:06:21 -0700
From: li@deming.Jpl.Nasa.Gov (Tientien Li)
To: java-interest@java.sun.com
Cc: li@deming.Jpl.Nasa.Gov

Hi again,

Has anyone integrated applets into forms?  I understand one has to use
Jonathan's or Arthur's embeded applet package to boundle components
together. However, is there a standard way to boundle componets/apples 
with other HTML objects, e.g., forms? 

Right now I'm using a rather crude approach to tie applets into forms.
I first boudle app tags with forms in HTML docs and then use app parameters 
to pass relative position (i.e, the Child #) and type info of form 
elements that the applet will be communicated with. In the applet, it 
will get these info at the init time and located the form elements and 
cast them appropriately according to their type info. 

This approah is not very clean, but it works, at least paratially. I can
get applets to talk to form elements, but I can't get form elements to
talk back. This is because there are no way for me to plug my own callback 
methods into form elements. So, now I can pass dynamic info generated from 
the applet to form elements and display them, but I can't pass changes 
made from from elements back to the applet unless it's polled periodically 
by the applet.

Can any one suggest a good triggle to use for passing data change info
from form elements back to the applet without using polling?

In general, I feel there should be a more general inter-applet communication 
mechanism that allows applets to:

   - find one other using some form of "name" or "address"
   - get event notice from other applets... or
   - attach/chain own callback methods to other applets' events

For example, if I can attach or chain callback methods from an applet to
the "selected" method of a form element, then I can catch events associated
with the form elements.

--
Tientien Li
li@deming.jpl.nasa.gov
-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com

home help back first fref pref prev next nref lref last post