Re: [Wicket-user] Constructing a list of links from java
Hello Dustin, You can also find more information on the wiki: http://cwiki.apache.org/WICKET/listview-and-other-repeaters.html Regards, Erik. Dustin Sallings wrote: I am trying to convert an old struts and tiles/jsp app to wicket. This app has a bunch of links that get added programatically. I'd like my template to have a ul to which I'd append several li elements containing links. What is this obvious thing I'm missing? -- Erik van Oosten http://www.day-to-day-stuff.blogspot.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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Constructing a list of links from java
aye, I guess I should be better to reference towards the wiki/ other example pages... I guess that would give users a better toolbox, since there are a fairly bunch of documentation out there. regards Nino -Original Message- From: [EMAIL PROTECTED] on behalf of Erik van Oosten Sent: Fri 22-12-2006 09:00 To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Constructing a list of links from java Hello Dustin, You can also find more information on the wiki: http://cwiki.apache.org/WICKET/listview-and-other-repeaters.html Regards, Erik. Dustin Sallings wrote: I am trying to convert an old struts and tiles/jsp app to wicket. This app has a bunch of links that get added programatically. I'd like my template to have a ul to which I'd append several li elements containing links. What is this obvious thing I'm missing? -- Erik van Oosten http://www.day-to-day-stuff.blogspot.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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Login to wicket-app from another site
You do not have to use the existing signin page. You could write a page that has a constructor with 1 parameter of type PageParameters. Then mount that page to some URL and call it directly from your other application. The username and password can be in post parameters or in the URL directly. In the constructor the page would authenticate the user and when done throw a RestartResponseException to render the home page. Regards, Erik. Konstantinos Lazouras wrote: Is there a better way to do this? -konstantinos -- Erik van Oosten http://www.day-to-day-stuff.blogspot.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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] multiple links in article
Hi all, We are working on a CMS which uses Wicket and Jackrabbit. Currently we're working on linking between different pieces of content. We want to have an article which has several links to other content, but how do we render that with wicket. Normally i would use a repeater when i don't know how many items i have to add, but in this case the links have to be placed between text. like so: In the previous article(link) we referred to the site from Wicket(link). and so. How could we achieve this while using Wicket? regards, Ted - 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.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Wicket and Resource Injection in EJB3
On 12/20/06, Filippo Diotalevi [EMAIL PROTECTED] wrote: On 12/20/06, Ayodeji Aladejebi [EMAIL PROTECTED] wrote: How easy will it be to take advantage of container resource injection when deploying wicket as client tier in glassfish server for instance. Hi Ayodeji, as Igor has already pointed out, I've written a patch to extend JEE dependency injection to wicket pages. Hi all, I've updated the wicket-javaee integration module so that it now supports three java ee 5 annotations: @EJB, @PersistenceUnit and @Resource. You can find the patch attached to the issue: http://issues.apache.org/jira/browse/WICKET-174 In particular (sorry, I've made a bit of a mess with attachments) the module (with sources and mvn build) is at: http://issues.apache.org/jira/secure/attachment/12347734/wicket-javaee-snapshot-1006.zip For the documentation check the page: http://code.google.com/p/fdiotalevi/wiki/WicketJavaEEIntegration where you'll also find two sample applications. -- Filippo Diotalevi [EMAIL PROTECTED] http://www.diotalevi.com/weblog http://www.jugmilano.it - 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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Wicket and Resource Injection in EJB3
Are we going to add this to core or as a wicket-stuff project? Martijn On 12/22/06, Filippo Diotalevi [EMAIL PROTECTED] wrote: On 12/20/06, Filippo Diotalevi [EMAIL PROTECTED] wrote: On 12/20/06, Ayodeji Aladejebi [EMAIL PROTECTED] wrote: How easy will it be to take advantage of container resource injection when deploying wicket as client tier in glassfish server for instance. Hi Ayodeji, as Igor has already pointed out, I've written a patch to extend JEE dependency injection to wicket pages. Hi all, I've updated the wicket-javaee integration module so that it now supports three java ee 5 annotations: @EJB, @PersistenceUnit and @Resource. You can find the patch attached to the issue: http://issues.apache.org/jira/browse/WICKET-174 In particular (sorry, I've made a bit of a mess with attachments) the module (with sources and mvn build) is at: http://issues.apache.org/jira/secure/attachment/12347734/wicket-javaee-snapshot-1006.zip For the documentation check the page: http://code.google.com/p/fdiotalevi/wiki/WicketJavaEEIntegration where you'll also find two sample applications. -- Filippo Diotalevi [EMAIL PROTECTED] http://www.diotalevi.com/weblog http://www.jugmilano.it - 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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Vote for Wicket at the http://www.thebeststuffintheworld.com/vote_for/wicket Wicket 1.2.3 is as easy as 1-2-3. Download Wicket now! http://wicketframework.org - 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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] multiple links in article
Hi Ted, You probably have to change the text yourself. URLs you can get from the method Component#urlFor(Class,PageParameters). Regards, Erik. Ted Roeloffzen schreef: Hi all, We are working on a CMS which uses Wicket and Jackrabbit. Currently we're working on linking between different pieces of content. We want to have an article which has several links to other content, but how do we render that with wicket. Normally i would use a repeater when i don't know how many items i have to add, but in this case the links have to be placed between text. like so: In the previous article(link) we referred to the site from Wicket(link). and so. How could we achieve this while using Wicket? regards, Ted - 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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Erik van Oosten http://www.day-to-day-stuff.blogspot.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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Wicket and Resource Injection in EJB3
I really hope that JEE 5 support should be a first class citizen in wicket. my organization for instance is speedily adopting glassfish for all our management solutions of which wicket is now even the defacto client tier displacing even JSF which should be more native to JEE. On 12/22/06, Martijn Dashorst [EMAIL PROTECTED] wrote: Are we going to add this to core or as a wicket-stuff project? Martijn On 12/22/06, Filippo Diotalevi [EMAIL PROTECTED] wrote: On 12/20/06, Filippo Diotalevi [EMAIL PROTECTED] wrote: On 12/20/06, Ayodeji Aladejebi [EMAIL PROTECTED] wrote: How easy will it be to take advantage of container resource injection when deploying wicket as client tier in glassfish server for instance. Hi Ayodeji, as Igor has already pointed out, I've written a patch to extend JEE dependency injection to wicket pages. Hi all, I've updated the wicket-javaee integration module so that it now supports three java ee 5 annotations: @EJB, @PersistenceUnit and @Resource. You can find the patch attached to the issue: http://issues.apache.org/jira/browse/WICKET-174 In particular (sorry, I've made a bit of a mess with attachments) the module (with sources and mvn build) is at: http://issues.apache.org/jira/secure/attachment/12347734/wicket-javaee-snapshot-1006.zip For the documentation check the page: http://code.google.com/p/fdiotalevi/wiki/WicketJavaEEIntegration where you'll also find two sample applications. -- Filippo Diotalevi [EMAIL PROTECTED] http://www.diotalevi.com/weblog http://www.jugmilano.it - 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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Vote for Wicket at the http://www.thebeststuffintheworld.com/vote_for/wicket Wicket 1.2.3 is as easy as 1-2-3. Download Wicket now! http://wicketframework.org - 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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Wicket and Resource Injection in EJB3
side by side with the spring projects looks good to me. johan On 12/22/06, Martijn Dashorst [EMAIL PROTECTED] wrote: Are we going to add this to core or as a wicket-stuff project? Martijn On 12/22/06, Filippo Diotalevi [EMAIL PROTECTED] wrote: On 12/20/06, Filippo Diotalevi [EMAIL PROTECTED] wrote: On 12/20/06, Ayodeji Aladejebi [EMAIL PROTECTED] wrote: How easy will it be to take advantage of container resource injection when deploying wicket as client tier in glassfish server for instance. Hi Ayodeji, as Igor has already pointed out, I've written a patch to extend JEE dependency injection to wicket pages. Hi all, I've updated the wicket-javaee integration module so that it now supports three java ee 5 annotations: @EJB, @PersistenceUnit and @Resource. You can find the patch attached to the issue: http://issues.apache.org/jira/browse/WICKET-174 In particular (sorry, I've made a bit of a mess with attachments) the module (with sources and mvn build) is at: http://issues.apache.org/jira/secure/attachment/12347734/wicket-javaee-snapshot-1006.zip For the documentation check the page: http://code.google.com/p/fdiotalevi/wiki/WicketJavaEEIntegration where you'll also find two sample applications. -- Filippo Diotalevi [EMAIL PROTECTED] http://www.diotalevi.com/weblog http://www.jugmilano.it - 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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Vote for Wicket at the http://www.thebeststuffintheworld.com/vote_for/wicket Wicket 1.2.3 is as easy as 1-2-3. Download Wicket now! http://wicketframework.org - 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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Wicket and Resource Injection in EJB3
fillipo, i just tested your patch with glassfish now, works great at least with @PersistenceUnit ...two thumbs On 12/22/06, Johan Compagner [EMAIL PROTECTED] wrote: side by side with the spring projects looks good to me. johan On 12/22/06, Martijn Dashorst [EMAIL PROTECTED] wrote: Are we going to add this to core or as a wicket-stuff project? Martijn On 12/22/06, Filippo Diotalevi [EMAIL PROTECTED] wrote: On 12/20/06, Filippo Diotalevi [EMAIL PROTECTED] wrote: On 12/20/06, Ayodeji Aladejebi [EMAIL PROTECTED] wrote: How easy will it be to take advantage of container resource injection when deploying wicket as client tier in glassfish server for instance. Hi Ayodeji, as Igor has already pointed out, I've written a patch to extend JEE dependency injection to wicket pages. Hi all, I've updated the wicket-javaee integration module so that it now supports three java ee 5 annotations: @EJB, @PersistenceUnit and @Resource. You can find the patch attached to the issue: http://issues.apache.org/jira/browse/WICKET-174 In particular (sorry, I've made a bit of a mess with attachments) the module (with sources and mvn build) is at: http://issues.apache.org/jira/secure/attachment/12347734/wicket-javaee-snapshot-1006.zip For the documentation check the page: http://code.google.com/p/fdiotalevi/wiki/WicketJavaEEIntegration where you'll also find two sample applications. -- Filippo Diotalevi [EMAIL PROTECTED] http://www.diotalevi.com/weblog http://www.jugmilano.it - 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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Vote for Wicket at the http://www.thebeststuffintheworld.com/vote_for/wicket Wicket 1.2.3 is as easy as 1-2-3. Download Wicket now! http://wicketframework.org - 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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Wicket and Resource Injection in EJB3
If this is a contribution which goes into our ASF repo, then we need a CLA from the contributor, no matter how much of it is a copy of existing wicket-spring. If you could also add a unit test like this one, to ensure correct headers: http://svn.apache.org/viewvc/incubator/wicket/trunk/wicket-spring/src/test/java/wicket/util/license/ApacheLicenseHeaderTest.java?view=co Frank On 12/22/06, Johan Compagner [EMAIL PROTECTED] wrote: side by side with the spring projects looks good to me. johan On 12/22/06, Martijn Dashorst [EMAIL PROTECTED] wrote: Are we going to add this to core or as a wicket-stuff project? Martijn On 12/22/06, Filippo Diotalevi [EMAIL PROTECTED] wrote: On 12/20/06, Filippo Diotalevi [EMAIL PROTECTED] wrote: On 12/20/06, Ayodeji Aladejebi [EMAIL PROTECTED] wrote: How easy will it be to take advantage of container resource injection when deploying wicket as client tier in glassfish server for instance. Hi Ayodeji, as Igor has already pointed out, I've written a patch to extend JEE dependency injection to wicket pages. Hi all, I've updated the wicket-javaee integration module so that it now supports three java ee 5 annotations: @EJB, @PersistenceUnit and @Resource. You can find the patch attached to the issue: http://issues.apache.org/jira/browse/WICKET-174 In particular (sorry, I've made a bit of a mess with attachments) the module (with sources and mvn build) is at: http://issues.apache.org/jira/secure/attachment/12347734/wicket-javaee-snapshot-1006.zip For the documentation check the page: http://code.google.com/p/fdiotalevi/wiki/WicketJavaEEIntegration where you'll also find two sample applications. -- Filippo Diotalevi [EMAIL PROTECTED] http://www.diotalevi.com/weblog http://www.jugmilano.it - 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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Vote for Wicket at the http://www.thebeststuffintheworld.com/vote_for/wicket Wicket 1.2.3 is as easy as 1-2-3. Download Wicket now! http://wicketframework.org - 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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Wicket and Resource Injection in EJB3
But who is going to maintain it then? Adding stuff to our core is good and all, but it needs to be maintained. Personally I think the best lifecycle is to become a Wicket stuff project, make sure it grows community support and then vote it into core. Or find one (better: 2) core committer sponsor willing to support it. Martijn On 12/22/06, Johan Compagner [EMAIL PROTECTED] wrote: side by side with the spring projects looks good to me. johan On 12/22/06, Martijn Dashorst [EMAIL PROTECTED] wrote: Are we going to add this to core or as a wicket-stuff project? Martijn On 12/22/06, Filippo Diotalevi [EMAIL PROTECTED] wrote: On 12/20/06, Filippo Diotalevi [EMAIL PROTECTED] wrote: On 12/20/06, Ayodeji Aladejebi [EMAIL PROTECTED] wrote: How easy will it be to take advantage of container resource injection when deploying wicket as client tier in glassfish server for instance. Hi Ayodeji, as Igor has already pointed out, I've written a patch to extend JEE dependency injection to wicket pages. Hi all, I've updated the wicket-javaee integration module so that it now supports three java ee 5 annotations: @EJB, @PersistenceUnit and @Resource. You can find the patch attached to the issue: http://issues.apache.org/jira/browse/WICKET-174 In particular (sorry, I've made a bit of a mess with attachments) the module (with sources and mvn build) is at: http://issues.apache.org/jira/secure/attachment/12347734/wicket-javaee-snapshot-1006.zip For the documentation check the page: http://code.google.com/p/fdiotalevi/wiki/WicketJavaEEIntegration where you'll also find two sample applications. -- Filippo Diotalevi [EMAIL PROTECTED] http://www.diotalevi.com/weblog http://www.jugmilano.it - 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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Vote for Wicket at the http://www.thebeststuffintheworld.com/vote_for/wicket Wicket 1.2.3 is as easy as 1-2-3. Download Wicket now! http://wicketframework.org - 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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Vote for Wicket at the http://www.thebeststuffintheworld.com/vote_for/wicket Wicket 1.2.3 is as easy as 1-2-3. Download Wicket now! http://wicketframework.org - 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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Wicket and Resource Injection in EJB3
On 12/22/06, Martijn Dashorst [EMAIL PROTECTED] wrote: Are we going to add this to core or as a wicket-stuff project? On 12/22/06, Martijn Dashorst [EMAIL PROTECTED] wrote: But who is going to maintain it then? Adding stuff to our core is good and all, but it needs to be maintained. Personally I think the best lifecycle is to become a Wicket stuff project, make sure it grows community support and then vote it into core. Or find one (better: 2) core committer sponsor willing to support it. Hi, obviously I'd like it to be included in the core project ;-) , but it makes sense to me also to start including in wicket-stuff (I have committer access to wicket-stuff). Also, remember that it is a wicket 2 module, so hopefully there will be plenty of time to test it. And obviously the sponsors committer can count on me for support (it's a simple project anyway) -- filippo - 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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Wicket and Resource Injection in EJB3
I agree with that. Unless some of the core devs will support it I think it will be nice to have in stuff. Now that I think about it stuff could actually be our own incubator ;) Frank On 12/22/06, Martijn Dashorst [EMAIL PROTECTED] wrote: But who is going to maintain it then? Adding stuff to our core is good and all, but it needs to be maintained. Personally I think the best lifecycle is to become a Wicket stuff project, make sure it grows community support and then vote it into core. Or find one (better: 2) core committer sponsor willing to support it. Martijn On 12/22/06, Johan Compagner [EMAIL PROTECTED] wrote: side by side with the spring projects looks good to me. johan On 12/22/06, Martijn Dashorst [EMAIL PROTECTED] wrote: Are we going to add this to core or as a wicket-stuff project? Martijn On 12/22/06, Filippo Diotalevi [EMAIL PROTECTED] wrote: On 12/20/06, Filippo Diotalevi [EMAIL PROTECTED] wrote: On 12/20/06, Ayodeji Aladejebi [EMAIL PROTECTED] wrote: How easy will it be to take advantage of container resource injection when deploying wicket as client tier in glassfish server for instance. Hi Ayodeji, as Igor has already pointed out, I've written a patch to extend JEE dependency injection to wicket pages. Hi all, I've updated the wicket-javaee integration module so that it now supports three java ee 5 annotations: @EJB, @PersistenceUnit and @Resource. You can find the patch attached to the issue: http://issues.apache.org/jira/browse/WICKET-174 In particular (sorry, I've made a bit of a mess with attachments) the module (with sources and mvn build) is at: http://issues.apache.org/jira/secure/attachment/12347734/wicket-javaee-snapshot-1006.zip For the documentation check the page: http://code.google.com/p/fdiotalevi/wiki/WicketJavaEEIntegration where you'll also find two sample applications. -- Filippo Diotalevi [EMAIL PROTECTED] http://www.diotalevi.com/weblog http://www.jugmilano.it - 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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Vote for Wicket at the http://www.thebeststuffintheworld.com/vote_for/wicket Wicket 1.2.3 is as easy as 1-2-3. Download Wicket now! http://wicketframework.org - 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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Vote for Wicket at the http://www.thebeststuffintheworld.com/vote_for/wicket Wicket 1.2.3 is as easy as 1-2-3. Download Wicket now! http://wicketframework.org - 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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net
Re: [Wicket-user] Legacy apps
You could instead use a OpenSessionInViewFilter (which you can blatently copy from Spring) that opens a hibernate session for you and you can use that in both your wicket app and legacy app. Martijn On 12/22/06, ChuckDeal [EMAIL PROTECTED] wrote: I have a legacy app that I am replacing with Wicket. It has to be done over time, so I can't do a wholesale rewrite of the app. I have Wicket as the main framework and my legacy, homemade framework will be the secondary. The few Wicket/Databinder pages that I have work pretty well. My legacy pages are data-oriented as well and I was planning on a partial rewrite of the legacy data tier to use Hibernate instead of pure JDBC. My problem comes in when I try and access the Hibernate Session from my legacy data-tier. I call DataStaticService.getHibernateSession();, but I get this exception: [code] org.hibernate.HibernateException: No session currently bound to execution context at org.hibernate.context.ManagedSessionContext.currentSession(ManagedSessionContext.java:50) at org.hibernate.impl.SessionFactoryImpl.getCurrentSession(SessionFactoryImpl.java:542) at net.databinder.DataStaticService.getHibernateSession(DataStaticService.java:45) [/code] I know on the surface this looks like a Datbinder question, but I think it may be deeper than that. I believe I am getting this because the WicketFilter (and therefore the RequestCycle processing) isn't happening for my legacy pages. So I thought that I could write my own filter that would attempt to do the RequestCycle stuff, but I'm afraid it is currently a little overwhelming. Before I really dig in, does that seem to be a good approach? I am thinking that if I can use Wicket to somehow process the requests of my legacy app I can get the benefits of Wicket without having to rewrite everything upfront. When I made my first attempt at my own filter, it literally was a capture of the WicketFilter doGet method (with some minor mods. public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain chain) throws IOException, ServletException { HttpServletRequest httpServletRequest = (HttpServletRequest) servletRequest; HttpServletResponse httpServletResponse = (HttpServletResponse) servletResponse; String url = httpServletRequest.getRequestURI(); if (url.contains(.jsp)) { log.info(AIMSFilter.doFilter(): + url); final WebApplication webApplication = (WebApplication) Application.get(aimsWicket); // Create a new webrequest final WebRequest request = webApplication.newWebRequest(httpServletRequest); // First, set the webapplication for this thread Application.set(webApplication); // Get session for request final WebSession session = webApplication.getSession(request); RequestCycle cycle = RequestCycle.get(); if (cycle == null) { // Create a response object and set the output encoding according to // wicket's application setttings. final WebResponse response = webApplication.newWebResponse(httpServletResponse); response.setAjax(request.isAjax()); response.setCharacterEncoding(webApplication.getRequestCycleSettings().getResponseRequestEncoding()); try { cycle = session.newRequestCycle(request, response); try { // Process request cycle.request(); } catch (AbortException e) { // noop } } finally { // Close response response.close(); // Clean up thread local session Session.unset(); // Clean up thread local application Application.unset(); } } } chain.doFilter(servletRequest, servletResponse); } What ended up happening was the MainPage/getHomePage() class was included in the response. I'm not comepletely sure that that description is accurate because I don't have a lot of scenarios to test for proof, but that is what I see on the screen and that was the pageClass that I saw in DefaultResponseStrategy.respond on the requestCycle.getRequestTarget(). Ultimately, I want to be able to do similar processing that takes place for Wicket Pages when I request one of my legacy pages. Where should I even start? Thanks! Chuck -- View this message in context: http://www.nabble.com/Legacy-apps-tf2871064.html#a8024672 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
[Wicket-user] exception when accesing application instance from a new Thread
Hi, I need to start a new thread that loads some data while displaying a progress bar, however I'm getting the following exception : Exception in thread Thread-20 wicket.WicketRuntimeException: There is no application attached to current thread Thread-20 at wicket.Application.get(Application.java:163) at wicket.spring.SpringWebApplication$1.getSpringContext(SpringWebApplication.java:52) at wicket.spring.SpringBeanLocator.locateProxyTarget(SpringBeanLocator.java:117) at wicket.proxy.LazyInitProxyFactory$JdkHandler.invoke(LazyInitProxyFactory.java:373) at wicket.proxy.$Proxy0.cargarProveedores(Unknown Source) at cl.eclac.sipc.web.administracion.paginas.VendorsLoadProcess.run(LoadVendors.java:145) at java.lang.Thread.run(Thread.java:595) To the new thread I'm passing a dao to do the data load : new Thread(new VendorsLoadProcess(LoadVendors.this.getVendorDao(), ajaxBar, msgSuccess, msgError)).start(); How can I fix this error? I checked tha API and it says that : set(Application application) THIS METHOD IS NOT PART OF THE WICKET PUBLIC API. Any help would be greatly appreciated, thanks. Jaime. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.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.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] WicketFilter problem with isWicketRequest()
This path works to load my app: http://localhost:2467/aims/app This one doesn't: http://localhost:2467/aims/app/ -- note the ending slash When tracing through the WicketFilter code, it looks like isWicketRequest() can't deal with it so it delegates to webApplication.getRequestCycleProcessor().getRequestCodingStrategy().urlCodingStrategyForPath(path) which returns null because it specifically excludes the '/'. You can't mount '/' because mount(...) will throw IllegalArgumentException(The mount path '/' is reserved for the application home page). Is this a loophole, or have I missed something. The comments on this issue (http://issues.apache.org/jira/browse/WICKET-114) do not descirbe my problem, but they do seem to be related in that WickFilter doesn't always handle slashes correctly. Chuck -- View this message in context: http://www.nabble.com/WicketFilter-problem-with-isWicketRequest%28%29-tf2871497.html#a8025822 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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Legacy apps
Chuck's using extended sessions, so using that filter for the Wicket side wouldn't be an option. But I also don't think that wrapping a Wicket RequestCycle around a servlet request is a good idea (if it's even possible). Instead, I would use a filter for the legacy stuff only. You can still tie such a filter to DataStaticService if you want. The session factory would be in there (initted by your Wicket app), you just need to tell it to open and bind the session to your thread. In fact, such a filter for legacy requests is something I'd like to have in Databinder, if you make it. Then we could use it for XML-RPC or other Web services. As it is, we open the Hibernate session inline: http://databinder.net/wsvn/Databinder/message/r1.0/src/main/java/example/BottleService.java?op=file (Though that particular service also handles Cajo requests so it wouldn't work with an HTTP filter.) Nathan Martijn Dashorst wrote: You could instead use a OpenSessionInViewFilter (which you can blatently copy from Spring) that opens a hibernate session for you and you can use that in both your wicket app and legacy app. Martijn On 12/22/06, ChuckDeal [EMAIL PROTECTED] wrote: I have a legacy app that I am replacing with Wicket. It has to be done over time, so I can't do a wholesale rewrite of the app. I have Wicket as the main framework and my legacy, homemade framework will be the secondary. The few Wicket/Databinder pages that I have work pretty well. My legacy pages are data-oriented as well and I was planning on a partial rewrite of the legacy data tier to use Hibernate instead of pure JDBC. My problem comes in when I try and access the Hibernate Session from my legacy data-tier. I call DataStaticService.getHibernateSession();, but I get this exception: [code] org.hibernate.HibernateException: No session currently bound to execution context at org.hibernate.context.ManagedSessionContext.currentSession(ManagedSessionContext.java:50) at org.hibernate.impl.SessionFactoryImpl.getCurrentSession(SessionFactoryImpl.java:542) at net.databinder.DataStaticService.getHibernateSession(DataStaticService.java:45) [/code] I know on the surface this looks like a Datbinder question, but I think it may be deeper than that. I believe I am getting this because the WicketFilter (and therefore the RequestCycle processing) isn't happening for my legacy pages. So I thought that I could write my own filter that would attempt to do the RequestCycle stuff, but I'm afraid it is currently a little overwhelming. Before I really dig in, does that seem to be a good approach? I am thinking that if I can use Wicket to somehow process the requests of my legacy app I can get the benefits of Wicket without having to rewrite everything upfront. When I made my first attempt at my own filter, it literally was a capture of the WicketFilter doGet method (with some minor mods. public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain chain) throws IOException, ServletException { HttpServletRequest httpServletRequest = (HttpServletRequest) servletRequest; HttpServletResponse httpServletResponse = (HttpServletResponse) servletResponse; String url = httpServletRequest.getRequestURI(); if (url.contains(.jsp)) { log.info(AIMSFilter.doFilter(): + url); final WebApplication webApplication = (WebApplication) Application.get(aimsWicket); // Create a new webrequest final WebRequest request = webApplication.newWebRequest(httpServletRequest); // First, set the webapplication for this thread Application.set(webApplication); // Get session for request final WebSession session = webApplication.getSession(request); RequestCycle cycle = RequestCycle.get(); if (cycle == null) { // Create a response object and set the output encoding according to // wicket's application setttings. final WebResponse response = webApplication.newWebResponse(httpServletResponse); response.setAjax(request.isAjax()); response.setCharacterEncoding(webApplication.getRequestCycleSettings().getResponseRequestEncoding()); try { cycle = session.newRequestCycle(request, response); try { // Process request cycle.request(); } catch (AbortException e) { // noop } } finally { // Close response response.close(); // Clean up thread local session Session.unset(); // Clean up thread local application Application.unset(); } } } chain.doFilter(servletRequest, servletResponse); } What ended up happening
Re: [Wicket-user] WicketFilter problem with isWicketRequest()
Sorry, that would be 1.3-SNAPSHOT (built from latest on 22DEC2006) ChuckDeal wrote: This path works to load my app: http://localhost:2467/aims/app This one doesn't: http://localhost:2467/aims/app/ -- note the ending slash When tracing through the WicketFilter code, it looks like isWicketRequest() can't deal with it so it delegates to webApplication.getRequestCycleProcessor().getRequestCodingStrategy().urlCodingStrategyForPath(path) which returns null because it specifically excludes the '/'. You can't mount '/' because mount(...) will throw IllegalArgumentException(The mount path '/' is reserved for the application home page). Is this a loophole, or have I missed something. The comments on this issue (http://issues.apache.org/jira/browse/WICKET-114) do not descirbe my problem, but they do seem to be related in that WickFilter doesn't always handle slashes correctly. Chuck -- View this message in context: http://www.nabble.com/WicketFilter-problem-with-isWicketRequest%28%29-tf2871497.html#a8025836 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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Wicket and Resource Injection in EJB3
no we do not. when you attach a patch to jira it has a little checkbox saying you are contributing this code as ASL2 so he doesnt need a CLA if we take the code from jira attachment. -igor On 12/22/06, Frank Bille [EMAIL PROTECTED] wrote: If this is a contribution which goes into our ASF repo, then we need a CLA from the contributor, no matter how much of it is a copy of existing wicket-spring. If you could also add a unit test like this one, to ensure correct headers: http://svn.apache.org/viewvc/incubator/wicket/trunk/wicket-spring/src/test/java/wicket/util/license/ApacheLicenseHeaderTest.java?view=co Frank On 12/22/06, Johan Compagner [EMAIL PROTECTED] wrote: side by side with the spring projects looks good to me. johan On 12/22/06, Martijn Dashorst [EMAIL PROTECTED] wrote: Are we going to add this to core or as a wicket-stuff project? Martijn On 12/22/06, Filippo Diotalevi [EMAIL PROTECTED] wrote: On 12/20/06, Filippo Diotalevi [EMAIL PROTECTED] wrote: On 12/20/06, Ayodeji Aladejebi [EMAIL PROTECTED] wrote: How easy will it be to take advantage of container resource injection when deploying wicket as client tier in glassfish server for instance. Hi Ayodeji, as Igor has already pointed out, I've written a patch to extend JEE dependency injection to wicket pages. Hi all, I've updated the wicket-javaee integration module so that it now supports three java ee 5 annotations: @EJB, @PersistenceUnit and @Resource. You can find the patch attached to the issue: http://issues.apache.org/jira/browse/WICKET-174 In particular (sorry, I've made a bit of a mess with attachments) the module (with sources and mvn build) is at: http://issues.apache.org/jira/secure/attachment/12347734/wicket-javaee-snapshot-1006.zip For the documentation check the page: http://code.google.com/p/fdiotalevi/wiki/WicketJavaEEIntegration where you'll also find two sample applications. -- Filippo Diotalevi [EMAIL PROTECTED] http://www.diotalevi.com/weblog http://www.jugmilano.it - 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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Vote for Wicket at the http://www.thebeststuffintheworld.com/vote_for/wicket Wicket 1.2.3 is as easy as 1-2-3. Download Wicket now! http://wicketframework.org - 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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Wicket and Resource Injection in EJB3
lets start with wicket-stuff, let it live there for a few months to become stable and then add it to core. -igor On 12/22/06, Frank Bille [EMAIL PROTECTED] wrote: I agree with that. Unless some of the core devs will support it I think it will be nice to have in stuff. Now that I think about it stuff could actually be our own incubator ;) Frank On 12/22/06, Martijn Dashorst [EMAIL PROTECTED] wrote: But who is going to maintain it then? Adding stuff to our core is good and all, but it needs to be maintained. Personally I think the best lifecycle is to become a Wicket stuff project, make sure it grows community support and then vote it into core. Or find one (better: 2) core committer sponsor willing to support it. Martijn On 12/22/06, Johan Compagner [EMAIL PROTECTED] wrote: side by side with the spring projects looks good to me. johan On 12/22/06, Martijn Dashorst [EMAIL PROTECTED] wrote: Are we going to add this to core or as a wicket-stuff project? Martijn On 12/22/06, Filippo Diotalevi [EMAIL PROTECTED] wrote: On 12/20/06, Filippo Diotalevi [EMAIL PROTECTED] wrote: On 12/20/06, Ayodeji Aladejebi [EMAIL PROTECTED] wrote: How easy will it be to take advantage of container resource injection when deploying wicket as client tier in glassfish server for instance. Hi Ayodeji, as Igor has already pointed out, I've written a patch to extend JEE dependency injection to wicket pages. Hi all, I've updated the wicket-javaee integration module so that it now supports three java ee 5 annotations: @EJB, @PersistenceUnit and @Resource. You can find the patch attached to the issue: http://issues.apache.org/jira/browse/WICKET-174 In particular (sorry, I've made a bit of a mess with attachments) the module (with sources and mvn build) is at: http://issues.apache.org/jira/secure/attachment/12347734/wicket-javaee-snapshot-1006.zip For the documentation check the page: http://code.google.com/p/fdiotalevi/wiki/WicketJavaEEIntegration where you'll also find two sample applications. -- Filippo Diotalevi [EMAIL PROTECTED] http://www.diotalevi.com/weblog http://www.jugmilano.it - 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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Vote for Wicket at the http://www.thebeststuffintheworld.com/vote_for/wicket Wicket 1.2.3 is as easy as 1-2-3. Download Wicket now! http://wicketframework.org - 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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Vote for Wicket at the http://www.thebeststuffintheworld.com/vote_for/wicket Wicket 1.2.3 is as easy as 1-2-3. Download Wicket now! http://wicketframework.org - 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.phpp=sourceforgeCID=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
[Wicket-user] Legacy apps
I have a legacy app that I am replacing with Wicket. It has to be done over time, so I can't do a wholesale rewrite of the app. I have Wicket as the main framework and my legacy, homemade framework will be the secondary. The few Wicket/Databinder pages that I have work pretty well. My legacy pages are data-oriented as well and I was planning on a partial rewrite of the legacy data tier to use Hibernate instead of pure JDBC. My problem comes in when I try and access the Hibernate Session from my legacy data-tier. I call DataStaticService.getHibernateSession();, but I get this exception: [code] org.hibernate.HibernateException: No session currently bound to execution context at org.hibernate.context.ManagedSessionContext.currentSession(ManagedSessionContext.java:50) at org.hibernate.impl.SessionFactoryImpl.getCurrentSession(SessionFactoryImpl.java:542) at net.databinder.DataStaticService.getHibernateSession(DataStaticService.java:45) [/code] I know on the surface this looks like a Datbinder question, but I think it may be deeper than that. I believe I am getting this because the WicketFilter (and therefore the RequestCycle processing) isn't happening for my legacy pages. So I thought that I could write my own filter that would attempt to do the RequestCycle stuff, but I'm afraid it is currently a little overwhelming. Before I really dig in, does that seem to be a good approach? I am thinking that if I can use Wicket to somehow process the requests of my legacy app I can get the benefits of Wicket without having to rewrite everything upfront. When I made my first attempt at my own filter, it literally was a capture of the WicketFilter doGet method (with some minor mods. public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain chain) throws IOException, ServletException { HttpServletRequest httpServletRequest = (HttpServletRequest) servletRequest; HttpServletResponse httpServletResponse = (HttpServletResponse) servletResponse; String url = httpServletRequest.getRequestURI(); if (url.contains(.jsp)) { log.info(AIMSFilter.doFilter(): + url); final WebApplication webApplication = (WebApplication) Application.get(aimsWicket); // Create a new webrequest final WebRequest request = webApplication.newWebRequest(httpServletRequest); // First, set the webapplication for this thread Application.set(webApplication); // Get session for request final WebSession session = webApplication.getSession(request); RequestCycle cycle = RequestCycle.get(); if (cycle == null) { // Create a response object and set the output encoding according to // wicket's application setttings. final WebResponse response = webApplication.newWebResponse(httpServletResponse); response.setAjax(request.isAjax()); response.setCharacterEncoding(webApplication.getRequestCycleSettings().getResponseRequestEncoding()); try { cycle = session.newRequestCycle(request, response); try { // Process request cycle.request(); } catch (AbortException e) { // noop } } finally { // Close response response.close(); // Clean up thread local session Session.unset(); // Clean up thread local application Application.unset(); } } } chain.doFilter(servletRequest, servletResponse); } What ended up happening was the MainPage/getHomePage() class was included in the response. I'm not comepletely sure that that description is accurate because I don't have a lot of scenarios to test for proof, but that is what I see on the screen and that was the pageClass that I saw in DefaultResponseStrategy.respond on the requestCycle.getRequestTarget(). Ultimately, I want to be able to do similar processing that takes place for Wicket Pages when I request one of my legacy pages. Where should I even start? Thanks! Chuck -- View this message in context: http://www.nabble.com/Legacy-apps-tf2871064.html#a8024672 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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] exception when accesing application instance from a new Thread
call it anyway :) -igor On 12/22/06, Jaime De La Jara [EMAIL PROTECTED] wrote: Hi, I need to start a new thread that loads some data while displaying a progress bar, however I'm getting the following exception : Exception in thread Thread-20 wicket.WicketRuntimeException: There is no application attached to current thread Thread-20 at wicket.Application.get(Application.java:163) at wicket.spring.SpringWebApplication$1.getSpringContext( SpringWebApplication.java:52) at wicket.spring.SpringBeanLocator.locateProxyTarget( SpringBeanLocator.java:117) at wicket.proxy.LazyInitProxyFactory$JdkHandler.invoke( LazyInitProxyFactory.java:373) at wicket.proxy.$Proxy0.cargarProveedores(Unknown Source) at cl.eclac.sipc.web.administracion.paginas.VendorsLoadProcess.run( LoadVendors.java:145) at java.lang.Thread.run(Thread.java:595) To the new thread I'm passing a dao to do the data load : new Thread(new VendorsLoadProcess(LoadVendors.this.getVendorDao(), ajaxBar, msgSuccess, msgError)).start(); How can I fix this error? I checked tha API and it says that : *sethttp://wicket.sourceforge.net/apidocs/wicket/Application.html#set%28wicket.Application%29 *(Applicationhttp://wicket.sourceforge.net/apidocs/wicket/Application.html application) THIS METHOD IS NOT PART OF THE WICKET PUBLIC API. Any help would be greatly appreciated, thanks. Jaime. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Legacy apps
Here is the Filter that I implemented ( http://www.nabble.com/file/5085/AIMSFilter.java AIMSFilter.java ). It works for me, for now... I still don't fully understand what I have done, I think understanding will come with some more experimentation and exploration. I don't even know if this is the right approach, so I will gladly take some criticism if it will save me headaches down the road. Chuck Nathan Hamblen-2 wrote: Chuck's using extended sessions, so using that filter for the Wicket side wouldn't be an option. But I also don't think that wrapping a Wicket RequestCycle around a servlet request is a good idea (if it's even possible). Instead, I would use a filter for the legacy stuff only. You can still tie such a filter to DataStaticService if you want. The session factory would be in there (initted by your Wicket app), you just need to tell it to open and bind the session to your thread. In fact, such a filter for legacy requests is something I'd like to have in Databinder, if you make it. Then we could use it for XML-RPC or other Web services. As it is, we open the Hibernate session inline: http://databinder.net/wsvn/Databinder/message/r1.0/src/main/java/example/BottleService.java?op=file (Though that particular service also handles Cajo requests so it wouldn't work with an HTTP filter.) Nathan Martijn Dashorst wrote: You could instead use a OpenSessionInViewFilter (which you can blatently copy from Spring) that opens a hibernate session for you and you can use that in both your wicket app and legacy app. Martijn On 12/22/06, ChuckDeal [EMAIL PROTECTED] wrote: I have a legacy app that I am replacing with Wicket. It has to be done over time, so I can't do a wholesale rewrite of the app. I have Wicket as the main framework and my legacy, homemade framework will be the secondary. The few Wicket/Databinder pages that I have work pretty well. My legacy pages are data-oriented as well and I was planning on a partial rewrite of the legacy data tier to use Hibernate instead of pure JDBC. My problem comes in when I try and access the Hibernate Session from my legacy data-tier. I call DataStaticService.getHibernateSession();, but I get this exception: [code] org.hibernate.HibernateException: No session currently bound to execution context at org.hibernate.context.ManagedSessionContext.currentSession(ManagedSessionContext.java:50) at org.hibernate.impl.SessionFactoryImpl.getCurrentSession(SessionFactoryImpl.java:542) at net.databinder.DataStaticService.getHibernateSession(DataStaticService.java:45) [/code] I know on the surface this looks like a Datbinder question, but I think it may be deeper than that. I believe I am getting this because the WicketFilter (and therefore the RequestCycle processing) isn't happening for my legacy pages. So I thought that I could write my own filter that would attempt to do the RequestCycle stuff, but I'm afraid it is currently a little overwhelming. Before I really dig in, does that seem to be a good approach? I am thinking that if I can use Wicket to somehow process the requests of my legacy app I can get the benefits of Wicket without having to rewrite everything upfront. When I made my first attempt at my own filter, it literally was a capture of the WicketFilter doGet method (with some minor mods. public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain chain) throws IOException, ServletException { HttpServletRequest httpServletRequest = (HttpServletRequest) servletRequest; HttpServletResponse httpServletResponse = (HttpServletResponse) servletResponse; String url = httpServletRequest.getRequestURI(); if (url.contains(.jsp)) { log.info(AIMSFilter.doFilter(): + url); final WebApplication webApplication = (WebApplication) Application.get(aimsWicket); // Create a new webrequest final WebRequest request = webApplication.newWebRequest(httpServletRequest); // First, set the webapplication for this thread Application.set(webApplication); // Get session for request final WebSession session = webApplication.getSession(request); RequestCycle cycle = RequestCycle.get(); if (cycle == null) { // Create a response object and set the output encoding according to // wicket's application setttings. final WebResponse response = webApplication.newWebResponse(httpServletResponse); response.setAjax(request.isAjax()); response.setCharacterEncoding(webApplication.getRequestCycleSettings().getResponseRequestEncoding()); try { cycle = session.newRequestCycle(request, response); try { // Process request cycle.request(); } catch
Re: [Wicket-user] Wicket and Resource Injection in EJB3
On 12/22/06, Igor Vaynberg [EMAIL PROTECTED] wrote: no we do not. when you attach a patch to jira it has a little checkbox saying you are contributing this code as ASL2 so he doesnt need a CLA if we take the code from jira attachment. Not sure if that holds if the code drop is more than a patch. I think if it is 'large enough' (for some arbitrary value of large and enough) I suppose a CLA might be advisable. Say if someone from IBM would attach a zip with all WebSphere source inside, and tick the checkbox, I don't think that would hold. Martijn -- Vote for Wicket at the http://www.thebeststuffintheworld.com/vote_for/wicket Wicket 1.2.3 is as easy as 1-2-3. Download Wicket now! http://wicketframework.org - 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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Unexpected RuntimeException
I am getting a NullPointerException when I try to visit the home page of my web application. Root cause: java.lang.NullPointerException at wicket.markup.parser.XmlPullParser.parse(XmlPullParser.java:390) at wicket.markup.MarkupParser.readAndParse(MarkupParser.java:196) at wicket.markup.MarkupCache.loadMarkup(MarkupCache.java:279) at wicket.markup.MarkupCache.loadMarkupAndWatchForChanges(MarkupCache.java:354) at wicket.markup.MarkupCache.getMarkup(MarkupCache.java:198) at wicket.markup.MarkupCache.getMarkupStream(MarkupCache.java:106) at wicket.MarkupContainer.getAssociatedMarkupStream(MarkupContainer.java:827) at wicket.markup.html.WebPage.commonInit(WebPage.java:235) at wicket.markup.html.WebPage.init(WebPage.java:120) at com.mycompany.newscomments.CommentHomePage.init(CommentHomePage.java:27) ... I traced it back to the parse method in XmlPullParser, specifically where the xmlReader is closed in the finally block: finally { resource.close(); this.xmlReader.close(); } I think this exception can be avoided by changing: this.xmlReader.close(); to: if (this.xmlReader != null) this.xmlReader.close(); However, what is causing the xmlReader object to be null? Is there a way to redirect these errors to a log file instead of displaying them on screen? Thanks, August - 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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] DataTable with expandable rows
Hi there I need a little help to solve this. I want to create a table using DataTable, where the user can select a row and then see some more details in a extra row inserted below the selected. Something like this: th tdcol 1/tdtdcol 2/tdtdcol 3/td /th tr tdaaa/tdtdbbb/tdtdccc/td /tr tr td colspan=3details data from the record above/td /tr I belive I can use the ReuseIfModelsEqualStrategy to handle the selected row, but how do I insert the extra row with one cell spanning all columns? Best Regards Niels - 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.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Wicket and Resource Injection in EJB3
if that person single-handidly wrote/owned webspehere why wouldnt it? :) -igor On 12/22/06, Martijn Dashorst [EMAIL PROTECTED] wrote: On 12/22/06, Igor Vaynberg [EMAIL PROTECTED] wrote: no we do not. when you attach a patch to jira it has a little checkbox saying you are contributing this code as ASL2 so he doesnt need a CLA if we take the code from jira attachment. Not sure if that holds if the code drop is more than a patch. I think if it is 'large enough' (for some arbitrary value of large and enough) I suppose a CLA might be advisable. Say if someone from IBM would attach a zip with all WebSphere source inside, and tick the checkbox, I don't think that would hold. Martijn -- Vote for Wicket at the http://www.thebeststuffintheworld.com/vote_for/wicket Wicket 1.2.3 is as easy as 1-2-3. Download Wicket now! http://wicketframework.org - 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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] exception when accesing application instance from a new Thread
Ok, ckecking the API I found this other method : public static Application get(java.lang.String applicationKey) that allows me to obtain the reference of my application, thought its use is not recommended. Is there any side effect of using this method? Maybe it should be used with care in a cluster? Jaime. Igor Vaynberg [EMAIL PROTECTED] wrote: call it anyway :) -igor On 12/22/06, Jaime De La Jara [EMAIL PROTECTED] wrote: Hi, I need to start a new thread that loads some data while displaying a progress bar, however I'm getting the following exception : Exception in thread Thread-20 wicket.WicketRuntimeException: There is no application attached to current thread Thread-20 at wicket.Application.get(Application.java:163) at wicket.spring.SpringWebApplication$1.getSpringContext(SpringWebApplication.java:52) at wicket.spring.SpringBeanLocator.locateProxyTarget(SpringBeanLocator.java :117) at wicket.proxy.LazyInitProxyFactory$JdkHandler.invoke(LazyInitProxyFactory.java:373) at wicket.proxy.$Proxy0.cargarProveedores(Unknown Source) at cl.eclac.sipc.web.administracion.paginas.VendorsLoadProcess.run (LoadVendors.java:145) at java.lang.Thread.run(Thread.java:595) To the new thread I'm passing a dao to do the data load : new Thread(new VendorsLoadProcess(LoadVendors.this.getVendorDao(), ajaxBar, msgSuccess, msgError)).start(); How can I fix this error? I checked tha API and it says that : set( Application application) THIS METHOD IS NOT PART OF THE WICKET PUBLIC API. Any help would be greatly appreciated, thanks. Jaime. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.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.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Wicket and Resource Injection in EJB3
On 12/22/06, Igor Vaynberg [EMAIL PROTECTED] wrote: if that person single-handidly wrote/owned webspehere why wouldnt it? :) That would constitute a very evil person ;-) Martijn -- Vote for Wicket at the http://www.thebeststuffintheworld.com/vote_for/wicket Wicket 1.2.3 is as easy as 1-2-3. Download Wicket now! http://wicketframework.org - 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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] DataTable with column styles and widths
The setStyle() on a column, puts the style a col tag! I belive that is the only way you can set style to a complete column on a single tag. Niels igor.vaynberg wrote: nothing in the works yet, still trying to figure out the nicest way to do this niel's idea might be more straightforward but from framework's point of view it is too limited and you can further generalize it to setStyle(rightadjusted width200) and remove setWidth() completely. then the question becomes when you call setStyle() on a column - where does that style go? does it go onto the th? or the tds? -igor On 10/31/06, Jan Mikkelsen [EMAIL PROTECTED] wrote: I have run into the same requirement and would also like a more elegant solution. Is something in the works or is there more important stuff to do :) ? Personally I prefer Niels' approach because it is very straightforward. Thanks, /Jan Igor Vaynberg wrote: i think what would be even better is if icolumn had add(IBehavior) that would get attached to the header right now what you have to do is something like this new MyColumn() { Component getHeader() { Component c= super.getHeader(); c.add(new MyAttributeModifier()); } } which is tricky for newbies to figure out. -igor On 10/14/06, * Niels Bo* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hi I have this suggestion for an extension to the DataTable component that will make it easier to set width and ccs styles individually on each column. It involves these files (attached): IColumn.java - new getWidth() and getStyleName() AbstractColumn.java - implement default get/set Width and StyleName DataTable.html - added colgroupsection DataTable.java - added a few lines. Usage like: IColumn column = new PropetyColumn(...); column.setStyleName(rightadjust); column.setWidth(200); Would this be a useful improvement for other Wicket users? Niels - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net mailto:Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ 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/DataTable-with-column-styles-and-widths-tf2442398.html#a8028625 Sent from the Wicket - User mailing list archive at Nabble.com. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's
Re: [Wicket-user] exception when accesing application instance from a new Thread
that shouldnt be a problem, each node has its own application object and each node will register it under the same servlet context key. i dont know what you are doing exactly, but you might still have to set the threadlocal if you are using part of api that needs it. -igor On 12/22/06, Jaime De La Jara [EMAIL PROTECTED] wrote: Ok, ckecking the API I found this other method : public static Application http://wicket.sourceforge.net/apidocs/wicket/Application.html *get*(java.lang.String applicationKey) that allows me to obtain the reference of my application, thought its use is not recommended. Is there any side effect of using this method? Maybe it should be used with care in a cluster? Jaime. *Igor Vaynberg [EMAIL PROTECTED]* wrote: call it anyway :) -igor On 12/22/06, Jaime De La Jara [EMAIL PROTECTED] wrote: Hi, I need to start a new thread that loads some data while displaying a progress bar, however I'm getting the following exception : Exception in thread Thread-20 wicket.WicketRuntimeException: There is no application attached to current thread Thread-20 at wicket.Application.get(Application.java:163) at wicket.spring.SpringWebApplication$1.getSpringContext( SpringWebApplication.java:52) at wicket.spring.SpringBeanLocator.locateProxyTarget( SpringBeanLocator.java :117) at wicket.proxy.LazyInitProxyFactory$JdkHandler.invoke( LazyInitProxyFactory.java:373) at wicket.proxy.$Proxy0.cargarProveedores(Unknown Source) at cl.eclac.sipc.web.administracion.paginas.VendorsLoadProcess.run ( LoadVendors.java:145) at java.lang.Thread.run(Thread.java:595) To the new thread I'm passing a dao to do the data load : new Thread(new VendorsLoadProcess(LoadVendors.this.getVendorDao(), ajaxBar, msgSuccess, msgError)).start(); How can I fix this error? I checked tha API and it says that : *sethttp://wicket.sourceforge.net/apidocs/wicket/Application.html#set%28wicket.Application%29 *( Applicationhttp://wicket.sourceforge.net/apidocs/wicket/Application.html application) THIS METHOD IS NOT PART OF THE WICKET PUBLIC API. Any help would be greatly appreciated, thanks. Jaime. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] DataTable with column styles and widths
Yes, and the idear was that setStyle() should do a class=, so maybe setCSSClass() is better... Martijn Dashorst wrote: Yep, Styling should be done in the css, not on the markup tags. Though sometimes convenient and I often violate this myself, I cringe everytime I add a style= attribute to a tag instead of a class=. Martijn On 10/31/06, Igor Vaynberg [EMAIL PROTECTED] wrote: nothing in the works yet, still trying to figure out the nicest way to do this niel's idea might be more straightforward but from framework's point of view it is too limited and you can further generalize it to setStyle(rightadjusted width200) and remove setWidth() completely. then the question becomes when you call setStyle() on a column - where does that style go? does it go onto the th? or the tds? -igor On 10/31/06, Jan Mikkelsen [EMAIL PROTECTED] wrote: I have run into the same requirement and would also like a more elegant solution. Is something in the works or is there more important stuff to do :) ? Personally I prefer Niels' approach because it is very straightforward. Thanks, /Jan Igor Vaynberg wrote: i think what would be even better is if icolumn had add(IBehavior) that would get attached to the header right now what you have to do is something like this new MyColumn() { Component getHeader() { Component c= super.getHeader(); c.add(new MyAttributeModifier()); } } which is tricky for newbies to figure out. -igor On 10/14/06, * Niels Bo* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hi I have this suggestion for an extension to the DataTable component that will make it easier to set width and ccs styles individually on each column. It involves these files (attached): IColumn.java - new getWidth() and getStyleName() AbstractColumn.java - implement default get/set Width and StyleName DataTable.html - added colgroupsection DataTable.java - added a few lines. Usage like: IColumn column = new PropetyColumn(...); column.setStyleName(rightadjust); column.setWidth(200); Would this be a useful improvement for other Wicket users? Niels - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net mailto:Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --
Re: [Wicket-user] WicketFilter problem with isWicketRequest()
what does your web.xml look like (the filter and the filtermapping) On 12/22/06, ChuckDeal [EMAIL PROTECTED] wrote: This path works to load my app: http://localhost:2467/aims/app This one doesn't: http://localhost:2467/aims/app/ -- note the ending slash When tracing through the WicketFilter code, it looks like isWicketRequest() can't deal with it so it delegates to webApplication.getRequestCycleProcessor ().getRequestCodingStrategy().urlCodingStrategyForPath(path) which returns null because it specifically excludes the '/'. You can't mount '/' because mount(...) will throw IllegalArgumentException(The mount path '/' is reserved for the application home page). Is this a loophole, or have I missed something. The comments on this issue ( http://issues.apache.org/jira/browse/WICKET-114) do not descirbe my problem, but they do seem to be related in that WickFilter doesn't always handle slashes correctly. Chuck -- View this message in context: http://www.nabble.com/WicketFilter-problem-with-isWicketRequest%28%29-tf2871497.html#a8025822 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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] DataTable with expandable rows
you could have a panel for every row. So that you can dynamically add whatever type of row you want to that table. On 12/22/06, Niels Bo [EMAIL PROTECTED] wrote: Hi there I need a little help to solve this. I want to create a table using DataTable, where the user can select a row and then see some more details in a extra row inserted below the selected. Something like this: th tdcol 1/tdtdcol 2/tdtdcol 3/td /th tr tdaaa/tdtdbbb/tdtdccc/td /tr tr td colspan=3details data from the record above/td /tr I belive I can use the ReuseIfModelsEqualStrategy to handle the selected row, but how do I insert the extra row with one cell spanning all columns? Best Regards Niels - 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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Unexpected RuntimeException
can you check for us why that is null in your case? All those exceptions are logged just make sure you have the right logging.properties johan On 12/22/06, August Detlefsen [EMAIL PROTECTED] wrote: I am getting a NullPointerException when I try to visit the home page of my web application. Root cause: java.lang.NullPointerException at wicket.markup.parser.XmlPullParser.parse(XmlPullParser.java:390) at wicket.markup.MarkupParser.readAndParse(MarkupParser.java:196) at wicket.markup.MarkupCache.loadMarkup(MarkupCache.java:279) at wicket.markup.MarkupCache.loadMarkupAndWatchForChanges(MarkupCache.java :354) at wicket.markup.MarkupCache.getMarkup(MarkupCache.java:198) at wicket.markup.MarkupCache.getMarkupStream(MarkupCache.java:106) at wicket.MarkupContainer.getAssociatedMarkupStream(MarkupContainer.java:827) at wicket.markup.html.WebPage.commonInit(WebPage.java:235) at wicket.markup.html.WebPage.init(WebPage.java:120) at com.mycompany.newscomments.CommentHomePage.init(CommentHomePage.java:27) ... I traced it back to the parse method in XmlPullParser, specifically where the xmlReader is closed in the finally block: finally { resource.close(); this.xmlReader.close(); } I think this exception can be avoided by changing: this.xmlReader.close(); to: if (this.xmlReader != null) this.xmlReader.close(); However, what is causing the xmlReader object to be null? Is there a way to redirect these errors to a log file instead of displaying them on screen? Thanks, August - 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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Constructing a list of links from java
Thanks everyone for the responses. I got it to do what I wanted without an excessive amount of work. I wasn't able to find a component that would generate a regular link within my application context so I wrote one, but it was pretty easy. From the examples I saw, I thought repeaters/list stuff was for tables for some reason. Having actually tried it, it seems rather obvious that that's not the case. On Dec 22, 2006, at 0:00 , Erik van Oosten wrote: Hello Dustin, You can also find more information on the wiki: http://cwiki.apache.org/WICKET/listview-and-other-repeaters.html Regards, Erik. Dustin Sallings wrote: I am trying to convert an old struts and tiles/jsp app to wicket. This app has a bunch of links that get added programatically. I'd like my template to have a ul to which I'd append several li elements containing links. What is this obvious thing I'm missing? -- Erik van Oosten http://www.day-to-day-stuff.blogspot.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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Dustin Sallings - 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.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Unexpected RuntimeException
I figured out how to setup logging it was easy. I was trying to load the markup HTML from a jar file: 12-22 12:18:32 [DEBUG] [UrlResourceStream] - cannot convert url: jar:file:/export/webapps/mycompany.com/web/ROOT/WEB-INF/lib/com.mycompany.newscomments.jar!/com/mycompany/newscomments/CommentHomePage.html to file (URI is not hierarchical), falling back to the inputstream for polling 12-22 12:18:32 [DEBUG] [MarkupCache] - Loading markup from jar:file:/export/webapps/mycompany.com/web/ROOT/WEB-INF/lib/com.mycompany.newscomments.jar!/com/mycompany/newscomments/CommentHomePage.html 12-22 12:18:33 [ERROR] [RequestCycle] - java.lang.NullPointerException at wicket.markup.parser.XmlPullParser.parse(XmlPullParser.java:390) at wicket.markup.MarkupParser.readAndParse(MarkupParser.java:196) at wicket.markup.MarkupCache.loadMarkup(MarkupCache.java:279) at wicket.markup.MarkupCache.loadMarkupAndWatchForChanges(MarkupCache.java:354) at wicket.markup.MarkupCache.getMarkup(MarkupCache.java:198) at wicket.markup.MarkupCache.getMarkupStream(MarkupCache.java:106) at wicket.MarkupContainer.getAssociatedMarkupStream(MarkupContainer.java:827) at wicket.markup.html.WebPage.commonInit(WebPage.java:235) at wicket.markup.html.WebPage.init(WebPage.java:120) at com.mycompany.newscomments.CommentHomePage.init(CommentHomePage.java:27) ... Once I moved the markup file out of the jar and into WEB-INF/classes, the problem went away. Is there any way to keep them in the jar file without getting this error? -August Johan Compagner wrote: can you check for us why that is null in your case? All those exceptions are logged just make sure you have the right logging.properties johan On 12/22/06, *August Detlefsen* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I am getting a NullPointerException when I try to visit the home page of my web application. Root cause: java.lang.NullPointerException at wicket.markup.parser.XmlPullParser.parse(XmlPullParser.java:390) at wicket.markup.MarkupParser.readAndParse(MarkupParser.java:196) at wicket.markup.MarkupCache.loadMarkup (MarkupCache.java:279) at wicket.markup.MarkupCache.loadMarkupAndWatchForChanges(MarkupCache.java:354) at wicket.markup.MarkupCache.getMarkup(MarkupCache.java:198) at wicket.markup.MarkupCache.getMarkupStream( MarkupCache.java:106) at wicket.MarkupContainer.getAssociatedMarkupStream(MarkupContainer.java:827) at wicket.markup.html.WebPage.commonInit(WebPage.java:235) at wicket.markup.html.WebPage.init(WebPage.java :120) at com.mycompany.newscomments.CommentHomePage.init(CommentHomePage.java:27) ... I traced it back to the parse method in XmlPullParser, specifically where the xmlReader is closed in the finally block: finally { resource.close(); this.xmlReader.close(); } I think this exception can be avoided by changing: this.xmlReader.close (); to: if (this.xmlReader != null) this.xmlReader.close(); However, what is causing the xmlReader object to be null? Is there a way to redirect these errors to a log file instead of displaying them on screen? Thanks, August - 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.phpp=sourceforgeCID=DEVDEV http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net mailto:Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- August Detlefsen CEO/Web Application Architect CodeMagi, Inc. 510-368-4489 tel 510-336-9434 fax http://www.codemagi.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.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user