Hi Arjohn,

Thanks for the report. I've just added a unit test to verify this (see
attached), but it works fine, at least in SVN trunk (2.1). 

Maybe it's an issue in 2.0. Could you confirm on your side?

Best regards,
Jerome
--
http://www.restlet.org
http://twitter.com/#!/jlouvel


-----Message d'origine-----
De : Arjohn Kampman [mailto:[email protected]] 
Envoyé : lundi 3 octobre 2011 14:32
À : [email protected]
Objet : result value for Form.getFirstValue()

Hi all,

I ran into an issue with Form.getFirstValue(String). This method not only
returns <null> when the form doesn't contain the parameter, but also when
there is a parameter with an empty string. The empty string is a valid input
value in our application, but I can't distinguish between a missing
parameter and an empty one using this method. IMHO, this method should
return the empty string value in the latter case.
What do you think?

Regards,
Arjohn Kampman

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=28494
28

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2849921

Attachment: FormTestCase.java
Description: Binary data

Reply via email to