almende / eve-java

Java implementation of Eve, a multipurpose, web based agent platform

Home Page:http://eve.almende.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Agent form fields with pre-filled examples cannot be send as null

Jordi-m opened this issue · comments

commented

I'm trying to use the agent webforms to send null values to the agent. With regular fields (string/int/etc) this works fine by just keeping that field empty (empty string). If the expected input type is a java object, the agent form fields are pre-fileld with an example structure. The purpose seems to be usefull.

However, I cannot really remove the default value for those java object examples. I can empty the form field and submit the form, but the java object example string is placed back into the form an submitted with the request. The results in not receiving the expected null value in the agent form.

Steps to reproduce in screenshots:

I added the first couple of field manually (by default they are empty):

2015-11-12 12_52_27-standby-dev_incident

... removed the default values for the java objects:

2015-11-12 12_52_44-standby-dev_incident

... submitted the form

2015-11-12 12_52_57-standby-dev_incident

... default value showing up again in the form and in the JSON-RPC request
2015-11-12 12_53_19-standby-dev_incident

Fixed in Master.