Hi!

>I get the usual get() -3 error and 'val' is not shown. If I remove the
>second setVal() method it works again.
>Why that? Is there any workaround?

Jess uses introspection in order to find out about your Bean's properties.
It expects you have used the following pattern for property getters and
setters:

     public <PropertyType> get<PropertyName>();
     public void set<PropertyName>(<PropertyType> value);

For a property 'foo'

     public String getFoo();
     public void setFoo(String value);

would be correct. On the other hand, adding

     public void setFoo(int value);

leads to the "error" you noted. Except from renaming your extra methods I
don't know of any workaround that would not involve modifying Jess. The
modification would probably be to explicitly allow patterns like the
following:

     public <PrimaryPropertyType> get<PropertyName>();
     public void set<PropertyName>(<PrimaryPropertyType> value);
     public void set<PropertyName>(<SecondaryPropertyType> value);     //
map to primary type

Greetings, Thomas


+-------------------------------------------------------------+
| This message may contain confidential and/or privileged     |
| information.  If you are not the addressee or authorized to |
| receive this for the addressee, you must not use, copy,     |
| disclose or take any action based on this message or any    |
| information herein.  If you have received this message in   |
| error, please advise the sender immediately by reply e-mail |
| and delete this message.  Thank you for your cooperation.   |
+-------------------------------------------------------------+


---------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the
list (use your own address!) List problems? Notify [EMAIL PROTECTED]
---------------------------------------------------------------------

Reply via email to