Hi,
The sad answer is that you can not prevent the actual data transfer between
the browser and the server. The core problem is that all browsers of today
will only read the response after the request has been fully written out.
This means that even if you know the size from the content-length
The maxPostSize setting in tomcat is not playing any role in file uploads
(multipart requests) because these requests are processed by the web
application directly. So this should be configured with wicket settings like
IApplicationSettings. setDefaultMaximumUploadSize() and Form.setMaxSize().
But
Thanks, exactly on the spot, as always :)
2011/3/17 Igor Vaynberg igor.vaynb...@gmail.com
filter your models to preserve their respective parts, for example
below is a model you would assign to the textfield that edits the date
part. you would need to build the opposite for your textfield
Yes it is, e.g. have a look at
https://cwiki.apache.org/WICKET/wicket-and-localized-urls.html
In your case, you would need to strip the first path parameter from the
url and store it in the request for later retrieval.
Bas
Op 17-3-2011 23:58, Steve Mactaggart schreef:
I guess I'll have a
I would appreciate some advice on best practice for favicons in Wicket
I subclass most of my web pages from a subclass of WebPage. I implement my
favicon in the way set out at the foot of this posting. I have two types of
problem.
1. When testing the URL http://localhost:8080/favicon.ico;
I would appreciate some advice on best practice for favicons in Wicket
I subclass most of my web pages from a subclass of WebPage. I implement my
favicon in the way set out at the foot of this posting. I have two types of
problem.
1. When testing the URL http://localhost:8080/favicon.ico;
I would appreciate some advice on best practice for favicons in Wicket
I subclass most of my web pages from a subclass of WebPage. I implement my
favicon in the way set out at the foot of this posting. I have two types of
problem.
1. When testing the URL http://localhost:8080/favicon.ico;
Thanks Michael for the hint.
I already adapt that example and this is working - at least in parts.
Those are my two pain points at the moment:
1.) share one session
2.) seperate Login page
Regarding 1.):
I've implemented two Links. Both do need a authentication so both
xxxApplication.java
Hi
does ComponentInitializationListener now have access to the markup as the
component.onInitialize()
Thanks
Joe
Why not just put it next to WEB-INF/ ?
Or if you need to manipulate it with Wicket (e.g. generate it on the fly)
then use a Wicket Resource which is mounted at /favicon.ico.
On Fri, Mar 18, 2011 at 11:20 AM, Ian Marshall ianmarshall...@gmail.comwrote:
I would appreciate some advice on best
Hi All,
I'm trying to display a label with the absolute URL for a bookmarkable page
on the page itself. I am doing this so that users can readily identify what
URL to email or IM to friends.
Unfortunately, I'm having some trouble with this.
I have tried:
Does anyone know how to solve this problem?
Or is it a bug in wicket?
Note: I use wicket 1.4.14
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Set-FormComponent-Type-and-EmailValidator-tp3356588p3387040.html
Sent from the Users forum mailing list archive at
RequestCycle.get().getUrlRenderer().renderFullUrl(requestCycle.urlFor(MyBookmarkablePage.class,
null))
On Fri, Mar 18, 2011 at 1:14 PM, nimmy nim_sa...@hotmail.com wrote:
Hi All,
I'm trying to display a label with the absolute URL for a bookmarkable page
on the page itself. I am doing this
Hi Martin,
The requestCycle.urlFor(...) was still returning a '.' in the URL as I
described in my first post.
The requestCycle.mapUrlFor(...) method did the trick.
Thank you for your help.
Cheers,
Nim
--
View this message in context:
hi
I was refactoring some code (to go from DropDownChoice to
AutoCompleteEdit) when I stumbled upon there's no interface just about
how to render some given class instances.
Well, it's for sure no big deal, but I was wondering if, for
unification purpose, a IRenderer interface wouldn't make
There are some javascript-based solutions that can check the file info (size,
extensions, etc.) before transmitting the file(s). The downside is that they
don't work in IE (up to IE 8).
The example I found most useful is here: http://valums.com/ajax-upload/
Regards
-Original Message-
I'm trying to get a Wicket app working in GAE. I had the basics working. I've
read
and followed:
http://www.danwalmsley.com/2009/04/08/apache-wicket-on-google-app-engine-for-java/
so I have enabled sessions, turned off resource polling and overridden
newSessionStore()
to return a new
That will be the HTML5 FileReader Api. Too bad it is not supported in IE9
and Opera. But it would awesome to see wicket support for that because it
would give a better user experience in Chrome and FF.
Attila
2011/3/18 John Owen jo...@globalscape.com
There are some javascript-based solutions
I might have answered my question. I did some refactoring and took out some
code from my
base page class that was calling getApplication(). I didn't need it anyway, and
now I am
not seeing the serialization exception that references my application class. It
is not clear
to me how this caused
Hi,
I have a strange issue with wicket regarding redirection.
In Application class I setup all pages with HybridUrlCodingStrategy
(mount(new HybridUrlCodingStrategy(/assets, AssetSearchPage.class)));
Everything works fine on my server, but on client server there is a problem
because,
its called right after component.oninitialize() so it has access to
the same things.
-igor
On Fri, Mar 18, 2011 at 3:47 AM, Joe Fawzy joewic...@gmail.com wrote:
Hi
does ComponentInitializationListener now have access to the markup as the
component.onInitialize()
Thanks
Joe
make sure your authenticate message calls session.dirty() or
session.bind() so that the session itself is persisted.
-igor
On Fri, Mar 18, 2011 at 8:27 AM, Chris Merrill ch...@webperformance.com wrote:
I might have answered my question. I did some refactoring and took out some
code from my
MOUNTING
In my WebApplication-descended class I tried
protected void init()
{
super.init();
...
// New code
ResourceReference rrefFavicon = new ResourceReference(
ResourcesLocator.class, favicon.ico);
mountSharedResource([path],
mountSharedResource() will make it reachable at
/resources/org.apache.wicket.Application/favicon.ico
In Wicket 1.5 you can use mountResource(favicon.ico, resourceReference)
and it will do what you need.
You can write your custom IMountableRequestTargetUrlCodingStrategy to do
that in 1.4
On Fri,
On 3/18/2011 11:44 AM, Igor Vaynberg wrote:
make sure your authenticate message calls session.dirty() or
session.bind() so that the session itself is persisted.
Thanks, Igor! That did it. I'm more than a little disappointed I didn't
figure that
out myself :(
I'm a bit surprised I haven't
http://svn.apache.org/viewvc?view=revisionrevision=1082822
http://svn.apache.org/viewvc?view=revisionrevision=1082822freshly fixed
On Fri, Mar 18, 2011 at 5:48 PM, Chris Merrill ch...@webperformance.comwrote:
On 3/18/2011 11:44 AM, Igor Vaynberg wrote:
make sure your authenticate message
yes, a stateful page would automatically call session.dirty() to mark
it for replication. if your pages are stateless you have to do this
bookkeeping on the session yourself.
-igor
On Fri, Mar 18, 2011 at 9:48 AM, Chris Merrill ch...@webperformance.com wrote:
On 3/18/2011 11:44 AM, Igor
because it changes references. So it does need to be repainted. Problem are
with the anticache parameter we are forcing the browser to download the
image again instead of pulling it from browser cache. That makes it
flicker...
2011/3/15 Martin Grigorov mgrigo...@apache.org
Why do you put the
Hi,
I've been looking for a Wicket drop down widget where one can choose an
item from the list by typing more than the first character. For
example, if my list contains the following values:
One
Two
Three
Four
Five
typing T would select Two, but typing Th would select Three. Is
this possible
theres this one (though not dropdown)
http://www.wicket-library.com/wicket-examples/ajax/autocompletehttp://www.wicket-library.com/wicket-examples/ajax/autocomplete;jsessionid=FE414790D6B5E7ACECC809CB9E9C9CEB?0
Or this one if you want a drop down:
http://wicket.visural.net/examples/app/dropdown
Hi!
1. Invisible mode is always possible.
2. Maybe autocompletetextfield will be ok?
3. You can integrate pretty easily a jquery skin.
**
Martin
2011/3/18 Shelli Orton shelli.or...@sjrb.ca:
Hi,
I've been looking for a Wicket drop down widget where one can choose an
item from the list by
Thanks for this one.
This is a great preview oft 1.5, I haven't yet tried.
What about the same issue in 1.4 ?
Thanks again for this one.
-R-
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/1-5-Two-formcomponents-editing-the-same-model-tp3385350p3387832.html
Sent
exactly the same in 1.4
-igor
On Fri, Mar 18, 2011 at 10:12 AM, xFlasH rcoqueugn...@gmail.com wrote:
Thanks for this one.
This is a great preview oft 1.5, I haven't yet tried.
What about the same issue in 1.4 ?
Thanks again for this one.
-R-
--
View this message in context:
Hi,
The wicket.visural.net first example looks like exactly what I need.
Thanks!
Shelli
-Original Message-
From: nino martinez wael [mailto:nino.martinez.w...@gmail.com]
Sent: 18 March 2011 11:05 AM
To: users@wicket.apache.org
Subject: Re: Drop Down Choice
theres this one (though not
https://issues.apache.org/jira/browse/WICKET-1382
Funny, it was you who asked for this feature :-)
On Fri, Mar 18, 2011 at 6:00 PM, nino martinez wael
nino.martinez.w...@gmail.com wrote:
because it changes references. So it does need to be repainted. Problem are
with the anticache parameter
oh the irony!
-igor
On Fri, Mar 18, 2011 at 11:41 AM, Martin Grigorov mgrigo...@apache.org wrote:
https://issues.apache.org/jira/browse/WICKET-1382
Funny, it was you who asked for this feature :-)
On Fri, Mar 18, 2011 at 6:00 PM, nino martinez wael
nino.martinez.w...@gmail.com wrote:
On Fri, Mar 18, 2011 at 3:53 PM, Attila Király kiralyattila...@gmail.comwrote:
That will be the HTML5 FileReader Api. Too bad it is not supported in IE9
and Opera. But it would awesome to see wicket support for that because it
would give a better user experience in Chrome and FF.
Attila, you
You are right, these special cases should not be in wicket core if they can
be implemented separately.
In this case the FileReader API could be used to do client side javascript
based size checking. It is interesting to me so I will probably make a new
class for it in wicketstuff/html5. I think
On Fri, Mar 18, 2011 at 8:39 PM, Jim Pinkham pinkh...@gmail.com wrote:
.. and I also attached a fairly ugly patched version of
RestartResponseAtInterceptPageException
that seem to work for me, but use at your own risk.
Did you see Igor's response ?
Hope this helps,
-- Jim.
On Thu,
Martin,
Thanks, no I hadn't seen that... but now I think this is just because I
over-simplified the quickstart - it still doesn't explain why it was working
properly up thru 1.5-M3 (using examples from wicket-auth-roles to have
login link hander throw this restart exception, so if that's not a
Better check the behavior with the quickstart with Wicket 1.4.16
1.5-M3 may had a bug.
On Fri, Mar 18, 2011 at 8:50 PM, Jim Pinkham pinkh...@gmail.com wrote:
Martin,
Thanks, no I hadn't seen that... but now I think this is just because I
over-simplified the quickstart - it still doesn't
Set Form#setMaxSize and Wicket will use an LimitedInputStream which limits
its data size
On Thu, Mar 17, 2011 at 11:59 PM, Henrique Boregio hbore...@gmail.comwrote:
Hi, how can I restrict the size of a file being uploaded, before it gets
uploaded?
The following code does not work, since
I've also tried setting the form's maxSize like so, but the file still
seems
to get uploaded:
setMaxSize(Bytes.kilobytes(150));
weird, LimitedInputStream should be enough, are u using UploadWebRequest?
Anyone run into this same problem? Thanks.
--
Pedro Henrique Oliveira dos
Hi,
Has anybody used Visural Wicket with Maven? I set up my repositories as
per the information on this page:
http://code.google.com/p/visural-wicket/wiki/MavenSupport
The visural-common pom and jar files downloaded are empty even though
they're not on the server. However, there isn't a
44 matches
Mail list logo