Re: FileUpload size limit

2011-03-17 Thread Attila Király
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(). Bu

Re: FileUpload size limit

2011-03-17 Thread Attila Király
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 and

Re: FileUpload size limit

2011-03-17 Thread Bruno Borges
I guess you should consider configuring your container properly: http://stackoverflow.com/questions/2947683/httprequest-maximum-allowable-size-in-tomcat Cheers, Bruno Borges www.brunoborges.com.br +55 21 76

FileUpload size limit

2011-03-17 Thread Henrique Boregio
Hi, how can I restrict the size of a file being uploaded, before it gets uploaded? The following code does not work, since wicket first uploads the file to the server, THEN checks its size (I've tried it uploading a 1Gig file): protected void onSubmit() { final FileUpload uplo

Re: Need a CodingStrategy to parse parameter from prefix

2011-03-17 Thread Steve Mactaggart
I guess I'll have a look at 1.5 then. Is it at all possible with 1.4? On Thu, Mar 17, 2011 at 11:58 PM, Martin Grigorov wrote: > If you can use Wicket 1.5 (RC2) then I suggest you to take a look at > > http://svn.apache.org/viewvc/wicket/trunk/wicket-examples/src/main/java/org/apache/wicket/exam

Re: Handling large files

2011-03-17 Thread Jan Juno
ok, but what if tomcat can't handle it. On 17 March 2011 22:58, Martin Grigorov wrote: > I would recommend you to use ajax or iframe based upload so that you don't > block the user interacting with the rest of the page. > Something like GMail's upload. > Wicket supports this out of the box.

Re: Handling large files

2011-03-17 Thread Martin Grigorov
I would recommend you to use ajax or iframe based upload so that you don't block the user interacting with the rest of the page. Something like GMail's upload. Wicket supports this out of the box. Just use AjaxButton/AjaxSubmitLink to submit the form. HTH On Thu, Mar 17, 2011 at 10:24 PM, Jan Jun

Handling large files

2011-03-17 Thread Jan Juno
Hi How would you handle large files, particularly uploading, I have no Idea what to do if I should use some kind of qeue, cache Can you point me to some books or websites or anything... Thank you very much

Re: [1.5] Two formcomponents editing the same model?

2011-03-17 Thread Igor Vaynberg
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 that edits the time part. -igor /** * Only modifies the date portion of the adapted {@link Date}

Re: [1.5] Two formcomponents editing the same model?

2011-03-17 Thread Jim Pinkham
Hmm... If I were designing a component like this (and for some reason didn't like the ones out there like datepicker that already do this) I'd make a new component that extends panel with 2 separate child controls, each with their own date models. Then use a top level model getter / setter that

[1.5] Two formcomponents editing the same model?

2011-03-17 Thread nino martinez wael
Hi Essentially I've made my own datepicker and timepicker using some jquery components. I am having my two components editing the same model (one edits time and the other date). Both components extending datetextfield Problem are if I change time then month/day are reset. Im thinking that it has

Re: dynamic navigation/side content depending on login status

2011-03-17 Thread hrbaer
Thanks...that was really an easy one :) But while playing around with this topic I do have a few other questions: Within the wicket signin example I have to provide a method called newSession( Request request, Response response ) within my TestApplication.java file. So if I call /test/* and this

Re: dynamic navigation/side content depending on login status

2011-03-17 Thread Michael O'Cleirigh
Hi, Look at the wicket-examples source code for:org.apache.wicket.examples.authentication.MyAuthenticatedWebSession This uses 'wicket-auth-roles' artifact and will give you the login detection and role information for the current user once you application is setup in the same way. Then on

Re: Wicket in Action: problem with redirection

2011-03-17 Thread Jim Pinkham
OK, I just attached a quickstart (my first) - hope it helps with resolution (soon). On Wed, Mar 16, 2011 at 5:03 PM, Martin Grigorov wrote: > Thanks Jim, > > But without a quickstart it is hard to debug it. > There is a ticket which sounds to be related to what you described: > https://issues.apa

Re: dynamic navigation/side content depending on login status

2011-03-17 Thread Martin Grigorov
link.setVisible(mySession.isSignedIn()); On Thu, Mar 17, 2011 at 3:56 PM, hrbaer wrote: > Meanwhile I already implemented the part if there is a visible link to a > page > that requires authentication the user get's redirected to the login page. > > But how can I make links invisible if a user i

Re: dynamic navigation/side content depending on login status

2011-03-17 Thread hrbaer
Meanwhile I already implemented the part if there is a visible link to a page that requires authentication the user get's redirected to the login page. But how can I make links invisible if a user is not logged in? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/dynam

dynamic navigation/side content depending on login status

2011-03-17 Thread hrbaer
Hi, how can I display navigation points and page content depending on the login status? I have a login box and only after a sucessfully authentication I want to 1.) extend the existing navigation 2.) make content visible on (already) "public" sites Seems like I have to create my own Session obj

Re: Need a CodingStrategy to parse parameter from prefix

2011-03-17 Thread Martin Grigorov
If you can use Wicket 1.5 (RC2) then I suggest you to take a look at http://svn.apache.org/viewvc/wicket/trunk/wicket-examples/src/main/java/org/apache/wicket/examples/requestmapper/LocaleFirstMapper.java?view=markup

Need a CodingStrategy to parse parameter from prefix

2011-03-17 Thread Steve Mactaggart
Hi guys, I am porting an existing application over to wicket, and while most of it is plain sailing I have an issue where I need to be able to specify a set of pages to have a common parameter supplied "before" the mount path. An example of what I'm talking about would be: http://localhost/person

RE: mountSharedResource() on huge amount of images

2011-03-17 Thread Ladislav DANKO
> -Original Message- > From: mzem...@osc.state.ny.us [mailto:mzem...@osc.state.ny.us] > Sent: Tuesday, March 15, 2011 7:28 PM > To: users@wicket.apache.org > Subject: Re: mountSharedResource() on huge amount of images > > No offense Bas but that seems like a major hassle, especially >

RE: mountSharedResource() on huge amount of images

2011-03-17 Thread Ladislav DANKO
> -Original Message- > From: Bas Gooren [mailto:b...@iswd.nl] > Sent: Tuesday, March 15, 2011 7:10 PM > To: users@wicket.apache.org > Subject: Re: mountSharedResource() on huge amount of images > > Now you're talking about rendering them, which is a different > topic than mounting a r

Re: Drag and Drop, simply copy from list A to list B

2011-03-17 Thread lucast
Hi Bruno, Sorry. I should correct myself. I have used wicket-dnd, I took no part in developing this amazing drag and drop functionality. But I am finding it extremely useful in my pet project. I have implemented a very small and simple example about what I asked above (code attached). I particular