Description
The Form component will add all its action event link parameters as hidden inputs, but link parameter's value is encoded and hidden input field value is not, because of that parameter's value will be encoded on arrival.
simple request:
//add parameter to the link
link.addParameter ("abc", URLDecoder.encode(abcValue, "UTF-8"))
on event:
request.getParameter("abc") is equals to abcValue
form request:
// add parameter to the form action link using the LinkCreationHub
link.addParameter ("abc", URLDecoder.encode(value, "UTF-8"))
on event:
request.getParameter("abc") is not equals to abcValue, parameter's value is encoded
It could be fixed by decoding parameter's value at line:
writer.element("input", "type", "hidden", "name", parameterName, "value", value);