Re: [Wicket-user] Wickettester and Validators
Anyone or is it the wrong approach? behlma wrote: > > Hi guys, > I'm just fiddling around with the FormTester. > > Say I have a RequiredValidator and StringLengthValidator on my textfields > in a form, with custom error messages specified in the page's .properties > file. > > How can I let wickettester retrieve those custom message, instead of > hardcoding them into: > > tester.assertErrorMessages(new String[] {"my custom error message for > LengthVal", "my custom error message for StringVal} > ? > -- View this message in context: http://www.nabble.com/Wickettester-and-Validators-tf3728789.html#a10448855 Sent from the Wicket - User mailing list archive at Nabble.com. - 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
[Wicket-user] Wickettester and Validators
Hi guys, I'm just fiddling around with the FormTester. Say I have a RequiredValidator and StringLengthValidator on my textfields in a form, with custom error messages specified in the page's .properties file. How can I let wickettester retrieve those custom message, instead of hardcoding them into: tester.assertErrorMessages(new String[] {"my custom error message for LengthVal", "my custom error message for StringVal} ? -- View this message in context: http://www.nabble.com/Wickettester-and-Validators-tf3728789.html#a10436719 Sent from the Wicket - User mailing list archive at Nabble.com. - 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
Re: [Wicket-user] Unit Testing Pages with @SpringBeans
I must have been blind to not see the "unit testing" section on that page. Thanks guys Gwyn wrote: > > On Sunday, May 6, 2007, 6:35:45 PM, Ingram <[EMAIL PROTECTED]> wrote: > >> Do you check this ? >> http://www.wicket-wiki.org.uk/wiki/index.php/Spring > > Please note that the site above is an 'old' wiki - Please see > http://cwiki.apache.org/WICKET/spring.html for the current Spring wiki > page.. > > (Unfortunately the mapping's not a straighforward one, but I must try > & make time to set some redirects in place...) > > /Gwyn > > > > - > 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 > > -- View this message in context: http://www.nabble.com/Unit-Testing-Pages-with-%40SpringBeans-tf3699578.html#a10363820 Sent from the Wicket - User mailing list archive at Nabble.com. - 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
Re: [Wicket-user] Unit Testing Pages with @SpringBeans
Futhermore I just noticed that when I do tester.startPage(new LoginPage()); instead of tester.startPage(LoginPage.class); I get loads of serialisation errors. i.e. Caused by: java.io.NotSerializableException: org.apache.wicket.util.tester.WicketTester -- View this message in context: http://www.nabble.com/Unit-Testing-Pages-with-%40SpringBeans-tf3699578.html#a10345372 Sent from the Wicket - User mailing list archive at Nabble.com. - 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
[Wicket-user] Unit Testing Pages with @SpringBeans
Hi there, I've been trying to figure out how to unit test pages with @SpringBeans. Say my LoginPage has a spring injected UserService.class in its submit() method handling all the (database) related authentication tasks. I was of course thinking of using a UserService mock, but how can I get my Page to use the mock? Should I create setters in addition to the @SpringBean annotation, then create my class in the unit test's setUp() method and inject the mock there? Or should I use a totally different approach? Thanks in advance! -- View this message in context: http://www.nabble.com/Unit-Testing-Pages-with-%40SpringBeans-tf3699578.html#a10345333 Sent from the Wicket - User mailing list archive at Nabble.com. - 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
Re: [Wicket-user] Access Feedbackmessages on RedirectPage
Thanks as always :) Eelco Hillenius wrote: > > On 4/25/07, Martijn Dashorst <[EMAIL PROTECTED]> wrote: >> Page page = new Page(); >> page.info("Hello, World!"); >> setResponsePage(page); > > That, or alternatively, you can use 'flash' messages by doing > Session.get().info("Hello, World!") in which case they will be > rendered the first time a feedbackpanel (or another component doing > the same thing) is encountered. > > Eelco > > - > 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 > > -- View this message in context: http://www.nabble.com/Access-Feedbackmessages-on-RedirectPage-tf3646550.html#a10185074 Sent from the Wicket - User mailing list archive at Nabble.com. - 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
[Wicket-user] Access Feedbackmessages on RedirectPage
Hi, can I, in a forms onSubmit method redirect to a new page (setRedirect(new Page())) and access the error/info feedback messages on the new Page? If so, how? Cheers -- View this message in context: http://www.nabble.com/Access-Feedbackmessages-on-RedirectPage-tf3646550.html#a10184451 Sent from the Wicket - User mailing list archive at Nabble.com. - 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
[Wicket-user] Summer of Code
Hi guys, as mentioned some time ago I'd be really up for the idea of having a "Summer of Code". I personally would really be interested in creating an email utility library, even though that might only be a "small" thing. Any ideas? -- View this message in context: http://www.nabble.com/Summer-of-Code-tf3455770.html#a9641337 Sent from the Wicket - User mailing list archive at Nabble.com. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Ajax Multiple File Upload
Hi there, situation: I have one field that has a javascript onChange function assigned. The onChange function basically hides that input field and creates a new one on the fly. Now chillenious pointed out that this would have to be done via ajax, i.e. generating the fileuploadfields from a listview, including an ajax behaviour, but I have no clue how I should go about this. Anyone? Thanks in advance -- View this message in context: http://www.nabble.com/Ajax-Multiple-File-Upload-tf3290094.html#a9151151 Sent from the Wicket - User mailing list archive at Nabble.com. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Application layout question: File uploads
Just one more question guys. I store the images now in a separate folder somewhere on the filesystem, non-accessible from the outside. What's the best way to retrieve them again? Say I only want to write a simple -tag on a plain website, how would I get the scr="" value? Eelco Hillenius wrote: > > Yep. And maybe you could consider using a JCR (Java Content > Repository) like http://jackrabbit.apache.org/ so that you abstract > from where you put it. > > Eelco > > > On 1/27/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: >> i wouldnt put them into web-inf as that is overwritten when you redeploy. >> put them somewhere else on the harddrive. >> >> -igor >> >> >> >> On 1/27/07, behlma < [EMAIL PROTECTED]> wrote: >> > >> > Hi guys, >> > I'm just writing a simple "portal" application, where users can upload >> > files, i.e. images that will be displayed on their sites, but should >> not >> be >> > accessible for unregistered users, i.e the outer world. >> > >> > Now I take it it's the common approach to store only the files paths' >> to >> the >> > database and put the files somewhere on the disk. My question is now >> where >> > would that be? Would you put them in the /WEB-INF/ dir? If, how can I >> get >> > the /web-inf/ path? Or would you put them somewhere else? >> > >> > Thanks in advance >> > >> > -- >> > View this message in context: >> http://www.nabble.com/Application-layout-question%3A-File-uploads-tf3127417.html#a8665057 >> > Sent from the Wicket - User mailing list archive at Nabble.com. >> > >> > >> > >> - >> > Take Surveys. Earn Cash. Influence the Future of IT >> > Join SourceForge.net's Techsay panel and you'll get the chance to share >> your >> > opinions on IT & business topics through brief surveys - and earn cash >> > >> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV >> > ___ >> > Wicket-user mailing list >> > Wicket-user@lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/wicket-user >> > >> >> >> - >> Take Surveys. Earn Cash. Influence the Future of IT >> Join SourceForge.net's Techsay panel and you'll get the chance to share >> your >> opinions on IT & business topics through brief surveys - and earn cash >> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV >> >> ___ >> Wicket-user mailing list >> Wicket-user@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/wicket-user >> >> >> > > - > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > > -- View this message in context: http://www.nabble.com/Application-layout-question%3A-File-uploads-tf3127417.html#a8689500 Sent from the Wicket - User mailing list archive at Nabble.com. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Application layout question: File uploads
Thank you guys, much appreciated. Eelco Hillenius wrote: > > Yep. And maybe you could consider using a JCR (Java Content > Repository) like http://jackrabbit.apache.org/ so that you abstract > from where you put it. > > Eelco > > > On 1/27/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: >> i wouldnt put them into web-inf as that is overwritten when you redeploy. >> put them somewhere else on the harddrive. >> >> -igor >> >> >> >> On 1/27/07, behlma < [EMAIL PROTECTED]> wrote: >> > >> > Hi guys, >> > I'm just writing a simple "portal" application, where users can upload >> > files, i.e. images that will be displayed on their sites, but should >> not >> be >> > accessible for unregistered users, i.e the outer world. >> > >> > Now I take it it's the common approach to store only the files paths' >> to >> the >> > database and put the files somewhere on the disk. My question is now >> where >> > would that be? Would you put them in the /WEB-INF/ dir? If, how can I >> get >> > the /web-inf/ path? Or would you put them somewhere else? >> > >> > Thanks in advance >> > >> > -- >> > View this message in context: >> http://www.nabble.com/Application-layout-question%3A-File-uploads-tf3127417.html#a8665057 >> > Sent from the Wicket - User mailing list archive at Nabble.com. >> > >> > >> > >> - >> > Take Surveys. Earn Cash. Influence the Future of IT >> > Join SourceForge.net's Techsay panel and you'll get the chance to share >> your >> > opinions on IT & business topics through brief surveys - and earn cash >> > >> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV >> > ___ >> > Wicket-user mailing list >> > Wicket-user@lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/wicket-user >> > >> >> >> - >> Take Surveys. Earn Cash. Influence the Future of IT >> Join SourceForge.net's Techsay panel and you'll get the chance to share >> your >> opinions on IT & business topics through brief surveys - and earn cash >> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV >> >> ___ >> Wicket-user mailing list >> Wicket-user@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/wicket-user >> >> >> > > - > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > > -- View this message in context: http://www.nabble.com/Application-layout-question%3A-File-uploads-tf3127417.html#a8674118 Sent from the Wicket - User mailing list archive at Nabble.com. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Application layout question: File uploads
Hi guys, I'm just writing a simple "portal" application, where users can upload files, i.e. images that will be displayed on their sites, but should not be accessible for unregistered users, i.e the outer world. Now I take it it's the common approach to store only the files paths' to the database and put the files somewhere on the disk. My question is now where would that be? Would you put them in the /WEB-INF/ dir? If, how can I get the /web-inf/ path? Or would you put them somewhere else? Thanks in advance -- View this message in context: http://www.nabble.com/Application-layout-question%3A-File-uploads-tf3127417.html#a8665057 Sent from the Wicket - User mailing list archive at Nabble.com. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Static pages?
Hi there, I'm quite new to Wicket and was wondering if there's a possibility to create some static pages in Wicket without having the need to create an Action. What I eventually want are a couple of Freemarker templates without any wicket:ids getting rendered and to be able to access them. Thanks in advance! -- View this message in context: http://www.nabble.com/Static-pages--tf3026287.html#a8407550 Sent from the Wicket - User mailing list archive at Nabble.com. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user