Where to best configure user timezone?
Where is the recommended place to configure the timezone for a user? My user object has a timezone setting that the user can control (Member.timezone). The following code seems to work and configure all of the Wicket components to use the user's timezone: ClientInfo ci = Session.get().getClientInfo(); ((WebClientInfo)ci ).getProperties().setTimeZone(TimeZone.getTimeZone(member.getTimezone())); However, I'm not sure where the best place to put this code would be. Should it be on each page? In the Session constructor? Somewhere else? I was thinking that the Session constructor would be best, but if the session is created before the user logs in and authenticates, then it won't get set properly. I can include the code again in my Session.login method. But is there somewhere else that would be better? Thanks! Tauren
Re: Where to best configure user timezone?
Igor, Since I'm also using remember-me cookie-based authentication via Shiro, Session.login may not always be run. But doing this in both the session constructor and in session.login does the trick. Thanks for your help! Tauren On Sun, Nov 27, 2011 at 3:05 PM, Igor Vaynberg igor.vaynb...@gmail.comwrote: session.login should be good... -igor On Sun, Nov 27, 2011 at 2:07 PM, Tauren Mills tau...@groovee.com wrote: Where is the recommended place to configure the timezone for a user? My user object has a timezone setting that the user can control (Member.timezone). The following code seems to work and configure all of the Wicket components to use the user's timezone: ClientInfo ci = Session.get().getClientInfo(); ((WebClientInfo)ci ).getProperties().setTimeZone(TimeZone.getTimeZone(member.getTimezone())); However, I'm not sure where the best place to put this code would be. Should it be on each page? In the Session constructor? Somewhere else? I was thinking that the Session constructor would be best, but if the session is created before the user logs in and authenticates, then it won't get set properly. I can include the code again in my Session.login method. But is there somewhere else that would be better? Thanks! Tauren - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket Stuff Core 1.4.1 Release[ing]
As Nino points out, Shiro does have a snapshot pom available now, but no actual release version yet. I thought about adding the snapshot pom to wicketstuff shiro-security, but the snapshot is rather bleeding edge and I worry that it may not work at some point. Should I go ahead and do it anyway? Tauren On Mon, Sep 14, 2009 at 2:10 AM, nino martinez wael nino.martinez.w...@gmail.com wrote: Hmm seems the only one who are not compiling are ddcalendar.. The other two are syringe and shiro-security, until their dependencies become available.. There seems to be something here : http://repository.apache.org/snapshots/org/apache/shiro/ Tauren mentioned that he would correct the pom..? Or did he mean that it had to be on the common maven repository..? And as for syringe commons proxy 1.1 is still not out :( -Nino 2009/9/11 nino martinez wael nino.martinez.w...@gmail.com: Let me see if I could do that in the coming weeks. However we could have a red zone for projects that are becoming outdated.. If of course there are any? Just to tell the authors that they are in danger of being removed - attic. 2009/9/10 Jeremy Thomerson jer...@wickettraining.com: In the time it would take to generate the list, you could fix the problems. I wrote detailed instructions for adding projects to WS-core, so someone should be able to take those and fix the projects that are not meeting those standards. You want to do it? -- Jeremy Thomerson http://www.wickettraining.com On Thu, Sep 10, 2009 at 1:11 PM, nino martinez wael nino.martinez.w...@gmail.com wrote: Hi Jeremy Should we have a list of offendending project? 2009/9/6 Jeremy Thomerson jer...@wickettraining.com: First, jquery was built. They don't follow the naming conventions like they should, so you have to look into the pom to realize that it's actually wicketstuff-jquery [1]. Second, regarding merged resources - there's a link on the wiki [2] that explains how. Please make sure to follow all conventions and run mvn clean install as well as mvn site:site on all of wicketstuff-core when you are done. If you can't build everything or you can't generate sites, please don't commit. I just comment out projects that can't easily be fixed and built when building releases. [1] http://wicketstuff.org/maven/repository/org/wicketstuff/wicketstuff-jquery/1.4.1/ [2] http://wicketstuff.org/confluence/display/STUFFWIKI/WicketStuff+Core+-+Migration+Guide Best regards, -- Jeremy Thomerson http://www.wickettraining.com On Sun, Sep 6, 2009 at 11:22 AM, Jörn Zaefferer joern.zaeffe...@googlemail.com wrote: So jquery-parent was build, which just references jquery and jquery-examples - neither of which were build. Whats the point of that? Also, how can we get wicketstuff-merged-resources included in the next release? Jörn On Mon, Aug 31, 2009 at 10:20 PM, Jeremy Thomersonjer...@wickettraining.com wrote: I have the credentials and think that I will definitely be trying this on the next release :) -- Jeremy Thomerson http://www.wickettraining.com On Mon, Aug 31, 2009 at 3:16 PM, Martijn Dashorst martijn.dasho...@gmail.com wrote: Perhaps it's more beneficial to do the actual release local on the machine? I'm sure Johan can provide you with the credentials to do so. Martijn On Mon, Aug 31, 2009 at 9:27 PM, Jeremy Thomersonjer...@wickettraining.com wrote: It's mostly uploading and then merging the POMs on the remote server. The build isn't actually that bad (maybe 15 or 20 minutes for the release procedure, including tagging, etc). -- Jeremy Thomerson http://www.wickettraining.com On Mon, Aug 31, 2009 at 2:14 PM, Nicolas Melendez nmelen...@getsense.com.ar wrote: very slow build :) On Mon, Aug 31, 2009 at 9:07 PM, Jeremy Thomersonjer...@wickettraining.com wrote: Wicket Stuff Core 1.4.1 is now released: [INFO] BUILD SUCCESSFUL [INFO] [INFO] Total time: 204 minutes 20 seconds [INFO] Finished at: Mon Aug 31 14:04:09 CDT 2009 [INFO] Final Memory: 218M/929M [INFO] -- Jeremy Thomerson http://www.wickettraining.com On Mon, Aug 31, 2009 at 10:38 AM, Jeremy Thomerson jer...@wickettraining.com wrote: That was only in the event that we really needed an interim release. The plan still is that we will release to match Wicket releases. PS - I have to try to start the deploy over again: [INFO]
Re: FileUploadField bug in Chrome with ajax?
Peter, Thanks for pointing out the other thread. I'll try the quickstart attached to the JIRA issue and see if I can replicate the problem I'm having. Tauren 2009/8/26 Major Péter majorpe...@sch.bme.hu: Hi, I was experiencing the same thing, but it was in FF (3.5.2) for me. See details: http://osdir.com/ml/users-wicket.apache.org/2009-08/msg00836.html Regards, Peter 2009-08-26 05:46 keltezéssel, Tauren Mills írta: I haven't confirmed this is really a bug yet, but it looks like there may be a problem using Ajax form submit with FileUploadField in Chrome. I'm using Wicket 1.4.1. Using an ajaxbutton submitted form, I get this error in wicket-ajax-debug: ERROR: Wicket.Ajax.Call.failure: Error while parsing response: Could not find rootajax-response element If i take the FileUploadField out of my form, it works fine. Add it back, it fails. The form works fine in FF with or without the FileUploadField. Is anyone else experiencing this? Tauren - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
FileUploadField bug in Chrome with ajax?
I haven't confirmed this is really a bug yet, but it looks like there may be a problem using Ajax form submit with FileUploadField in Chrome. I'm using Wicket 1.4.1. Using an ajaxbutton submitted form, I get this error in wicket-ajax-debug: ERROR: Wicket.Ajax.Call.failure: Error while parsing response: Could not find root ajax-response element If i take the FileUploadField out of my form, it works fine. Add it back, it fails. The form works fine in FF with or without the FileUploadField. Is anyone else experiencing this? Tauren - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Improving maven/wicket deployment process
Igor, Thanks for the suggestion. Definitely looks like a good way to go. Tauren On Sun, Aug 23, 2009 at 5:02 PM, Igor Vaynberg igor.vaynb...@gmail.comwrote: we used to do something like this before we switched to jndi valueclasspath*:/application.properties/value -- prod values valueconf/application.${user.name}.properties/value that way each dev can create a conf/application.their user name.properties and override production settings with their own. for different envs you simply override the value of user.name with by defining it with -Duser.name -igor On Fri, Aug 21, 2009 at 4:27 PM, Tauren Millstau...@groovee.com wrote: I just wanted to follow up on this. As an interim solution until I have time to really do this right (using Hudson, etc.), I've done what is suggested here: http://www.developer.com/java/ent/article.php/3811931 In my spring config PropertyPlaceholderConfigurer, I use this: valueclasspath*:/application.${env}.properties/value This means that steps 1 and 2 have been resolved without the effort required to switch to using JNDI, maven profiles, or other build tools. All I do is specify -Denv=prod on my production server and -Denv=dev -Dwicket.configuration=development on my development system. I can add additional staging, QA, and other servers with this scenario, and it doesn't require a separate WAR for each one. Tauren On Mon, Aug 17, 2009 at 11:07 AM, Tauren Millstau...@groovee.com wrote: Janos and Jeremy, Thank you both for your feedback! After considering your answers, I think that using Maven profiles is most in line with my needs. And the suggestion to use the command line -Dwicket.configuration=deployment parameter will certainly help. I've never used Hudson before, but I'm looking into it now. It sounds like it could help simplify things significantly. Thanks again, Tauren - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Improving maven/wicket deployment process
I just wanted to follow up on this. As an interim solution until I have time to really do this right (using Hudson, etc.), I've done what is suggested here: http://www.developer.com/java/ent/article.php/3811931 In my spring config PropertyPlaceholderConfigurer, I use this: valueclasspath*:/application.${env}.properties/value This means that steps 1 and 2 have been resolved without the effort required to switch to using JNDI, maven profiles, or other build tools. All I do is specify -Denv=prod on my production server and -Denv=dev -Dwicket.configuration=development on my development system. I can add additional staging, QA, and other servers with this scenario, and it doesn't require a separate WAR for each one. Tauren On Mon, Aug 17, 2009 at 11:07 AM, Tauren Millstau...@groovee.com wrote: Janos and Jeremy, Thank you both for your feedback! After considering your answers, I think that using Maven profiles is most in line with my needs. And the suggestion to use the command line -Dwicket.configuration=deployment parameter will certainly help. I've never used Hudson before, but I'm looking into it now. It sounds like it could help simplify things significantly. Thanks again, Tauren - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Improving maven/wicket deployment process
Janos and Jeremy, Thank you both for your feedback! After considering your answers, I think that using Maven profiles is most in line with my needs. And the suggestion to use the command line -Dwicket.configuration=deployment parameter will certainly help. I've never used Hudson before, but I'm looking into it now. It sounds like it could help simplify things significantly. Thanks again, Tauren - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Improving maven/wicket deployment process
I currently don't have an automated deployment process in place for a wicket/spring/hibernate/maven project and am looking for suggestions on how to best implement one. I'm open to any suggestions as well as references to helpful URLs and other resources. When it is time to deploy my project, I manually go through the following steps: 1. Edit application.properties and comment out my local development database configuration and uncomment the production database configuration. The settings in this file (jdbc.driver, jdbc.url, jdbc.username, jdbc.password, hibernate.dialect, hibernate.hbm2ddl.auto) are used in my spring configuration files to create a datasource and sessionfactory. 2. Edit web.xml and change the configuration context-param from development to deployment. 3. Run mvn install 4. scp the newly built war file from my local maven repo to the jetty/webapps folder on my deployment server. 5. Remove the existing ROOT.war file from the deployment server. 6. Rename the new war file to ROOT.war 7. Restart the deployment jetty server Of course, this assumes there are no complex database changes required by the new version that can't be handled by hbm2ddl.auto=update. If there are, then I also need to apply an sql update script to the database. I'm sure that this process can be streamlined. I plan to look into mvn deploy and see what I can accomplish. I believe there are also ways to use maven to have development and deployment versions of different files such as application.properties. If you have already solved these types of problems, I'd love to hear how you did it. Thanks! Tauren - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Maven with Eclipse
Stefan, I'm using m2eclipse. But it can take a little getting used to. I also think it causes an occasional eclipse crash. However, I'm still glad to have it. Never tried the other one. Once m2eclipse installed, go to your SVN Repositories perspective, browse the wicketstuff-core project. Right click onto jwicket and select Check out as Maven project. This will download all of the jwicket projects (jwicket-parent, jwicket, jwicket-examples), give each of them an eclipse project with maven support enabled, and activate subversion support. Pretty seamless to then start working and committing. I still find that I need to use the mvn install command from the command line sometimes to get things deployed to my local repo. How do you want to structure the sub-projects. Perhaps something like this? jwicket-parent jwicket jwicket-core jwicket-ui-core jwicket-plugins jwicket-ui-drag jwicket-ui-drop jwicket-ui-resize jwicket-tooltip jwicket-examples Or maybe: jwicket-parent jwicket-core (both jwicket core and ui core) jwicket-plugins jwicket-ui-dragdrop jwicket-ui-resize jwicket-tooltip jwicket-examples Should tooltips be separated into different projects too? I don't think we should go too far overboard on modularization. Tauren On Thu, Jul 23, 2009 at 3:54 AM, Stefan Lindnerlind...@visionet.de wrote: Hi Tauren, wich Eclipse plugin for maven do you prefer? m2eclipse or IAM (q4e)? I have commit acces and now I'm starting over with development. Current steps: 1. Add keypressed detection 2. Separate the Project into small pieces Stefan - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Maven with Eclipse
Looks good to me. I'm looking forward to seeing your efforts! I will hopefully be getting to adding DND to my project soon. Once I do that, I'm planning to create a new example or update the existing example to make it more attractive looking. No offense, but when I first tried out the WicketJQuery example, it kind of turned me off because it was quite messy and confusing. Once I played with it some, it all made sense and I realized it would work well for me. But initial impressions are important. Tauren On Thu, Jul 23, 2009 at 10:13 AM, Stefan Lindnerlind...@visionet.de wrote: Tauren, I think tooltips should be separated too. The layout will be jwicket-parent jwicket-core (both jwicket core and ui core) jwicket-plugins jwicket-ui-dragdrop jwicket-ui-resize jwicket-tooltip-variantA jwicket-tooltip-variantB jwicket-tooltip-variantC jwicket-examples Stefan -Ursprüngliche Nachricht- Von: Tauren Mills [mailto:yowza...@gmail.com] Gesendet: Donnerstag, 23. Juli 2009 18:30 An: users@wicket.apache.org Betreff: Re: Maven with Eclipse Stefan, I'm using m2eclipse. But it can take a little getting used to. I also think it causes an occasional eclipse crash. However, I'm still glad to have it. Never tried the other one. Once m2eclipse installed, go to your SVN Repositories perspective, browse the wicketstuff-core project. Right click onto jwicket and select Check out as Maven project. This will download all of the jwicket projects (jwicket-parent, jwicket, jwicket-examples), give each of them an eclipse project with maven support enabled, and activate subversion support. Pretty seamless to then start working and committing. I still find that I need to use the mvn install command from the command line sometimes to get things deployed to my local repo. How do you want to structure the sub-projects. Perhaps something like this? jwicket-parent jwicket jwicket-core jwicket-ui-core jwicket-plugins jwicket-ui-drag jwicket-ui-drop jwicket-ui-resize jwicket-tooltip jwicket-examples Or maybe: jwicket-parent jwicket-core (both jwicket core and ui core) jwicket-plugins jwicket-ui-dragdrop jwicket-ui-resize jwicket-tooltip jwicket-examples Should tooltips be separated into different projects too? I don't think we should go too far overboard on modularization. Tauren On Thu, Jul 23, 2009 at 3:54 AM, Stefan Lindnerlind...@visionet.de wrote: Hi Tauren, wich Eclipse plugin for maven do you prefer? m2eclipse or IAM (q4e)? I have commit acces and now I'm starting over with development. Current steps: 1. Add keypressed detection 2. Separate the Project into small pieces Stefan - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: jWicket -- jQuery with Wicket integration
Hi Richard, I actually tried out WiQuery before deciding it wasn't the right tool for me. I can't remember the exact specifics of the issues I had with it, and I only spent about a day with it. But I remember feeling like I was being forced to use it whenever and wherever I wanted to add ANY jQuery to my project. I can see how WiQuery would be good for a developer who doesn't want to touch JS, and only code in Java. With WiQuery, I can add all the functionality I need via the WiQuery API. I have nothing against the project in this regard, it seems like a great solution for that situation. But in my case, I want a wicket/jquery tool that is lightweight and stays out of my way. I would rather code client-side only stuff just in jQuery and not have anything necessary in my server code. The only time I want wicket components to be aware of my jQuery code is if there needs to be some client-server ajax communication. For instance, drag/drop information, or sorting a list of item, etc. From my perspective, I could care less if wicket knows which accordion panel is open in the browser, because *for my application*, that doesn't matter. And I do realize there are *other applications* that this would matter, for which an optional WiQuery accordion plugin would be userful. And when I want to use another add-on jQuery plugin such as superfish.js, I don't want to have to resort to WiQuery hacks or to create my own WiQuery plugin to support it. I am constantly adding little jQuery code here and there, and to have to make WiQuery plugins for it all or to code it using the WiQuery API would be a pain that I'm not willing to put up with. The following posting I made might give a little more insight into the reason I stopped using WiQuery: http://groups.google.com/group/wiquery/browse_thread/thread/190fc243777ea3ba/492092296e40fe10?lnk=gstq=tauren#492092296e40fe10 I had already found WicketJQuery at the time I tried out WiQuery. WiQuery seemed further along and was easier to add into my application, so I tried it first. But when it failed for me, I gave WicketJQuery a try. At the moment, WicketJQuery (now jWicket) certainly isn't perfect either, but it is closer to meeting my needs. So I offered my help to Stefan to get it mavenized and moved to WicketStuff. We renamed it to jWicket during this transition. This new location will make it more accessible and easier to use for other developers. Of course, I have nothing against joining forces, but I also needed something to solve a problem, and I needed it now. WiQuery wasn't doing it for me, and jWicket was. I also want a light weight tool, and I felt like WiQuery was overkill for my needs. If there is a way to join forces so that one tool can satisfy everyone without becoming some big bloated thing, then I'm all for it! Bottom line is I just want to be able to easily add jQuery code to the client side whenever and wherever I want without having to deal with server side code -- except for when I need client/server communication of jQuery events. Maybe I'm not normal in this regard, but the WiQuery API just doesn't do it for me. I'd rather code the client side in JS/jQuery and keep it out of my java code. Sorry for being long winded. Again, I have nothing against WiQuery, and was quite impressed by it. But it just didn't seem like the right tool for my needs. I'm certainly open to ideas on how to integrate the projects, but from what I can tell, they really have different visions. Tauren On Wed, Jul 22, 2009 at 11:15 AM, richardwilkorichardjohnwilkin...@gmail.com wrote: Hi, What are the advantages of jWicket over other Wicket jQuery projects (specifically wiQuery)? It would be nice if we could all work together on a single project. wiQuery has already pooled the development resources of two other such projects. wiQuery has Wicket behaviours for the core jQuery events / actions and jQuery UI components. It also has a nice plugin mechanism for adding other jQuery widgets / behaviours and it is under active development. At jWeekend we have also just designed, developed and are testing a server side state mechanism for wiQuery components. Regards - Richard jWeekend OO, Wicket, Java Technologies - Training and Consultancy http://jWeekend.com Lionel Armanet wrote: Hi, Just to talk, there's another jQuery-Wicket integration project called WiQuery (http://code.google.com/p/wiquery/) and supported by jWeekend (http://www.jweekend.com/dev/LWUGReg/). Did you look at this project too ? Lionel tauren wrote: jWicket has now been released as a wicketstuff project. jWicket is an integration of Wicket and jQuery that was previously called WicketJQuery (by Stefan Lindner). I realize there are already a few Wicket/jQuery integrations, but I think that Stefan's WicketJQuery implementation has some advantages over the others. Stefan and I discussed how to best move the WicketJQuery project forward and decided it was best if it
Re: Migration of wicket-ki-security to wicket-shiro-security
Just wanted to announce that I've created a new wicket-shiro example application showing it working with Spring and Hibernate. I've done a little work to clean up the other example apps as well. There are now three examples: wicket-shiro-example-realm wicket-shiro-example-spring-jdbc wicket-shiro-example-spring-hibernate I've updated the wiki to reflect this: http://wicketstuff.org/confluence/display/STUFFWIKI/wicket-shiro Also, at the request of Les (from the Shiro project), I've renamed the project to wicket-shiro instead of wicket-shiro-security. Once Shiro is available in maven, I'll add it to the wicketstuff-core POM. Tauren On Fri, Jun 26, 2009 at 3:10 PM, Tauren Mills tau...@groovee.com wrote: This makes total sense to me. Now I know, sorry for any confusion this may have caused. I've commented out shiro-security and will uncomment it when it's dependencies become available via maven. Tauren On Fri, Jun 26, 2009 at 2:52 PM, Jeremy Thomerson jer...@wickettraining.com wrote: Yes - wicket-core should always be trunk-buildable. IMHO anyway. Jeremy Thomerson http://www.wickettraining.com -- sent from a wireless device -Original Message- From: Martin Funk mafulaf...@googlemail.com Sent: Friday, June 26, 2009 3:10 PM To: users@wicket.apache.org Subject: Re: Migration of wicket-ki-security to wicket-shiro-security the state it is currently in it affects 20 other projects. The initial idea for the core projects was to get all the projects that are alive together. In that sense I think the core projects should be in a state were one can build em with the following steps: svn checkout https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core cd wicketstuff-core mvn install mf Am 26.06.2009 um 22:02 schrieb Tauren Mills: I was just chatting with Les (from the Shiro project), and it sounds like Shiro will have maven snapshots available on the Apache Hudson server very soon now. I think he's just waiting on Apache to set something up. Martin -- I didn't realize I shouldn't have added the project to wicketstuff-core/pom.xml. Is that because the project depends on something that isn't available in maven? I just want to make sure I understand the reasoning. Once shiro is in maven, it would be fine to have the submodule included, right? Thanks, Tauren On Fri, Jun 26, 2009 at 12:32 PM, Martin Funk mafulaf...@googlemail.com wrote: not that bad of a plan, I'd suggest a little change. Besides the things you have already done please uncomment the shiro-security module out of the wicketstuff-core pom.xml You can comment on that in the pom.xml itself and on the the wiki page you already created. mf Am 26.06.2009 um 10:23 schrieb Tauren Mills: I've created a new project in WicketStuff for wicket-shiro-security: https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/shiro-security/ This project is basically the same as wicket-ki-security, but I've changed all references of apache ki/jsecurity to shiro. In addition, instead of being dependent on jsecurity-0.9.0.jar, this project relies on the following jars: shiro-core-1.0-incubating-SNAPSHOT.jar shiro-web-1.0-incubating-SNAPSHOT.jar shiro-spring-1.0-incubating-SNAPSHOT.jar Unfortunately, I don't think these jars are availabe in a maven repo yet. So to build you'll need to: mkdir shiro cd shiro svn co http://svn.apache.org/repos/asf/incubator/shiro/trunk/ mvn install I've ran the two sample apps (realm and spring-jdbc) and they both appear to be working correctly. I didn't want to remove the wicket-ki-security project, as others might be using it. But now that apache ki has changed its name to apache shiro, perhaps that project should be moved out of wicketstuff-core? Please let me know if anyone finds any issues with this release. Thanks! Tauren - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Migration of wicket-ki-security to wicket-shiro-security
I've created a new project in WicketStuff for wicket-shiro-security: https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/shiro-security/ This project is basically the same as wicket-ki-security, but I've changed all references of apache ki/jsecurity to shiro. In addition, instead of being dependent on jsecurity-0.9.0.jar, this project relies on the following jars: shiro-core-1.0-incubating-SNAPSHOT.jar shiro-web-1.0-incubating-SNAPSHOT.jar shiro-spring-1.0-incubating-SNAPSHOT.jar Unfortunately, I don't think these jars are availabe in a maven repo yet. So to build you'll need to: mkdir shiro cd shiro svn co http://svn.apache.org/repos/asf/incubator/shiro/trunk/ mvn install I've ran the two sample apps (realm and spring-jdbc) and they both appear to be working correctly. I didn't want to remove the wicket-ki-security project, as others might be using it. But now that apache ki has changed its name to apache shiro, perhaps that project should be moved out of wicketstuff-core? Please let me know if anyone finds any issues with this release. Thanks! Tauren
Re: Migration of wicket-ki-security to wicket-shiro-security
BTW -- I added a page to the wiki as well: http://wicketstuff.org/confluence/display/STUFFWIKI/wicket-shiro-security Thanks Martijn -- not sure if it should be moved yet, but that's good to know. Tauren On Fri, Jun 26, 2009 at 1:35 AM, Martijn Dashorst martijn.dasho...@gmail.com wrote: I think we have an attic for abandoned projects. Martijn On Fri, Jun 26, 2009 at 10:23 AM, Tauren Millstau...@groovee.com wrote: I've created a new project in WicketStuff for wicket-shiro-security: https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/shiro-security/ This project is basically the same as wicket-ki-security, but I've changed all references of apache ki/jsecurity to shiro. In addition, instead of being dependent on jsecurity-0.9.0.jar, this project relies on the following jars: shiro-core-1.0-incubating-SNAPSHOT.jar shiro-web-1.0-incubating-SNAPSHOT.jar shiro-spring-1.0-incubating-SNAPSHOT.jar Unfortunately, I don't think these jars are availabe in a maven repo yet. So to build you'll need to: mkdir shiro cd shiro svn co http://svn.apache.org/repos/asf/incubator/shiro/trunk/ mvn install I've ran the two sample apps (realm and spring-jdbc) and they both appear to be working correctly. I didn't want to remove the wicket-ki-security project, as others might be using it. But now that apache ki has changed its name to apache shiro, perhaps that project should be moved out of wicketstuff-core? Please let me know if anyone finds any issues with this release. Thanks! Tauren -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.5 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Migration of wicket-ki-security to wicket-shiro-security
Sounds like a good plan to me. Tauren On Fri, Jun 26, 2009 at 2:59 AM, Maarten Bosteels mbosteels@gmail.comwrote: wicket-ki-security is not yet abandonded :-) I suggest we remove the project (or move it to the attic) as soon as Shiro has a non-snapshot release in maven. Maarten On Fri, Jun 26, 2009 at 11:06 AM, Tauren Mills tau...@groovee.com wrote: BTW -- I added a page to the wiki as well: http://wicketstuff.org/confluence/display/STUFFWIKI/wicket-shiro-security Thanks Martijn -- not sure if it should be moved yet, but that's good to know. Tauren On Fri, Jun 26, 2009 at 1:35 AM, Martijn Dashorst martijn.dasho...@gmail.com wrote: I think we have an attic for abandoned projects. Martijn On Fri, Jun 26, 2009 at 10:23 AM, Tauren Millstau...@groovee.com wrote: I've created a new project in WicketStuff for wicket-shiro-security: https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/shiro-security/ This project is basically the same as wicket-ki-security, but I've changed all references of apache ki/jsecurity to shiro. In addition, instead of being dependent on jsecurity-0.9.0.jar, this project relies on the following jars: shiro-core-1.0-incubating-SNAPSHOT.jar shiro-web-1.0-incubating-SNAPSHOT.jar shiro-spring-1.0-incubating-SNAPSHOT.jar Unfortunately, I don't think these jars are availabe in a maven repo yet. So to build you'll need to: mkdir shiro cd shiro svn co http://svn.apache.org/repos/asf/incubator/shiro/trunk/ mvn install I've ran the two sample apps (realm and spring-jdbc) and they both appear to be working correctly. I didn't want to remove the wicket-ki-security project, as others might be using it. But now that apache ki has changed its name to apache shiro, perhaps that project should be moved out of wicketstuff-core? Please let me know if anyone finds any issues with this release. Thanks! Tauren -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.5 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Migration of wicket-ki-security to wicket-shiro-security
I was just chatting with Les (from the Shiro project), and it sounds like Shiro will have maven snapshots available on the Apache Hudson server very soon now. I think he's just waiting on Apache to set something up. Martin -- I didn't realize I shouldn't have added the project to wicketstuff-core/pom.xml. Is that because the project depends on something that isn't available in maven? I just want to make sure I understand the reasoning. Once shiro is in maven, it would be fine to have the submodule included, right? Thanks, Tauren On Fri, Jun 26, 2009 at 12:32 PM, Martin Funk mafulaf...@googlemail.comwrote: not that bad of a plan, I'd suggest a little change. Besides the things you have already done please uncomment the shiro-security module out of the wicketstuff-core pom.xml You can comment on that in the pom.xml itself and on the the wiki page you already created. mf Am 26.06.2009 um 10:23 schrieb Tauren Mills: I've created a new project in WicketStuff for wicket-shiro-security: https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/shiro-security/ This project is basically the same as wicket-ki-security, but I've changed all references of apache ki/jsecurity to shiro. In addition, instead of being dependent on jsecurity-0.9.0.jar, this project relies on the following jars: shiro-core-1.0-incubating-SNAPSHOT.jar shiro-web-1.0-incubating-SNAPSHOT.jar shiro-spring-1.0-incubating-SNAPSHOT.jar Unfortunately, I don't think these jars are availabe in a maven repo yet. So to build you'll need to: mkdir shiro cd shiro svn co http://svn.apache.org/repos/asf/incubator/shiro/trunk/ mvn install I've ran the two sample apps (realm and spring-jdbc) and they both appear to be working correctly. I didn't want to remove the wicket-ki-security project, as others might be using it. But now that apache ki has changed its name to apache shiro, perhaps that project should be moved out of wicketstuff-core? Please let me know if anyone finds any issues with this release. Thanks! Tauren - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Migration of wicket-ki-security to wicket-shiro-security
This makes total sense to me. Now I know, sorry for any confusion this may have caused. I've commented out shiro-security and will uncomment it when it's dependencies become available via maven. Tauren On Fri, Jun 26, 2009 at 2:52 PM, Jeremy Thomerson jer...@wickettraining.com wrote: Yes - wicket-core should always be trunk-buildable. IMHO anyway. Jeremy Thomerson http://www.wickettraining.com -- sent from a wireless device -Original Message- From: Martin Funk mafulaf...@googlemail.com Sent: Friday, June 26, 2009 3:10 PM To: users@wicket.apache.org Subject: Re: Migration of wicket-ki-security to wicket-shiro-security the state it is currently in it affects 20 other projects. The initial idea for the core projects was to get all the projects that are alive together. In that sense I think the core projects should be in a state were one can build em with the following steps: svn checkout https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core cd wicketstuff-core mvn install mf Am 26.06.2009 um 22:02 schrieb Tauren Mills: I was just chatting with Les (from the Shiro project), and it sounds like Shiro will have maven snapshots available on the Apache Hudson server very soon now. I think he's just waiting on Apache to set something up. Martin -- I didn't realize I shouldn't have added the project to wicketstuff-core/pom.xml. Is that because the project depends on something that isn't available in maven? I just want to make sure I understand the reasoning. Once shiro is in maven, it would be fine to have the submodule included, right? Thanks, Tauren On Fri, Jun 26, 2009 at 12:32 PM, Martin Funk mafulaf...@googlemail.com wrote: not that bad of a plan, I'd suggest a little change. Besides the things you have already done please uncomment the shiro-security module out of the wicketstuff-core pom.xml You can comment on that in the pom.xml itself and on the the wiki page you already created. mf Am 26.06.2009 um 10:23 schrieb Tauren Mills: I've created a new project in WicketStuff for wicket-shiro-security: https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/shiro-security/ This project is basically the same as wicket-ki-security, but I've changed all references of apache ki/jsecurity to shiro. In addition, instead of being dependent on jsecurity-0.9.0.jar, this project relies on the following jars: shiro-core-1.0-incubating-SNAPSHOT.jar shiro-web-1.0-incubating-SNAPSHOT.jar shiro-spring-1.0-incubating-SNAPSHOT.jar Unfortunately, I don't think these jars are availabe in a maven repo yet. So to build you'll need to: mkdir shiro cd shiro svn co http://svn.apache.org/repos/asf/incubator/shiro/trunk/ mvn install I've ran the two sample apps (realm and spring-jdbc) and they both appear to be working correctly. I didn't want to remove the wicket-ki-security project, as others might be using it. But now that apache ki has changed its name to apache shiro, perhaps that project should be moved out of wicketstuff-core? Please let me know if anyone finds any issues with this release. Thanks! Tauren - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Problem with redirectToInterceptPage in AjaxLink with IndexedParamUrlCodingStrategy in Jetty
On a page that is mounted with an IndexedParamUrlCodingStrategy, I have an AjaxFallbackLink. If the user is not logged in, it's onclick issues a redirectToInterceptPage to my Login page. Once the user is logged in, my understanding is that the user should go back to the page that contains the ajax link. However, when I am not logged in, click the ajax link, and log in, I'm getting an exception and shown a blank page with the following URL, which I believe is the path to my Login form submit button: http://localhost:8080/?wicket:interface=:2:body:tabs:panel:signInForm::IFormSubmitListener :: The URL of the page that contains the ajax link is actually: http://localhost:8080/forums/5/test-thread-c/ So when I trace through the code in PageMap.java during the call to redirectInterceptPage(), the value of interceptContinuationURL is set the following. This is the path used in the redirect after login: ../../../?wicket:interface=:0 It gets this from the call to cycle.urlFor(cycle.getRequest().getPage()).toString(): // The intercept continuation URL should be saved exactly as the // original request specified. // Only if it is an ajax request just redirect to the page where the request is from. if (cycle.getRequest() instanceof WebRequest ((WebRequest)cycle.getRequest()).isAjax()) { interceptContinuationURL = cycle.urlFor(cycle.getRequest().getPage()).toString(); } else { interceptContinuationURL = / + cycle.getRequest().getURL(); } When I get the exception, the value of location is set to null in Jetty's Response.sendRedirect(): location=URIUtil.canonicalPath(URIUtil.addPaths(parent,location)); if(location==null) throw new IllegalStateException(path cannot be above root); Here is the exception I'm getting: java.lang.IllegalStateException: path cannot be above root at org.mortbay.jetty.Response.sendRedirect(Response.java:399) at org.apache.wicket.protocol.http.WebResponse.redirect(WebResponse.java:232) According to the URIUtil.canonicalPath javadoc: /** Convert a path to a cananonical form. * All instances of . and .. are factored out. Null is returned * if the path tries to .. above its root. * @param path * @return path or null. */ So, I realize this could be a Jetty issue, but I'm using the latest (6.1.16). I haven't had any other problems with Jetty before. It seems that the path being returned by Wicket has too many /.. strings in it. Is it possible this is a wicket issue? BTW, I'm using Wicket 1.3.6. Any insights would be appreciated! Thanks, Tauren
Re: How to determine which validator failed in a CompoundValidator?
Daan, Yes, this definitely looks like the direction I should go for most of my form components. Thanks for sharing it! However, I also need to make a PasswordStrengthMeter, which will show different values (and css styling) based on the strength of a password entered into a password field. Something like one of these: http://ui-patterns.com/pattern/PasswordStrengthMeter http://ui-patterns.com/userset/39/image/1104#focus Before I embark on building it, do you have any suggestions on easy ways to use your solution to do this? Thanks! Tauren On Tue, Apr 21, 2009 at 10:18 PM, nino martinez wael nino.martinez.w...@gmail.com wrote: Yeah looks like the way Tauren should go.. Did'nt know that was what he was looking fore.. 2009/4/22 Daan van Etten d...@stuq.nl: Hi Tauren, A while ago I wrote this article, which may give you some hints on how to achieve this: http://stuq.nl/weblog/2008-09-03/user-friendly-form-validation-with-wicket Regards, Daan Op 21 apr 2009, om 17:36 heeft Tauren Mills het volgende geschreven: Thanks Nino, Actually, I want just one error message right next to the username field that is specific to the username. I also want to highlight via css the username field. A messagepanel would list errors in other fields as well, wouldn't it? Tauren On Apr 21, 2009 5:06 AM, nino martinez wael nino.martinez.w...@gmail.com wrote: Hmm, it happens automatically, a validator can register errors.. Like this: form.add(new TextFieldString(email,new PropertyModelString(form.getModel(),email)).add( EmailAddressValidator.getInstance()).add(new IValidator() { public void validate(IValidatable validatable) { String string = (String) validatable.getValue(); if (userRepository.areEmailThere(string)) { validatable.error(new ValidationError().addMessageKey( error.unique).setVariable(email, validatable.getValue())); } } })); form.add(new CheckBox(agree, new ModelBoolean(false)) .add(new IValidatorBoolean() { public void validate(IValidatableBoolean validatable) { Boolean agree = validatable.getValue(); if (!agree) { validatable.error(new ValidationError() .addMessageKey(error.mustagree)); } } })); And then just in your ajax add the error message panel to the response.. Works just fine... Or is it something more you want? 2009/4/21 Tauren Mills tau...@tauren.com: On a site registration form, I have three validators on the username field. One tests to make s... - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: How to determine which validator failed in a CompoundValidator?
Thanks Nino, Actually, I want just one error message right next to the username field that is specific to the username. I also want to highlight via css the username field. A messagepanel would list errors in other fields as well, wouldn't it? Tauren On Apr 21, 2009 5:06 AM, nino martinez wael nino.martinez.w...@gmail.com wrote: Hmm, it happens automatically, a validator can register errors.. Like this: form.add(new TextFieldString(email,new PropertyModelString(form.getModel(),email)).add( EmailAddressValidator.getInstance()).add(new IValidator() { public void validate(IValidatable validatable) { String string = (String) validatable.getValue(); if (userRepository.areEmailThere(string)) { validatable.error(new ValidationError().addMessageKey( error.unique).setVariable(email, validatable.getValue())); } } })); form.add(new CheckBox(agree, new ModelBoolean(false)) .add(new IValidatorBoolean() { public void validate(IValidatableBoolean validatable) { Boolean agree = validatable.getValue(); if (!agree) { validatable.error(new ValidationError() .addMessageKey(error.mustagree)); } } })); And then just in your ajax add the error message panel to the response.. Works just fine... Or is it something more you want? 2009/4/21 Tauren Mills tau...@tauren.com: On a site registration form, I have three validators on the username field. One tests to make s... - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket based social apps, forums, wall-to-wall (facebook-style), live chat, etc.
Martijn, Thanks for the feedback and I will look into your suggestions further. If I build social features into my site, it probably would be good to support the OpenSocial specification. However, as far as I can tell, both shindig and the facebook examples aren't really what I'm looking for. At the simplest level, I need a forum on my site and was looking to see if a wicket one existed. I'm starting to get the feeling that it doesn't exist right now and that integrating JForum and dealing with single sign on issues would be the best approach without building my own. Thanks again, Tauren On Wed, Mar 18, 2009 at 12:07 AM, Martijn Dashorst martijn.dasho...@gmail.com wrote: iirc shindig is an open social container, maybe that is easy to integrate? And there are several facebook examples on the wiki. Martijn On Wed, Mar 18, 2009 at 1:31 AM, Tauren Mills tau...@tauren.com wrote: Are there any existing open source projects that could help reduce the effort of integrating social communication features into a site? I've read through the archives and noticed several conversations about building a wicket-based forum. I believe Uwe started a google code project, but it looks like it hasn't really gone anywhere. Nino asked about integrating JForum and Toto had some suggestions for him. But I didn't find much else. Are there any wicket-specific forums out there? Would it be best to just use JForum? What about Facebook style profile feeds, wall-to-wall type of communication? Or live chat, either Facebook style, Live Person style, or otherwise? Thanks, Tauren - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.5 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Wicket based social apps, forums, wall-to-wall (facebook-style), live chat, etc.
Are there any existing open source projects that could help reduce the effort of integrating social communication features into a site? I've read through the archives and noticed several conversations about building a wicket-based forum. I believe Uwe started a google code project, but it looks like it hasn't really gone anywhere. Nino asked about integrating JForum and Toto had some suggestions for him. But I didn't find much else. Are there any wicket-specific forums out there? Would it be best to just use JForum? What about Facebook style profile feeds, wall-to-wall type of communication? Or live chat, either Facebook style, Live Person style, or otherwise? Thanks, Tauren - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Creating a brandable or white label type of application
Igor, Thanks! I was already planning to use Brix for CMS purposes, bud didn't realize it had multi-site features like this. Tauren On Sat, Mar 7, 2009 at 1:14 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: if you are just starting to think about building this you might want to consider using brix, or another cms that works well with wicket. in case of brix: each client would get their own jcr workspaces that you can fill in with a template. they are then free to edit their own workspace creating pages, uploading images, etc. it is trivial in brix to map domains to workspaces functionality for your application is then provided using brix tiles which users are free to move around their html, a tile is basically just a [brix:tile tile:id=foo][/brix:tile] anywhere inside the markup. if this sounds too out there you can still use normal wicket code and allow your customers to edit the markup. you can store the markup itself in the database, so all things like styles and variations still work even though markup is not in the war. see IMarkupStreamProvider and IMarkupCacheKeyProvider - these allow you to override where markup comes from per page or per hierarchy of pages. there are more general things like IResourceStreamProvider that will allow you to override where resources are loaded from on a global scale. -igor On Fri, Mar 6, 2009 at 7:30 PM, Tauren Mills tau...@groovee.com wrote: I'm looking for thoughts on ways to create a site that can be branded by a customer. It should do the following: * run in a single webapp deployed in a WAR file * multiple host names resolve to this same web app domain1.com - myapp.com domain2.com -- myapp.com * based on the host name, the app selects a skin (color scheme, images, maybe even layout changes) * users need to be able to alter colors, images, and layout in real time, so updating the WAR with new skins isn't possible * need to pull alternate CSS content and perhaps HTML markup from a database and images from a location outside of the WAR. This needs to be kind of like blogger.com, where a user can change images and colors, and the application displays their blog that way. But in my case, the content on the page primarily remains the same, just the way it is presented changes. So I'm looking at the localization and style features thinking they might help. But they rely on alternate versions of files to be in the WAR. http://cwiki.apache.org/WICKET/localization-and-skinning-of-applications.html What methods would you recommend to get the current hostname from the request? Whould this be best done in the RequestCycle, the Session, or? What techniques would be useful for using external CSS, images, and HTML? Will getStyle/setStyle even help since the content is external of the WAR? I realize that I shouldn't allow users to modify HTML markup that contains wicket tags. That could break things very quickly. I'm just starting to think about how to do this, so I'm looking for any suggestions to direct me to the right tools for the job. Thanks, Tauren - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Creating a brandable or white label type of application
I'm looking for thoughts on ways to create a site that can be branded by a customer. It should do the following: * run in a single webapp deployed in a WAR file * multiple host names resolve to this same web app domain1.com - myapp.com domain2.com -- myapp.com * based on the host name, the app selects a skin (color scheme, images, maybe even layout changes) * users need to be able to alter colors, images, and layout in real time, so updating the WAR with new skins isn't possible * need to pull alternate CSS content and perhaps HTML markup from a database and images from a location outside of the WAR. This needs to be kind of like blogger.com, where a user can change images and colors, and the application displays their blog that way. But in my case, the content on the page primarily remains the same, just the way it is presented changes. So I'm looking at the localization and style features thinking they might help. But they rely on alternate versions of files to be in the WAR. http://cwiki.apache.org/WICKET/localization-and-skinning-of-applications.html What methods would you recommend to get the current hostname from the request? Whould this be best done in the RequestCycle, the Session, or? What techniques would be useful for using external CSS, images, and HTML? Will getStyle/setStyle even help since the content is external of the WAR? I realize that I shouldn't allow users to modify HTML markup that contains wicket tags. That could break things very quickly. I'm just starting to think about how to do this, so I'm looking for any suggestions to direct me to the right tools for the job. Thanks, Tauren - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Storing user entity in session?
Martijn, I see your point about users clicking fast and causing an exception if I keep a User in the session (transient or otherwise). I too would be curious to see some example code of how you handle the situation. Thanks, Tauren On Mon, Feb 23, 2009 at 11:47 PM, Alexander Lohse a...@humantouch.de wrote: Hi Martijn, could you paste some short example code to point out how to load and access a UserModel in the requestcycle? Regards, Alex Am 23.02.2009 um 08:42 schrieb Martijn Dashorst: - Show quoted text - Storing the user in a field of Session is wrong. Didn't you read the concurrency caveats I posted earlier? When users click fast enough, you'll get Hibernate exceptions pretty soon. Entity instances can't be shared between multiple threads. Putting them in the Session exposes them to that threat. Putting transient before the field doesn't mitigate that, neither does synchronized. Martijn On Fri, Feb 20, 2009 at 11:25 PM, Tauren Mills tau...@groovee.com wrote: Nino and Martijn, Thanks for the help. Last night I was looking through the elephas code and found a solution that I think will work for me. It doesn't store an LDM in the session, but stores an identifier and a *transient* instance of User. This seems like an effective solution to me. I tried it out and haven't had problems yet. Here's the elephas session so you can see for yourself: http://code.google.com/p/elephas/source/browse/trunk/src/main/java/org/elephas/webapp/application/ElephasSession.java?r=87 Then on my page, I just do something like this: setDefaultModel(new DetachableUserModel(getSession().getUser(),userDao)); Please let me know your thoughts on this. Thanks, Tauren On Fri, Feb 20, 2009 at 2:05 AM, nino martinez wael nino.martinez.w...@gmail.com wrote: Hi Tauren I've done something similar.. Have no trouble with.. Disclaimer, below code are really ugly and I need to clean it up... - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.5 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org __ A designer knows he has achieved perfection not when there is nothing left to add, but when there is nothing left to take away. (Antoine de Saint Exupéry) . Alexander Lohse • Entwicklungsleitung Projektmanagement Tel +49 38374 752 11 • Fax +49 38374 752 23 http://www.humantouch.de Human Touch Medienproduktion GmbH Am See 1 • 17440 Klein Jasedow • Deutschland Geschäftsführung: Lara Mallien, Nele Hybsier, Alexander Lohse, Johannes Heimrath (Senior) Handelsregister Stralsund • HRB 4192 • USt-IdNr. DE128367684 - Show quoted text - - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket VoiceXML framework?
Nino, Yeah, I can see the value in what you are suggesting. It would be nice to be able to easily add vxml support for common functions with only high-level effort. I wish I had some time right now to help, but will keep an eye on where you are heading. Good luck! Tauren On Fri, Feb 20, 2009 at 2:33 AM, nino martinez wael nino.martinez.w...@gmail.com wrote: Replying Inline.. 2009/2/20 Tauren Mills tau...@tauren.com Nino, I've considered learning more about VoiceXML as well, but it would be for a future project and unfortunately I don't have time to help right now. If you do get it going, I'd certainly be interested in contributing down the road. No problem, it's nice to know that theres someone else out there :) However, I am curious what your thoughts are in regards to this. What use-cases are you wanting to solve? Although my knowledge is *very* limited, wouldn't the output of VoiceXML be accomplished simply by getting wicket to output XML? And I believe that is easy enough to to with: @Override public String getMarkupType() { return xml; } Of course, I'm not clear how a voice browser (the recipient of the voicexml) sends responses back, which could be more challenging. No you are completely right.. What I guess I would like where to put a higher level of abstraction on, so the components do most of the foot work for you. I guess you can compare this to my openlayers integration, it's easy aswell to use openlayers with out the integration but the integration makes it much easier, abstracting what you need todo to a much higher level... As I dont know a bit about vxml, im not sure how much you could abstract but I think there should be some room for it. Like being able to generate easy logic etc. Something like this could defiantly be done alot simpler : http://pastebin.com/f21b6b3ea But im still wondering about the architecture... -regards Nino Tauren On Tue, Feb 17, 2009 at 6:09 AM, nino martinez wael nino.martinez.w...@gmail.com wrote: Hi Guys Would any of you be interested in creating a VoiceXML framework based on wicket with me? I dont have much knowledge on vxml (im new to the domain) but I have a little on wicket :) Im just thinking aloud right now, so theres no scope or anything defined. regards Nino - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Status of Wicket-Security (SWARM and WASP)?
Jeremy, Thanks for the response. I apologize for touching on a sensitive subject like this, but I was unaware of the circumstances. My condolences to anyone who knew Maurice. It really does look like Wicket-security, and in particular version 1.3.1 might be the right solution for my application. Are there people out there who are using it in your applications? Do you have any plans for how to migrate to wicket 1.4, or have you already attempted doing so? How much effort was involved? I wouldn't mind helping move wicket security forward, but I'm not sure if I have the technical expertise to lead the project. I'm somewhat proficient with wicket 1.3, but am still just dabbling with 1.4. Thanks again, Tauren On Fri, Feb 20, 2009 at 1:56 PM, Jeremy Thomerson jer...@wickettraining.com wrote: I think since Maurice's death, there has not been much concrete discussion as to the future of it. I suppose it needs a leader to pick it up and run with it (and I nominate Nino :) http://www.nabble.com/Future-of-Wicket-Security--td19176506.html http://www.nabble.com/In-memoriam:-Maurice-Marrink-td18813738.html -- Jeremy Thomerson http://www.wickettraining.com On Fri, Feb 20, 2009 at 3:48 PM, Tauren Mills tau...@groovee.com wrote: Does anyone know the current status of the wicket-security project? It looks like there has been no activity in svn for close to a year. And it is unclear if it will work with wicket 1.4. What is the preferred tool today for implementing a roles-based authorization and authentication system with wicket 1.4? Right now I only need wicket-based security, but may need to secure webservices as well in the future, and understand that swarm 1.3.1 was working to add that. In my application, users will be assigned multiple roles. All users will see the same main page, but users with certain roles need to be able to see additional tabs, more content panels, as well as be able to view and edit appropriate content based on roles. So I'm trying to determine a security implementation for an upcoming project and have been researching the options available. I've found the following approaches: Wicket Auth Roles wicket-auth-roles-1.4-rc2.jar Roles support seems quite limited Wicket Security (SWARM and WASP) http://wicketstuff.org/confluence/display/STUFFWIKI/Wicket-Security http://wicketstuff.org/confluence/display/STUFFWIKI/Wicket-Security+1.3.1 Looks powerful, but not sure if it works with 1.4 and if support is going to continue. Wicket Security + ACEGI http://wicketstuff.org/confluence/display/STUFFWIKI/Swarm+and+Acegi+HowTo Not sure about this one Wicket Auth Roles plus Spring Security Example: http://svn.carmanconsulting.com/public/wicket-advanced/trunk/ Looks clean and simple, but I thought I read spring security was very much based on the RESTfulness of things, which doesn't necessarily work all that well with wicket. Never used it, so maybe I'm mistaken. Wicket in Action book Uses a simple, but custom implementation. I would consider going with a custom solution too if the other options don't pan out. Any other solutions I don't know about? I'm all ears if anyone has recommendations for my use case. I'm leaning toward wicket security, but am concerned about the lack of activity. Thanks, Tauren - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Storing user entity in session?
Nino and Martijn, Thanks for the help. Last night I was looking through the elephas code and found a solution that I think will work for me. It doesn't store an LDM in the session, but stores an identifier and a *transient* instance of User. This seems like an effective solution to me. I tried it out and haven't had problems yet. Here's the elephas session so you can see for yourself: http://code.google.com/p/elephas/source/browse/trunk/src/main/java/org/elephas/webapp/application/ElephasSession.java?r=87 Then on my page, I just do something like this: setDefaultModel(new DetachableUserModel(getSession().getUser(),userDao)); Please let me know your thoughts on this. Thanks, Tauren On Fri, Feb 20, 2009 at 2:05 AM, nino martinez wael nino.martinez.w...@gmail.com wrote: Hi Tauren I've done something similar.. Have no trouble with.. Disclaimer, below code are really ugly and I need to clean it up... - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Status of Wicket-Security (SWARM and WASP)?
Brill, At the moment, I just don't know. But I will certainly take your comment to heart. I do have the feeling that this app will need more than wicket-auth-roles can provide. Thanks, Tauren On Fri, Feb 20, 2009 at 2:37 PM, Brill Pappin br...@pappin.ca wrote: Every time I think I want to move up from wicket-auth-roles, I realize that its YAGNI and never do. that said, that are times when auth-roles is a pain, but thats always because its written so its not easily extendable. My advice would be do you actually need such fine grained control over security ot he site, that you can't do it via a role?. - Brill On 20-Feb-09, at 5:08 PM, Tauren Mills wrote: Jeremy, Thanks for the response. I apologize for touching on a sensitive subject like this, but I was unaware of the circumstances. My condolences to anyone who knew Maurice. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Status of Wicket-Security (SWARM and WASP)?
Martijn, I'm in the planning and estimating stages for this project, so no I haven't tried it out. I was hoping to hear from someone who has to help give me an idea of how much effort will be involved. Of course, I will be giving it a try as well, I just haven't yet. Thanks! Tauren On Fri, Feb 20, 2009 at 2:46 PM, Martijn Dashorst martijn.dasho...@gmail.com wrote: Our company is quite invested in swarm/wasp (Maurice was a friend and co-worker). Our current projects are still 1.3 based, and several swarm/wasp based projects will move to wicket 1.4 as it becomes final. Chances are we'll need to fix swarm/wasp as well, and invest into that when that happens. What doesn't work with swarm/wasp in wicket 1.4? Did you try it out? Martijn On Fri, Feb 20, 2009 at 11:08 PM, Tauren Mills tau...@groovee.com wrote: Jeremy, Thanks for the response. I apologize for touching on a sensitive subject like this, but I was unaware of the circumstances. My condolences to anyone who knew Maurice. It really does look like Wicket-security, and in particular version 1.3.1 might be the right solution for my application. Are there people out there who are using it in your applications? Do you have any plans for how to migrate to wicket 1.4, or have you already attempted doing so? How much effort was involved? I wouldn't mind helping move wicket security forward, but I'm not sure if I have the technical expertise to lead the project. I'm somewhat proficient with wicket 1.3, but am still just dabbling with 1.4. Thanks again, Tauren On Fri, Feb 20, 2009 at 1:56 PM, Jeremy Thomerson jer...@wickettraining.com wrote: I think since Maurice's death, there has not been much concrete discussion as to the future of it. I suppose it needs a leader to pick it up and run with it (and I nominate Nino :) http://www.nabble.com/Future-of-Wicket-Security--td19176506.html http://www.nabble.com/In-memoriam:-Maurice-Marrink-td18813738.html -- Jeremy Thomerson http://www.wickettraining.com On Fri, Feb 20, 2009 at 3:48 PM, Tauren Mills tau...@groovee.com wrote: Does anyone know the current status of the wicket-security project? It looks like there has been no activity in svn for close to a year. And it is unclear if it will work with wicket 1.4. What is the preferred tool today for implementing a roles-based authorization and authentication system with wicket 1.4? Right now I only need wicket-based security, but may need to secure webservices as well in the future, and understand that swarm 1.3.1 was working to add that. In my application, users will be assigned multiple roles. All users will see the same main page, but users with certain roles need to be able to see additional tabs, more content panels, as well as be able to view and edit appropriate content based on roles. So I'm trying to determine a security implementation for an upcoming project and have been researching the options available. I've found the following approaches: Wicket Auth Roles wicket-auth-roles-1.4-rc2.jar Roles support seems quite limited Wicket Security (SWARM and WASP) http://wicketstuff.org/confluence/display/STUFFWIKI/Wicket-Security http://wicketstuff.org/confluence/display/STUFFWIKI/Wicket-Security+1.3.1 Looks powerful, but not sure if it works with 1.4 and if support is going to continue. Wicket Security + ACEGI http://wicketstuff.org/confluence/display/STUFFWIKI/Swarm+and+Acegi+HowTo Not sure about this one Wicket Auth Roles plus Spring Security Example: http://svn.carmanconsulting.com/public/wicket-advanced/trunk/ Looks clean and simple, but I thought I read spring security was very much based on the RESTfulness of things, which doesn't necessarily work all that well with wicket. Never used it, so maybe I'm mistaken. Wicket in Action book Uses a simple, but custom implementation. I would consider going with a custom solution too if the other options don't pan out. Any other solutions I don't know about? I'm all ears if anyone has recommendations for my use case. I'm leaning toward wicket security, but am concerned about the lack of activity. Thanks, Tauren - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.5 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Status of Wicket-Security (SWARM and WASP)?
Martijn, Looking in the maven repo, it looks like there is also a version 1.4-SNAPSHOT of wicket-security. It has a build date of Nov 2008. http://wicketstuff.org/maven/repository/org/apache/wicket/wicket-security/swarm/1.4-SNAPSHOT It looks like the following might be the source. But these commits are 7 months old (committed by mrmean), which doesn't match the Nov 2008 date in maven repo. It does have the comment initial compilation against wicket 1.4 (no generics yet). http://wicket-stuff.svn.sourceforge.net/viewvc/wicket-stuff/branches/wicket-security-1.4-earlyaccess/ The wiki page clarifies that 1.3.0 is the latest stable release and that 1.3-SNAPSHOT is the 1.3.1 branch. The source for the 1.3.1 branch looks to be in: https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicket-security/ So perhaps there has already been some work done on porting wicket-security to 1.4. If you have any additional information, please share it! Thanks, Tauren On Fri, Feb 20, 2009 at 2:52 PM, Tauren Mills tau...@groovee.com wrote: Martijn, I'm in the planning and estimating stages for this project, so no I haven't tried it out. I was hoping to hear from someone who has to help give me an idea of how much effort will be involved. Of course, I will be giving it a try as well, I just haven't yet. Thanks! Tauren On Fri, Feb 20, 2009 at 2:46 PM, Martijn Dashorst martijn.dasho...@gmail.com wrote: Our company is quite invested in swarm/wasp (Maurice was a friend and co-worker). Our current projects are still 1.3 based, and several swarm/wasp based projects will move to wicket 1.4 as it becomes final. Chances are we'll need to fix swarm/wasp as well, and invest into that when that happens. What doesn't work with swarm/wasp in wicket 1.4? Did you try it out? Martijn On Fri, Feb 20, 2009 at 11:08 PM, Tauren Mills tau...@groovee.com wrote: Jeremy, Thanks for the response. I apologize for touching on a sensitive subject like this, but I was unaware of the circumstances. My condolences to anyone who knew Maurice. It really does look like Wicket-security, and in particular version 1.3.1 might be the right solution for my application. Are there people out there who are using it in your applications? Do you have any plans for how to migrate to wicket 1.4, or have you already attempted doing so? How much effort was involved? I wouldn't mind helping move wicket security forward, but I'm not sure if I have the technical expertise to lead the project. I'm somewhat proficient with wicket 1.3, but am still just dabbling with 1.4. Thanks again, Tauren On Fri, Feb 20, 2009 at 1:56 PM, Jeremy Thomerson jer...@wickettraining.com wrote: I think since Maurice's death, there has not been much concrete discussion as to the future of it. I suppose it needs a leader to pick it up and run with it (and I nominate Nino :) http://www.nabble.com/Future-of-Wicket-Security--td19176506.html http://www.nabble.com/In-memoriam:-Maurice-Marrink-td18813738.html -- Jeremy Thomerson http://www.wickettraining.com On Fri, Feb 20, 2009 at 3:48 PM, Tauren Mills tau...@groovee.com wrote: Does anyone know the current status of the wicket-security project? It looks like there has been no activity in svn for close to a year. And it is unclear if it will work with wicket 1.4. What is the preferred tool today for implementing a roles-based authorization and authentication system with wicket 1.4? Right now I only need wicket-based security, but may need to secure webservices as well in the future, and understand that swarm 1.3.1 was working to add that. In my application, users will be assigned multiple roles. All users will see the same main page, but users with certain roles need to be able to see additional tabs, more content panels, as well as be able to view and edit appropriate content based on roles. So I'm trying to determine a security implementation for an upcoming project and have been researching the options available. I've found the following approaches: Wicket Auth Roles wicket-auth-roles-1.4-rc2.jar Roles support seems quite limited Wicket Security (SWARM and WASP) http://wicketstuff.org/confluence/display/STUFFWIKI/Wicket-Security http://wicketstuff.org/confluence/display/STUFFWIKI/Wicket-Security+1.3.1 Looks powerful, but not sure if it works with 1.4 and if support is going to continue. Wicket Security + ACEGI http://wicketstuff.org/confluence/display/STUFFWIKI/Swarm+and+Acegi+HowTo Not sure about this one Wicket Auth Roles plus Spring Security Example: http://svn.carmanconsulting.com/public/wicket-advanced/trunk/ Looks clean and simple, but I thought I read spring security was very much based on the RESTfulness of things, which doesn't necessarily work all that well with wicket. Never used it, so maybe I'm mistaken. Wicket in Action book Uses a simple, but custom implementation. I would consider going with a custom
Storing user entity in session?
The WIA book and other example apps I've found online often show a User object being stored in the session: class BlogSession extends WebSession { private User user; } But does it make sense to do this if your User object is loaded from a persistence layer (Hibernate) and can contain a large tree of dependent objects? For instance, what if my User object has a hierarchy like this: User Name Password SetBlog Blog SetBlogEntry BlogEntry SetTag SetTag Would this store the entire hierarchy of blogs, tags, blog entries, etc. into the session? I've been experimenting with storing an LDM of the user in the session instead of the User directly: class BlogSession extends WebSession { private DetachableUserModel userModel; } But I'm getting Hibernate LazyInit errors. So it leaves me wondering if LDMs in Session aren't automatically loaded since it isn't a Component. I haven't really dug into what is going on yet. I first wanted to find out what is common practice for a situation like this. Oh, and this isn't my actual User object -- just and example for illustrative purposes. I'm not building a blog, and the properties and sets of objects in my User need to be there. Thanks! Tauren - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket VoiceXML framework?
Nino, I've considered learning more about VoiceXML as well, but it would be for a future project and unfortunately I don't have time to help right now. If you do get it going, I'd certainly be interested in contributing down the road. However, I am curious what your thoughts are in regards to this. What use-cases are you wanting to solve? Although my knowledge is *very* limited, wouldn't the output of VoiceXML be accomplished simply by getting wicket to output XML? And I believe that is easy enough to to with: @Override public String getMarkupType() { return xml; } Of course, I'm not clear how a voice browser (the recipient of the voicexml) sends responses back, which could be more challenging. Tauren On Tue, Feb 17, 2009 at 6:09 AM, nino martinez wael nino.martinez.w...@gmail.com wrote: Hi Guys Would any of you be interested in creating a VoiceXML framework based on wicket with me? I dont have much knowledge on vxml (im new to the domain) but I have a little on wicket :) Im just thinking aloud right now, so theres no scope or anything defined. regards Nino - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: ACEGI and Kerberos Security
David, I don't have an example, but the following wicketstuff resources might be of interest: http://wicketstuff.org/confluence/display/STUFFWIKI/Wicket-Security http://wicketstuff.org/confluence/display/STUFFWIKI/Swarm+and+Acegi+HowTo http://wicketstuff.org/confluence/display/STUFFWIKI/Getting+started+with+Swarm Tauren On Thu, Feb 19, 2009 at 9:29 AM, David R Robison drrobi...@openroadsconsulting.com wrote: Does anyone have an example of integrating ACEGI security with Kerberos authentication in a Wicket application? Thanks, David -- David R Robison Open Roads Consulting, Inc. 103 Watson Road, Chesapeake, VA 23320 phone: (757) 546-3401 e-mail: drrobi...@openroadsconsulting.com web: http://openroadsconsulting.com blog: http://therobe.blogspot.com book: http://www.xulonpress.com/book_detail.php?id=2579 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Storing user entity in session?
Martin, Thanks for the response! I was actually just modifying my implementation to store just the ID in the session and was trying to figure out where the best place to load it would be. I was trying to load it in a page constructor, but was finding that doesn't always work. So I'll explore using the requestcycle for this, as you suggest. Any hints or examples you could share? Thanks, Tauren On Thu, Feb 19, 2009 at 11:03 PM, Martijn Dashorst martijn.dasho...@gmail.com wrote: Access to session is not thread safe: resources, and request setup/teardown will give you headaches (ever tried to attach one entity instance to two hibernate sessions?). We store the ID of the entity in the session, and load it in the requestcycle (and get the instance from there). Martijn On Fri, Feb 20, 2009 at 3:20 AM, Tauren Mills tau...@tauren.com wrote: The WIA book and other example apps I've found online often show a User object being stored in the session: class BlogSession extends WebSession { private User user; } But does it make sense to do this if your User object is loaded from a persistence layer (Hibernate) and can contain a large tree of dependent objects? For instance, what if my User object has a hierarchy like this: User Name Password SetBlog Blog SetBlogEntry BlogEntry SetTag SetTag Would this store the entire hierarchy of blogs, tags, blog entries, etc. into the session? I've been experimenting with storing an LDM of the user in the session instead of the User directly: class BlogSession extends WebSession { private DetachableUserModel userModel; } But I'm getting Hibernate LazyInit errors. So it leaves me wondering if LDMs in Session aren't automatically loaded since it isn't a Component. I haven't really dug into what is going on yet. I first wanted to find out what is common practice for a situation like this. Oh, and this isn't my actual User object -- just and example for illustrative purposes. I'm not building a blog, and the properties and sets of objects in my User need to be there. Thanks! Tauren - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.5 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Wicket/Salve/Hibernate Examples
Can anyone point me to any example applications that are along the lines of Wicketstuff Phonebook, but that utilize Salve and Hibernate? Does anything like that exist? Thanks, Tauren - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket/Salve/Hibernate Examples
Francisco, Thanks! Actually, I was just reading that post of Igor's which prompted my question. But I was hoping there might be an integrated sample app (or maven archetype would be even better!) to experiment with to save me the time of putting it all together. Anyone else know of any samples or open projects using this combination that I could check out? Thanks, Tauren On Thu, Jan 22, 2009 at 8:46 AM, francisco treacy francisco.tre...@gmail.com wrote: not an app, but maybe this helps: http://wicketinaction.com/2008/09/building-a-smart-entitymodel/ francisco On Thu, Jan 22, 2009 at 5:06 PM, Tauren Mills tau...@tauren.com wrote: Can anyone point me to any example applications that are along the lines of Wicketstuff Phonebook, but that utilize Salve and Hibernate? Does anything like that exist? Thanks, Tauren - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket/Eclipse/Maven/m2eclipse - HTML files not refreshing
in case anyone is trying to do this in the future, here are the steps I took to get the wicket quickstart working within eclipse with maven and m2eclipse: First make sure eclipse, maven, and m2eclipse are installed... Command line: cd workspace mvn archetype:create -DarchetypeGroupId=org.apache.wicket -DarchetypeArtifactId=wicket-archetype-quickstart -DarchetypeVersion=1.4-rc1 -DgroupId=test -DartifactId=mytest cd mytest mvn eclipse:eclipse Eclipse: File-Import Select General-Existing projects into Workspace Next Select root directory workspace/mytest Finish Right click onto mytest project Select Maven-Enable Dependency Management Right click onto src/test/java/test/Start.java Select Debug As - Java Application Web browser: http://localhost:8080/ In Eclipse, edit HomePage.html, save. Refresh browser, changes are there... On Thu, Jan 15, 2009 at 10:50 PM, noon rami.muurim...@gmail.com wrote: I had to remove the target/classes folder from the java source paths which Maven Eclipse plugin adds (project properties == java build path). After this, the markup files refreshed as expected. Tauren Mills-2 wrote: Thanks Igor, but I already looked there and the only thing listed in filtered resources is *.launch. Any other ideas? Tauren On Thu, Jan 15, 2009 at 4:05 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: open the preferences window in the search box type filter this will show you java/compiler/building panel with FilteredREsources: textbox, remove *.html -igor On Thu, Jan 15, 2009 at 4:03 PM, Tauren Mills tau...@tauren.com wrote: Martijn, Thanks. But any clue how or where I do that? I've been poking around the preferences in eclipse and haven't found it. Tauren On Thu, Jan 15, 2009 at 3:51 PM, Martijn Dashorst martijn.dasho...@gmail.com wrote: iirc you have to turn off eclipse's filtering of html files (which is turned off default because of javadoc html which usually doesn't want to be packaged inside your war/jar) Martijn On Fri, Jan 16, 2009 at 12:31 AM, Tauren Mills tau...@tauren.com wrote: Are there any wicket/eclipse/maven/m2eclipse users out there? I'm trying to get my development environment working properly and need your help. Up until now, I've been developing WIcket applications in Eclipse and have not been using maven. As long as my web.xml is set to development rather than deployment mode, changes I made to HTML files while debugging were immediately applied. Not anymore... I am now managing my projects with maven, having just added a pom file to my project. I'm using the m2eclipse plugin in Eclipse and enabled dependency management on my project. Unfortunately, now my HTML file changes aren't being recognized any longer even with development mode turned on. I have to stop and start the app to see the HTML changes. My project's maven properties show these goals to invoke on resource changes: process-resources resources:testResources. My pom includes: build sourceDirectorysrc/main/java/sourceDirectory testSourceDirectorysrc/test/java/testSourceDirectory resources resource filteringfalse/filtering directorysrc/main/resources/directory includes include**/include /includes /resource resource filteringfalse/filtering directorysrc/main/java/directory includes include**/include /includes excludes exclude**/*.java/exclude /excludes /resource /resources ... /build So, I'm wondering, does eclipse not think that a resource has been changed because the HTML files are within src/main/java instead of src/main/resources? If I change my CSS files, which are in /src/main/webapp, the changes are reflected with a browser refresh. But if I change an HTML file, it is not. How do I configure this to work right? Everything else seems to be working right, just not HTML refreshing. Thanks, Tauren - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.5 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket/Eclipse/Maven/m2eclipse - HTML files not refreshing
That seems consistent with the problem I was having. I removed several plugins from the pom and got things working. Like you, for now I'm leaving adding those plugins back in until another day. Tauren On Thu, Jan 15, 2009 at 11:59 PM, noon rami.muurim...@gmail.com wrote: No, I didn't mean the default output folder. For some reason, Maven added also the target/classes folder as a source folder. I noticed also that this was done only if I had a custom Maven plugin in the project (one of our plugins), even if I used the quickstart Maven artifact. If I removed that plugin from the pom.xml, everything worked ok. As a workaround, I have to delete the target/classes folder from the source list... I'll solve this problem of ours later... Good if you got your project working... :) tauren wrote: Noon, Do you mean the Default output folder in Properties--Java Build Path--Source tab? If so, what did you change it to? I can't just delete it as Eclipse says that it is required. Anyway, it is of no consequence any more. It seems that I got things working. I decided to try to start with a basic wicket quickstart from maven archetype, enable Maven dependency management on it, and debugged it. The quickstart worked just fine and I could edit html files and they would refresh without stopping the server. So I compared my project's pom with the quickstart one. My project's pom was modeled after another project's pom. There was a lot of extra stuff that I didn't need, so I removed it. After making my pom very close to the quickstart pom, and then debugging, my project too would refresh html files. Yay! I may follow up on this later as I start to add additional plugins and settings that I removed back into my pom. But at least I'll now be able to test things one at a time and isolate what caused the problem. So thanks everyone for the help! Tauren PS - Just in case anyone is trying to do this in the future, here are the steps I took to get the wicket quickstart working within eclipse with maven and m2eclipse: First make sure eclipse, maven, and m2eclipse are installed... Command line: cd workspace mvn archetype:create -DarchetypeGroupId=org.apache.wicket -DarchetypeArtifactId=wicket-archetype-quickstart -DarchetypeVersion=1.4-rc1 -DgroupId=test -DartifactId=mytest cd mytest mvn eclipse:eclipse Eclipse: File-Import Select General-Existing projects into Workspace Next Select root directory workspace/mytest Finish Right click onto mytest project Select Maven-Enable Dependency Management Right click onto src/test/java/test/Start.java Select Debug As - Java Application Web browser: http://localhost:8080/ In Eclipse, edit HomePage.html, save. Refresh browser, changes are there... On Thu, Jan 15, 2009 at 10:50 PM, noon rami.muurim...@gmail.com wrote: I had to remove the target/classes folder from the java source paths which Maven Eclipse plugin adds (project properties == java build path). After this, the markup files refreshed as expected. Tauren Mills-2 wrote: Thanks Igor, but I already looked there and the only thing listed in filtered resources is *.launch. Any other ideas? Tauren On Thu, Jan 15, 2009 at 4:05 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: open the preferences window in the search box type filter this will show you java/compiler/building panel with FilteredREsources: textbox, remove *.html -igor On Thu, Jan 15, 2009 at 4:03 PM, Tauren Mills tau...@tauren.com wrote: Martijn, Thanks. But any clue how or where I do that? I've been poking around the preferences in eclipse and haven't found it. Tauren On Thu, Jan 15, 2009 at 3:51 PM, Martijn Dashorst martijn.dasho...@gmail.com wrote: iirc you have to turn off eclipse's filtering of html files (which is turned off default because of javadoc html which usually doesn't want to be packaged inside your war/jar) Martijn On Fri, Jan 16, 2009 at 12:31 AM, Tauren Mills tau...@tauren.com wrote: Are there any wicket/eclipse/maven/m2eclipse users out there? I'm trying to get my development environment working properly and need your help. Up until now, I've been developing WIcket applications in Eclipse and have not been using maven. As long as my web.xml is set to development rather than deployment mode, changes I made to HTML files while debugging were immediately applied. Not anymore... I am now managing my projects with maven, having just added a pom file to my project. I'm using the m2eclipse plugin in Eclipse and enabled dependency management on my project. Unfortunately, now my HTML file changes aren't being recognized any longer even with development mode turned on. I have to stop and start the app to see the HTML changes. My project's maven properties show these goals to invoke on resource changes: process-resources resources:testResources. My pom includes: build sourceDirectorysrc/main
Re: Wicket/Eclipse/Maven/m2eclipse - HTML files not refreshing
Richard, Thanks for your comments. I'm still used to using maven on the command line, but it is good to know that I can do it all within the eclipse UI. Tauren On Fri, Jan 16, 2009 at 4:29 AM, Richard Allen richard.l.al...@gmail.com wrote: Using m2eclipse, you can also create a new Maven project using an archetype from within Eclipse. Choose File New Maven Project Next, and select the archetype you want to use. See: http://books.sonatype.com/maven-book/reference/eclipse-sect-m2e-create-archetype.html -Richard On Fri, Jan 16, 2009 at 2:47 AM, Tauren Mills tau...@tauren.com wrote: Noon, Do you mean the Default output folder in Properties--Java Build Path--Source tab? If so, what did you change it to? I can't just delete it as Eclipse says that it is required. Anyway, it is of no consequence any more. It seems that I got things working. I decided to try to start with a basic wicket quickstart from maven archetype, enable Maven dependency management on it, and debugged it. The quickstart worked just fine and I could edit html files and they would refresh without stopping the server. So I compared my project's pom with the quickstart one. My project's pom was modeled after another project's pom. There was a lot of extra stuff that I didn't need, so I removed it. After making my pom very close to the quickstart pom, and then debugging, my project too would refresh html files. Yay! I may follow up on this later as I start to add additional plugins and settings that I removed back into my pom. But at least I'll now be able to test things one at a time and isolate what caused the problem. So thanks everyone for the help! Tauren PS - Just in case anyone is trying to do this in the future, here are the steps I took to get the wicket quickstart working within eclipse with maven and m2eclipse: First make sure eclipse, maven, and m2eclipse are installed... Command line: cd workspace mvn archetype:create -DarchetypeGroupId=org.apache.wicket -DarchetypeArtifactId=wicket-archetype-quickstart -DarchetypeVersion=1.4-rc1 -DgroupId=test -DartifactId=mytest cd mytest mvn eclipse:eclipse Eclipse: File-Import Select General-Existing projects into Workspace Next Select root directory workspace/mytest Finish Right click onto mytest project Select Maven-Enable Dependency Management Right click onto src/test/java/test/Start.java Select Debug As - Java Application Web browser: http://localhost:8080/ In Eclipse, edit HomePage.html, save. Refresh browser, changes are there... On Thu, Jan 15, 2009 at 10:50 PM, noon rami.muurim...@gmail.com wrote: I had to remove the target/classes folder from the java source paths which Maven Eclipse plugin adds (project properties == java build path). After this, the markup files refreshed as expected. Tauren Mills-2 wrote: Thanks Igor, but I already looked there and the only thing listed in filtered resources is *.launch. Any other ideas? Tauren On Thu, Jan 15, 2009 at 4:05 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: open the preferences window in the search box type filter this will show you java/compiler/building panel with FilteredREsources: textbox, remove *.html -igor On Thu, Jan 15, 2009 at 4:03 PM, Tauren Mills tau...@tauren.com wrote: Martijn, Thanks. But any clue how or where I do that? I've been poking around the preferences in eclipse and haven't found it. Tauren On Thu, Jan 15, 2009 at 3:51 PM, Martijn Dashorst martijn.dasho...@gmail.com wrote: iirc you have to turn off eclipse's filtering of html files (which is turned off default because of javadoc html which usually doesn't want to be packaged inside your war/jar) Martijn On Fri, Jan 16, 2009 at 12:31 AM, Tauren Mills tau...@tauren.com wrote: Are there any wicket/eclipse/maven/m2eclipse users out there? I'm trying to get my development environment working properly and need your help. Up until now, I've been developing WIcket applications in Eclipse and have not been using maven. As long as my web.xml is set to development rather than deployment mode, changes I made to HTML files while debugging were immediately applied. Not anymore... I am now managing my projects with maven, having just added a pom file to my project. I'm using the m2eclipse plugin in Eclipse and enabled dependency management on my project. Unfortunately, now my HTML file changes aren't being recognized any longer even with development mode turned on. I have to stop and start the app to see the HTML changes. My project's maven properties show these goals to invoke on resource changes: process-resources resources:testResources. My pom includes: build sourceDirectorysrc/main/java/sourceDirectory testSourceDirectorysrc/test/java/testSourceDirectory resources resource
Re: Wicket/Eclipse/Maven/m2eclipse - HTML files not refreshing
That seems consistent with the problem I was having. I removed several plugins from the pom and got things working. Like you, for now I'm leaving adding those plugins back in until another day. Thanks, Tauren On Thu, Jan 15, 2009 at 11:59 PM, noon rami.muurim...@gmail.com wrote: No, I didn't mean the default output folder. For some reason, Maven added also the target/classes folder as a source folder. I noticed also that this was done only if I had a custom Maven plugin in the project (one of our plugins), even if I used the quickstart Maven artifact. If I removed that plugin from the pom.xml, everything worked ok. As a workaround, I have to delete the target/classes folder from the source list... I'll solve this problem of ours later... Good if you got your project working... :) tauren wrote: Noon, Do you mean the Default output folder in Properties--Java Build Path--Source tab? If so, what did you change it to? I can't just delete it as Eclipse says that it is required. Anyway, it is of no consequence any more. It seems that I got things working. I decided to try to start with a basic wicket quickstart from maven archetype, enable Maven dependency management on it, and debugged it. The quickstart worked just fine and I could edit html files and they would refresh without stopping the server. So I compared my project's pom with the quickstart one. My project's pom was modeled after another project's pom. There was a lot of extra stuff that I didn't need, so I removed it. After making my pom very close to the quickstart pom, and then debugging, my project too would refresh html files. Yay! I may follow up on this later as I start to add additional plugins and settings that I removed back into my pom. But at least I'll now be able to test things one at a time and isolate what caused the problem. So thanks everyone for the help! Tauren PS - Just in case anyone is trying to do this in the future, here are the steps I took to get the wicket quickstart working within eclipse with maven and m2eclipse: First make sure eclipse, maven, and m2eclipse are installed... Command line: cd workspace mvn archetype:create -DarchetypeGroupId=org.apache.wicket -DarchetypeArtifactId=wicket-archetype-quickstart -DarchetypeVersion=1.4-rc1 -DgroupId=test -DartifactId=mytest cd mytest mvn eclipse:eclipse Eclipse: File-Import Select General-Existing projects into Workspace Next Select root directory workspace/mytest Finish Right click onto mytest project Select Maven-Enable Dependency Management Right click onto src/test/java/test/Start.java Select Debug As - Java Application Web browser: http://localhost:8080/ In Eclipse, edit HomePage.html, save. Refresh browser, changes are there... On Thu, Jan 15, 2009 at 10:50 PM, noon rami.muurim...@gmail.com wrote: I had to remove the target/classes folder from the java source paths which Maven Eclipse plugin adds (project properties == java build path). After this, the markup files refreshed as expected. Tauren Mills-2 wrote: Thanks Igor, but I already looked there and the only thing listed in filtered resources is *.launch. Any other ideas? Tauren On Thu, Jan 15, 2009 at 4:05 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: open the preferences window in the search box type filter this will show you java/compiler/building panel with FilteredREsources: textbox, remove *.html -igor On Thu, Jan 15, 2009 at 4:03 PM, Tauren Mills tau...@tauren.com wrote: Martijn, Thanks. But any clue how or where I do that? I've been poking around the preferences in eclipse and haven't found it. Tauren On Thu, Jan 15, 2009 at 3:51 PM, Martijn Dashorst martijn.dasho...@gmail.com wrote: iirc you have to turn off eclipse's filtering of html files (which is turned off default because of javadoc html which usually doesn't want to be packaged inside your war/jar) Martijn On Fri, Jan 16, 2009 at 12:31 AM, Tauren Mills tau...@tauren.com wrote: Are there any wicket/eclipse/maven/m2eclipse users out there? I'm trying to get my development environment working properly and need your help. Up until now, I've been developing WIcket applications in Eclipse and have not been using maven. As long as my web.xml is set to development rather than deployment mode, changes I made to HTML files while debugging were immediately applied. Not anymore... I am now managing my projects with maven, having just added a pom file to my project. I'm using the m2eclipse plugin in Eclipse and enabled dependency management on my project. Unfortunately, now my HTML file changes aren't being recognized any longer even with development mode turned on. I have to stop and start the app to see the HTML changes. My project's maven properties show these goals to invoke on resource changes: process-resources resources:testResources. My pom includes: build sourceDirectorysrc
Re: Technologies to use with large scale Wicket application
Hi Stefan, Your planing something quite impressive here ... or frightening ;) It does sound quite ambitious, doesn't it? Truthfully, I am a bit frightened... :) In reality, we aren't planning to roll out all of these features all at once. But we are trying to create a roadmap for future enhancements and are get a grasp on the technologies we might use or integrate down the road. We just don't want to create a design that can't be easily extended to support the features we intend to add later. I mean, I know that things will change and there will be refactoring necessary with each iteration, but I still would like to have an overall picture of our direction. My comments: Lucene/Hibernate Search I'd strongly disagree in using neither Lucene directly nor Hibernate Search. I'd give +1000 to Compass (http://compass-project.org/) instead. I migrated my projects completely from Hibernate Search to Compass and didn't regret it a single second. Ahhh, yes! Thanks for reminding me of Compass. I looked into it a while back, but forgot about it. I'll definitely check it out again. Jackrabbit Doesn't Jackrabbit come wit Lucene integration itself? Do you know if Jackrabbit supports Compass too? I guess I can look into that. Terracotta I used Terracotta for a while. Don't know what you mean by all across the world, but I'd say that Terracotta was built with very low network latency in mind. However, You will need *a lot* of users and page impressions until you'll really need it (move stuff like search on dedicated machines, maybe clustered with terracotta (compass comes with terracotta support)). I wasn't really thinking that I'd use Terracotta for the across the world stuff, although re-reading my post does sound like that. I just meant that it might come into play when and if the app ever grows to the point where we need to start clustering things. And if that happens, then at that point we will also need to be thinking about how to support hosting our app in the cloud and having hosting locations that are in different parts of the world. Facebook Connect I integrated a Wicket application with Facebook (http://www.setlist.fm/). Feel free to contact me, if you're interested into that stuff. Great! Thanks for the offer. When the time comes, I will keep you in mind. Tauren Regards tauren wrote: Happy new year! My team is in the preliminary stages of designing a large social wicket web application and I'm trying to identify a good set of existing tools and technologies that can be leveraged to simplify the development of this application. I would love to hear the opinions and suggestions of other Wicket users. Note that I want to use open source tools as much as possible. Here are some of the tools that I feel might help. I realize this is a big list and may be off-topic, but am still interested in which technologies other Wicket developers have found work well with a Wicket app. I would appreciate any comments or opinions of these technologies as well as suggestions and alternatives that you feel would be worth my consideration. Wicket I assume no one here will object to this. I plan to use version 1.4. MySQL First choice for database. I've used it MySQL more than any other database and it hasn't let me down. PostgreSQL Second choice for database. I've used it less than MySQL, so additional time might be required to install, configure, and use it. Spring + Hibernate I'm comfortable with these technologies as I've been using them for a few years with Wicket. But I'm certainly open to suggestions, opinions, etc. Hibernate Annotations Ive been using HBM files, but I'm thinking I should look into getting rid of my mapping files and put the mapping right into the pojos. Is this the right call? Salve Never used it, but it appears many Wicket developers do. Is it worth looking into? WicketWebBeans Might use this for rapid back-end UI development. Besides rolling my own, are there other tools like this? Brix Jackrabbit Our application will need some heavy duty CMS features, and this project looks powerful enough to do the job. Jackrabbit is used by Brix to store content. Lucene Hibernate Search I will need site-wide and data-wide search that encompasses all of the content on the site as well as the data in the application. I'm not sure if these are the best tools for this job, as the content will be stored in Jackrabbit. So I need to be able to search jackrabbit and my data and produce unified search results. Ideas? ACEGI Spring Security I haven't used either of these before so I'm not sure if they will solve my problem: This application will have many levels of roles and permissions. Users will belong to groups and can be assigned roles for a group that allow them to perform actions. For instance, a standard user that belongs to a group can only view some data. But if a user has additional roles
Wicket/Eclipse/Maven/m2eclipse - HTML files not refreshing
Are there any wicket/eclipse/maven/m2eclipse users out there? I'm trying to get my development environment working properly and need your help. Up until now, I've been developing WIcket applications in Eclipse and have not been using maven. As long as my web.xml is set to development rather than deployment mode, changes I made to HTML files while debugging were immediately applied. Not anymore... I am now managing my projects with maven, having just added a pom file to my project. I'm using the m2eclipse plugin in Eclipse and enabled dependency management on my project. Unfortunately, now my HTML file changes aren't being recognized any longer even with development mode turned on. I have to stop and start the app to see the HTML changes. My project's maven properties show these goals to invoke on resource changes: process-resources resources:testResources. My pom includes: build sourceDirectorysrc/main/java/sourceDirectory testSourceDirectorysrc/test/java/testSourceDirectory resources resource filteringfalse/filtering directorysrc/main/resources/directory includes include**/include /includes /resource resource filteringfalse/filtering directorysrc/main/java/directory includes include**/include /includes excludes exclude**/*.java/exclude /excludes /resource /resources ... /build So, I'm wondering, does eclipse not think that a resource has been changed because the HTML files are within src/main/java instead of src/main/resources? If I change my CSS files, which are in /src/main/webapp, the changes are reflected with a browser refresh. But if I change an HTML file, it is not. How do I configure this to work right? Everything else seems to be working right, just not HTML refreshing. Thanks, Tauren - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Technologies to use with large scale Wicket application
Theres also Wicketopia, http://wicketopia.sourceforge.net/ Nino -- Good to know, I will check it out. Alternatively, you could try Hippo CMS7. It's also built with Wicket on top of a JCR repository, but with some extensions that you might like. (workflow, authorization, virtual trees based on facets) The CMS itself features things like a document type editor, allowing you to create custom node types from within the cms. And as its composed of plugins, you can reconfigure a running system on the fly. (and yes, it's all APL) See http://www.onehippo.org/cms7 for details. Frank -- that is great news! IIRC, last time I looked at Hippo, there was just talk of switching to Wicket. I'm glad to hear that you actually went ahead and did it. I'll certainly look into it. Thanks, Tauren - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Technologies to use with large scale Wicket application
Francisco, Thanks for your 2c. i personally think hibernate is... the least worse we've got for orms. otherwise pretty standard stack that should work fine and has a huge userbase. you may also want to check out google guice I'm pretty sure I'll go with hibernate because of my experience with it and its large userbase. I was looking at guice last night and it might be a good alternative to spring. However, if I use other features of spring as well, would it make sense to include both spring components and guice? Lucene - Awesome! I have been extremely impressed with Lucene. It is easy to integrate and astoundingly fast and simple. It is also very flexible, allowing almost limitless possibilities. I would recommend it for search as highly as Wicket for view tier. +1 , i've been using lucene for over a year in 3 different projects and it absolutely... rocks Nice to hear. I'll definitely be digging into it then. Salve Never used it, but it appears many Wicket developers do. Is it worth looking into? you will need salve if you want to inject dependencies out of the 'injection tree' - very useful in DataProviders, or LDMs. if you use it in your wicket pages then i suppose you don't need to configure the component instantiation listener, i wonder if this has some performance advantage in favor of salve. hats off to igor for a useful and *very* well coded piece of software. I read up on Salve last night too, and I think I understand what it does. However, it seems to add a layer of complexity to the build process. Also, if I use Spring, it looks like I could use @Configurable and get similar results. I do have very high respect for any code that Igor has written, so I'm sure there are valid reasons to use it. I'll experiment with it some to see if I should use it. Terracotta Never used it, but it looks good for clustering. I need to figure out how to build this application in a way that I can run instances not only locally, but all across the world if necessary. Thoughts? first off you should learn what it is and check if you really need it. it's a very smart technology for caching (medium-term data) and taking out load off your db. i believe there's a wicket integration module. Ok, will do. I certainly don't want to complicate things if I don't need to. jQuery I've used this a lot and am familiar with it. neat library with good support for wicket (at least 2 quite good integration packages) good luck with your venture Thanks so much! Tauren francisco On Tue, Jan 13, 2009 at 6:12 PM, Tauren Mills tau...@tauren.com wrote: Happy new year! My team is in the preliminary stages of designing a large social wicket web application and I'm trying to identify a good set of existing tools and technologies that can be leveraged to simplify the development of this application. I would love to hear the opinions and suggestions of other Wicket users. Note that I want to use open source tools as much as possible. Here are some of the tools that I feel might help. I realize this is a big list and may be off-topic, but am still interested in which technologies other Wicket developers have found work well with a Wicket app. I would appreciate any comments or opinions of these technologies as well as suggestions and alternatives that you feel would be worth my consideration. Wicket I assume no one here will object to this. I plan to use version 1.4. MySQL First choice for database. I've used it MySQL more than any other database and it hasn't let me down. PostgreSQL Second choice for database. I've used it less than MySQL, so additional time might be required to install, configure, and use it. Spring + Hibernate I'm comfortable with these technologies as I've been using them for a few years with Wicket. But I'm certainly open to suggestions, opinions, etc. Hibernate Annotations Ive been using HBM files, but I'm thinking I should look into getting rid of my mapping files and put the mapping right into the pojos. Is this the right call? Salve Never used it, but it appears many Wicket developers do. Is it worth looking into? WicketWebBeans Might use this for rapid back-end UI development. Besides rolling my own, are there other tools like this? Brix Jackrabbit Our application will need some heavy duty CMS features, and this project looks powerful enough to do the job. Jackrabbit is used by Brix to store content. Lucene Hibernate Search I will need site-wide and data-wide search that encompasses all of the content on the site as well as the data in the application. I'm not sure if these are the best tools for this job, as the content will be stored in Jackrabbit. So I need to be able to search jackrabbit and my data and produce unified search results. Ideas? ACEGI Spring Security I haven't used either of these before so I'm not sure if they will solve my problem: This application will have
Re: Wicket/Eclipse/Maven/m2eclipse - HTML files not refreshing
Martijn, Thanks. But any clue how or where I do that? I've been poking around the preferences in eclipse and haven't found it. Tauren On Thu, Jan 15, 2009 at 3:51 PM, Martijn Dashorst martijn.dasho...@gmail.com wrote: iirc you have to turn off eclipse's filtering of html files (which is turned off default because of javadoc html which usually doesn't want to be packaged inside your war/jar) Martijn On Fri, Jan 16, 2009 at 12:31 AM, Tauren Mills tau...@tauren.com wrote: Are there any wicket/eclipse/maven/m2eclipse users out there? I'm trying to get my development environment working properly and need your help. Up until now, I've been developing WIcket applications in Eclipse and have not been using maven. As long as my web.xml is set to development rather than deployment mode, changes I made to HTML files while debugging were immediately applied. Not anymore... I am now managing my projects with maven, having just added a pom file to my project. I'm using the m2eclipse plugin in Eclipse and enabled dependency management on my project. Unfortunately, now my HTML file changes aren't being recognized any longer even with development mode turned on. I have to stop and start the app to see the HTML changes. My project's maven properties show these goals to invoke on resource changes: process-resources resources:testResources. My pom includes: build sourceDirectorysrc/main/java/sourceDirectory testSourceDirectorysrc/test/java/testSourceDirectory resources resource filteringfalse/filtering directorysrc/main/resources/directory includes include**/include /includes /resource resource filteringfalse/filtering directorysrc/main/java/directory includes include**/include /includes excludes exclude**/*.java/exclude /excludes /resource /resources ... /build So, I'm wondering, does eclipse not think that a resource has been changed because the HTML files are within src/main/java instead of src/main/resources? If I change my CSS files, which are in /src/main/webapp, the changes are reflected with a browser refresh. But if I change an HTML file, it is not. How do I configure this to work right? Everything else seems to be working right, just not HTML refreshing. Thanks, Tauren - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.5 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket/Eclipse/Maven/m2eclipse - HTML files not refreshing
Thanks Igor, but I already looked there and the only thing listed in filtered resources is *.launch. Any other ideas? Tauren On Thu, Jan 15, 2009 at 4:05 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: open the preferences window in the search box type filter this will show you java/compiler/building panel with FilteredREsources: textbox, remove *.html -igor On Thu, Jan 15, 2009 at 4:03 PM, Tauren Mills tau...@tauren.com wrote: Martijn, Thanks. But any clue how or where I do that? I've been poking around the preferences in eclipse and haven't found it. Tauren On Thu, Jan 15, 2009 at 3:51 PM, Martijn Dashorst martijn.dasho...@gmail.com wrote: iirc you have to turn off eclipse's filtering of html files (which is turned off default because of javadoc html which usually doesn't want to be packaged inside your war/jar) Martijn On Fri, Jan 16, 2009 at 12:31 AM, Tauren Mills tau...@tauren.com wrote: Are there any wicket/eclipse/maven/m2eclipse users out there? I'm trying to get my development environment working properly and need your help. Up until now, I've been developing WIcket applications in Eclipse and have not been using maven. As long as my web.xml is set to development rather than deployment mode, changes I made to HTML files while debugging were immediately applied. Not anymore... I am now managing my projects with maven, having just added a pom file to my project. I'm using the m2eclipse plugin in Eclipse and enabled dependency management on my project. Unfortunately, now my HTML file changes aren't being recognized any longer even with development mode turned on. I have to stop and start the app to see the HTML changes. My project's maven properties show these goals to invoke on resource changes: process-resources resources:testResources. My pom includes: build sourceDirectorysrc/main/java/sourceDirectory testSourceDirectorysrc/test/java/testSourceDirectory resources resource filteringfalse/filtering directorysrc/main/resources/directory includes include**/include /includes /resource resource filteringfalse/filtering directorysrc/main/java/directory includes include**/include /includes excludes exclude**/*.java/exclude /excludes /resource /resources ... /build So, I'm wondering, does eclipse not think that a resource has been changed because the HTML files are within src/main/java instead of src/main/resources? If I change my CSS files, which are in /src/main/webapp, the changes are reflected with a browser refresh. But if I change an HTML file, it is not. How do I configure this to work right? Everything else seems to be working right, just not HTML refreshing. Thanks, Tauren - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.5 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket/Eclipse/Maven/m2eclipse - HTML files not refreshing
Noon, Do you mean the Default output folder in Properties--Java Build Path--Source tab? If so, what did you change it to? I can't just delete it as Eclipse says that it is required. Anyway, it is of no consequence any more. It seems that I got things working. I decided to try to start with a basic wicket quickstart from maven archetype, enable Maven dependency management on it, and debugged it. The quickstart worked just fine and I could edit html files and they would refresh without stopping the server. So I compared my project's pom with the quickstart one. My project's pom was modeled after another project's pom. There was a lot of extra stuff that I didn't need, so I removed it. After making my pom very close to the quickstart pom, and then debugging, my project too would refresh html files. Yay! I may follow up on this later as I start to add additional plugins and settings that I removed back into my pom. But at least I'll now be able to test things one at a time and isolate what caused the problem. So thanks everyone for the help! Tauren PS - Just in case anyone is trying to do this in the future, here are the steps I took to get the wicket quickstart working within eclipse with maven and m2eclipse: First make sure eclipse, maven, and m2eclipse are installed... Command line: cd workspace mvn archetype:create -DarchetypeGroupId=org.apache.wicket -DarchetypeArtifactId=wicket-archetype-quickstart -DarchetypeVersion=1.4-rc1 -DgroupId=test -DartifactId=mytest cd mytest mvn eclipse:eclipse Eclipse: File-Import Select General-Existing projects into Workspace Next Select root directory workspace/mytest Finish Right click onto mytest project Select Maven-Enable Dependency Management Right click onto src/test/java/test/Start.java Select Debug As - Java Application Web browser: http://localhost:8080/ In Eclipse, edit HomePage.html, save. Refresh browser, changes are there... On Thu, Jan 15, 2009 at 10:50 PM, noon rami.muurim...@gmail.com wrote: I had to remove the target/classes folder from the java source paths which Maven Eclipse plugin adds (project properties == java build path). After this, the markup files refreshed as expected. Tauren Mills-2 wrote: Thanks Igor, but I already looked there and the only thing listed in filtered resources is *.launch. Any other ideas? Tauren On Thu, Jan 15, 2009 at 4:05 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: open the preferences window in the search box type filter this will show you java/compiler/building panel with FilteredREsources: textbox, remove *.html -igor On Thu, Jan 15, 2009 at 4:03 PM, Tauren Mills tau...@tauren.com wrote: Martijn, Thanks. But any clue how or where I do that? I've been poking around the preferences in eclipse and haven't found it. Tauren On Thu, Jan 15, 2009 at 3:51 PM, Martijn Dashorst martijn.dasho...@gmail.com wrote: iirc you have to turn off eclipse's filtering of html files (which is turned off default because of javadoc html which usually doesn't want to be packaged inside your war/jar) Martijn On Fri, Jan 16, 2009 at 12:31 AM, Tauren Mills tau...@tauren.com wrote: Are there any wicket/eclipse/maven/m2eclipse users out there? I'm trying to get my development environment working properly and need your help. Up until now, I've been developing WIcket applications in Eclipse and have not been using maven. As long as my web.xml is set to development rather than deployment mode, changes I made to HTML files while debugging were immediately applied. Not anymore... I am now managing my projects with maven, having just added a pom file to my project. I'm using the m2eclipse plugin in Eclipse and enabled dependency management on my project. Unfortunately, now my HTML file changes aren't being recognized any longer even with development mode turned on. I have to stop and start the app to see the HTML changes. My project's maven properties show these goals to invoke on resource changes: process-resources resources:testResources. My pom includes: build sourceDirectorysrc/main/java/sourceDirectory testSourceDirectorysrc/test/java/testSourceDirectory resources resource filteringfalse/filtering directorysrc/main/resources/directory includes include**/include /includes /resource resource filteringfalse/filtering directorysrc/main/java/directory includes include**/include /includes excludes exclude**/*.java/exclude /excludes /resource /resources ... /build So, I'm wondering, does eclipse not think that a resource has been changed because the HTML files are within src/main/java instead of src/main/resources? If I change my CSS files
Re: Technologies to use with large scale Wicket application
Thanks for the responses to my OT message, Daniel -- Thanks for your comments and the link to Wicket RAD. I'll check it out. I didn't realize WWB doesn't yet support 1.4 and I definitely am building this with 1.4. Jeremy -- It's good to hear that you also recommend these technologies. I'm really hoping to hear from someone who has used Salve, as I believe some of the wicket comitters are using it. Thanks, Tauren On Wed, Jan 14, 2009 at 11:24 AM, Jeremy Thomerson jer...@wickettraining.com wrote: A few comments from my experience: Wicket - well, of course. Are there other options? :) Spring / Hibernate - I have used these on every project I've done in the past four or five years and have been very satisfied with them. Lucene - Awesome! I have been extremely impressed with Lucene. It is easy to integrate and astoundingly fast and simple. It is also very flexible, allowing almost limitless possibilities. I would recommend it for search as highly as Wicket for view tier. -- Jeremy Thomerson http://www.wickettraining.com On Tue, Jan 13, 2009 at 6:12 PM, Tauren Mills tau...@tauren.com wrote: Happy new year! My team is in the preliminary stages of designing a large social wicket web application and I'm trying to identify a good set of existing tools and technologies that can be leveraged to simplify the development of this application. I would love to hear the opinions and suggestions of other Wicket users. Note that I want to use open source tools as much as possible. Here are some of the tools that I feel might help. I realize this is a big list and may be off-topic, but am still interested in which technologies other Wicket developers have found work well with a Wicket app. I would appreciate any comments or opinions of these technologies as well as suggestions and alternatives that you feel would be worth my consideration. Wicket I assume no one here will object to this. I plan to use version 1.4. MySQL First choice for database. I've used it MySQL more than any other database and it hasn't let me down. PostgreSQL Second choice for database. I've used it less than MySQL, so additional time might be required to install, configure, and use it. Spring + Hibernate I'm comfortable with these technologies as I've been using them for a few years with Wicket. But I'm certainly open to suggestions, opinions, etc. Hibernate Annotations Ive been using HBM files, but I'm thinking I should look into getting rid of my mapping files and put the mapping right into the pojos. Is this the right call? Salve Never used it, but it appears many Wicket developers do. Is it worth looking into? WicketWebBeans Might use this for rapid back-end UI development. Besides rolling my own, are there other tools like this? Brix Jackrabbit Our application will need some heavy duty CMS features, and this project looks powerful enough to do the job. Jackrabbit is used by Brix to store content. Lucene Hibernate Search I will need site-wide and data-wide search that encompasses all of the content on the site as well as the data in the application. I'm not sure if these are the best tools for this job, as the content will be stored in Jackrabbit. So I need to be able to search jackrabbit and my data and produce unified search results. Ideas? ACEGI Spring Security I haven't used either of these before so I'm not sure if they will solve my problem: This application will have many levels of roles and permissions. Users will belong to groups and can be assigned roles for a group that allow them to perform actions. For instance, a standard user that belongs to a group can only view some data. But if a user has additional roles assigned to them, then they will gain the ability to see other data, edit data, and so forth. A user can belong to multiple groups, and may have different roles for each group. Shopping Cart Any good open source wicket shopping carts? I have a homemade one that I did for a customer that I plan to start with. But if something else exists, I'd love to hear about it. Amazon FPS This system provides a simple API that can be used to help one user pay another user for service, but allow the infrastructure provider (me) to take a cut out of the transaction. It also supports micro-payments which I could use. The service fits the needs of my business model really well. I've never used it, so does anyone have any horror stories, good things to say, alternative suggestions? Google Checkout PayPal Merchant account The system will also allow for the sale of products. I want to give users a choice of method for accepting payments. They can receive payments via Google Checkout, PayPal, or their own merchant account. If anyone knows of any tools that would help with this, please let me know. Otherwise, I'll just use the APIs directly available from the payment systems. I've already got Google
Technologies to use with large scale Wicket application
Happy new year! My team is in the preliminary stages of designing a large social wicket web application and I'm trying to identify a good set of existing tools and technologies that can be leveraged to simplify the development of this application. I would love to hear the opinions and suggestions of other Wicket users. Note that I want to use open source tools as much as possible. Here are some of the tools that I feel might help. I realize this is a big list and may be off-topic, but am still interested in which technologies other Wicket developers have found work well with a Wicket app. I would appreciate any comments or opinions of these technologies as well as suggestions and alternatives that you feel would be worth my consideration. Wicket I assume no one here will object to this. I plan to use version 1.4. MySQL First choice for database. I've used it MySQL more than any other database and it hasn't let me down. PostgreSQL Second choice for database. I've used it less than MySQL, so additional time might be required to install, configure, and use it. Spring + Hibernate I'm comfortable with these technologies as I've been using them for a few years with Wicket. But I'm certainly open to suggestions, opinions, etc. Hibernate Annotations Ive been using HBM files, but I'm thinking I should look into getting rid of my mapping files and put the mapping right into the pojos. Is this the right call? Salve Never used it, but it appears many Wicket developers do. Is it worth looking into? WicketWebBeans Might use this for rapid back-end UI development. Besides rolling my own, are there other tools like this? Brix Jackrabbit Our application will need some heavy duty CMS features, and this project looks powerful enough to do the job. Jackrabbit is used by Brix to store content. Lucene Hibernate Search I will need site-wide and data-wide search that encompasses all of the content on the site as well as the data in the application. I'm not sure if these are the best tools for this job, as the content will be stored in Jackrabbit. So I need to be able to search jackrabbit and my data and produce unified search results. Ideas? ACEGI Spring Security I haven't used either of these before so I'm not sure if they will solve my problem: This application will have many levels of roles and permissions. Users will belong to groups and can be assigned roles for a group that allow them to perform actions. For instance, a standard user that belongs to a group can only view some data. But if a user has additional roles assigned to them, then they will gain the ability to see other data, edit data, and so forth. A user can belong to multiple groups, and may have different roles for each group. Shopping Cart Any good open source wicket shopping carts? I have a homemade one that I did for a customer that I plan to start with. But if something else exists, I'd love to hear about it. Amazon FPS This system provides a simple API that can be used to help one user pay another user for service, but allow the infrastructure provider (me) to take a cut out of the transaction. It also supports micro-payments which I could use. The service fits the needs of my business model really well. I've never used it, so does anyone have any horror stories, good things to say, alternative suggestions? Google Checkout PayPal Merchant account The system will also allow for the sale of products. I want to give users a choice of method for accepting payments. They can receive payments via Google Checkout, PayPal, or their own merchant account. If anyone knows of any tools that would help with this, please let me know. Otherwise, I'll just use the APIs directly available from the payment systems. I've already got Google Checkout integrated into another project. OpenID I want to be able to allow users to log in with an OpenID. I understand Spring Security now has this built in. But there are other ways to do it besides Spring. Has anyone integrated OpenID before, and if so what tools did you use? Facebook Developer Program Facebook Connect I haven't really looked into these programs yet, but I'm looking for ways to support Facebook users. It looks like I can get parts of our application to run within facebook. But I'm also wanting to allow facebook users to log into my application and access data and information from FB. For instance, my hope is that making connections with other users in my application can be simplified by utilizing the connections the user has on FB. OpenSocial This tool will help to create a social application platform that other developers can build on top of, create widgets for, and so forth. Also, this will allow my team to integrate our application into other opensocial platforms. OAuth To simplify authentication so I can allow access to my data from other services. Terracotta Never used it, but it looks good for clustering. I need to figure out how to build this application in a
Problem with Application getInitParameter()
Maybe I'm going nuts, but I can't figure out what is wrong. It seems so simple, but it isn't working. I call getInitParameter in my application twice. One time it returns a value, the other it gets a null. And the correct xml is there in web.xml. First, here is the pertinent application code (I've trimmed out unimportant stuff): public class DynamicApplication extends WicketeerBaseApplication { private MerchantInfo merchantInfo; private String siteBaseUrl; public MerchantInfo getMerchantInfo() { return merchantInfo; } public void setMerchantInfo(MerchantInfo merchantInfo) { this.merchantInfo = merchantInfo; } public String getSiteBaseUrl() { return siteBaseUrl; } public void setSiteBaseUrl(String siteBaseUrl) { this.siteBaseUrl = siteBaseUrl; } @Override protected void init() { super.init(); this.siteBaseUrl = getInitParameter(site-base-url); this.merchantInfo = GoogleOrderService.loadMerchantInfo(getServletContext(),getInitParameter(checkout-config-file)); } } Now here are the pertinent parts from web.xml: !-- Base URL of the website. Used in linkbacks from google checkout. -- context-param param-namesite-base-url/param-name param-valuehttp://localhost:8080//param-value /context-param !-- location of configuration file for google checkout with respect to context root. Using the default path here. -- context-param param-namecheckout-config-file/param-name param-value/WEB-INF/checkout-config.xml/param-value /context-param So, when the application init() runs, merchantInfo gets properly populated with the correct MerchantInfo instance based on the contents of checkout-config.xml. So the init param name and value were read correctly. But, then when I try to just get a simple string value for site-base-url, I get back a null. I've looked for typos, tried retyping the web.xml section, swapping the order of getInitParam in init(), restarting... all sorts of stuff. It just always gets null. Any possible thoughts on what might cause this? Using wicket-1.3.3. Pulling my hair out. Maybe its just late and I need to sleep. Is there a better way to get the server name so I don't even need to hard code it? urlFor() only gives back the path, not the server. Thanks, Tauren
Re: Component hierarchy in a subclass situation
Igor, Thanks for the help, but I'm not finding setTransparentResolver in WebMarkupContainer. Should I be using a Border? Thanks, Tauren On Sat, Oct 18, 2008 at 1:55 PM, Igor Vaynberg [EMAIL PROTECTED]wrote: WebMarkupContainer body = new WebMarkupContainer(pageStyle).setTransparentResolver(true); -igor On Sat, Oct 18, 2008 at 1:51 PM, Tauren Mills [EMAIL PROTECTED] wrote: I'm looking for advice on how to deal with the component hierarchy below. I'm getting a MarkupException and think that the problem is that the body defined in base page is a sibling of content, header, and footer instead of their parent. Content, header, and footer should be children of body. Any suggestions on a clean way to add them as children? I could define body as a property and then in HomePage do getBody().add(new HomePanel(content) or some such, but is there a better way to do this? I suppose I could pull the body into the HomePage as well. I'm working on a site that has different color schemes for different sections. So my thought was to add a CSS class to the body so that I can use CSS selectors to specify colors based on which pageStyle the page is set to use. There are only a few color changes necessary, so I wanted to keep it all in one CSS file instead of adding wicket:head to each page with customizations on a per page basis. I'd appreciate any suggestions on nice clean solutions to this, or even ideas on completely different approaches to this problem. Thanks! Tauren BasePage private void init() { WebMarkupContainer body = new WebMarkupContainer(pageStyle); body.add(new SimpleAttributeModifier(class,getPageStyle())); add(body); } body wicket:id=pageStyle wicket:child / /body HomePage extends BasePage - public void init() { add(new HomePanel(content)); add(new HeaderPanel(header)); add(new FooterPanel(footer)); } wicket:extend div wicket:id=header/div div id=doc4 class=yui-t5 div wicket:id=content/div /div div wicket:id=footer/div /wicket:extend
Re: Component hierarchy in a subclass situation
Thanks! That did the trick. On Tue, Oct 21, 2008 at 10:50 AM, Igor Vaynberg [EMAIL PROTECTED]wrote: erm, override istransparentresolver() { return true; } -igor On Tue, Oct 21, 2008 at 10:43 AM, Tauren Mills [EMAIL PROTECTED] wrote: Igor, Thanks for the help, but I'm not finding setTransparentResolver in WebMarkupContainer. Should I be using a Border? Thanks, Tauren On Sat, Oct 18, 2008 at 1:55 PM, Igor Vaynberg [EMAIL PROTECTED] wrote: WebMarkupContainer body = new WebMarkupContainer(pageStyle).setTransparentResolver(true); -igor On Sat, Oct 18, 2008 at 1:51 PM, Tauren Mills [EMAIL PROTECTED] wrote: I'm looking for advice on how to deal with the component hierarchy below. I'm getting a MarkupException and think that the problem is that the body defined in base page is a sibling of content, header, and footer instead of their parent. Content, header, and footer should be children of body. Any suggestions on a clean way to add them as children? I could define body as a property and then in HomePage do getBody().add(new HomePanel(content) or some such, but is there a better way to do this? I suppose I could pull the body into the HomePage as well. I'm working on a site that has different color schemes for different sections. So my thought was to add a CSS class to the body so that I can use CSS selectors to specify colors based on which pageStyle the page is set to use. There are only a few color changes necessary, so I wanted to keep it all in one CSS file instead of adding wicket:head to each page with customizations on a per page basis. I'd appreciate any suggestions on nice clean solutions to this, or even ideas on completely different approaches to this problem. Thanks! Tauren BasePage private void init() { WebMarkupContainer body = new WebMarkupContainer(pageStyle); body.add(new SimpleAttributeModifier(class,getPageStyle())); add(body); } body wicket:id=pageStyle wicket:child / /body HomePage extends BasePage - public void init() { add(new HomePanel(content)); add(new HeaderPanel(header)); add(new FooterPanel(footer)); } wicket:extend div wicket:id=header/div div id=doc4 class=yui-t5 div wicket:id=content/div /div div wicket:id=footer/div /wicket:extend
Component hierarchy in a subclass situation
I'm looking for advice on how to deal with the component hierarchy below. I'm getting a MarkupException and think that the problem is that the body defined in base page is a sibling of content, header, and footer instead of their parent. Content, header, and footer should be children of body. Any suggestions on a clean way to add them as children? I could define body as a property and then in HomePage do getBody().add(new HomePanel(content) or some such, but is there a better way to do this? I suppose I could pull the body into the HomePage as well. I'm working on a site that has different color schemes for different sections. So my thought was to add a CSS class to the body so that I can use CSS selectors to specify colors based on which pageStyle the page is set to use. There are only a few color changes necessary, so I wanted to keep it all in one CSS file instead of adding wicket:head to each page with customizations on a per page basis. I'd appreciate any suggestions on nice clean solutions to this, or even ideas on completely different approaches to this problem. Thanks! Tauren BasePage private void init() { WebMarkupContainer body = new WebMarkupContainer(pageStyle); body.add(new SimpleAttributeModifier(class,getPageStyle())); add(body); } body wicket:id=pageStyle wicket:child / /body HomePage extends BasePage - public void init() { add(new HomePanel(content)); add(new HeaderPanel(header)); add(new FooterPanel(footer)); } wicket:extend div wicket:id=header/div div id=doc4 class=yui-t5 div wicket:id=content/div /div div wicket:id=footer/div /wicket:extend
Re: Home page accepting IndexedParamUrlCodingStrategy
Does anyone have suggestions on how to do this? Or is it just not possible to use IndexedParamUrlCodingStrategy without a mount point (from the root of the site)? Thanks! Tauren On Thu, Jun 26, 2008 at 3:53 PM, Tauren Mills [EMAIL PROTECTED] wrote: Thanks for the suggestion, but I'm unclear on how to mount the home page on /. I guess that is the main problem I'm having. Before adding PageParameters to the page, I used this: mountBookmarkablePage(/home, HomePage.class); With that, going to localhost:8080/ would redirect to localhost:8080/home. Then I changed it to the following: mount(new IndexedParamUrlCodingStrategy(/home, HomePage.class)); //mountBookmarkablePage(/home, HomePage.class); Everything still worked the same (going to site root would redirect to /home), but it would also accept parameters. Functions perfectly, but I need to get rid of the /home mount point. So I tried this: mount(new IndexedParamUrlCodingStrategy(/, HomePage.class)); //mount(new IndexedParamUrlCodingStrategy(/home, HomePage.class)); //mountBookmarkablePage(/home, HomePage.class); Doing so gives a 404 error when I go to the root of the site. So how do I mount the home page on /? I tried both and /. MyWebApplication: public Class? extends WebPage getHomePage() { return HomePage.class; } protected void init() { super.init(); mount(new IndexedParamUrlCodingStrategy(/, HomePage.class)); //mount(new IndexedParamUrlCodingStrategy(/home, HomePage.class)); //mountBookmarkablePage(/home, HomePage.class); } Jetty launcher code (for testing): WebAppContext context = new WebAppContext(); context.setServer(server); context.setContextPath(/); context.setWar(src/webapp); web.xml: servlet servlet-namewicketsite/servlet-name servlet-classorg.apache.wicket.protocol.http.WicketServlet/servlet-class init-param param-nameapplicationFactoryClassName/param-name param-valueorg.apache.wicket.spring.SpringWebApplicationFactory/param-value /init-param load-on-startup1/load-on-startup /servlet servlet-mapping servlet-namewicketsite/servlet-name url-pattern/*/url-pattern /servlet-mapping Thanks for the help! Tauren On Thu, Jun 26, 2008 at 3:38 PM, David Leangen [EMAIL PROTECTED] wrote: IIUC, the home page is automatically mounted on the path where you wicket app is located. So, if you put your wicket on /home, then the home page will be mounted on /home. Guess you'll need to put your home page on / to make this work. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Tauren Mills Sent: 27 June 2008 07:30 To: users@wicket.apache.org Subject: Home page accepting IndexedParamUrlCodingStrategy How do I go about making my HomePage accept index parameters? I want a home page that will accept URLs like: localhost:8080/us/ca/sacramento Instead of having a mount point first, for example /home: localhost:8080/home/us/ca/sacramento I've tried this in my app: getHomePage() { return HomePage.class; } init() { mount(new IndexedParamUrlCodingStrategy(/, HomePage.class)); } This returns in a 404 error for the home page (localhost:8080/). I also tried with instead of / as the mount point, but the same problem. If I use this with the /home mount point, everything works perfectly: mount(new IndexedParamUrlCodingStrategy(/home, HomePage.class)); FYI... I get the PageParameters in HomePage like this (which is working fine); setCountry(pageParams.getString(0,null)); setState(pageParams.getString(1,null)); setCity(pageParams.getString(2,null)); Any suggestions? Thanks, Tauren - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Home page accepting IndexedParamUrlCodingStrategy
Thanks for the help! After messing with it for a while, I was thinking it wasn't possible too. I appreciate the link, as it looks to be a possible solution that I hadn't found while searching on nabble... Tauren On Fri, Jun 27, 2008 at 11:19 AM, Erik van Oosten [EMAIL PROTECTED] wrote: It is not possible. Unfortunately. You can write your own IRequestCycleProcessor. See WebApplication#newRequestCycleProcessor(). Get hints at: http://www.nabble.com/How-to-catch-unknown-(not-mounted)-URLs--td14949092.html#a14956131 Regards, Erik. Tauren Mills wrote: Does anyone have suggestions on how to do this? Or is it just not possible to use IndexedParamUrlCodingStrategy without a mount point (from the root of the site)? Thanks! Tauren On Thu, Jun 26, 2008 at 3:53 PM, Tauren Mills [EMAIL PROTECTED] wrote: Thanks for the suggestion, but I'm unclear on how to mount the home page on /. I guess that is the main problem I'm having. Before adding PageParameters to the page, I used this: mountBookmarkablePage(/home, HomePage.class); With that, going to localhost:8080/ would redirect to localhost:8080/home. Then I changed it to the following: mount(new IndexedParamUrlCodingStrategy(/home, HomePage.class)); //mountBookmarkablePage(/home, HomePage.class); Everything still worked the same (going to site root would redirect to /home), but it would also accept parameters. Functions perfectly, but I need to get rid of the /home mount point. So I tried this: mount(new IndexedParamUrlCodingStrategy(/, HomePage.class)); //mount(new IndexedParamUrlCodingStrategy(/home, HomePage.class)); //mountBookmarkablePage(/home, HomePage.class); Doing so gives a 404 error when I go to the root of the site. So how do I mount the home page on /? I tried both and /. MyWebApplication: public Class? extends WebPage getHomePage() { return HomePage.class; } protected void init() { super.init(); mount(new IndexedParamUrlCodingStrategy(/, HomePage.class)); //mount(new IndexedParamUrlCodingStrategy(/home, HomePage.class)); //mountBookmarkablePage(/home, HomePage.class); } Jetty launcher code (for testing): WebAppContext context = new WebAppContext(); context.setServer(server); context.setContextPath(/); context.setWar(src/webapp); web.xml: servlet servlet-namewicketsite/servlet-name servlet-classorg.apache.wicket.protocol.http.WicketServlet/servlet-class init-param param-nameapplicationFactoryClassName/param-name param-valueorg.apache.wicket.spring.SpringWebApplicationFactory/param-value /init-param load-on-startup1/load-on-startup /servlet servlet-mapping servlet-namewicketsite/servlet-name url-pattern/*/url-pattern /servlet-mapping Thanks for the help! Tauren On Thu, Jun 26, 2008 at 3:38 PM, David Leangen [EMAIL PROTECTED] wrote: IIUC, the home page is automatically mounted on the path where you wicket app is located. So, if you put your wicket on /home, then the home page will be mounted on /home. Guess you'll need to put your home page on / to make this work. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Tauren Mills Sent: 27 June 2008 07:30 To: users@wicket.apache.org Subject: Home page accepting IndexedParamUrlCodingStrategy How do I go about making my HomePage accept index parameters? I want a home page that will accept URLs like: localhost:8080/us/ca/sacramento Instead of having a mount point first, for example /home: localhost:8080/home/us/ca/sacramento I've tried this in my app: getHomePage() { return HomePage.class; } init() { mount(new IndexedParamUrlCodingStrategy(/, HomePage.class)); } This returns in a 404 error for the home page (localhost:8080/). I also tried with instead of / as the mount point, but the same problem. If I use this with the /home mount point, everything works perfectly: mount(new IndexedParamUrlCodingStrategy(/home, HomePage.class)); FYI... I get the PageParameters in HomePage like this (which is working fine); setCountry(pageParams.getString(0,null)); setState(pageParams.getString(1,null)); setCity(pageParams.getString(2,null)); Any suggestions? Thanks, Tauren - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED
Home page accepting IndexedParamUrlCodingStrategy
How do I go about making my HomePage accept index parameters? I want a home page that will accept URLs like: localhost:8080/us/ca/sacramento Instead of having a mount point first, for example /home: localhost:8080/home/us/ca/sacramento I've tried this in my app: getHomePage() { return HomePage.class; } init() { mount(new IndexedParamUrlCodingStrategy(/, HomePage.class)); } This returns in a 404 error for the home page (localhost:8080/). I also tried with instead of / as the mount point, but the same problem. If I use this with the /home mount point, everything works perfectly: mount(new IndexedParamUrlCodingStrategy(/home, HomePage.class)); FYI... I get the PageParameters in HomePage like this (which is working fine); setCountry(pageParams.getString(0,null)); setState(pageParams.getString(1,null)); setCity(pageParams.getString(2,null)); Any suggestions? Thanks, Tauren - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Home page accepting IndexedParamUrlCodingStrategy
Thanks for the suggestion, but I'm unclear on how to mount the home page on /. I guess that is the main problem I'm having. Before adding PageParameters to the page, I used this: mountBookmarkablePage(/home, HomePage.class); With that, going to localhost:8080/ would redirect to localhost:8080/home. Then I changed it to the following: mount(new IndexedParamUrlCodingStrategy(/home, HomePage.class)); //mountBookmarkablePage(/home, HomePage.class); Everything still worked the same (going to site root would redirect to /home), but it would also accept parameters. Functions perfectly, but I need to get rid of the /home mount point. So I tried this: mount(new IndexedParamUrlCodingStrategy(/, HomePage.class)); //mount(new IndexedParamUrlCodingStrategy(/home, HomePage.class)); //mountBookmarkablePage(/home, HomePage.class); Doing so gives a 404 error when I go to the root of the site. So how do I mount the home page on /? I tried both and /. MyWebApplication: public Class? extends WebPage getHomePage() { return HomePage.class; } protected void init() { super.init(); mount(new IndexedParamUrlCodingStrategy(/, HomePage.class)); //mount(new IndexedParamUrlCodingStrategy(/home, HomePage.class)); //mountBookmarkablePage(/home, HomePage.class); } Jetty launcher code (for testing): WebAppContext context = new WebAppContext(); context.setServer(server); context.setContextPath(/); context.setWar(src/webapp); web.xml: servlet servlet-namewicketsite/servlet-name servlet-classorg.apache.wicket.protocol.http.WicketServlet/servlet-class init-param param-nameapplicationFactoryClassName/param-name param-valueorg.apache.wicket.spring.SpringWebApplicationFactory/param-value /init-param load-on-startup1/load-on-startup /servlet servlet-mapping servlet-namewicketsite/servlet-name url-pattern/*/url-pattern /servlet-mapping Thanks for the help! Tauren On Thu, Jun 26, 2008 at 3:38 PM, David Leangen [EMAIL PROTECTED] wrote: IIUC, the home page is automatically mounted on the path where you wicket app is located. So, if you put your wicket on /home, then the home page will be mounted on /home. Guess you'll need to put your home page on / to make this work. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Tauren Mills Sent: 27 June 2008 07:30 To: users@wicket.apache.org Subject: Home page accepting IndexedParamUrlCodingStrategy How do I go about making my HomePage accept index parameters? I want a home page that will accept URLs like: localhost:8080/us/ca/sacramento Instead of having a mount point first, for example /home: localhost:8080/home/us/ca/sacramento I've tried this in my app: getHomePage() { return HomePage.class; } init() { mount(new IndexedParamUrlCodingStrategy(/, HomePage.class)); } This returns in a 404 error for the home page (localhost:8080/). I also tried with instead of / as the mount point, but the same problem. If I use this with the /home mount point, everything works perfectly: mount(new IndexedParamUrlCodingStrategy(/home, HomePage.class)); FYI... I get the PageParameters in HomePage like this (which is working fine); setCountry(pageParams.getString(0,null)); setState(pageParams.getString(1,null)); setCity(pageParams.getString(2,null)); Any suggestions? Thanks, Tauren - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Adding full text search in wicket phonebook
I'm trying to determine the best way to add full text search capabilities to the default wicket-phonebook application. Basically, I want a single search textbox on the page that allows the user to search for any data in any field of the data table. So it would search through all contact's first name, last name, email, and phone number fields. Doing the search should repopulate the data table with only records that match the search. The resulting table should still be able to be paginated, filtered, and sorted. Igor suggested that I use Hibernate Search (which uses Lucene behind the scenes). I've looked into that and it looks like the right way to go. I've already integrated it into a clean copy of wicket-phonebook by converting the app to use hibernate annotations, adding hibernate search annotations, and updating the appropriate xml files. I found a helpful resouce, but it seems like doing it the way suggested would result in a separate data set that wouldn't work with the sorting/filtering/paging of the datatable: http://www.jreactor.com/2008/02/18/wicket-and-hibernate-search/ So now I'm stuck and am not sure the best way to go forward. I know that I need to add the search feature to ContactsDataProvider and ContactDao. I'd welcome any suggestions, advice, and especially example code! Thanks, Tauren - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Adding full text search in wicket phonebook
For the simple wicket-phonebook app, what I'm suggesting is definitely a cannon. ;) But I'm using it as an example for a much more complicated app. If I can get it working for the phonebook app, then I can get it working for my app. I mention the phonebook because many wicket developers are familiar with it, so it provides a good starting point. On the other hand, if there are other ideas that don't involve Lucene, I'm certainly willing to listen. Tauren On Wed, Feb 27, 2008 at 8:33 PM, Martin Makundi [EMAIL PROTECTED] wrote: Aren't you trying to killa a mouse with a cannon? Or is the cannon (Hibernate, Lucene, Complexity) just for fun? 2008/2/27, Tauren Mills [EMAIL PROTECTED]: I'm trying to determine the best way to add full text search capabilities to the default wicket-phonebook application. Basically, I want a single search textbox on the page that allows the user to search for any data in any field of the data table. So it would search through all contact's first name, last name, email, and phone number fields. Doing the search should repopulate the data table with only records that match the search. The resulting table should still be able to be paginated, filtered, and sorted. Igor suggested that I use Hibernate Search (which uses Lucene behind the scenes). I've looked into that and it looks like the right way to go. I've already integrated it into a clean copy of wicket-phonebook by converting the app to use hibernate annotations, adding hibernate search annotations, and updating the appropriate xml files. I found a helpful resouce, but it seems like doing it the way suggested would result in a separate data set that wouldn't work with the sorting/filtering/paging of the datatable: http://www.jreactor.com/2008/02/18/wicket-and-hibernate-search/ So now I'm stuck and am not sure the best way to go forward. I know that I need to add the search feature to ContactsDataProvider and ContactDao. I'd welcome any suggestions, advice, and especially example code! Thanks, Tauren - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Strange wicket bug in DataView?
Gwyn, Thanks for the guidance! The DataProvider.iterator was being executed twice. I put a breakpoint in iterator() and it would pause when the page first started to load. Then I'd continue running the code, and the breakpoint was hit again. At that time, the full page was rendered except for some images on the page, and the browser was paused loading again because of the breakpoint. When I continued running the code, the page would finish loading. The images that weren't loaded are URLs stored in my DB. I found that when I had image URLs in the DB, everything worked fine. But when I had NULL entries for the images, then I'd get this exception and the iterator would run twice. So when the iterator would run twice, the component hierarchy would change, causing the link URLs to no longer be valid. I'm still tracking it down to figure out exactly what is going on. But you got me on the right track. And now I'm thinking it is more of a problem in my application or database than in wicket itself. Which is what I was hoping was the case anyway! :) Tauren On Dec 20, 2007 7:43 AM, Gwyn Evans [EMAIL PROTECTED] wrote: No real idea, but I'd be tempted to stick in some diagnostic logging to log the calls to the DataProvider the details of the lists it returns, just to check there's nothing odd happening there... /Gwyn On 20/12/2007, Tauren Mills [EMAIL PROTECTED] wrote: Thanks. I will try to put together a quickstart, but I'm not sure I can duplicate the problem in it. Tauren On Dec 19, 2007 3:23 PM, Matej Knopp [EMAIL PROTECTED] wrote: This is definitely strange. However without posting more code (or preferably a complete testcase to reproduce) I don't really know how to help you with it. -Matej On Dec 20, 2007 12:05 AM, Tauren Mills [EMAIL PROTECTED] wrote: Does anyone have any thoughts on this problem? I realize this it may seem unique and isolated, but are there any suggestions even on how to figure out what is wrong? How can I figure out why the component path in the URLs for the Links in the DataView are not matching the component hierarchy? These are the URLs output at initial page creation time: http://localhost:8082/db/app/?wicket:interface=:6:reports:reports:1:actions:select::ILinkListener:: http://localhost:8082/db/app/?wicket:interface=:6:reports:reports:2:actions:select::ILinkListener:: However, at the time that onClick is processed, the component hierarchy seems to have changed and now have the value of 3 and 4 instead of 1 and 2. The links above don't work, but the following links do if I manually enter them: http://localhost:8082/db/app/?wicket:interface=:6:reports:reports:3:actions:select::ILinkListener:: http://localhost:8082/db/app/?wicket:interface=:6:reports:reports:4:actions:select::ILinkListener:: Its almost as if a secondary page render has occurred. But I've added logging to my page and don't see any extra log output. My project is basically done and ready to launch, but this is holding it up. Any ideas or suggestions? Thanks! Tauren On Dec 18, 2007 11:21 PM, Tauren Mills [EMAIL PROTECTED] wrote: I'm having an Exception that is happening before any of my Link.onClick() code is executed, making me wonder if there is a wicket bug of some sort. I have a DataView with an ActionPanel in each row that contains a Link. There is no AJAX on this page. When I load the page with the DataView for the first time, clicking the Link doesn't work and I get an Exception (see below). But if I click the browser back button, then click the same link, it works. However, this problem only occurs for some of the data records, not all of them. But the same data records always break. I thought it was a data problem because of this, but tracing back into the wicket code seems to indicate otherwise. Also, I'm running on the latest wicket trunk that I updated to about 15 minutes ago. The URLs that are output for the Links in the dataview when the page is first loaded is (dataview has only 2 data records): http://localhost:8082/db/app/?wicket:interface=:6:reports:reports:1:actions:select::ILinkListener:: http://localhost:8082/db/app/?wicket:interface=:6:reports:reports:2:actions:select::ILinkListener:: When I hit the back button, the URLs for that same links are: http://localhost:8082/db/app/?wicket:interface=:6:reports:reports:5:actions:select::ILinkListener:: http://localhost:8082/db/app/?wicket:interface=:6:reports:reports:6:actions:select::ILinkListener:: The exception that is thrown is this (only when the first links are clicked, not the links after hitting the back button): WicketMessage: component reports:reports:1:actions:select not found on page
Re: Strange wicket bug in DataView?
I think this problem is caused by the browser. Using Firebug, it looks like the browser is actually requesting the page a second time. Both requests go to: http://localhost:8080/db/app/?wicket:interface=:15 Here are the request headers from the first request: Host: localhost:8080 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11 Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 Accept-Language: en-us,en;q=0.5 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 300 Connection: keep-alive Referer: http://localhost:8080/db/app/?wicket:interface=:2 Cookie: JSESSIONID=1hndka1no7ub6; styleswitcher_style=small The browser then makes a second request: Host: localhost:8080 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11 Accept: image/png,*/*;q=0.5 Accept-Language: en-us,en;q=0.5 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 300 Connection: keep-alive Referer: http://localhost:8080/db/app/?wicket:interface=:3 Cookie: JSESSIONID=1hndka1no7ub6; styleswitcher_style=small Cache-Control: max-age=0 Note that the second request has a different Accept (images only?) and a Cache-Control. This seems to only be happening to me when the image source is empty. Even having any text in there works. The following wicket output causes the problem: img wicket:id=image1 src=/ So it looks like if there is an image on the page without a source (not just a broken image), that Firefox requests the page URL again. And by doing so, causes my DataView to refresh. But it doesn't refresh the DOM on the 2nd request, only images. Thus the links are no longer valid. To solve this problem, I just need to make sure that my image src is never an empty string. Here is a simple hack that I did to my StaticImage class: public class StaticImage extends WebComponent { private static final long serialVersionUID = 1L; public StaticImage(String id, IModel model) { super(id, model); } protected void onComponentTag(ComponentTag tag) { checkComponentTag(tag, img); String src = getModelObjectAsString(); tag.put(src, (!src.equals()?src:no_image) ); } } With this, img src=no_image in the markup. It doesn't render of course, but it also doesn't cause a 2nd page refresh. One last thing. If I just add img src=/ to my page's HTML, it appears that it is rewritten by wicket to be this: img src=..//. So maybe this is a problem that was already discovered and solved. But when I made a custom component that alters the src, I lost that solution. I guess in the end, this isn't a wicket problem. It isn't really even a problem with my application, although I can solve it in my application. I don't know enough about why Firefox is doing this, so it might not even be a browser problem. Who knows... I hope this helps someone else who runs into a similar issue. Tauren On Dec 20, 2007 4:16 PM, Tauren Mills [EMAIL PROTECTED] wrote: Gwyn, Thanks for the guidance! The DataProvider.iterator was being executed twice. I put a breakpoint in iterator() and it would pause when the page first started to load. Then I'd continue running the code, and the breakpoint was hit again. At that time, the full page was rendered except for some images on the page, and the browser was paused loading again because of the breakpoint. When I continued running the code, the page would finish loading. The images that weren't loaded are URLs stored in my DB. I found that when I had image URLs in the DB, everything worked fine. But when I had NULL entries for the images, then I'd get this exception and the iterator would run twice. So when the iterator would run twice, the component hierarchy would change, causing the link URLs to no longer be valid. I'm still tracking it down to figure out exactly what is going on. But you got me on the right track. And now I'm thinking it is more of a problem in my application or database than in wicket itself. Which is what I was hoping was the case anyway! :) Tauren On Dec 20, 2007 7:43 AM, Gwyn Evans [EMAIL PROTECTED] wrote: No real idea, but I'd be tempted to stick in some diagnostic logging to log the calls to the DataProvider the details of the lists it returns, just to check there's nothing odd happening there... /Gwyn On 20/12/2007, Tauren Mills [EMAIL PROTECTED] wrote: Thanks. I will try to put together a quickstart, but I'm not sure I can duplicate the problem in it. Tauren On Dec 19, 2007 3:23 PM, Matej Knopp [EMAIL PROTECTED] wrote: This is definitely strange. However without posting more code (or preferably a complete testcase to reproduce) I don't really know how to help you with it. -Matej On Dec 20, 2007
Re: Strange wicket bug in DataView?
Thanks. I will try to put together a quickstart, but I'm not sure I can duplicate the problem in it. Tauren On Dec 19, 2007 3:23 PM, Matej Knopp [EMAIL PROTECTED] wrote: This is definitely strange. However without posting more code (or preferably a complete testcase to reproduce) I don't really know how to help you with it. -Matej On Dec 20, 2007 12:05 AM, Tauren Mills [EMAIL PROTECTED] wrote: Does anyone have any thoughts on this problem? I realize this it may seem unique and isolated, but are there any suggestions even on how to figure out what is wrong? How can I figure out why the component path in the URLs for the Links in the DataView are not matching the component hierarchy? These are the URLs output at initial page creation time: http://localhost:8082/db/app/?wicket:interface=:6:reports:reports:1:actions:select::ILinkListener:: http://localhost:8082/db/app/?wicket:interface=:6:reports:reports:2:actions:select::ILinkListener:: However, at the time that onClick is processed, the component hierarchy seems to have changed and now have the value of 3 and 4 instead of 1 and 2. The links above don't work, but the following links do if I manually enter them: http://localhost:8082/db/app/?wicket:interface=:6:reports:reports:3:actions:select::ILinkListener:: http://localhost:8082/db/app/?wicket:interface=:6:reports:reports:4:actions:select::ILinkListener:: Its almost as if a secondary page render has occurred. But I've added logging to my page and don't see any extra log output. My project is basically done and ready to launch, but this is holding it up. Any ideas or suggestions? Thanks! Tauren On Dec 18, 2007 11:21 PM, Tauren Mills [EMAIL PROTECTED] wrote: I'm having an Exception that is happening before any of my Link.onClick() code is executed, making me wonder if there is a wicket bug of some sort. I have a DataView with an ActionPanel in each row that contains a Link. There is no AJAX on this page. When I load the page with the DataView for the first time, clicking the Link doesn't work and I get an Exception (see below). But if I click the browser back button, then click the same link, it works. However, this problem only occurs for some of the data records, not all of them. But the same data records always break. I thought it was a data problem because of this, but tracing back into the wicket code seems to indicate otherwise. Also, I'm running on the latest wicket trunk that I updated to about 15 minutes ago. The URLs that are output for the Links in the dataview when the page is first loaded is (dataview has only 2 data records): http://localhost:8082/db/app/?wicket:interface=:6:reports:reports:1:actions:select::ILinkListener:: http://localhost:8082/db/app/?wicket:interface=:6:reports:reports:2:actions:select::ILinkListener:: When I hit the back button, the URLs for that same links are: http://localhost:8082/db/app/?wicket:interface=:6:reports:reports:5:actions:select::ILinkListener:: http://localhost:8082/db/app/?wicket:interface=:6:reports:reports:6:actions:select::ILinkListener:: The exception that is thrown is this (only when the first links are clicked, not the links after hitting the back button): WicketMessage: component reports:reports:1:actions:select not found on page com.theseniorlist.database.web.page.site.service.ServiceDetailsPage[id = 6], listener interface = [RequestListenerInterface name=ILinkListener, method=public abstract void org.apache.wicket.markup.html.link.ILinkListener.onLinkClicked()] Root cause: org.apache.wicket.WicketRuntimeException: component reports:reports:1:actions:select not found on page com.theseniorlist.database.web.page.site.service.ServiceDetailsPage[id = 6], listener interface = [RequestListenerInterface name=ILinkListener, method=public abstract void org.apache.wicket.markup.html.link.ILinkListener.onLinkClicked()] at org.apache.wicket.request.AbstractRequestCycleProcessor.resolveListenerInterfaceTarget(AbstractRequestCycleProcessor.java:411) at org.apache.wicket.request.AbstractRequestCycleProcessor.resolveRenderedPage(AbstractRequestCycleProcessor.java:456) at org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(WebRequestCycleProcessor.java:139) at org.apache.wicket.RequestCycle.step(RequestCycle.java:1152) at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1245) at org.apache.wicket.RequestCycle.request(RequestCycle.java:489) at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:354) at org.apache.wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:121) at javax.servlet.http.HttpServlet.service(HttpServlet.java:689) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.mortbay.jetty.servlet.ServletHolder.handle
Strange wicket bug in DataView?
I'm having an Exception that is happening before any of my Link.onClick() code is executed, making me wonder if there is a wicket bug of some sort. I have a DataView with an ActionPanel in each row that contains a Link. There is no AJAX on this page. When I load the page with the DataView for the first time, clicking the Link doesn't work and I get an Exception (see below). But if I click the browser back button, then click the same link, it works. However, this problem only occurs for some of the data records, not all of them. But the same data records always break. I thought it was a data problem because of this, but tracing back into the wicket code seems to indicate otherwise. Also, I'm running on the latest wicket trunk that I updated to about 15 minutes ago. The URLs that are output for the Links in the dataview when the page is first loaded is (dataview has only 2 data records): http://localhost:8082/db/app/?wicket:interface=:6:reports:reports:1:actions:select::ILinkListener:: http://localhost:8082/db/app/?wicket:interface=:6:reports:reports:2:actions:select::ILinkListener:: When I hit the back button, the URLs for that same links are: http://localhost:8082/db/app/?wicket:interface=:6:reports:reports:5:actions:select::ILinkListener:: http://localhost:8082/db/app/?wicket:interface=:6:reports:reports:6:actions:select::ILinkListener:: The exception that is thrown is this (only when the first links are clicked, not the links after hitting the back button): WicketMessage: component reports:reports:1:actions:select not found on page com.theseniorlist.database.web.page.site.service.ServiceDetailsPage[id = 6], listener interface = [RequestListenerInterface name=ILinkListener, method=public abstract void org.apache.wicket.markup.html.link.ILinkListener.onLinkClicked()] Root cause: org.apache.wicket.WicketRuntimeException: component reports:reports:1:actions:select not found on page com.theseniorlist.database.web.page.site.service.ServiceDetailsPage[id = 6], listener interface = [RequestListenerInterface name=ILinkListener, method=public abstract void org.apache.wicket.markup.html.link.ILinkListener.onLinkClicked()] at org.apache.wicket.request.AbstractRequestCycleProcessor.resolveListenerInterfaceTarget(AbstractRequestCycleProcessor.java:411) at org.apache.wicket.request.AbstractRequestCycleProcessor.resolveRenderedPage(AbstractRequestCycleProcessor.java:456) at org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(WebRequestCycleProcessor.java:139) at org.apache.wicket.RequestCycle.step(RequestCycle.java:1152) at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1245) at org.apache.wicket.RequestCycle.request(RequestCycle.java:489) at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:354) at org.apache.wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:121) at javax.servlet.http.HttpServlet.service(HttpServlet.java:689) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:445) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1050) at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:174) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:77) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1041) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:354) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:226) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:627) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:141) at org.mortbay.jetty.Server.handle(Server.java:269) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:430) at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:687) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:492) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:199) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:339) at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:208) at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:475) Sure enough, when I trace the wicket code and examine the data in memory, the first time the dataview page is loaded, the component path to the actual components are values 3 and 4. In fact, if after I load the page for the first time, I manually enter the following URLs, I get the correct page without an exception: http://localhost:8082/db/app/?wicket:interface=:8:reports:reports:3:actions:select::ILinkListener:: http://localhost:8082/db/app/?wicket:interface=:8:reports:reports:4:actions:select::ILinkListener:: Why would the URLs that are rendered the first time be wrong? Is there something in my code that could cause this?
Re: POM problems in trunk?
I just updated from svn again and I'm still having this problem. I've checked out the entire wicket trunk including jdk-1.4 and jdk-1.5. I just updated and did the following: cd wicket/jdk-1.4/wicket mvn install -Dmaven.test.skip=true But this complains of dependencies missing versions. It works fine if I add versions to portlet-api and portals-bridges-common. Perhaps I'm not doing something I need to do with maven. I am fairly new to it. I've got it working by editing the POM to include versions. But it would be nice to not have to do this. How do others make this work? Any suggestions? Tauren On 10/11/07, John Patterson [EMAIL PROTECTED] wrote: Have you checked out the entire wicket source tree - that contains jdk14, jdk15 etc? If not then maybe the individual poms cannot find the parent pom that defines those version variables. On 11 Oct 2007, at 22:46, Tauren Mills wrote: I just updated wicket, wicket-extensions and wicket-examples from trunk. When I tried to run mvn install eclipse:eclpise, I got errors stating that there were dependencies missing versions. So I added versions to the pom.xml for wicket and wicket-examples. Now mvn runs. Am I doing something wrong, or do the pom.xml files in trunk need versions? Changing them to contain version params did the trick, but should it work without them? wicket/pom.xml: dependency groupIdjavax.portlet/groupId artifactIdportlet-api/artifactId version1.0/version scopeprovided/scope optionaltrue/optional /dependency dependency groupIdorg.apache.portals.bridges/groupId artifactIdportals-bridges-common/artifactId version1.0.3/version scopeprovided/scope optionaltrue/optional /dependency wicket-examples/pom.xml: dependency groupIdjavax.portlet/groupId artifactIdportlet-api/artifactId version1.0/version scopeprovided/scope /dependency - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: POM problems in trunk?
Ahh, your right. I'm doing this within eclipse and for some reason was just assuming I was getting all of trunk. But I think I'm just updating all the projects, not updating the root. Now that you mention it, I'm sure it will work. Thanks! On 10/30/07, Martijn Dashorst [EMAIL PROTECTED] wrote: Do a install from the root your parent pom is not up to date in the local repo Martijn On 10/30/07, Tauren Mills [EMAIL PROTECTED] wrote: I just updated from svn again and I'm still having this problem. I've checked out the entire wicket trunk including jdk-1.4 and jdk-1.5. I just updated and did the following: cd wicket/jdk-1.4/wicket mvn install -Dmaven.test.skip=true But this complains of dependencies missing versions. It works fine if I add versions to portlet-api and portals-bridges-common. Perhaps I'm not doing something I need to do with maven. I am fairly new to it. I've got it working by editing the POM to include versions. But it would be nice to not have to do this. How do others make this work? Any suggestions? Tauren On 10/11/07, John Patterson [EMAIL PROTECTED] wrote: Have you checked out the entire wicket source tree - that contains jdk14, jdk15 etc? If not then maybe the individual poms cannot find the parent pom that defines those version variables. On 11 Oct 2007, at 22:46, Tauren Mills wrote: I just updated wicket, wicket-extensions and wicket-examples from trunk. When I tried to run mvn install eclipse:eclpise, I got errors stating that there were dependencies missing versions. So I added versions to the pom.xml for wicket and wicket-examples. Now mvn runs. Am I doing something wrong, or do the pom.xml files in trunk need versions? Changing them to contain version params did the trick, but should it work without them? wicket/pom.xml: dependency groupIdjavax.portlet/groupId artifactIdportlet-api/artifactId version1.0/version scopeprovided/scope optionaltrue/optional /dependency dependency groupIdorg.apache.portals.bridges/groupId artifactIdportals-bridges-common/artifactId version1.0.3/version scopeprovided/scope optionaltrue/optional /dependency wicket-examples/pom.xml: dependency groupIdjavax.portlet/groupId artifactIdportlet-api/artifactId version1.0/version scopeprovided/scope /dependency - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Buy Wicket in Action: http://manning.com/dashorst Apache Wicket 1.3.0-beta4 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta4/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to manage multiple versions of data?
Thanks for the ideas everyone. I do like Igor's suggestion of reusing the same tables and having a live flag, as I'd hate to have an entire extra set of duplicate tables. However, since this approach duplicates data, there are still some issues that I'm not sure how to best deal with. Let me explain the use case in more detail. The users of the system are referees of soccer games. They need to be able to view their schedule of matches. A match includes a game number, date, time, home team, away team, location, a center referee, and two linesmen. The users do not modify any of the main data elements associated with a match. But they can accept or reject matches, and that acceptance information is associated with a match and the referee. Administrators will be scheduling all of the matches, assigning referees to matches, etc. There could be several administrators. There are many changes and updates that happen on a regular basis to already published schedules. Sometimes entire fields are closed due to bad conditions, and all of the matches have to be moved elsewhere. The updating of data can take hours or days depending upon if the admin is waiting on information. Updated data should not be released one match at a time, but all changes should go live at once. There are many business reasons for this that and I don't want to try to explain them all. They mainly involve publishing incomplete data, schedule reviews, and approvals prior to publishing. Creating and modifying these schedules can take a lot of trial and error, moving matches around and trying to get everything to work well for all parties involved. It wouldn't be good if referees looked at their schedules when a match was in a state of flux and then didn't check the schedule again. Lastly, when a batch of changes is completed, referees could be notified of the changes all at once, not one match change at a time. So, given this scenario, a live record Match #100 could have CenterReferee accept the game, Linesman1 reject it, and Linesman2 not yet respond. Meanwhile, if there is a non-live duplicate of Match #100, then that acceptance information would need to be associated with it as well. But the acceptance information could change after the non-live record is created. I suppose when a non-live match is saved that already has a live version (thus making it the new live record), the attached information to the existing live record could be copied to the non-live record, then deleted, and the non-live record becomes live. But to me, this just seems hacky and prone to fail. Kind of like data synchronization systems always seem to get screwed up at times. Maybe it is the only/best/simplest solution though. I also need to think about how to purge old edit data that isn't saved. I think that I could make due with only a live and edit versions of the data (just 2 rows of the same data at a time). I don't think I need to keep track of multiple versions. It would be nice to be able to support multiple batch edit sessions that are each distinct from the others. But that would get *really* complex... Although, it would be nice if the admin could save just a certain set of matches (say all 1st Division games, but leave all 2nd Division games in edit mode). That way, the admin could work on everything, and publish sets of changes as he completes them instead of waiting until all changes are done. This should still be doable with just a live and edit version of the data records. After writing this, I have a much better sense of how to do it. But I'd still like to hear any other ideas. Are there some patterns or solutions that I should look into that could help with this? I don't think long transactions are the way to go for this. Database partitioning (which doesn't really solve this problem but is a great idea for large datasets) isn't needed yet, as the amount of data will be manageable. Thanks again! Tauren On 10/30/07, Eelco Hillenius [EMAIL PROTECTED] wrote: using long transactions would be pretty horrible :( long transactions should be avoided like the plague at all cost. Especially with certain databases (like Microsofts or Sybase variants) I never really used them myself, so that's entirely possible :-) i would do it how igors proposes. Have multiply rows for the same data with 1 row that is live and another row (with maybe the editting userid as data so that you know what to get the next time) Yeah, that's a workable idea. The problem then is cleaning up the entries that never were finished, and just the fact that you're polluting your data model with administrative data. But it might be the best solution. Eelco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For
How to manage multiple versions of data?
I have a wicket/hibernate/spring project that manages a set of live data. Users of the system view the live version of the data. Currently, administrative CRUD alters the live data as well. Changes by an admin are immediately reflected on the site to users. But a new set of features is going to require that administrators should be able to make updates and changes without affecting the live data. Once they are satisfied with the changes they have made, they can save/publish the working data to be live data on the site. The modification/editing of this data can take a fair amount of time, perhaps several days. Thus, I can't just put the working data into the session and then save it to the DB a few minutes later when the editing is done. The working data needs to be able to persist as well as the live data. Also, I'm reluctant to just make copies of all the data from the live version to the working version, because there are certain aspects of the live data that can be altered by the users. The users don't actually edit the basic data, but additional information is attached to the data as the user uses it. If the admin is editing data and it takes a few days, the copy of the data could get stale as users use it. Then I'd have data synchronization issues to deal with. I would google for patterns or techniques to deal with this type of situation, but I'm not sure what to even search for. Has anyone had to deal with anything similar? Any advice or suggestions? Or even keywords to search for? Thanks! Tauren - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: OT: API to calculate distances from zip code
Sean and Matt, Thanks for the advice! You're suggestions got me going in the right direction... As this small scale project is using MySQL, I discovered it supports some GIS features as well. In case anyone else is looking to do something similar, this thread is particularly useful: http://forums.mysql.com/read.php?23,3868,3868#msg-3868 Tauren On 10/27/07, Matt Jensen [EMAIL PROTECTED] wrote: If you want to implement this for yourself, you need to start with two pieces: a database of zip code data including latitude/longitude, and (to make things as simple as possible) an OpenGIS extension package for your database. This gives you the ability to index on latitude/longitude and do quick lookups using a distance function in the WHERE clause of your query. The implementation for PostgreSQL is called PostGIS (http://www.postgis.org); if you're using some other database then you will have to find the equivalent extension on your own. I wouldn't be surprised if some high end databases have this functionality built in. Zip code databases are available from about a million different sources. I was most pleased with the offering from http://www.zipcodeworld.com, but I'm sure that I did not investigate them all. In my experience, the data is a bit shoddy in all of these collections. You may not have problems with that until you try to combine it with something like gazetteer data. In about 2,000 cases, that becomes a nightmare. If you can avoid that...do! I have an SQL INSERT script which was generated off of the September topical gazetteer and zip code databases, but with everything pulled in I believe it weighs in at something like 40MB. :-/ Tauren Mills wrote: I apologize for this being off topic, but I have a feeling some of you might have some ideas for me. I'd like to implement a feature that will search for all physical locations in my database that are within a radius of a zip code. In other words, the user enters a zip code and selects a distance from a drop down list (5 mi, 10 mi, 25 mi, 50 mi, etc.) and a list of all locations within that distance of the zip code will be displayed. You can see something similar to this at: http://www.restaurant.com/ Are there any web services out there that would simplify this task? I have been looking at the Google Geocoding API (http://www.google.com/apis/maps/documentation/services.html), but am not sure how much it will help. I could geocode locations as they are added to my database and store the lat/long, but I get fuzzy on how to proceed from there. Somehow my SQL query (using hibernate) would need to do some computation to see if the lat/long stored in the DB is within the specified radius from the lat/long of the specified zip code. I guess I mostly want to hear from others if this would be the way they would do it, or if there is some other way that would work better or be simpler. Thanks! Tauren - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
No WebApplicationContext found: no ContextLoaderListener registered?
This may not be specifically wicket related, but I'm stuck and am hoping someone else has dealt with this before. I'm not even sure what these errors mean. I've got a wicket/spring app that runs just fine within Eclipse using Jetty. But I'm attempting to deploy its war to Resin 3.1.0, it doesn't run. I get this exception: java.lang.IllegalStateException: No WebApplicationContext found: no ContextLoaderListener registered? at org.springframework.web.context.support.WebApplicationContextUtils.getRequiredWebApplicationContext(WebApplicationContextUtils.java:86) at org.apache.wicket.spring.SpringWebApplicationFactory.createApplication(SpringWebApplicationFactory.java:82) at org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:461) at org.apache.wicket.protocol.http.WicketServlet.init(WicketServlet.java:148) at javax.servlet.GenericServlet.init(GenericServlet.java:70) at com.caucho.server.dispatch.ServletConfigImpl.createServletImpl(ServletConfigImpl.java:766) at com.caucho.server.dispatch.ServletConfigImpl.createServlet(ServletConfigImpl.java:697) at com.caucho.server.dispatch.ServletManager.init(ServletManager.java:150) at com.caucho.server.webapp.WebApp.start(WebApp.java:1699) at com.caucho.server.deploy.DeployController.startImpl(DeployController.java:623) at com.caucho.server.deploy.DeployController.restartImpl(DeployController.java:586) at com.caucho.server.deploy.StartAutoRedeployAutoStrategy.request(StartAutoRedeployAutoStrategy.java:125) at com.caucho.server.deploy.DeployController.request(DeployController.java:556) at com.caucho.server.webapp.WebAppContainer.getWebApp(WebAppContainer.java:884) at com.caucho.server.webapp.WebAppContainer.buildInvocation(WebAppContainer.java:724) at com.caucho.server.host.Host.buildInvocation(Host.java:476) at com.caucho.server.host.HostContainer.buildInvocation(HostContainer.java:331) at com.caucho.server.cluster.Server.buildInvocation(Server.java:795) at com.caucho.server.dispatch.DispatchServer.buildInvocation(DispatchServer.java:200) at com.caucho.server.hmux.HmuxRequest.handleRequest(HmuxRequest.java:419) at com.caucho.server.port.TcpConnection.run(TcpConnection.java:477) at com.caucho.util.ThreadPool$Item.runTasks(ThreadPool.java:591) at com.caucho.util.ThreadPool$Item.run(ThreadPool.java:513) at java.lang.Thread.run(Thread.java:595) Here's my web.xml: web-app display-namedynamic/display-name context-param param-namecontextConfigLocation/param-name param-valueclasspath:applicationContext.xml/param-value /context-param context-param param-nameconfiguration/param-name param-valuedeployment/param-value /context-param !-- Enable the filters for Hibernate -- filter filter-nameopensessioninview/filter-name filter-classorg.springframework.orm.hibernate3.support.OpenSessionInViewFilter/filter-class /filter filter-mapping filter-nameopensessioninview/filter-name servlet-namedynamic/servlet-name /filter-mapping !-- END hibernate filters -- listener listener-classorg.springframework.web.context.ContextLoaderListener/listener-class /listener servlet servlet-namedynamic/servlet-name servlet-classorg.apache.wicket.protocol.http.WicketServlet/servlet-class init-param param-nameapplicationFactoryClassName/param-name param-valueorg.apache.wicket.spring.SpringWebApplicationFactory/param-value /init-param load-on-startup1/load-on-startup /servlet servlet-mapping servlet-namedynamic/servlet-name url-pattern/*/url-pattern /servlet-mapping /web-app Any ideas what would cause this or how to get it running? I can provide my spring xml files too if that will help. Thanks! Tauren - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: No WebApplicationContext found: no ContextLoaderListener registered?
Disregard this message. It turns out my war was missing some jar files. It was an issue of I'm just stupid because I'm still working at 5am and can't think straight. To bad the error message wasn't more intuitive. Oh well. Tauren On 10/12/07, Tauren Mills [EMAIL PROTECTED] wrote: This may not be specifically wicket related, but I'm stuck and am hoping someone else has dealt with this before. I'm not even sure what these errors mean. I've got a wicket/spring app that runs just fine within Eclipse using Jetty. But I'm attempting to deploy its war to Resin 3.1.0, it doesn't run. I get this exception: java.lang.IllegalStateException: No WebApplicationContext found: no ContextLoaderListener registered? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
POM problems in trunk?
I just updated wicket, wicket-extensions and wicket-examples from trunk. When I tried to run mvn install eclipse:eclpise, I got errors stating that there were dependencies missing versions. So I added versions to the pom.xml for wicket and wicket-examples. Now mvn runs. Am I doing something wrong, or do the pom.xml files in trunk need versions? Changing them to contain version params did the trick, but should it work without them? wicket/pom.xml: dependency groupIdjavax.portlet/groupId artifactIdportlet-api/artifactId version1.0/version scopeprovided/scope optionaltrue/optional /dependency dependency groupIdorg.apache.portals.bridges/groupId artifactIdportals-bridges-common/artifactId version1.0.3/version scopeprovided/scope optionaltrue/optional /dependency wicket-examples/pom.xml: dependency groupIdjavax.portlet/groupId artifactIdportlet-api/artifactId version1.0/version scopeprovided/scope /dependency - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Custom label for number and currency formatting?
Thanks for the ideas. Here is my implementation. I split it into two classes since I may want to use the CurrencyConverter separately. In my initial testing it works well, but I haven't tested convertToObject(). Let me know if anyone sees any issues or has suggested improvements: public class CurrencyConverter extends AbstractNumberConverter { private static final long serialVersionUID = 1L; public CurrencyConverter() { } @Override public NumberFormat getNumberFormat(Locale locale) { return NumberFormat.getCurrencyInstance(locale); } @Override public Class getTargetType() { return Double.class; } public Object convertToObject(String value, Locale locale) { // string to double. try { return getNumberFormat(locale).parse(value).doubleValue(); } catch (ParseException ex) { throw new WicketRuntimeException(exception when trying to parse currency value: + ex.getMessage()); } } @Override public String convertToString(Object value, Locale locale) { // double to string return getNumberFormat(locale).format(value); } } public class CurrencyLabel extends Label { private static final long serialVersionUID = 1L; public CurrencyLabel(String id) { this(id,null); } public CurrencyLabel(String id, IModel model) { super(id,model); } public IConverter getConverter(Class type) { return new CurrencyConverter(); } } Anyone can feel free to use this or add it to Wicket core. Tauren On 10/5/07, Eelco Hillenius [EMAIL PROTECTED] wrote: Label dbl = new Label(dbllbl,+x){ Why pass in a string? Better is to do new Label(foo, new Model(x)); @Override protected void onComponentTagBody(final MarkupStream markupStream, final ComponentTag openTag) { Object val = getConverter().convert(getModelObjectAsString(), If you are merely displaying the value, you don't need to convert. What this line above does - if you'd pass in a model that produces a number) is convert from a number to a string (using the converter, this is in getModelObjectAsString) and back again. You can just do Object val = getModelObject(). Alternatives: 1) Wrap the model (decorator pattern) so that it returns the formatted value. 2) Use a custom converter like: new Label(foo, new Model(x)) { public IConverter getConverter(Class type) { return new AbstractNumberConverter() { public NumberFormat getNumberFormat(Locale locale) { return NumberFormat.getCurrencyInstance(); } } } } Eelco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Getting started with Hibernate and Wicket
Wicketstuff Phonebook is a good starting place for wicket/spring/hibernate integration: http://wicketstuff.org/confluence/display/STUFFWIKI/wicket-phonebook On 10/3/07, Alexandre Bairos [EMAIL PROTECTED] wrote: http://databinder.net does a good job. On 10/3/07, Neil B. Cohen [EMAIL PROTECTED] wrote: I'm trying to learn both Hibernate and Wicket at the same time, and I could use a couple of pointers... I have managed to take the Wicket 'signin' example and added a tiny Hibernate database which I can access to extract a 'User' object to validate the user's name and password. That works fine... But now I would like to be able to pull a list of objects (Users) out of the database and display them in a table on a new page (with columns like 'userName, 'emailAddr', 'Role' etc. etc.) I think I can get the list of data from the database using Hibernate (although I'm not sure the best way to manage a table if it has thousands of rows, which mine will eventually have...) But I'm not sure how to set up the Wicket page to display that data. Can someone point me at some simple table examples that would do that?? thanks very much, nbc - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Custom label for number and currency formatting?
Does such a thing exist? I thought it did, but can't find it now. Basically, I want a Label that allows me to format floats/doubles as currency. I don't need i18n built in (for different currencies, etc.), just take double x=8.3 and output $8.30. Any pointers are appreciated! Thanks. Tauren - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
ExternalLink doesn't use model?
I don't understand why ExternalLink doesn't store the external href as the model. It stores it in an href property. It seems to not follow the normal wicket way. This makes it difficult to do things like display a link only if the model is not null. For instance: add(new ExternalLink(web, new PropertyModel(service,web)) { @Override public boolean isVisible() { if (getModelObject() == null) { return false; } return super.isVisible(); } }); The problem is that getModelObject() is always null, because the PropertyModel is stored in the href property. And since isVisible() is part of Component, the href property isn't accessible. Any suggestions for a simple solution? Thanks, Tauren - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ExternalLink doesn't use model?
Martijn, Will do. In the meantime, anyone have suggestions how to create a link to an external web page that is only visible if the model is not null? Thanks, Tauren On 9/26/07, Martijn Dashorst [EMAIL PROTECTED] wrote: Please add a feature request to the JIRA. Martijn On 9/26/07, Tauren Mills [EMAIL PROTECTED] wrote: I don't understand why ExternalLink doesn't store the external href as the model. It stores it in an href property. It seems to not follow the normal wicket way. This makes it difficult to do things like display a link only if the model is not null. For instance: add(new ExternalLink(web, new PropertyModel(service,web)) { @Override public boolean isVisible() { if (getModelObject() == null) { return false; } return super.isVisible(); } }); The problem is that getModelObject() is always null, because the PropertyModel is stored in the href property. And since isVisible() is part of Component, the href property isn't accessible. Any suggestions for a simple solution? Thanks, Tauren - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Buy Wicket in Action: http://manning.com/dashorst Apache Wicket 1.3.0-beta3 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta3/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ExternalLink doesn't use model?
Eelco, Thanks. I was trying to do it as an anonymous class, but your idea is simpler. Here's what I ended up with: public class HidingExternalLink extends ExternalLink { private static final long serialVersionUID = 1L; public HidingExternalLink(final String id, final String href) { this(id, href, null); } public HidingExternalLink(final String id, final IModel href) { this(id,href,null); } public HidingExternalLink(final String id, final String href, final String label) { super(id, href, label); setModel(new Model(href)); } public HidingExternalLink(final String id, final IModel href, final IModel label) { super(id, href, label); setModel(href); } public boolean isVisible() { return getModelObject() != null; } } Tauren On 9/26/07, Eelco Hillenius [EMAIL PROTECTED] wrote: In the meantime, anyone have suggestions how to create a link to an external web page that is only visible if the model is not null? class MyExternalLink extends ExternalLink { constructors public boolean isVisible() { return getModelObject() != null; } } Eelco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: FilterToolbar
Evan, See wicket-phonebook in wicket-stuff. Tauren On 9/20/07, Evan Chooly [EMAIL PROTECTED] wrote: Apparently the API between beta3 and the latest SNAPSHOT changed for FilterToolbar and now it needs a FilterForm. I can't find any examples (not even unit tests) that show how I should build my page/table with this new API. Does anyone have an example working with the latest code? Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Wicket shopping cart?
If I had to guess, most people who implement a custom shopping system have some sort of unique need. I'll start working on building something from scratch. I'll be using wicket/spring/hibernate to build this. If anyone has suggestions or ideas, I'd love to hear them. Especially when it comes to the entities involved and their relationships. Maybe I should start with the PetStore demo since I haven't looked at it recently. Are there any opinions on the quality of the petstore data design (besides the yucky JSF technologies used)? Thanks, Tauren On 9/19/07, Scott Swank [EMAIL PROTECTED] wrote: It's a little too idiosyncratic to be of wider use -- i.e. adult child tickets to the same show should appear together, but with the adult tickets first. There aren't any particular trade secrets in it, but it would likely be more work to generify (sp?) it than it would be to just write something from scratch. - Scott On 9/19/07, Martijn Dashorst [EMAIL PROTECTED] wrote: There has been some talk of building a pet store to compare it against other frameworks (in good spirit though!). But both Eelco and I haven't had the time to actually contribute to that project. The book has our highest priority now. I think the biggest shopping cart currently online is vegas.com, but I'm willing to bet an autographed Wicket in Action that they won't be open sourcing that one anytime soon. Martijn On 9/20/07, Tauren Mills [EMAIL PROTECTED] wrote: Martijn, Great to hear! I haven't bought the MEAP yet, but that's another great reason to! Perhaps it would make a good starting point. But still, if anyone has developed a more full featured solution and are interested in open sourcing it, I'd like to talk. Tauren On 9/19/07, Martijn Dashorst [EMAIL PROTECTED] wrote: It seems that Wicket in Action has a basic shopping cart described. :-) Martijn On 9/19/07, Tauren Mills [EMAIL PROTECTED] wrote: I'm looking for an open source shopping cart built in wicket, but haven't found such a thing yet. Does anyone know of something out there? I've noticed in several posts that people have been working on shopping solutions. Are any of you willing to open source your solution? Ultimately, I'd like to make an open source shopping cart available to the wicket community, but would rather not duplicate efforts if others would be interested in contributing any existing codebase. Thanks! Tauren - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Buy Wicket in Action: http://manning.com/dashorst Apache Wicket 1.3.0-beta3 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta3/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Buy Wicket in Action: http://manning.com/dashorst Apache Wicket 1.3.0-beta3 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta3/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Scott Swank reformed mathematician - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Wicket shopping cart?
Martijn, Great to hear! I haven't bought the MEAP yet, but that's another great reason to! Perhaps it would make a good starting point. But still, if anyone has developed a more full featured solution and are interested in open sourcing it, I'd like to talk. Tauren On 9/19/07, Martijn Dashorst [EMAIL PROTECTED] wrote: It seems that Wicket in Action has a basic shopping cart described. :-) Martijn On 9/19/07, Tauren Mills [EMAIL PROTECTED] wrote: I'm looking for an open source shopping cart built in wicket, but haven't found such a thing yet. Does anyone know of something out there? I've noticed in several posts that people have been working on shopping solutions. Are any of you willing to open source your solution? Ultimately, I'd like to make an open source shopping cart available to the wicket community, but would rather not duplicate efforts if others would be interested in contributing any existing codebase. Thanks! Tauren - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Buy Wicket in Action: http://manning.com/dashorst Apache Wicket 1.3.0-beta3 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta3/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Kronos-cms installation
Thanks for the reply! When I have some extra time, I'll mess around with it more. Tauren On 9/10/07, Ted Roeloffzen [EMAIL PROTECTED] wrote: I was one of two people who built kronos, but i have to say that i haven't worked on it for quite a while, because of time issues, so the dependency is most likely out of date. Ted 2007/9/8, Maurice Marrink [EMAIL PROTECTED]: Ted, who build kronos, is on vacation and I'm not sure if he is monitoring the mailing list during this time. I do believe the 1.2 branch to be the latest version. As for your other questions i have no idea :) A couple of months ago there also some questions on this mailing list (well the old sourceforge one actually) have you tried those? Maurice On 9/8/07, Tauren Mills [EMAIL PROTECTED] wrote: I just checked out kronos-cms to take a look at it. I could only find it under the wicket-1.2 branch in wicketstuff. Is that correct, or is there a 1.3 release? During mvn install, I got a build error that it was missing javax.jcr:jcr:jar:1.0.1. It suggested the following: Try downloading the file manually from: http://www.day.com/site/en/index/related/downloads/RI_download.html Then, install it using the command: mvn install:install-file -DgroupId=javax.jcr -DartifactId=jcr \ -Dversion=1.0.1 -Dpackaging=jar -Dfile=/path/to/file When I went to that download page, and filled out the form to get the download, I downloaded a file called jcr-ri-1.0.zip. There isn't a jar file included in it. Upon looking at the sources, it includes some org.apache.jackrabbit packages. Is that really the file I should be using, or is the kronos dependency out of date? On the apache jackrabbit site, there are downloads available as well. Would those work instead of the day.com download? I don't want to waste a bunch of time trying to get this working. If anyone else has messed with kronos-cms and has some tips, I'm all ears. If someone could share their jcr-1.0.1.jar, that would work too! Thanks! Tauren - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Wicket problem with slf4j 1.4
Ceki, Thanks, I'll give that a try. It looks like I'll have to switch to logback configuration files if I go that route. BTW, does Chainsaw work with logback? Tauren On 9/6/07, Ceki Gulcu [EMAIL PROTECTED] wrote: Tauren Mills tauren at tauren.com writes: Thanks everyone for the help. I got it working with the following jars: log4j-1.2.15.jar slf4j-api-1.4.2.jar slf4j-log4j12-1.4.2.jar Is that what others are using? I had troubles while using logback, but I may not have used the right jars or got the configuration right. It seemed that Jetty was having troubles and throwing exceptions. What is the right combination of jars to use with logback? Tauren That looks correct for the SLF4J/log4j combo. For the SLF4J/logback combo, you would need slf4j-api-1.4.3.jar (1.4.2 is OK too) logback-core-0.9.8.jar logback-classic-0.9.8.jar I hope this helps, - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Kronos-cms installation
I just checked out kronos-cms to take a look at it. I could only find it under the wicket-1.2 branch in wicketstuff. Is that correct, or is there a 1.3 release? During mvn install, I got a build error that it was missing javax.jcr:jcr:jar:1.0.1. It suggested the following: Try downloading the file manually from: http://www.day.com/site/en/index/related/downloads/RI_download.html Then, install it using the command: mvn install:install-file -DgroupId=javax.jcr -DartifactId=jcr \ -Dversion=1.0.1 -Dpackaging=jar -Dfile=/path/to/file When I went to that download page, and filled out the form to get the download, I downloaded a file called jcr-ri-1.0.zip. There isn't a jar file included in it. Upon looking at the sources, it includes some org.apache.jackrabbit packages. Is that really the file I should be using, or is the kronos dependency out of date? On the apache jackrabbit site, there are downloads available as well. Would those work instead of the day.com download? I don't want to waste a bunch of time trying to get this working. If anyone else has messed with kronos-cms and has some tips, I'm all ears. If someone could share their jcr-1.0.1.jar, that would work too! Thanks! Tauren - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Simple CMS or Wiki
I'd like to add some simple CMS and/or wiki features to a wicket application. I don't need anything full featured by any means. I'm looking for pointers to any resources, code, libraries, blogs, or anything else that would help jump start adding these features to my application. I'm aware of the wicketstuff kronos-cms project and am starting to look into it now. Also, via kronos-cms, I learned about the apache jackrabbit project, but know nothing about it at this time. It looks like it may be pertinent. Any other advice and suggestions is appreciated! Tauren - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Wicket problem with slf4j 1.4
This might just be my ignorance, but it seems there are some issues with SLF4J 1.4 used in Wicket, or at least wicket-phonebook. I want to find out what combination of logging jars should be used. I have a project that I based on wicket-phonebook. I'm using wicket from trunk. I have updated some of the jars and now have the following in my build path: nlog4j-1.2.25.jar slf4j-api-1.4.2.jar slf4j-log4j12-1.4.2.jar After a recent wicket trunk update, I started getting errors in: org.apache.wicket.util.thread.Task.run() When I start my application and hit the home page, the ModificationWatcher Task has an exception at line 103: if (log.isTraceEnabled()) It appears that nlog4j-1.2.25 doesn't have the method Logger.isTraceEnabled(). I tried to use a current log4j that does have it, but got tons of exceptions when I ran the app in Jetty. The nlog4j site says that new developments are in the Logback project: http://logback.qos.ch/download.html I am not familiar with Logback. Do others use it with slf4j? What is the recommended combination of jars when using the latest wicket from trunk? What are the wicket developers using? Also, it seems that any changes I make to HTML files are not automatically reloaded while the app is running in Eclipse. I have to restart the app to see the html changes. I'm assuming that is related to this issue. Thanks! Tauren - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Custom StringHeaderContributor
Maybe its just late and I'm not thinking straight, but I can't figure out the best way to create a custom StringHeaderContributor. All I want it to is encapsulate some javascript that has some property replacements in it. I have it working with a custom model as such: add(new StringHeaderContributor(new PngTransparency(this))); But I want it to look like this: add(new PngTransparencyHeaderContributor(this)); It's not really a big deal, but it seems like it would be cleaner that way. Here is the model class: public class PngTransparency extends Model { public static final ResourceReference PNGFIX = new ResourceReference(PngTransparency.class, PngTransparency.js); public static final ResourceReference TRANSPARENT_PIXEL = new ResourceReference(PngTransparency.class, transparentpixel.gif); public PngTransparency(Component component) { String output = !--[if lt IE 7]\n + script defer type=\text/javascript\ src=\ + component.urlFor(PNGFIX) + \/script\n + script language=\javascript\ type=\text/javascript\\n + var pngTransparencyGif = \ + component.urlFor(TRANSPARENT_PIXEL) + \\n + /script\n + ![endif]--\n; setObject(output); } } Any ideas? Tauren - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Custom StringHeaderContributor
Igor, Really? I didn't see one. Then again, ModalWindow uses transparent pngs and doesn't seem to have an issue. But I didn't see any code to handle it in modal.js. Could you point me to where its at? If one doesn't exist, I'd be happy to contribute this. Tauren On 8/18/07, Igor Vaynberg [EMAIL PROTECTED] wrote: there should already be a png fix for ie in extensions. -igor On 8/18/07, Tauren Mills [EMAIL PROTECTED] wrote: Maybe its just late and I'm not thinking straight, but I can't figure out the best way to create a custom StringHeaderContributor. All I want it to is encapsulate some javascript that has some property replacements in it. I have it working with a custom model as such: add(new StringHeaderContributor(new PngTransparency(this))); But I want it to look like this: add(new PngTransparencyHeaderContributor(this)); It's not really a big deal, but it seems like it would be cleaner that way. Here is the model class: public class PngTransparency extends Model { public static final ResourceReference PNGFIX = new ResourceReference(PngTransparency.class, PngTransparency.js); public static final ResourceReference TRANSPARENT_PIXEL = new ResourceReference(PngTransparency.class, transparentpixel.gif); public PngTransparency(Component component) { String output = !--[if lt IE 7]\n + script defer type=\text/javascript\ src=\ + component.urlFor(PNGFIX) + \/script\n + script language=\javascript\ type=\text/javascript\\n + var pngTransparencyGif = \ + component.urlFor(TRANSPARENT_PIXEL) + \\n + /script\n + ![endif]--\n; setObject(output); } } Any ideas? Tauren - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Custom StringHeaderContributor
I just checked in the 1.2 repo and couldn't find it either. Maybe it is in a branch I didn't look at. Anyway, what about my original question? Wouldn't having a custom headercontributor be the way to do this rather than a model that is passed to stringheadercontributor? I don't want to redo everything that is in stringheadercontributor, but am not clear how to extend it to do what I want. Just looking for any suggestions. Thanks! Tauren On 8/18/07, Igor Vaynberg [EMAIL PROTECTED] wrote: hrm, i remember i added one there based on [1], but maybe it was removed due to license incompatibilities before we moved to apache... [1] http://homepage.ntlworld.com/bobosola/pnghowto.htm -igor On 8/18/07, Tauren Mills [EMAIL PROTECTED] wrote: Igor, Really? I didn't see one. Then again, ModalWindow uses transparent pngs and doesn't seem to have an issue. But I didn't see any code to handle it in modal.js. Could you point me to where its at? If one doesn't exist, I'd be happy to contribute this. Tauren On 8/18/07, Igor Vaynberg [EMAIL PROTECTED] wrote: there should already be a png fix for ie in extensions. -igor On 8/18/07, Tauren Mills [EMAIL PROTECTED] wrote: Maybe its just late and I'm not thinking straight, but I can't figure out the best way to create a custom StringHeaderContributor. All I want it to is encapsulate some javascript that has some property replacements in it. I have it working with a custom model as such: add(new StringHeaderContributor(new PngTransparency(this))); But I want it to look like this: add(new PngTransparencyHeaderContributor(this)); It's not really a big deal, but it seems like it would be cleaner that way. Here is the model class: public class PngTransparency extends Model { public static final ResourceReference PNGFIX = new ResourceReference(PngTransparency.class, PngTransparency.js); public static final ResourceReference TRANSPARENT_PIXEL = new ResourceReference(PngTransparency.class, transparentpixel.gif); public PngTransparency(Component component) { String output = !--[if lt IE 7]\n + script defer type=\text/javascript\ src=\ + component.urlFor(PNGFIX) + \/script\n + script language=\javascript\ type=\text/javascript\\n + var pngTransparencyGif = \ + component.urlFor(TRANSPARENT_PIXEL) + \\n + /script\n + ![endif]--\n; setObject(output); } } Any ideas? Tauren - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Ajax refresh of DefaultDataTable in wicket-phonebook
Igor, How would you suggest doing this refactor? The form really should go outside of the table, but that puts it outside the realm of DefatultDataTable since the wicket:id for it is on a table tag. If DefaultDataTable does add the form somehow, what about when you don't want filtering? Then the table is wrapped in a form for no reason. Then again, there are situations where checkboxes in each row could be needed, thus requiring a form around the whole table. So even if the FilterToolbar is not added, the form could still be needed. It wouldn't harm anything to have an extra form around it that isn't used I suppose. I'll do the refactoring if you can provide some suggestions or guidance. I'm thinking of something along the line of having the DefaultDataTable wicket:id be in a div and the DataTable.html markup would include form ... and table ... tags. But you developed this thing and probably have much better ideas. Thanks, Tauren On 8/15/07, Igor Vaynberg [EMAIL PROTECTED] wrote: yes, i believe it is caused by invalid markup, maybe the form should be factored out and put around the entire table. -igor On 8/14/07, Tauren Mills [EMAIL PROTECTED] wrote: For some reason when I do an ajax refresh of the DefaultDataTable in wicket-phonebook, the FilterToolbar disappears. I see it in the Ajax Debugger, but it doesn't display on the screen. This is only happening in FF, not IE (only tested on WinXP). I cannot see any difference between the html that is rendered when the page is loaded vs. when the ajax refresh happens. But FF decides to not render the FilterToolbar after the ajax refresh, while IE does render it. I'm wondering if FF has issues with invalid HTML? The FilterToolbar puts a form around a tr/tr and adds a span inside the form, but outside the tr/tr. However, I don't understand why it would only have a problem after the ajax render and not the original page render. Here are the only code changes to ListContactsPage:: public ListContactsPage() { addCreateLink(); IColumn[] columns = createColumns(); // set up data provider ContactsDataProvider dataProvider = new ContactsDataProvider(dao); // create the data table final DefaultDataTable users = new DefaultDataTable(users, Arrays .asList(columns), dataProvider, 10); users.addTopToolbar(new FilterToolbar(users, dataProvider)); users.setOutputMarkupId(true); add(users); add(new AjaxLink(refresh) { @Override public void onClick(AjaxRequestTarget target) { target.addComponent(users); } }); } And add this to the markup: a href=# wicket:id=refreshRefresh/a Note that this is a simple case to illustrate the problem. In my case, I'm using ModalWindows to edit the data, and on window close, the data table is refreshed. Any idea what is causing this? Is it the invalid markup? Any thoughts on a solution? Thanks, Tauren - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Localizing title of ModalWindow
Thanks, Added as https://issues.apache.org/jira/browse/WICKET-854 Tauren On 8/16/07, Igor Vaynberg [EMAIL PROTECTED] wrote: setTitle(getString(editTitle)); but that method really should take an imodel, please add an rfe -igor On 8/16/07, Tauren Mills [EMAIL PROTECTED] wrote: I'm using a panel based ModalWindow and want to localize the window title. Without localization, I'd do this: modalWindow.setTitle(Edit User); The setTitle() method takes a string, not a resource. I'm not clear how to make this work. I tried this: modalWindow.setTitle((String)new ResourceModel(editTitle).getObject()); However, I then get this exception: java.util.MissingResourceException: Unable to find resource: editTitle at org.apache.wicket.Localizer.getString(Localizer.java:233) at org.apache.wicket.Localizer.getString(Localizer.java:127) at org.apache.wicket.model.ResourceModel.getObject(ResourceModel.java :75) I've tried adding the property editTitle to all sorts of property files in my project, but it just isn't finding it. What should I be doing? Tauren - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Ajax refresh of DefaultDataTable in wicket-phonebook
For some reason when I do an ajax refresh of the DefaultDataTable in wicket-phonebook, the FilterToolbar disappears. I see it in the Ajax Debugger, but it doesn't display on the screen. This is only happening in FF, not IE (only tested on WinXP). I cannot see any difference between the html that is rendered when the page is loaded vs. when the ajax refresh happens. But FF decides to not render the FilterToolbar after the ajax refresh, while IE does render it. I'm wondering if FF has issues with invalid HTML? The FilterToolbar puts a form around a tr/tr and adds a span inside the form, but outside the tr/tr. However, I don't understand why it would only have a problem after the ajax render and not the original page render. Here are the only code changes to ListContactsPage:: public ListContactsPage() { addCreateLink(); IColumn[] columns = createColumns(); // set up data provider ContactsDataProvider dataProvider = new ContactsDataProvider(dao); // create the data table final DefaultDataTable users = new DefaultDataTable(users, Arrays .asList(columns), dataProvider, 10); users.addTopToolbar(new FilterToolbar(users, dataProvider)); users.setOutputMarkupId(true); add(users); add(new AjaxLink(refresh) { @Override public void onClick(AjaxRequestTarget target) { target.addComponent(users); } }); } And add this to the markup: a href=# wicket:id=refreshRefresh/a Note that this is a simple case to illustrate the problem. In my case, I'm using ModalWindows to edit the data, and on window close, the data table is refreshed. Any idea what is causing this? Is it the invalid markup? Any thoughts on a solution? Thanks, Tauren - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Using non-string parameters in HibernateContactFinderQueryBuilder
I have a data table based on wicket-phonebook, but have added an additional column that contains non-string data. In the database, the value is an int, but the application maps that to a string using a custom enumeration type with a converter to handle all this. The table display, editing, and so forth of the data table works fine. And I have the FilterToolbar showing a choice list of the possible values in the enumeration. When one of the values is selected, the rows with that value are displayed. The problem is that HibernateContactFinderQueryBuilder assumes all filter parameters are strings. So I've hacked it to work by letting the int get converted to a string: private void addEnumCondition(StringBuilder hql, Enumeration enumeration, String name) { if (enumeration != null) { hql.append(and target.); hql.append(name); hql.append( = ? ); parameters.add(+enumeration.getValue()); types.add(Hibernate.STRING); } } Obviously, this isn't very elegant. But I'm unclear on what would be a better approach. I tried to use a ListObject instead of ListString, but then I ran into other exceptions and didn't dig into them deeper. Plus, I'm having problems with the filter choice not persisting the last selected value like it does for the Last Name column. It always goes back to Choose one..., even if the table is filtered with a value from the enumeration. And selecting the blank row in the choice list results in no data rather than all data. I guess I'm looking for some suggestions or ideas if anyone has any. Thanks, Tauren - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to replace panelA with panelB using AjaxLink in panelA
My use case can best be described as making wicket-phonebook work within a single tab of a tabbed panel using AjaxLink for create, edit, and delete. Thus, I have a page that contains a TabbedPanel. One tab of TabbedPanel contains ContactListPanel. ContactListPanel contains createContact link and a DataTable DataTable contains rows of data with editContact and deleteContact links. Clicking on one of those links should replace ContactListPanel with ContactEditPanel or ContactDeletePanel. I want the edit and delete functions to still be within the tabbed interface, not on separate pages. I think this is close, but am not sure what is wrong: private void addCreateLink() { add(new AjaxLink(createLink) { @Override public void onClick(AjaxRequestTarget target) { Panel panel = new ContactEditPanel(panel, new Model(new Contact())); panel.setOutputMarkupId(true); getParent().replaceWith(panel); target.addComponent(panel); } }); } What is the proper way to replace the containing panel from a control within that panel? I found similar questions posted on this list, but I haven't got any of those solutions to work for me. Thanks, Tauren - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Submit button issue in wicket-phonebook
Hi Martijn, When I was looking at the diffs, it looked like it went from a Button to a Link during your commit. But I certainly could have messed up. Tauren On 8/13/07, Martijn Dashorst [EMAIL PROTECTED] wrote: According to the revision log, I had nothing to do with this... My commit only moved the projects from a branch to trunk. Martijn On 8/13/07, Tauren Mills [EMAIL PROTECTED] wrote: Well, it looks like it was done on 4/19/2007 by dashorst. Is this message enough, or should I submit a jira? Should I switch it back to Button for my application, or is there a way to get Link to set a value if used with input type=button markup? Tauren On 8/12/07, Igor Vaynberg [EMAIL PROTECTED] wrote: looks like someone changed it from a Button to a Link. the Button uses its model to set the value attr, the link obviously doesnt. so see svn history and who made the change, and then bug that person on the list :) -igor On 8/12/07, Tauren Mills [EMAIL PROTECTED] wrote: When running wicket-phonebook, both the Confirm and Cancel buttons on the delete contact page say Confirm Query when rendered on a web page. Is this a bug in Link when it is used with an input type=button? Or is there a bug in wicket-phonebook? private void addConfimButton() { /* * notice in mark-up this link is attached to input type='button'/ * tag, the link is smart enough to know to generate an onclick instead * of href */ add(new Link(confirm, new ResourceModel(confirm)) { @Override public void onClick() { final Contact deleted = getContact(); contactDao.delete(deleted.getId()); String msg = MapVariableInterpolator.interpolate(getLocalizer() .getString(status.deleted, this), new MicroMap( name, deleted.getFullName ())); getSession().info(msg); setResponsePage( DeleteContactPage.this.backPage); } }); } Thanks, Tauren - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Wicket joins the Apache Software Foundation as Apache Wicket Apache Wicket 1.3.0-beta2 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AjaxTabbedPanel Problem
Eric, After reading your message, I just tested my problem out again. I described my problem in a message last night with the subject How to replace panelA with panelB using AjaxLink in panelA. I'm now thinking that that I did have it working, but that the content is just not showing. I have a form on panelB, and it looks like panelA has been replaced with panelB when I look at the AjaxDebug info. But panelB isn't showing on the page. Note that I'm not using an AjaxTabbedPanel, just a TabbedPanel. But I'm using ajax inside the panel to replace it. Bottom line is that I too am having that same problem. Unfortunately, I don't have a solution. Tauren On 8/13/07, Eric Woerner [EMAIL PROTECTED] wrote: I have a interesting problem with the AjaxTabbedPanel. If one of that tabs has a panel that has forms with in it they are not displayed when you click on that tab. None of the textareas or TextFields will display. Nothing between the form tags will display. Has anyone ever seen this problem? -- View this message in context: http://www.nabble.com/AjaxTabbedPanel-Problem-tf4263456.html#a12133292 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AjaxTabbedPanel Problem
Eric, Will you test in IE? The form content shows in IE6, but not in FF2 on WinXP. Tauren On 8/13/07, Tauren Mills [EMAIL PROTECTED] wrote: Eric, After reading your message, I just tested my problem out again. I described my problem in a message last night with the subject How to replace panelA with panelB using AjaxLink in panelA. I'm now thinking that that I did have it working, but that the content is just not showing. I have a form on panelB, and it looks like panelA has been replaced with panelB when I look at the AjaxDebug info. But panelB isn't showing on the page. Note that I'm not using an AjaxTabbedPanel, just a TabbedPanel. But I'm using ajax inside the panel to replace it. Bottom line is that I too am having that same problem. Unfortunately, I don't have a solution. Tauren On 8/13/07, Eric Woerner [EMAIL PROTECTED] wrote: I have a interesting problem with the AjaxTabbedPanel. If one of that tabs has a panel that has forms with in it they are not displayed when you click on that tab. None of the textareas or TextFields will display. Nothing between the form tags will display. Has anyone ever seen this problem? -- View this message in context: http://www.nabble.com/AjaxTabbedPanel-Problem-tf4263456.html#a12133292 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AjaxTabbedPanel Problem
A quick fix to this is to wrap your form in this: div style=clear: both form ... /form /div But I think the TabbedPanel CSS should deal with it more elegantly. Tauren On 8/13/07, Tauren Mills [EMAIL PROTECTED] wrote: Eric, I did some more tests and I just discovered that for me, the HTML is on the page, just not under the tabs like it should be. It is to the far right of the tabs, and I have to scroll right to see it. A scroll bar should appear on the bottom when you go to that tab. If you turn off CSS, the content will show as well. I can't believe I didn't see that sooner... Argh! Anyway, I think there is something wrong with the TabbedPanel CSS, so I created a simple quickstart to illustrate the problem and attached it to a JIRA: https://issues.apache.org/jira/browse/WICKET-844 If I figure out a solution, I'll let you know. Tauren On 8/13/07, Igor Vaynberg [EMAIL PROTECTED] wrote: you probably have the span/div problem. make sure you do not nest any block level elements like div inside spans -igor On 8/13/07, Tauren Mills [EMAIL PROTECTED] wrote: Eric, Will you test in IE? The form content shows in IE6, but not in FF2 on WinXP. Tauren On 8/13/07, Tauren Mills [EMAIL PROTECTED] wrote: Eric, After reading your message, I just tested my problem out again. I described my problem in a message last night with the subject How to replace panelA with panelB using AjaxLink in panelA. I'm now thinking that that I did have it working, but that the content is just not showing. I have a form on panelB, and it looks like panelA has been replaced with panelB when I look at the AjaxDebug info. But panelB isn't showing on the page. Note that I'm not using an AjaxTabbedPanel, just a TabbedPanel. But I'm using ajax inside the panel to replace it. Bottom line is that I too am having that same problem. Unfortunately, I don't have a solution. Tauren On 8/13/07, Eric Woerner [EMAIL PROTECTED] wrote: I have a interesting problem with the AjaxTabbedPanel. If one of that tabs has a panel that has forms with in it they are not displayed when you click on that tab. None of the textareas or TextFields will display. Nothing between the form tags will display. Has anyone ever seen this problem? -- View this message in context: http://www.nabble.com/AjaxTabbedPanel-Problem-tf4263456.html#a12133292 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AjaxTabbedPanel Problem
Matej, Thanks for doing that. That's where I got the css from, and is what I was referring to. Tauren On 8/13/07, Matej Knopp [EMAIL PROTECTED] wrote: There is no such thing as tabbed panel CSS. Tabbed panel doesn't come with any CSS. I put div.tab-panel { clear: left; } to styles.css in wicket examples, just in case someone takes the styles from there. -Matej On 8/14/07, Tauren Mills [EMAIL PROTECTED] wrote: A quick fix to this is to wrap your form in this: div style=clear: both form ... /form /div But I think the TabbedPanel CSS should deal with it more elegantly. Tauren On 8/13/07, Tauren Mills [EMAIL PROTECTED] wrote: Eric, I did some more tests and I just discovered that for me, the HTML is on the page, just not under the tabs like it should be. It is to the far right of the tabs, and I have to scroll right to see it. A scroll bar should appear on the bottom when you go to that tab. If you turn off CSS, the content will show as well. I can't believe I didn't see that sooner... Argh! Anyway, I think there is something wrong with the TabbedPanel CSS, so I created a simple quickstart to illustrate the problem and attached it to a JIRA: https://issues.apache.org/jira/browse/WICKET-844 If I figure out a solution, I'll let you know. Tauren On 8/13/07, Igor Vaynberg [EMAIL PROTECTED] wrote: you probably have the span/div problem. make sure you do not nest any block level elements like div inside spans -igor On 8/13/07, Tauren Mills [EMAIL PROTECTED] wrote: Eric, Will you test in IE? The form content shows in IE6, but not in FF2 on WinXP. Tauren On 8/13/07, Tauren Mills [EMAIL PROTECTED] wrote: Eric, After reading your message, I just tested my problem out again. I described my problem in a message last night with the subject How to replace panelA with panelB using AjaxLink in panelA. I'm now thinking that that I did have it working, but that the content is just not showing. I have a form on panelB, and it looks like panelA has been replaced with panelB when I look at the AjaxDebug info. But panelB isn't showing on the page. Note that I'm not using an AjaxTabbedPanel, just a TabbedPanel. But I'm using ajax inside the panel to replace it. Bottom line is that I too am having that same problem. Unfortunately, I don't have a solution. Tauren On 8/13/07, Eric Woerner [EMAIL PROTECTED] wrote: I have a interesting problem with the AjaxTabbedPanel. If one of that tabs has a panel that has forms with in it they are not displayed when you click on that tab. None of the textareas or TextFields will display. Nothing between the form tags will display. Has anyone ever seen this problem? -- View this message in context: http://www.nabble.com/AjaxTabbedPanel-Problem-tf4263456.html#a12133292 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]