Can't get my bean to run

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Can't get my bean to run

Terry Fuller
Hello all,

I'm just getting my feet wet with Netrexx (and Java for that matter).

I've built a Java bean which works as expected, and I'm trying to port it to NetRexx.  The execution environment (a java server page) complains that it cant find the get accessor method.

The Netrexx source is:

    package taftest
class JellyBean
 
     properties private
     color=String "Red"

    method JellyBean()

    method getColor
    return color

    method setColor(newColor=String)
    color = newColor


The generated Java is:

private java.lang.String color="Red";

public JellyBean(){super();return;}

public netrexx.lang.Rexx getColor(){
return netrexx.lang.Rexx.toRexx(color);}

public void setColor(java.lang.String newColor){
color=newColor;return;}}

I suspect that the reason is type / cast of the getColor method to netrexx.lang.Rexx, and the same for the return value.

Can anyone tell me what I'm doing wrong?  RTM is fine, with pointer to the M,

Thanks in advance

Regards,
Terry Fuller
[hidden email]
-------------------------------------------------------




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe from this mailing list ( ibm-netrexx ), please send a note to
[hidden email]
with the following message in the body of the note
unsubscribe ibm-netrexx <e-mail address>