Re: AbortException
throw new RestartResponseException(LinkPartners.class) On Sat, 2010-02-06 at 23:53 -0800, Douglas Ferguson wrote: I may be using this wrong, but my understanding was that if I wanted to redirect a user and hault execution of the current page I could do the following: setResponsePage(LinkPartners.class); throw new AbortException(); However, there seems to be situations where the AbortException actually bubbles back up to the user. What would cause the redirect not to work and the AbortException to make it to the screen? D/ - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: [announce] better look modern css for wicket examples contest
Great. We need more people though to make it a real contest! :) And more focus on looks. 2010/2/6 Andrew Lombardi and...@mysticcoders.com I agree. I had a few moments tonight and put this together. It includes the standard wicket label message showing that Wicket is parsing properly. It also includes links to: examples, javadoc, books about wicket, and blogs. and will show the version you used to install from archetype. Thoughts? You can click through on the bug and see an attached screenshot https://issues.apache.org/jira/browse/WICKET-2724 On Feb 2, 2010, at 11:26 AM, mbrictson wrote: In addition to the examples, I think it would be nice to apply a pleasant CSS skin to the Wicket quickstart archetype. Instead of an un-styled QuickStart message, how about a nicely formatted short intro with links to tutorials, reference documentation, etc.? As an example, I like the it worked! welcome page that Django provides: http://i46.tinypic.com/2q025g9.jpg nino martinez wael wrote: Hi Someone mentioned that we could have a better look feel for wicket, since there are no designers in the core team. I proposed a contest, to make the coolest slickest css for wicket. So please feel free to apply. Requirements: your css should be compatible with the basic browsers, Firefox , IE , Safari etc. And retain heavy use of embedded js. And it should be a drop on, using existing id's hierachy for design. Practical info: The contest ends in 2 months April 2nd. Get the wicket examples here: http://svn.apache.org/repos/asf/wicket/trunk/wicket-examples/ If you need it you can put your css in svn at wicketstuff, write to this list for details on howto get commit rights, you should add your css to sandbox and sf user name ( https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/sandbox/). Yes as with all contest there is a prize, you can win the wicket t-shir along with the honor if your css are the winner. This http://www.cafepress.com/apachewicket.317298148 or this http://www.cafepress.com/apachewicket.317298083 depending on your age :) Just reply to this thread to enter the contest. Regards Nino on behalf of the Wicket People -- View this message in context: http://old.nabble.com/-announce--better-look---modern-css-for-wicket-examples-contest-tp27425107p27426016.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org To our success! Mystic Coders, LLC | Code Magic | www.mysticcoders.com ANDREW LOMBARDI | and...@mysticcoders.com 2321 E 4th St. Ste C-128, Santa Ana CA 92705 ofc: 714-816-4488 fax: 714-782-6024 cell: 714-697-8046 linked-in: http://www.linkedin.com/in/andrewlombardi twitter: http://www.twitter.com/kinabalu Eco-Tip: Printing e-mails is usually a waste. This message is for the named person's use only. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient.
nested onclicks
I have a div that has an onclick and inside that div I have a link. If the link is clicked on there should be a different behavior than clicking on the div. I found this: http://markmail.org/message/2ps3auq3326zq3nq But it didn't work.. add(new AjaxLinkVoid(subLink){ private static final long serialVersionUID = 1L; @Override public void onClick(AjaxRequestTarget target) { target.prependJavascript(alert('Coming Soon!');return false;); } @Override protected IAjaxCallDecorator getAjaxCallDecorator() { return new AjaxCancelEventBubbleCallDecorator(); } });
Re: Bookmarkable link url is broken in 1.4.6 after ajax update
I've noticed that WICKET-2491 is marked as resolved. But I checked against latest version from branch-1.4.x and it doesn't seem to be fixed. Is the tested version wrong? Or should the issue be reopened? Alex Objelean Alexandru Objelean wrote: The wicket-1.4.6 release contains a fix for WICKET-2312, which is a great thing. But apparently it breaks Bookmarkable link url in situation when it is updated by ajax. I'm not sure if this description is enough for fast reproduction, but I will try to add a quickstart asap and will open a JIRA issue. This issue is pretty critical. I cannot migrate the application to wicket-1.4.6 because of it. Thank you! -- View this message in context: http://old.nabble.com/Bookmarkable-link-url-is-broken-in-1.4.6-after-ajax-update-tp27439970p27489240.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Bookmarkable link url is broken in 1.4.6 after ajax update
afaik,it's working correctly after the fix(2717),atleast i can't reproduce the problem . On Sun, Feb 7, 2010 at 8:16 PM, Alex Objelean alex_objel...@yahoo.comwrote: I've noticed that WICKET-2717 is marked as resolved. But I checked against latest version from branch-1.4.x and it doesn't seem to be fixed. Is the tested version wrong? Or should the issue be reopened? Alex Objelean Alexandru Objelean wrote: The wicket-1.4.6 release contains a fix for WICKET-2312, which is a great thing. But apparently it breaks Bookmarkable link url in situation when it is updated by ajax. I'm not sure if this description is enough for fast reproduction, but I will try to add a quickstart asap and will open a JIRA issue. This issue is pretty critical. I cannot migrate the application to wicket-1.4.6 because of it. Thank you! -- View this message in context: http://old.nabble.com/Bookmarkable-link-url-is-broken-in-1.4.6-after-ajax-update-tp27439970p27489240.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- regards, Vineet Semwal
Re: Bookmarkable link url is broken in 1.4.6 after ajax update
Have you tried to use latest version from branch-1.4.x? vineet semwal wrote: afaik,it's working correctly after the fix(2717),atleast i can't reproduce the problem . On Sun, Feb 7, 2010 at 8:16 PM, Alex Objelean alex_objel...@yahoo.comwrote: I've noticed that WICKET-2717 is marked as resolved. But I checked against latest version from branch-1.4.x and it doesn't seem to be fixed. Is the tested version wrong? Or should the issue be reopened? Alex Objelean Alexandru Objelean wrote: The wicket-1.4.6 release contains a fix for WICKET-2312, which is a great thing. But apparently it breaks Bookmarkable link url in situation when it is updated by ajax. I'm not sure if this description is enough for fast reproduction, but I will try to add a quickstart asap and will open a JIRA issue. This issue is pretty critical. I cannot migrate the application to wicket-1.4.6 because of it. Thank you! -- View this message in context: http://old.nabble.com/Bookmarkable-link-url-is-broken-in-1.4.6-after-ajax-update-tp27439970p27489240.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- regards, Vineet Semwal -- View this message in context: http://old.nabble.com/Bookmarkable-link-url-is-broken-in-1.4.6-after-ajax-update-tp27439970p27489843.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: [announce] better look modern css for wicket examples contest
This isn't a modification for all the wicket examples, this is just for the maven archetype, the examples are a much larger undertaking. Focus here was to make it simple, and provide some references that people could find useful. There's no reason to extrapolate out and design a crazy quickstart page because it will be deleted pretty quickly (we hope) On Feb 7, 2010, at 1:25 AM, nino martinez wael wrote: Great. We need more people though to make it a real contest! :) And more focus on looks. 2010/2/6 Andrew Lombardi and...@mysticcoders.com I agree. I had a few moments tonight and put this together. It includes the standard wicket label message showing that Wicket is parsing properly. It also includes links to: examples, javadoc, books about wicket, and blogs. and will show the version you used to install from archetype. Thoughts? You can click through on the bug and see an attached screenshot https://issues.apache.org/jira/browse/WICKET-2724 On Feb 2, 2010, at 11:26 AM, mbrictson wrote: In addition to the examples, I think it would be nice to apply a pleasant CSS skin to the Wicket quickstart archetype. Instead of an un-styled QuickStart message, how about a nicely formatted short intro with links to tutorials, reference documentation, etc.? As an example, I like the it worked! welcome page that Django provides: http://i46.tinypic.com/2q025g9.jpg nino martinez wael wrote: Hi Someone mentioned that we could have a better look feel for wicket, since there are no designers in the core team. I proposed a contest, to make the coolest slickest css for wicket. So please feel free to apply. Requirements: your css should be compatible with the basic browsers, Firefox , IE , Safari etc. And retain heavy use of embedded js. And it should be a drop on, using existing id's hierachy for design. Practical info: The contest ends in 2 months April 2nd. Get the wicket examples here: http://svn.apache.org/repos/asf/wicket/trunk/wicket-examples/ If you need it you can put your css in svn at wicketstuff, write to this list for details on howto get commit rights, you should add your css to sandbox and sf user name ( https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/sandbox/). Yes as with all contest there is a prize, you can win the wicket t-shir along with the honor if your css are the winner. This http://www.cafepress.com/apachewicket.317298148 or this http://www.cafepress.com/apachewicket.317298083 depending on your age :) Just reply to this thread to enter the contest. Regards Nino on behalf of the Wicket People -- View this message in context: http://old.nabble.com/-announce--better-look---modern-css-for-wicket-examples-contest-tp27425107p27426016.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org To our success! Mystic Coders, LLC | Code Magic | www.mysticcoders.com ANDREW LOMBARDI | and...@mysticcoders.com 2321 E 4th St. Ste C-128, Santa Ana CA 92705 ofc: 714-816-4488 fax: 714-782-6024 cell: 714-697-8046 linked-in: http://www.linkedin.com/in/andrewlombardi twitter: http://www.twitter.com/kinabalu Eco-Tip: Printing e-mails is usually a waste. This message is for the named person's use only. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. To our success! Mystic Coders, LLC | Code Magic | www.mysticcoders.com ANDREW LOMBARDI | and...@mysticcoders.com 2321 E 4th St. Ste C-128, Santa Ana CA 92705 ofc: 714-816-4488 fax: 714-782-6024 cell: 714-697-8046 linked-in: http://www.linkedin.com/in/andrewlombardi twitter: http://www.twitter.com/kinabalu Eco-Tip: Printing e-mails is usually a waste. This message is for the named person's use only. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient.
Re: Bookmarkable link url is broken in 1.4.6 after ajax update
yes i am using 1.4.x,do you still see the broken link in the quickstart i have posted? the link will be broken in the quickstart if you click on the button in 1.4.6 but after the fix in 1.4.x it's working correctly. On Sun, Feb 7, 2010 at 9:25 PM, Alex Objelean alex_objel...@yahoo.comwrote: Have you tried to use latest version from branch-1.4.x? vineet semwal wrote: afaik,it's working correctly after the fix(2717),atleast i can't reproduce the problem . On Sun, Feb 7, 2010 at 8:16 PM, Alex Objelean alex_objel...@yahoo.comwrote: I've noticed that WICKET-2717 is marked as resolved. But I checked against latest version from branch-1.4.x and it doesn't seem to be fixed. Is the tested version wrong? Or should the issue be reopened? Alex Objelean Alexandru Objelean wrote: The wicket-1.4.6 release contains a fix for WICKET-2312, which is a great thing. But apparently it breaks Bookmarkable link url in situation when it is updated by ajax. I'm not sure if this description is enough for fast reproduction, but I will try to add a quickstart asap and will open a JIRA issue. This issue is pretty critical. I cannot migrate the application to wicket-1.4.6 because of it. Thank you! -- View this message in context: http://old.nabble.com/Bookmarkable-link-url-is-broken-in-1.4.6-after-ajax-update-tp27439970p27489240.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- regards, Vineet Semwal -- View this message in context: http://old.nabble.com/Bookmarkable-link-url-is-broken-in-1.4.6-after-ajax-update-tp27439970p27489843.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- regards, Vineet Semwal
Re: [announce] better look modern css for wicket examples contest
or a ton of apps that look a lot alike :) On Sun, Feb 7, 2010 at 9:20 AM, Andrew Lombardi and...@mysticcoders.com wrote: This isn't a modification for all the wicket examples, this is just for the maven archetype, the examples are a much larger undertaking. Focus here was to make it simple, and provide some references that people could find useful. There's no reason to extrapolate out and design a crazy quickstart page because it will be deleted pretty quickly (we hope) On Feb 7, 2010, at 1:25 AM, nino martinez wael wrote: Great. We need more people though to make it a real contest! :) And more focus on looks. 2010/2/6 Andrew Lombardi and...@mysticcoders.com I agree. I had a few moments tonight and put this together. It includes the standard wicket label message showing that Wicket is parsing properly. It also includes links to: examples, javadoc, books about wicket, and blogs. and will show the version you used to install from archetype. Thoughts? You can click through on the bug and see an attached screenshot https://issues.apache.org/jira/browse/WICKET-2724 On Feb 2, 2010, at 11:26 AM, mbrictson wrote: In addition to the examples, I think it would be nice to apply a pleasant CSS skin to the Wicket quickstart archetype. Instead of an un-styled QuickStart message, how about a nicely formatted short intro with links to tutorials, reference documentation, etc.? As an example, I like the it worked! welcome page that Django provides: http://i46.tinypic.com/2q025g9.jpg nino martinez wael wrote: Hi Someone mentioned that we could have a better look feel for wicket, since there are no designers in the core team. I proposed a contest, to make the coolest slickest css for wicket. So please feel free to apply. Requirements: your css should be compatible with the basic browsers, Firefox , IE , Safari etc. And retain heavy use of embedded js. And it should be a drop on, using existing id's hierachy for design. Practical info: The contest ends in 2 months April 2nd. Get the wicket examples here: http://svn.apache.org/repos/asf/wicket/trunk/wicket-examples/ If you need it you can put your css in svn at wicketstuff, write to this list for details on howto get commit rights, you should add your css to sandbox and sf user name ( https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/sandbox/). Yes as with all contest there is a prize, you can win the wicket t-shir along with the honor if your css are the winner. This http://www.cafepress.com/apachewicket.317298148 or this http://www.cafepress.com/apachewicket.317298083 depending on your age :) Just reply to this thread to enter the contest. Regards Nino on behalf of the Wicket People -- View this message in context: http://old.nabble.com/-announce--better-look---modern-css-for-wicket-examples-contest-tp27425107p27426016.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org To our success! Mystic Coders, LLC | Code Magic | www.mysticcoders.com ANDREW LOMBARDI | and...@mysticcoders.com 2321 E 4th St. Ste C-128, Santa Ana CA 92705 ofc: 714-816-4488 fax: 714-782-6024 cell: 714-697-8046 linked-in: http://www.linkedin.com/in/andrewlombardi twitter: http://www.twitter.com/kinabalu Eco-Tip: Printing e-mails is usually a waste. This message is for the named person's use only. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. To our success! Mystic Coders, LLC | Code Magic | www.mysticcoders.com ANDREW LOMBARDI | and...@mysticcoders.com 2321 E 4th St. Ste C-128, Santa Ana CA 92705 ofc: 714-816-4488 fax: 714-782-6024 cell: 714-697-8046 linked-in: http://www.linkedin.com/in/andrewlombardi twitter: http://www.twitter.com/kinabalu Eco-Tip: Printing e-mails is usually a waste. This message is for the named person's use only. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Bookmarkable link url is broken in 1.4.6 after ajax update
Hmm... I didn't try your quickstart, I thought it was exactly the same as mine. It is very probable that there is another use-case which is broken.. I'll investigate it eventually post another quickstart. Alex Objelean vineet semwal wrote: yes i am using 1.4.x,do you still see the broken link in the quickstart i have posted? the link will be broken in the quickstart if you click on the button in 1.4.6 but after the fix in 1.4.x it's working correctly. On Sun, Feb 7, 2010 at 9:25 PM, Alex Objelean alex_objel...@yahoo.comwrote: Have you tried to use latest version from branch-1.4.x? vineet semwal wrote: afaik,it's working correctly after the fix(2717),atleast i can't reproduce the problem . On Sun, Feb 7, 2010 at 8:16 PM, Alex Objelean alex_objel...@yahoo.comwrote: I've noticed that WICKET-2717 is marked as resolved. But I checked against latest version from branch-1.4.x and it doesn't seem to be fixed. Is the tested version wrong? Or should the issue be reopened? Alex Objelean Alexandru Objelean wrote: The wicket-1.4.6 release contains a fix for WICKET-2312, which is a great thing. But apparently it breaks Bookmarkable link url in situation when it is updated by ajax. I'm not sure if this description is enough for fast reproduction, but I will try to add a quickstart asap and will open a JIRA issue. This issue is pretty critical. I cannot migrate the application to wicket-1.4.6 because of it. Thank you! -- View this message in context: http://old.nabble.com/Bookmarkable-link-url-is-broken-in-1.4.6-after-ajax-update-tp27439970p27489240.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- regards, Vineet Semwal -- View this message in context: http://old.nabble.com/Bookmarkable-link-url-is-broken-in-1.4.6-after-ajax-update-tp27439970p27489843.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- regards, Vineet Semwal -- View this message in context: http://old.nabble.com/Bookmarkable-link-url-is-broken-in-1.4.6-after-ajax-update-tp27439970p27490228.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket best practice
If you just want to navigate from PageA to PageB then a wicket:link is fine, though I rarely use them. If you want to have more involved processing then a Link object is preferable: thePage.add(new Link(someId) { public void onClick() { doThis(); validateThat(); // either setResponsePage(PageB.class); // or setResponsePage(new PageB(oneParam, anotherParam)); } }); On Sat, Feb 6, 2010 at 10:26 PM, Vineet Manohar vineet.mano...@gmail.com wrote: Thanks. Is one approach better than the other? Vineet On Sat, Feb 6, 2010 at 5:00 PM, Andrew Lombardi and...@mysticcoders.comwrote: There are 2 main ways to create a link with Wicket: 1. Use autolinking. wrap your link in wicket:link tags in the HTML and take note of package structure, so if in same package HomePage.html would go in href, and if its in a package called admin, you'd have admin/AdminHomePage.html, etc. 2. Use one of the Link objects, which requires a wicket:id attached to usually an anchor tag in the HTML. So you'll have to have Java code and HTML code that match id's -andrew On Feb 6, 2010, at 1:27 PM, Vineet Manohar wrote: Thanks. I will look at the maven archetype. More than just pages, I am looking at links, forms, inputs etc. For example, to create a link I am either use a href= in the HTML, or I can use Wicket link component model, what's the difference and which one should I use? Btw, my goal is to automatically generate a working Wicket app with full database integration using JPA and security integration as well. The Seam code generation project that I did was a success, you can write a spec like this one: http://code.google.com/p/clickframes-seam-issuetracker-demo/source/browse/trunk/src/main/clickframes/appspec.xml and instantly get a working app like this: live demo link: http://demo.clickframes.org/tracker Of course you can add/remove pages from the app by changing the appspec xml. I am trying to replicate the same thing for Wicket, hoping to get some help from user community! On Sat, Feb 6, 2010 at 4:09 PM, Riyad Kalla rka...@gmail.com wrote: Vineet, very cool stuff you are wooing on. As for best practices with regard to layout, there is actually a Maven Wicket archetype that would probably answer those questions well. From what I remember its pretty straight forward maven web layout. And yes, HTML and Java source are in same main packages together. On Feb 6, 2010 1:33 PM, Vineet Manohar vineet.mano...@gmail.com wrote: Hi, I am trying to write a code generator (using Clickframes code generation framework) which would generate a fully working Wicket project directly from the Spec. Is there a document which describes the best practice for folder/package structure in a wicket project. To write the code generator, the only thing I need to know is the Wicket project structure that I should be created. For example: 1) should html files be colocated in src/main/java/com/mypackage/ along with Java files (as in the helloworld example) or in src/main/webapp. 2) should there be one html file per page (I am assuming yes) ... and other such questions related to folder structure I am the lead developer of open source code generation framework Clickframes (http://www.clickframes.org) and have written a similar code generator for JSF/Seam which instantly gives you a working app directly from the spec which the developer can then customize. I think a similar approach for Wicket would be very helpful to Wicket users who are trying to start a brand new project. Here's what I have so far. http://code.google.com/p/clickframes-wicket-plugin/ I am a Wicket novice, so any help or direction is appreciated. Thanks, Vineet Manohar http://www.vineetmanohar.com To our success! Mystic Coders, LLC | Code Magic | www.mysticcoders.com ANDREW LOMBARDI | and...@mysticcoders.com 2321 E 4th St. Ste C-128, Santa Ana CA 92705 ofc: 714-816-4488 fax: 714-782-6024 cell: 714-697-8046 linked-in: http://www.linkedin.com/in/andrewlombardi twitter: http://www.twitter.com/kinabalu Eco-Tip: Printing e-mails is usually a waste. This message is for the named person's use only. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
best practice for a simple menu
I'm relatively new to wicket and I want to build a menu in my webapp that looks similar to the menu of xing (start search messages...). My existing webapp has an abstract base page with a header panel and a footer panel. Inbetween is the body for the real pages. This works so far, but I have problems with the realization of the menu that should reside in a separate navigation panel. First I tried the TabPanel example (which worked) but that is only switching between Panels instead of switching between Pages, which I need to make these pages bookmarkable. So if someone would be so kind and share his/her expertise, I would be really glad. All the examples I found didn't helped me. Thanks in advance Andreas - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: AbortException
I tried that and it doesn't redirect, it throws the error back up and renders our error page org.apache.wicket.RestartResponseException:null On Feb 7, 2010, at 2:20 AM, Martin Grigorov wrote: throw new RestartResponseException(LinkPartners.class) On Sat, 2010-02-06 at 23:53 -0800, Douglas Ferguson wrote: I may be using this wrong, but my understanding was that if I wanted to redirect a user and hault execution of the current page I could do the following: setResponsePage(LinkPartners.class); throw new AbortException(); However, there seems to be situations where the AbortException actually bubbles back up to the user. What would cause the redirect not to work and the AbortException to make it to the screen? D/ - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: AbortException
This was some really silly stuff in our code.. https://buzzstream2.fogbugz.com/default.asp?5102#31036 On Feb 7, 2010, at 2:20 AM, Martin Grigorov wrote: throw new RestartResponseException(LinkPartners.class) On Sat, 2010-02-06 at 23:53 -0800, Douglas Ferguson wrote: I may be using this wrong, but my understanding was that if I wanted to redirect a user and hault execution of the current page I could do the following: setResponsePage(LinkPartners.class); throw new AbortException(); However, there seems to be situations where the AbortException actually bubbles back up to the user. What would cause the redirect not to work and the AbortException to make it to the screen? D/ - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
setResponsePage in AjaxButton after uploading a File
I have a simple form that has a file selection component and a submit button. I would like to submit via Ajax and then call setResponsePage if successful. The file is submitted/received fine but the setResponsePage does nothing. The Wicket Debug window indicates that there was an error getting ajax response...but there was error in the console on the server side. Has anyone else had similar issues? Thanks -Doug
Re: How to change content in ModalWindow
Chris, I have the same problem when switching content into a modal window. It appears a modal window blank content too. Do you have solved it? thanks in advance. On Mon, Jan 25, 2010 at 3:03 PM, Chris Colman chr...@stepaheadsoftware.comwrote: My use case might explain the situation better: User visits a page that needs authentication. A ModalWindow appears with a username/password field pair and a 'sign in' button. In case they are a new user it also contains a 'create account' button. If they click this then the contents of the ModalWindow changes to hold more fields, name, email, password, confirm password etc., sufficient to creating a new account. I wanted to do a nice smooth switch from the 'sign in' presentation to the 'create account' presentation without the flicker of closing the form and bringing up a new form. -Original Message- From: Chris Colman [mailto:chr...@stepaheadsoftware.com] Sent: Tuesday, 26 January 2010 3:58 AM To: users@wicket.apache.org Subject: RE: How to change content in ModalWindow I tried that initially but calling modalContentWindow.show when there already is a ModalWindow being displayed creates a new ModalWindow that sits over the top of the original one meaning I now have 2 windows that the user has to close. My aim is to have only one ModalWindow but just switch its contents. Aren't you missing a : modalContentWindow.show(target) in the onClick callback ? 2010/1/25 Chris Colman chr...@stepaheadsoftware.com Searching Nable shows this question has been asked before but there none of the solutions proposed there work for me. I have a link in PanelA that, when clicked, should cause PanelB to display in the same ModalWindow (PanelB replaced PanelA). The onClick event handler does something like the following: add ( new AjaxLink(selectionLink) { public void onClick(AjaxRequestTarget target) { PanelB panelB = new PanelB(modalContentWindow.getContentId()); modalContentWindow.setContent(panelB); modalContentWindow.setTitle(Hi, I'm PanelB); target.addComponent(panelB); } } ); When the link is pressed the panel A content disappears (popup content goes blank) but the panel B content does not appear. Should this work or have I missed something? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Fernando Wermus. www.linkedin.com/in/fernandowermus
Re: How to change content in ModalWindow
In my case, I do activate the modalWindow doing, modalWindow.show but It seems to have the same problem. On Sun, Feb 7, 2010 at 11:22 PM, Fernando Wermus fernando.wer...@gmail.comwrote: Chris, I have the same problem when switching content into a modal window. It appears a modal window blank content too. Do you have solved it? thanks in advance. On Mon, Jan 25, 2010 at 3:03 PM, Chris Colman chr...@stepaheadsoftware.com wrote: My use case might explain the situation better: User visits a page that needs authentication. A ModalWindow appears with a username/password field pair and a 'sign in' button. In case they are a new user it also contains a 'create account' button. If they click this then the contents of the ModalWindow changes to hold more fields, name, email, password, confirm password etc., sufficient to creating a new account. I wanted to do a nice smooth switch from the 'sign in' presentation to the 'create account' presentation without the flicker of closing the form and bringing up a new form. -Original Message- From: Chris Colman [mailto:chr...@stepaheadsoftware.com] Sent: Tuesday, 26 January 2010 3:58 AM To: users@wicket.apache.org Subject: RE: How to change content in ModalWindow I tried that initially but calling modalContentWindow.show when there already is a ModalWindow being displayed creates a new ModalWindow that sits over the top of the original one meaning I now have 2 windows that the user has to close. My aim is to have only one ModalWindow but just switch its contents. Aren't you missing a : modalContentWindow.show(target) in the onClick callback ? 2010/1/25 Chris Colman chr...@stepaheadsoftware.com Searching Nable shows this question has been asked before but there none of the solutions proposed there work for me. I have a link in PanelA that, when clicked, should cause PanelB to display in the same ModalWindow (PanelB replaced PanelA). The onClick event handler does something like the following: add ( new AjaxLink(selectionLink) { public void onClick(AjaxRequestTarget target) { PanelB panelB = new PanelB(modalContentWindow.getContentId()); modalContentWindow.setContent(panelB); modalContentWindow.setTitle(Hi, I'm PanelB); target.addComponent(panelB); } } ); When the link is pressed the panel A content disappears (popup content goes blank) but the panel B content does not appear. Should this work or have I missed something? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Fernando Wermus. www.linkedin.com/in/fernandowermus -- Fernando Wermus. www.linkedin.com/in/fernandowermus
Re: Wicket best practice
Look at jWeekend's LegUp as an example of a working app: http://www.jweekend.com/dev/LegUp However, with no offense intended, here's my $0.02 Creating a Wicket app for people from a spec file is a great idea. But doing it without understanding how Wicket works is a bad idea. You'll likely end up introducing more bad practices to people who are new to Wicket. It's a great idea - and I think it could be a great thing for Wicket, but I'd highly suggest that you team up with some Wicket professionals so that you write it the right way. There are a few key things to understand about Wicket that most newcomers don't just get until they've used it for a while. -- Jeremy Thomerson http://www.wickettraining.com On Sat, Feb 6, 2010 at 3:27 PM, Vineet Manohar vineet.mano...@gmail.comwrote: Thanks. I will look at the maven archetype. More than just pages, I am looking at links, forms, inputs etc. For example, to create a link I am either use a href= in the HTML, or I can use Wicket link component model, what's the difference and which one should I use? Btw, my goal is to automatically generate a working Wicket app with full database integration using JPA and security integration as well. The Seam code generation project that I did was a success, you can write a spec like this one: http://code.google.com/p/clickframes-seam-issuetracker-demo/source/browse/trunk/src/main/clickframes/appspec.xml and instantly get a working app like this: live demo link: http://demo.clickframes.org/tracker Of course you can add/remove pages from the app by changing the appspec xml. I am trying to replicate the same thing for Wicket, hoping to get some help from user community! On Sat, Feb 6, 2010 at 4:09 PM, Riyad Kalla rka...@gmail.com wrote: Vineet, very cool stuff you are wooing on. As for best practices with regard to layout, there is actually a Maven Wicket archetype that would probably answer those questions well. From what I remember its pretty straight forward maven web layout. And yes, HTML and Java source are in same main packages together. On Feb 6, 2010 1:33 PM, Vineet Manohar vineet.mano...@gmail.com wrote: Hi, I am trying to write a code generator (using Clickframes code generation framework) which would generate a fully working Wicket project directly from the Spec. Is there a document which describes the best practice for folder/package structure in a wicket project. To write the code generator, the only thing I need to know is the Wicket project structure that I should be created. For example: 1) should html files be colocated in src/main/java/com/mypackage/ along with Java files (as in the helloworld example) or in src/main/webapp. 2) should there be one html file per page (I am assuming yes) ... and other such questions related to folder structure I am the lead developer of open source code generation framework Clickframes (http://www.clickframes.org) and have written a similar code generator for JSF/Seam which instantly gives you a working app directly from the spec which the developer can then customize. I think a similar approach for Wicket would be very helpful to Wicket users who are trying to start a brand new project. Here's what I have so far. http://code.google.com/p/clickframes-wicket-plugin/ I am a Wicket novice, so any help or direction is appreciated. Thanks, Vineet Manohar http://www.vineetmanohar.com
Loading properties file while using Spring @L
I use Wicket, Spring and wicket-spring extensions. Spring configuration loads properties from config/env.properties file using PropertyPlaceholderConfigurer. I would like to add more properties to this file and read them from my Wicket application class. I tried to inject a Spring Resource using @SpringBean annotation, but it doesn't work in the my Wicket application class. I am looking for recommendations on how to read properties files from wicket application class. Ideally I would like to use a single properties file read by Wicket and Spring. Thanks, Alec - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket best practice
Another example of an app builder is the Sakai App Builder, which is an Eclipse plugin for quickly creating an example tool/app integrated into the Sakai Framework. http://confluence.sakaiproject.org/display/BOOT/Sakai+App+Builder It allows you to select from a number of view technologies (JSF,JSP etc) and I added the Wicket components to allow it to generate a Sakai Wicket app. It could probably do with an overhaul from the things I've learned in the past year or so ;) It can create just the basic skeleton or a working app using the Sakai API, so we use it a lot for new developers to Sakai as a launchpad app. The working app is still quite basic though since we want the developers to follow established best practices in extending it and creating their own Sakai tool. cheers, Steve On 08/02/2010, at 3:19 PM, Jeremy Thomerson wrote: Look at jWeekend's LegUp as an example of a working app: http://www.jweekend.com/dev/LegUp However, with no offense intended, here's my $0.02 Creating a Wicket app for people from a spec file is a great idea. But doing it without understanding how Wicket works is a bad idea. You'll likely end up introducing more bad practices to people who are new to Wicket. It's a great idea - and I think it could be a great thing for Wicket, but I'd highly suggest that you team up with some Wicket professionals so that you write it the right way. There are a few key things to understand about Wicket that most newcomers don't just get until they've used it for a while. -- Jeremy Thomerson http://www.wickettraining.com On Sat, Feb 6, 2010 at 3:27 PM, Vineet Manohar vineet.mano...@gmail.comwrote: Thanks. I will look at the maven archetype. More than just pages, I am looking at links, forms, inputs etc. For example, to create a link I am either use a href= in the HTML, or I can use Wicket link component model, what's the difference and which one should I use? Btw, my goal is to automatically generate a working Wicket app with full database integration using JPA and security integration as well. The Seam code generation project that I did was a success, you can write a spec like this one: http://code.google.com/p/clickframes-seam-issuetracker-demo/source/browse/trunk/src/main/clickframes/appspec.xml and instantly get a working app like this: live demo link: http://demo.clickframes.org/tracker Of course you can add/remove pages from the app by changing the appspec xml. I am trying to replicate the same thing for Wicket, hoping to get some help from user community! On Sat, Feb 6, 2010 at 4:09 PM, Riyad Kalla rka...@gmail.com wrote: Vineet, very cool stuff you are wooing on. As for best practices with regard to layout, there is actually a Maven Wicket archetype that would probably answer those questions well. From what I remember its pretty straight forward maven web layout. And yes, HTML and Java source are in same main packages together. On Feb 6, 2010 1:33 PM, Vineet Manohar vineet.mano...@gmail.com wrote: Hi, I am trying to write a code generator (using Clickframes code generation framework) which would generate a fully working Wicket project directly from the Spec. Is there a document which describes the best practice for folder/package structure in a wicket project. To write the code generator, the only thing I need to know is the Wicket project structure that I should be created. For example: 1) should html files be colocated in src/main/java/com/mypackage/ along with Java files (as in the helloworld example) or in src/main/webapp. 2) should there be one html file per page (I am assuming yes) ... and other such questions related to folder structure I am the lead developer of open source code generation framework Clickframes (http://www.clickframes.org) and have written a similar code generator for JSF/Seam which instantly gives you a working app directly from the spec which the developer can then customize. I think a similar approach for Wicket would be very helpful to Wicket users who are trying to start a brand new project. Here's what I have so far. http://code.google.com/p/clickframes-wicket-plugin/ I am a Wicket novice, so any help or direction is appreciated. Thanks, Vineet Manohar http://www.vineetmanohar.com smime.p7s Description: S/MIME cryptographic signature
Re: Wicket best practice
Hi Jeremy, Thanks for the link, I'll look into it. I agree with you completely that the best practices of Wicket should be baked into the code generator. My goal is to create a free open source framework which lets users generate Wicket apps. I am trying to create an initial code generator for Wicket, which professionals like yourself can then customize to create their own flavors of code generators. With Clickframes, you can tweak/override/extend select templates from one code generator to create another. In fact, I have sometimes customized templates for a specific app if I wanted slightly different implementation. I will do some more research into how Wicket works. What's a good resource, website or book to start? Vineet On Sun, Feb 7, 2010 at 11:19 PM, Jeremy Thomerson jer...@wickettraining.com wrote: Look at jWeekend's LegUp as an example of a working app: http://www.jweekend.com/dev/LegUp However, with no offense intended, here's my $0.02 Creating a Wicket app for people from a spec file is a great idea. But doing it without understanding how Wicket works is a bad idea. You'll likely end up introducing more bad practices to people who are new to Wicket. It's a great idea - and I think it could be a great thing for Wicket, but I'd highly suggest that you team up with some Wicket professionals so that you write it the right way. There are a few key things to understand about Wicket that most newcomers don't just get until they've used it for a while. -- Jeremy Thomerson http://www.wickettraining.com On Sat, Feb 6, 2010 at 3:27 PM, Vineet Manohar vineet.mano...@gmail.com wrote: Thanks. I will look at the maven archetype. More than just pages, I am looking at links, forms, inputs etc. For example, to create a link I am either use a href= in the HTML, or I can use Wicket link component model, what's the difference and which one should I use? Btw, my goal is to automatically generate a working Wicket app with full database integration using JPA and security integration as well. The Seam code generation project that I did was a success, you can write a spec like this one: http://code.google.com/p/clickframes-seam-issuetracker-demo/source/browse/trunk/src/main/clickframes/appspec.xml and instantly get a working app like this: live demo link: http://demo.clickframes.org/tracker Of course you can add/remove pages from the app by changing the appspec xml. I am trying to replicate the same thing for Wicket, hoping to get some help from user community! On Sat, Feb 6, 2010 at 4:09 PM, Riyad Kalla rka...@gmail.com wrote: Vineet, very cool stuff you are wooing on. As for best practices with regard to layout, there is actually a Maven Wicket archetype that would probably answer those questions well. From what I remember its pretty straight forward maven web layout. And yes, HTML and Java source are in same main packages together. On Feb 6, 2010 1:33 PM, Vineet Manohar vineet.mano...@gmail.com wrote: Hi, I am trying to write a code generator (using Clickframes code generation framework) which would generate a fully working Wicket project directly from the Spec. Is there a document which describes the best practice for folder/package structure in a wicket project. To write the code generator, the only thing I need to know is the Wicket project structure that I should be created. For example: 1) should html files be colocated in src/main/java/com/mypackage/ along with Java files (as in the helloworld example) or in src/main/webapp. 2) should there be one html file per page (I am assuming yes) ... and other such questions related to folder structure I am the lead developer of open source code generation framework Clickframes (http://www.clickframes.org) and have written a similar code generator for JSF/Seam which instantly gives you a working app directly from the spec which the developer can then customize. I think a similar approach for Wicket would be very helpful to Wicket users who are trying to start a brand new project. Here's what I have so far. http://code.google.com/p/clickframes-wicket-plugin/ I am a Wicket novice, so any help or direction is appreciated. Thanks, Vineet Manohar http://www.vineetmanohar.com
RE: How to change content in ModalWindow
No I couldn't manage to get it working so I tried a completely different approach. I ended up putting both the 'log in' and the 'create account' panels in the same modal window using a TabbedPanel... at least it works that way ;) Chris Chris, I have the same problem when switching content into a modal window. It appears a modal window blank content too. Do you have solved it? thanks in advance. On Mon, Jan 25, 2010 at 3:03 PM, Chris Colman chr...@stepaheadsoftware.comwrote: My use case might explain the situation better: User visits a page that needs authentication. A ModalWindow appears with a username/password field pair and a 'sign in' button. In case they are a new user it also contains a 'create account' button. If they click this then the contents of the ModalWindow changes to hold more fields, name, email, password, confirm password etc., sufficient to creating a new account. I wanted to do a nice smooth switch from the 'sign in' presentation to the 'create account' presentation without the flicker of closing the form and bringing up a new form. -Original Message- From: Chris Colman [mailto:chr...@stepaheadsoftware.com] Sent: Tuesday, 26 January 2010 3:58 AM To: users@wicket.apache.org Subject: RE: How to change content in ModalWindow I tried that initially but calling modalContentWindow.show when there already is a ModalWindow being displayed creates a new ModalWindow that sits over the top of the original one meaning I now have 2 windows that the user has to close. My aim is to have only one ModalWindow but just switch its contents. Aren't you missing a : modalContentWindow.show(target) in the onClick callback ? 2010/1/25 Chris Colman chr...@stepaheadsoftware.com Searching Nable shows this question has been asked before but there none of the solutions proposed there work for me. I have a link in PanelA that, when clicked, should cause PanelB to display in the same ModalWindow (PanelB replaced PanelA). The onClick event handler does something like the following: add ( new AjaxLink(selectionLink) { public void onClick(AjaxRequestTarget target) { PanelB panelB = new PanelB(modalContentWindow.getContentId()); modalContentWindow.setContent(panelB); modalContentWindow.setTitle(Hi, I'm PanelB); target.addComponent(panelB); } } ); When the link is pressed the panel A content disappears (popup content goes blank) but the panel B content does not appear. Should this work or have I missed something? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Fernando Wermus. www.linkedin.com/in/fernandowermus - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
modal window and changing content
Hi all, I have a problem using one modal window with several links which change the modal window content. Despite I do change window modal content panel for another panel before showing it, the modal window shows blank. I was trying to reproduce this behavior in a quick start without luck. I can confirm that the html is being replacing according to Wicket Ajax Debug. Any help I will really appreciate it. *INFO:* *INFO: * Initiating Ajax GET request on ?x=6*:1:vsContenido:showedView:moduloInscriptosEquipoA:menu:tabs-container:tabs:0:link:2:IBehaviorListener:0:random=0.6642544791102409 *INFO: *Invoking pre-call handler(s)... *INFO: *Received ajax response (3117 characters) *INFO: * ?xml version=1.0 encoding=UTF-8?ajax-responseheader-contribution encoding=wicket1 ![CDATA[head xmlns:wicket= http://wicket.apache.org script type=text/javascript src=resources/org.apache.wicket.markup.html.WicketEventReference/wicket-event.js/script script type=text/javascript src=resources/org.apache.wicket.ajax.WicketAjaxReference/wicket-ajax.js/script script type=text/javascript src=resources/org.apache.wicket.ajax.AbstractDefaultAjaxBehavior/wicket-ajax-debug.js/script script type=text/javascript id=wicket-ajax-debug-enable!--/*--![CDATA[/*!--*/ wicketAjaxDebugEnable=true; /*--]^]^*//script script type=text/javascript src=resources/org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow/res/modal.js/script link rel=stylesheet type=text/css href=resources/org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow/res/modal.css / /head]]/header-contributioncomponent id=dialog26 encoding=wicket1 ![CDATA[div id=dialog26 style=display:none div id=content27 div align=center form id=formulario48 action=?x=6*:1:vsContenido:showedView:moduloInscriptosEquipoA:vs:dialog:content:formulario:2:IFormSubmitListener:: method=postdiv style=display:noneinput type=hidden name=formulario48_hf_0 id=formulario48_hf_0 //div div Se está por inscribir. br/ Se enviará un mail /div button id=submit49 name=:submit value=[Inscriptos en el equipo: [Inscripto: ]^, Inscriptos en el equipo: []^]^ pendientes: []^ no inscriptos: []^ onclick=this.className='ButtonDesactivado';this.disabled=true;wicketShow('veil');var wcall=wicketSubmitFormById('formulario48', '?x=6*:1:vsContenido:showedView:moduloInscriptosEquipoA:vs:dialog:content:formulario:submit:2:IActivePageBehaviorListener:0:-1%26wicket:ignoreIfNotActive%3Dtrue', ':submit' ,function(){;wicketHide('veil');}.bind(this),function() { ;wicketHide('veil');}.bind(this), function() {return Wicket.$$(this)amp;amp;Wicket.$$('formulario48')}.bind(this));;; return false; type=submit Aceptar img align=absmiddle src=images/buttonOk.jpg /button /form /div /div /div]]/componentevaluate![CDATA[var element = document.getElementById(content27); var settings = new Object(); settings.minWidth=200; settings.minHeight=200; settings.className=w_blue; settings.width=825; settings.height=570; settings.resizable=false; settings.widthUnit=px; settings.heightUnit=px; settings.element = element; settings.title=Dialogo; settings.mask=semi-transparent; settings.onCloseButton = function() { wicketShow('veil');var wcall=wicketAjaxGet('?x=6*:1:vsContenido:showedView:moduloInscriptosEquipoA:vs:dialog:2:IBehaviorListener:0:-1',function(){;wicketHide('veil');}.bind(this),function() { ;wicketHide('veil');}.bind(this), function() {return Wicket.$('dialog26') != null;}.bind(this));return !wcall;}; Wicket.Window.create(settings).show(); ]]/evaluate/ajax-response *INFO: *Response parsed. Now invoking steps... *INFO: *Response processed successfully. *INFO: *Invoking post-call handler(s)... *INFO: *refocus last focused component not needed/allowed -- Fernando Wermus. www.linkedin.com/in/fernandowermus
Wicket Layout
Hi guys; I think wicket is the best java web framework out there. However , i really would like be to able to create a layout like this : http://demos.dojotoolkit.org/demos/mail/ Does the current dojo integration support this. Is it possible to create such a layout with vanilla wicket? regards. Josh
Re: Wicket Layout
it's definitely an involved layout ... but nothing here looks out of the question. tabbedpanel's for Inbox | Contacts the tree from wicket-extensions for the folder viewer the datatable from wicket-extensions for the lsit of messages there are modal windows, all available so yes, wicket should be able to support this. not sure about the dojo integration On Feb 7, 2010, at 9:42 PM, Josh Kamau wrote: Hi guys; I think wicket is the best java web framework out there. However , i really would like be to able to create a layout like this : http://demos.dojotoolkit.org/demos/mail/ Does the current dojo integration support this. Is it possible to create such a layout with vanilla wicket? regards. Josh To our success! Mystic Coders, LLC | Code Magic | www.mysticcoders.com ANDREW LOMBARDI | and...@mysticcoders.com 2321 E 4th St. Ste C-128, Santa Ana CA 92705 ofc: 714-816-4488 fax: 714-782-6024 cell: 714-697-8046 linked-in: http://www.linkedin.com/in/andrewlombardi twitter: http://www.twitter.com/kinabalu Eco-Tip: Printing e-mails is usually a waste. This message is for the named person's use only. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient.
Re: Wicket Layout
Andrew ; How about the splitPanel ? and the accordion? On Mon, Feb 8, 2010 at 9:01 AM, Andrew Lombardi and...@mysticcoders.comwrote: it's definitely an involved layout ... but nothing here looks out of the question. tabbedpanel's for Inbox | Contacts the tree from wicket-extensions for the folder viewer the datatable from wicket-extensions for the lsit of messages there are modal windows, all available so yes, wicket should be able to support this. not sure about the dojo integration On Feb 7, 2010, at 9:42 PM, Josh Kamau wrote: Hi guys; I think wicket is the best java web framework out there. However , i really would like be to able to create a layout like this : http://demos.dojotoolkit.org/demos/mail/ Does the current dojo integration support this. Is it possible to create such a layout with vanilla wicket? regards. Josh To our success! Mystic Coders, LLC | Code Magic | www.mysticcoders.com ANDREW LOMBARDI | and...@mysticcoders.com 2321 E 4th St. Ste C-128, Santa Ana CA 92705 ofc: 714-816-4488 fax: 714-782-6024 cell: 714-697-8046 linked-in: http://www.linkedin.com/in/andrewlombardi twitter: http://www.twitter.com/kinabalu Eco-Tip: Printing e-mails is usually a waste. This message is for the named person's use only. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient.
Re: Wicket best practice
Wicket in Action is the best. Make sure that you really grasp the power behind models (the IModel interface implementations) and especially detachable models (i.e. LoadableDetachableModel). Don't just shove big collections of domain objects into the page or repeating views just because you can. Hope this helps. Looking forward to seeing the outcome! -- Jeremy Thomerson http://www.wickettraining.com On Sun, Feb 7, 2010 at 11:17 PM, Vineet Manohar vineet.mano...@gmail.comwrote: Hi Jeremy, Thanks for the link, I'll look into it. I agree with you completely that the best practices of Wicket should be baked into the code generator. My goal is to create a free open source framework which lets users generate Wicket apps. I am trying to create an initial code generator for Wicket, which professionals like yourself can then customize to create their own flavors of code generators. With Clickframes, you can tweak/override/extend select templates from one code generator to create another. In fact, I have sometimes customized templates for a specific app if I wanted slightly different implementation. I will do some more research into how Wicket works. What's a good resource, website or book to start? Vineet On Sun, Feb 7, 2010 at 11:19 PM, Jeremy Thomerson jer...@wickettraining.com wrote: Look at jWeekend's LegUp as an example of a working app: http://www.jweekend.com/dev/LegUp However, with no offense intended, here's my $0.02 Creating a Wicket app for people from a spec file is a great idea. But doing it without understanding how Wicket works is a bad idea. You'll likely end up introducing more bad practices to people who are new to Wicket. It's a great idea - and I think it could be a great thing for Wicket, but I'd highly suggest that you team up with some Wicket professionals so that you write it the right way. There are a few key things to understand about Wicket that most newcomers don't just get until they've used it for a while. -- Jeremy Thomerson http://www.wickettraining.com On Sat, Feb 6, 2010 at 3:27 PM, Vineet Manohar vineet.mano...@gmail.com wrote: Thanks. I will look at the maven archetype. More than just pages, I am looking at links, forms, inputs etc. For example, to create a link I am either use a href= in the HTML, or I can use Wicket link component model, what's the difference and which one should I use? Btw, my goal is to automatically generate a working Wicket app with full database integration using JPA and security integration as well. The Seam code generation project that I did was a success, you can write a spec like this one: http://code.google.com/p/clickframes-seam-issuetracker-demo/source/browse/trunk/src/main/clickframes/appspec.xml and instantly get a working app like this: live demo link: http://demo.clickframes.org/tracker Of course you can add/remove pages from the app by changing the appspec xml. I am trying to replicate the same thing for Wicket, hoping to get some help from user community! On Sat, Feb 6, 2010 at 4:09 PM, Riyad Kalla rka...@gmail.com wrote: Vineet, very cool stuff you are wooing on. As for best practices with regard to layout, there is actually a Maven Wicket archetype that would probably answer those questions well. From what I remember its pretty straight forward maven web layout. And yes, HTML and Java source are in same main packages together. On Feb 6, 2010 1:33 PM, Vineet Manohar vineet.mano...@gmail.com wrote: Hi, I am trying to write a code generator (using Clickframes code generation framework) which would generate a fully working Wicket project directly from the Spec. Is there a document which describes the best practice for folder/package structure in a wicket project. To write the code generator, the only thing I need to know is the Wicket project structure that I should be created. For example: 1) should html files be colocated in src/main/java/com/mypackage/ along with Java files (as in the helloworld example) or in src/main/webapp. 2) should there be one html file per page (I am assuming yes) ... and other such questions related to folder structure I am the lead developer of open source code generation framework Clickframes (http://www.clickframes.org) and have written a similar code generator for JSF/Seam which instantly gives you a working app directly from the spec which the developer can then customize. I think a similar approach for Wicket would be very helpful to Wicket users who are trying to start a brand new project. Here's what I have so far. http://code.google.com/p/clickframes-wicket-plugin/ I am a Wicket novice, so any help or direction is appreciated. Thanks, Vineet
Re: Wicket Layout
not sure about accordion or split panel, you can definitely split panels in various ways but to make them resizable would be more of a challenge. might look at some of the integrations with jquery or yui. I believe both of those frameworks have something similar, and I'd guess the respective wicket projects working on integration have them, or could be added. i don't know enough about dojo though, sorry On Feb 7, 2010, at 10:09 PM, Josh Kamau wrote: Andrew ; How about the splitPanel ? and the accordion? On Mon, Feb 8, 2010 at 9:01 AM, Andrew Lombardi and...@mysticcoders.comwrote: it's definitely an involved layout ... but nothing here looks out of the question. tabbedpanel's for Inbox | Contacts the tree from wicket-extensions for the folder viewer the datatable from wicket-extensions for the lsit of messages there are modal windows, all available so yes, wicket should be able to support this. not sure about the dojo integration On Feb 7, 2010, at 9:42 PM, Josh Kamau wrote: Hi guys; I think wicket is the best java web framework out there. However , i really would like be to able to create a layout like this : http://demos.dojotoolkit.org/demos/mail/ Does the current dojo integration support this. Is it possible to create such a layout with vanilla wicket? regards. Josh To our success! Mystic Coders, LLC | Code Magic | www.mysticcoders.com ANDREW LOMBARDI | and...@mysticcoders.com 2321 E 4th St. Ste C-128, Santa Ana CA 92705 ofc: 714-816-4488 fax: 714-782-6024 cell: 714-697-8046 linked-in: http://www.linkedin.com/in/andrewlombardi twitter: http://www.twitter.com/kinabalu Eco-Tip: Printing e-mails is usually a waste. This message is for the named person's use only. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. To our success! Mystic Coders, LLC | Code Magic | www.mysticcoders.com ANDREW LOMBARDI | and...@mysticcoders.com 2321 E 4th St. Ste C-128, Santa Ana CA 92705 ofc: 714-816-4488 fax: 714-782-6024 cell: 714-697-8046 linked-in: http://www.linkedin.com/in/andrewlombardi twitter: http://www.twitter.com/kinabalu Eco-Tip: Printing e-mails is usually a waste. This message is for the named person's use only. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient.
Example for Combobox wanted
Hi, I'm looking for an example of a ComboBox which is a combination of a textfield and DropDownChoice. It should be possible to type in a new value and submit it, or to select from the values in the DropDownChoice and submit it. The AJAX autocomplete example seems to be good, but you have to type in one character to get a choice ... Thanks, Peter - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Loading properties file while using Spring @L
map the properties to a bean and inject that -igor On Sunday, February 7, 2010, Alec Swan alecs...@gmail.com wrote: I use Wicket, Spring and wicket-spring extensions. Spring configuration loads properties from config/env.properties file using PropertyPlaceholderConfigurer. I would like to add more properties to this file and read them from my Wicket application class. I tried to inject a Spring Resource using @SpringBean annotation, but it doesn't work in the my Wicket application class. I am looking for recommendations on how to read properties files from wicket application class. Ideally I would like to use a single properties file read by Wicket and Spring. Thanks, Alec - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: [announce] better look modern css for wicket examples contest
Yeah I know. But some would probably use it as a starting point in design as well. 2010/2/7 Andrew Lombardi and...@mysticcoders.com This isn't a modification for all the wicket examples, this is just for the maven archetype, the examples are a much larger undertaking. Focus here was to make it simple, and provide some references that people could find useful. There's no reason to extrapolate out and design a crazy quickstart page because it will be deleted pretty quickly (we hope) On Feb 7, 2010, at 1:25 AM, nino martinez wael wrote: Great. We need more people though to make it a real contest! :) And more focus on looks. 2010/2/6 Andrew Lombardi and...@mysticcoders.com I agree. I had a few moments tonight and put this together. It includes the standard wicket label message showing that Wicket is parsing properly. It also includes links to: examples, javadoc, books about wicket, and blogs. and will show the version you used to install from archetype. Thoughts? You can click through on the bug and see an attached screenshot https://issues.apache.org/jira/browse/WICKET-2724 On Feb 2, 2010, at 11:26 AM, mbrictson wrote: In addition to the examples, I think it would be nice to apply a pleasant CSS skin to the Wicket quickstart archetype. Instead of an un-styled QuickStart message, how about a nicely formatted short intro with links to tutorials, reference documentation, etc.? As an example, I like the it worked! welcome page that Django provides: http://i46.tinypic.com/2q025g9.jpg nino martinez wael wrote: Hi Someone mentioned that we could have a better look feel for wicket, since there are no designers in the core team. I proposed a contest, to make the coolest slickest css for wicket. So please feel free to apply. Requirements: your css should be compatible with the basic browsers, Firefox , IE , Safari etc. And retain heavy use of embedded js. And it should be a drop on, using existing id's hierachy for design. Practical info: The contest ends in 2 months April 2nd. Get the wicket examples here: http://svn.apache.org/repos/asf/wicket/trunk/wicket-examples/ If you need it you can put your css in svn at wicketstuff, write to this list for details on howto get commit rights, you should add your css to sandbox and sf user name ( https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/sandbox/). Yes as with all contest there is a prize, you can win the wicket t-shir along with the honor if your css are the winner. This http://www.cafepress.com/apachewicket.317298148 or this http://www.cafepress.com/apachewicket.317298083 depending on your age :) Just reply to this thread to enter the contest. Regards Nino on behalf of the Wicket People -- View this message in context: http://old.nabble.com/-announce--better-look---modern-css-for-wicket-examples-contest-tp27425107p27426016.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org To our success! Mystic Coders, LLC | Code Magic | www.mysticcoders.com ANDREW LOMBARDI | and...@mysticcoders.com 2321 E 4th St. Ste C-128, Santa Ana CA 92705 ofc: 714-816-4488 fax: 714-782-6024 cell: 714-697-8046 linked-in: http://www.linkedin.com/in/andrewlombardi twitter: http://www.twitter.com/kinabalu Eco-Tip: Printing e-mails is usually a waste. This message is for the named person's use only. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. To our success! Mystic Coders, LLC | Code Magic | www.mysticcoders.com ANDREW LOMBARDI | and...@mysticcoders.com 2321 E 4th St. Ste C-128, Santa Ana CA 92705 ofc: 714-816-4488 fax: 714-782-6024 cell: 714-697-8046 linked-in: http://www.linkedin.com/in/andrewlombardi twitter: http://www.twitter.com/kinabalu Eco-Tip: Printing e-mails is usually a waste. This message is for the named person's use only. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient.
Re: [announce] better look modern css for wicket examples contest
Design as in programming? or design as in graphical? I think the intent I gathered from mbrictson was to put a semi-nicer look on a plain page, and provide useful links for new folks. Things like the examples which should be perused a lot while first learning Wicket. It's a quickstart, it should take on a tone of simplicity. Just like the Django quickstart, which doesn't aim to do anything other than shove you in the right direction On Feb 7, 2010, at 11:23 PM, nino martinez wael wrote: Yeah I know. But some would probably use it as a starting point in design as well. 2010/2/7 Andrew Lombardi and...@mysticcoders.com This isn't a modification for all the wicket examples, this is just for the maven archetype, the examples are a much larger undertaking. Focus here was to make it simple, and provide some references that people could find useful. There's no reason to extrapolate out and design a crazy quickstart page because it will be deleted pretty quickly (we hope) On Feb 7, 2010, at 1:25 AM, nino martinez wael wrote: Great. We need more people though to make it a real contest! :) And more focus on looks. 2010/2/6 Andrew Lombardi and...@mysticcoders.com I agree. I had a few moments tonight and put this together. It includes the standard wicket label message showing that Wicket is parsing properly. It also includes links to: examples, javadoc, books about wicket, and blogs. and will show the version you used to install from archetype. Thoughts? You can click through on the bug and see an attached screenshot https://issues.apache.org/jira/browse/WICKET-2724 On Feb 2, 2010, at 11:26 AM, mbrictson wrote: In addition to the examples, I think it would be nice to apply a pleasant CSS skin to the Wicket quickstart archetype. Instead of an un-styled QuickStart message, how about a nicely formatted short intro with links to tutorials, reference documentation, etc.? As an example, I like the it worked! welcome page that Django provides: http://i46.tinypic.com/2q025g9.jpg nino martinez wael wrote: Hi Someone mentioned that we could have a better look feel for wicket, since there are no designers in the core team. I proposed a contest, to make the coolest slickest css for wicket. So please feel free to apply. Requirements: your css should be compatible with the basic browsers, Firefox , IE , Safari etc. And retain heavy use of embedded js. And it should be a drop on, using existing id's hierachy for design. Practical info: The contest ends in 2 months April 2nd. Get the wicket examples here: http://svn.apache.org/repos/asf/wicket/trunk/wicket-examples/ If you need it you can put your css in svn at wicketstuff, write to this list for details on howto get commit rights, you should add your css to sandbox and sf user name ( https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/sandbox/). Yes as with all contest there is a prize, you can win the wicket t-shir along with the honor if your css are the winner. This http://www.cafepress.com/apachewicket.317298148 or this http://www.cafepress.com/apachewicket.317298083 depending on your age :) Just reply to this thread to enter the contest. Regards Nino on behalf of the Wicket People -- View this message in context: http://old.nabble.com/-announce--better-look---modern-css-for-wicket-examples-contest-tp27425107p27426016.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org To our success! Mystic Coders, LLC | Code Magic | www.mysticcoders.com ANDREW LOMBARDI | and...@mysticcoders.com 2321 E 4th St. Ste C-128, Santa Ana CA 92705 ofc: 714-816-4488 fax: 714-782-6024 cell: 714-697-8046 linked-in: http://www.linkedin.com/in/andrewlombardi twitter: http://www.twitter.com/kinabalu Eco-Tip: Printing e-mails is usually a waste. This message is for the named person's use only. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. To our success! Mystic Coders, LLC | Code Magic | www.mysticcoders.com ANDREW LOMBARDI | and...@mysticcoders.com 2321 E 4th St. Ste C-128, Santa Ana CA 92705 ofc: 714-816-4488 fax: 714-782-6024 cell: 714-697-8046 linked-in: http://www.linkedin.com/in/andrewlombardi twitter: http://www.twitter.com/kinabalu Eco-Tip: Printing e-mails is usually a waste. This message is for the named person's use only. You must not, directly or indirectly, use, disclose, distribute, print, or copy