Re: Where is the full client filename during FileUpload?

2010-02-04 Thread nytrus
Yes you are right, file full path file is never send. In fact exploring DOM I've found no property to fetch it. Thank you! So I use a simple TextField. @kinabalu getClinetFilename() does not return the full path, while temp file path is the path on the server where the file is phisically copied,

Re: Form FileUploadField maxSize does not work

2009-09-07 Thread nytrus
Yes the issue is that, the form being submitted is the outer (which has no maxsize set, so default is used). When I submit upload0, Form.handleMultiPart() is called on the outer form (form0). When I submit upload1, Form.handleMultiPart() is called on simpleUpload. I'm missing something or doing s

Re: Form FileUploadField maxSize does not work

2009-09-04 Thread nytrus
Yes igor, below there is the code, even if is not very short. The issue is that when I click on upload1 button the submitting form is form0 instead of simpleUpload. Maybe I've bad-coded some part. /** the upload panel, very similar to the wicket example **/ public class UploadFilePanel extends Pa

Re: Nested forms : don't process inner form when outer form is submitted

2009-08-06 Thread nytrus
John Krasnay wrote: > > The isEnabled method only controls form processing on the server. If you > can't even type characters in your text field you have something else > going on at the browser level. > Well usually in a disabled box you cannot type, no matter what browser you are using. Any

Re: Nested forms : don't process inner form when outer form is submitted

2009-08-06 Thread nytrus
In the example, the inner form is enabled only when the submitter button is that of itself (i.e. I'm submitting the inner form). In all other cases the form is always disabled: I've tried the example and in factthe form is totally disabled, I can't fill my textfield and I can't even submit the for

Re: Form skips validation for disabled/not visible components

2009-08-04 Thread nytrus
James Carman-3 wrote: > > And, if you want to display the currently-selected "thing", then try > using a label (with a little style to it perhaps). > > On Mon, Aug 3, 2009 at 11:23 AM, Igor Vaynberg > wrote: >> use HiddenField instead of a TextField, that way there is no need to >> disable it.

Re: Form skips validation for disabled/not visible components

2009-08-03 Thread nytrus
egolan74 wrote: > > 1. If you in control of the input of these disabled fields, why allowing > illegal arguments in the first place? > 2. If you can't control the entered values, try use FormValidator. With > this > class, you can create your own Validate logic with the desired fields. > 1. Go