You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Martin Grigorov (Resolved) (JIRA)" <ji...@apache.org> on 2012/02/06 08:29:59 UTC
[jira] [Resolved] (WICKET-4375) Reading body of the request in
AbstractDefaultAjaxBehavior
[ https://issues.apache.org/jira/browse/WICKET-4375?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Martin Grigorov resolved WICKET-4375.
-------------------------------------
Resolution: Not A Problem
Wicket reads the servlet input stream for you. Now you can use Request#getRequestParameters() to read both GET and POST parameters, or #getQueryParameters() to read just GET/query string parameters, or #getPostParameters() to read all POST (coming from the servlet input stream).
Since the input stream is already read it is empty when you try to read it again.
All these methods return an object from which you can read name/value pairs.
> Reading body of the request in AbstractDefaultAjaxBehavior
> ----------------------------------------------------------
>
> Key: WICKET-4375
> URL: https://issues.apache.org/jira/browse/WICKET-4375
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 1.5.4
> Reporter: Bálint Kriván
> Labels: ajax, request
> Attachments: myproject.zip
>
>
> If you want to read the body of the request you will get null from 1.5.4 (I've tried 1.5.4 and 1.5-SNAPSHOT). In 1.5.3 it works as expected. I'll upload a quickstart.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira