Hello Wicket users!
I am trying to make a CryptoMapper working for a mounted page, in a way,
that the URL in browser would be unencrypted, but all the other stuff like
ListenerInterface links urls will be encrypted.
I am using a wicket 1.5.10, but I tried to reproduce it on a quickstart
project
Hi Martin,
thanks for suggestion, but it appears to me, that the problem actually is
that the CryptoMapper is not set as root if you call any of mountPage(..),
after setting CryptoMapper as root mapper. I suppose your suggestion would
work if MountedMappers will be added in a SystemMapper
Hi Dmitry!
Thank you for your suggestion, but I can't see how bundled
BookmarkableCryptoMapper could help in my case. In my quickstart on 6.10.0
CryptoMapper is never given a word, so it will never join the mapper chain,
during mapHandler(..) in case of bookmarkable page, disregarding its
Hi Wicket users,
I am trying to check size of a single file in a multi file upload POST
request. It seems there is a parameter for this in FileUploadBase class
called fileSizeMax which is used for checking length of an input stream
for a file during parsing request and writing files to disk temp.
I am trying to check size of each of uploaded files, when there is more than
one file in one POST request.
While there may be other way to do so, it looks like fileSizeMax in
FileUploadBase, does just the right thing, aborting processing multipart
POST by throwing FileUploadException which
Martin, thank you for your responses, but I don't think you understand what I
am asking about.
My question was purely about Wicket API, not about how containers
implementing receiving request stream. I am not trying to stop container
processing input stream. I want to tell user in an ajax
Martin, sorry, but maxSize is not the maxFileSize (which I am asking
for). See javadoc comments in FileUploadBase:
*maxSize:*/The maximum size permitted for the complete request, as opposed
to {@link #fileSizeMax}./
*fileSizeMax:*/The maximum size permitted for a single uploaded file, as
opposed
First approach will be configurable per form, while second only per
/MultipartServletWebRequestImpl/. For setting fileSizeMax by second approach
you will have also to override
/org.apache.wicket.protocol.http.servlet.ServletWebRequest#newMultipartWebRequest(...)/.
On the other hand, second
I'll try to checkout sources and create a ticket with a patch included.
Regards, Roman.
Martin Grigorov-4 wrote
I was suggesting to do both of them.
Please file a ticket in JIRA and I'll implement it. Or attach a patch/send
a pull request if you have the time :-)
Thanks!
--
View this