on 8/10/2000 12:39 PM, "Diethelm Guallar, Gonzalo"
<[EMAIL PROTECTED]> wrote:

> Hello,
> 
> Say I have a Basic.wm screen and its corresponding
> Basic.java class; the Java class implements a useful
> method (say, filtering national characters). How
> do I invoke that method from Basic.wm? Until now,
> I have seen that you can interact from WM to Java
> in one of the following ways:
> 
> * through variables set on the context
> * through the $data variable
> 
> Any other ways?
> 
> Sorry if this is obvious,

No, it is a good question...

The only way to invoke a method from within a .wm file would be to pass a
reference to that object in the Context. Now, I don't think that is a very
good design to do that in your example. Instead, you should define a util
method that has that object in it and pass that into the context where you
need it.

-jon



------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to