Hi!
If someone is looking for a quick way to handle multipart posts using
pageparameters, the following is sufficient:
...
public PostOrGetPage(PageParameters pageParameters) {
if (pageParameters.size() <= 0) {
final WebRequest multipartWebRequest =
((WebRequest)getRequest()).newMultipartWebRequest(getApplication().getApplicationSettings().getDefaultMaximumUploadSize());
getRequestCycle().setRequest(multipartWebRequest);
pageParameters = new
PageParameters(multipartWebRequest.getParameterMap());
}
... operate on pageParameters normally
}
It seems to have been a somewhat hot topic once:
*
http://www.nabble.com/Retrieving-Post-Parameters-with-PageParameters-tf4697756.html#a13428705
* http://www.mail-archive.com/[email protected]/msg12583.html
**
Martin
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]