Thanks a lot, Igor! :)
Date: Tue, 12 Jun 2007 08:06:26 -0700 From: "Igor Vaynberg" <[EMAIL PROTECTED]> Subject: Re: [Wicket-user] MultiFileUploadField displays two file upload controls on the screen To: wicket-user@lists.sourceforge.net Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset="iso-8859-1" try to change <input id="inputFile" type="file" wicket:id="inputFile"/> to just <div wicket:id="inputFile"> -igor On 6/12/07, Joshi, Vivek <[EMAIL PROTECTED]> wrote: > > Hi all, > > I have a question about the MultiFileUploadField class. > > Tried to use this class in my code to upload multiple files. The > problem is, on the screen it displays two upload file controls rather than just one. > One of these 2 controls works fine, but the other one is non-functional. > > I will appreciate any help on getting rid of the non-functional upload > file control from the screen. > > Please find a screenshot of the two controls as visible on the screen > attached with this mail for your reference. > > The input field in html is : > > <input id="inputFile" type="file" wicket:id="inputFile"/> > > And the java code snippet is: > > MultiFileUploadField inpFileFld = *new* > MultiFileUploadField("inputFile", > *new* PropertyModel(*this*,"inputFiles"), 10); where inputFiles is > defined as: > Collection<FileUpload> inputFiles = *null*; and later > form.add(inpFileFld); > > > Thanks > > PS: I'm very new to Wicket. Please forgive if it's too naive a question. > thnx -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Tuesday, June 12, 2007 8:37 PM To: wicket-user@lists.sourceforge.net Subject: Wicket-user Digest, Vol 13, Issue 83 Send Wicket-user mailing list submissions to wicket-user@lists.sourceforge.net To subscribe or unsubscribe via the World Wide Web, visit https://lists.sourceforge.net/lists/listinfo/wicket-user or, via email, send a message with subject or body 'help' to [EMAIL PROTECTED] You can reach the person managing the list at [EMAIL PROTECTED] When replying, please edit your Subject line so it is more specific than "Re: Contents of Wicket-user digest..." Today's Topics: 1. Re: nice url for DownloadLink (Igor Vaynberg) 2. Re: AjaxSubmitButton changing Button's Name/Displayed Text/etc (Francisco Diaz Trepat - gmail) 3. Re: AjaxSubmitButton changing Button's Name/Displayed Text/etc (Francisco Diaz Trepat - gmail) 4. Re: Prototype scoped Spring beans (Igor Vaynberg) 5. Re: MultiFileUploadField displays two file upload controls on the screen (Igor Vaynberg) ---------------------------------------------------------------------- Message: 1 Date: Tue, 12 Jun 2007 07:52:55 -0700 From: "Igor Vaynberg" <[EMAIL PROTECTED]> Subject: Re: [Wicket-user] nice url for DownloadLink To: wicket-user@lists.sourceforge.net Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset="iso-8859-1" you need to create a shared resource that lets you stream those files and mount that. then create a link component that generates href with urlfor(resourcereference)+"/report1.csv"; or something like that. -igor On 6/11/07, Jan Van Besien <[EMAIL PROTECTED]> wrote: > > Hi all > > I have a page with a list of DownloadLinks that allow the user to > download a bunch of text (csv) files. This works, but clients want to > access these files with a script, without having to click trough the > gui. This also works, but the url's that point to the files are > somewhat cryptic ofcourse. > > I know of the feature to mount bookmarkable pages etc to give them > nicer url's, and now I'm looking for a solution to do something > similar for DownloadLinks. > > Currently on my page the files (e.g. report1.csv, report2.csv, ...) > have url's like > > > http://somehost/mycontextroot/?wicket:interface=:1:reports:0:fileLink: > :ILinkListener > > http://somehost/mycontextroot/?wicket:interface=:1:reports:1:fileLink: > :ILinkListener > > I would like this to be something like > > http://somehost/mycontextroot/reports/report1.csv > http://somehost/mycontextroot/reports/report2.csv > > Thanks in advance > Jan > > ---------------------------------------------------------------------- > --- This SF.net email is sponsored by DB2 Express Download DB2 Express > C - the FREE version of DB2 express and take control of your XML. No > limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > -------------- next part -------------- An HTML attachment was scrubbed... ------------------------------ Message: 2 Date: Tue, 12 Jun 2007 11:54:09 -0300 From: "Francisco Diaz Trepat - gmail" <[EMAIL PROTECTED]> Subject: Re: [Wicket-user] AjaxSubmitButton changing Button's Name/Displayed Text/etc To: wicket-user@lists.sourceforge.net Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset="iso-8859-1" Sorry, right. >_> Wicket Version 1.2.5 thanks Jean Baptiste. f(t) On 6/11/07, Jean-Baptiste Quenot <[EMAIL PROTECTED]> wrote: > > * Francisco Diaz Trepat - gmail: > > > > Anybody knows how to change the displayed name of an AjaxSubmitButton? > > > > I just tried to do a .setMode(new ResourceModel(bla bla.... But it > didn't > > work. > > > > > > I have an input: > > > > <input type="submit" value="create" wicket:id="createButton"> > > Please always mention the version of Wicket you are using. > > In Wicket 1.3, this is supposed to work. Set a breakpoint in > Button#onComponentTag() on the line tag.put("value", value); > > Best regards, > -- > Jean-Baptiste Quenot > aka John Banana Qwerty > http://caraldi.com/jbq/ > > ---------------------------------------------------------------------- > --- This SF.net email is sponsored by DB2 Express Download DB2 Express > C - the FREE version of DB2 express and take control of your XML. No > limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > -------------- next part -------------- An HTML attachment was scrubbed... ------------------------------ Message: 3 Date: Tue, 12 Jun 2007 11:55:54 -0300 From: "Francisco Diaz Trepat - gmail" <[EMAIL PROTECTED]> Subject: Re: [Wicket-user] AjaxSubmitButton changing Button's Name/Displayed Text/etc To: wicket-user@lists.sourceforge.net Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset="iso-8859-1" One more thing. Do I get version 1.3 through the svn? How long to the beta 2 in the incubator? f(t) On 6/11/07, Jean-Baptiste Quenot <[EMAIL PROTECTED]> wrote: > > * Francisco Diaz Trepat - gmail: > > > > Anybody knows how to change the displayed name of an AjaxSubmitButton? > > > > I just tried to do a .setMode(new ResourceModel(bla bla.... But it > didn't > > work. > > > > > > I have an input: > > > > <input type="submit" value="create" wicket:id="createButton"> > > Please always mention the version of Wicket you are using. > > In Wicket 1.3, this is supposed to work. Set a breakpoint in > Button#onComponentTag() on the line tag.put("value", value); > > Best regards, > -- > Jean-Baptiste Quenot > aka John Banana Qwerty > http://caraldi.com/jbq/ > > ---------------------------------------------------------------------- > --- This SF.net email is sponsored by DB2 Express Download DB2 Express > C - the FREE version of DB2 express and take control of your XML. No > limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > -------------- next part -------------- An HTML attachment was scrubbed... ------------------------------ Message: 4 Date: Tue, 12 Jun 2007 08:00:03 -0700 From: "Igor Vaynberg" <[EMAIL PROTECTED]> Subject: Re: [Wicket-user] Prototype scoped Spring beans To: wicket-user@lists.sourceforge.net Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset="iso-8859-1" if you think about it, your problem comes from the fact that you do not want to serialize this stateful bean because it has references to other beans which are not serializable and yet you want to put it into httpsession. the requirement of anything you put into httpsession is that it _is_ serializable for replication to other server nodes, etc. - unless you use some nonstandard replication technique. shale will run into the same limitation. its "dialog" scope is pretty much the same as making something a field of a page. that field is there while the page is, and is then cleaned up when the page is not needed. however it runs into the same limitation because it most likely uses httpsession for storing that dialog-scoped data and thus you are back to serialization problem. now a solution i see is thus. make this bean @Configurable and serializable. keep all dependencies in transient vars. that way when the bean is serialized its dependencies are not, and when it is deserialized i think @Configurable wires in an intercept that will reinject the bean. that way you get the best of both worlds. makes sense? -igor On 6/12/07, R?diger Schulz <[EMAIL PROTECTED]> wrote: > > 1) Convert the bean to a stateless service, and keep the state in > another bean. > 2) Make the bean references transient, and re-fetch them manually (i.e. > without DI from spring) after de-serialization. > > There is nothing wrong with 1), I use it in other parts of my app. It > sure would be nice to have stateful beans with DI-ed application > logic, but 2) seems very clumsy. However, later in the above thread, > someone mentions the dialog feature of Shale: > http://mail-archives.apache.org/mod_mbox/myfaces-users/200609.mbox/%3c > [EMAIL PROTECTED] > > > Maybe something like that could be applied to wicket as well? > > -------------- next part -------------- An HTML attachment was scrubbed... ------------------------------ Message: 5 Date: Tue, 12 Jun 2007 08:06:26 -0700 From: "Igor Vaynberg" <[EMAIL PROTECTED]> Subject: Re: [Wicket-user] MultiFileUploadField displays two file upload controls on the screen To: wicket-user@lists.sourceforge.net Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset="iso-8859-1" try to change <input id="inputFile" type="file" wicket:id="inputFile"/> to just <div wicket:id="inputFile"> -igor On 6/12/07, Joshi, Vivek <[EMAIL PROTECTED]> wrote: > > Hi all, > > I have a question about the MultiFileUploadField class. > > Tried to use this class in my code to upload multiple files. The > problem is, on the screen it displays two upload file controls rather than just one. > One of these 2 controls works fine, but the other one is non-functional. > > I will appreciate any help on getting rid of the non-functional upload > file control from the screen. > > Please find a screenshot of the two controls as visible on the screen > attached with this mail for your reference. > > The input field in html is : > > <input id="inputFile" type="file" wicket:id="inputFile"/> > > And the java code snippet is: > > MultiFileUploadField inpFileFld = *new* > MultiFileUploadField("inputFile", > *new* PropertyModel(*this*,"inputFiles"), 10); where inputFiles is > defined as: > Collection<FileUpload> inputFiles = *null*; and later > form.add(inpFileFld); > > > Thanks > > PS: I'm very new to Wicket. Please forgive if it's too naive a question. > thnx > > > ---------------------------------------------------------------------- > --- This SF.net email is sponsored by DB2 Express Download DB2 Express > C - the FREE version of DB2 express and take control of your XML. No > limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > -------------- next part -------------- An HTML attachment was scrubbed... ------------------------------ ------------------------------------------------------------------------ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ------------------------------ _______________________________________________ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user End of Wicket-user Digest, Vol 13, Issue 83 ******************************************* ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user