Re: 5.1.0.6-SNAPSHOT ?
Agreed. I was sort of blaming the messenger. On Tue, Jan 26, 2010 at 9:29 PM, Kalle Korhonen kalle.o.korho...@gmail.comwrote: On Tue, Jan 26, 2010 at 5:57 PM, Bryan Lewis jbryanle...@gmail.com wrote: I thought of another way to kick-start it. I put my pom's Tapestry version back to 5.1.0.5 and the tapx-datefield error went away. Then I returned to 5.1.0.8-SNAPSHOT and now it's working too. Maybe some jar-version conflict got cleared up? I also commented out the old tapestry-formos.com repository from my pom. Sorry, changed two things at once. Maven still feels a bit too much like magic to me. (Yeah, I know, any sufficiently advanced technology...) JMHO, Maven today works fine, it's more about how people use it. If Maven feels like magic, you simply should not use SNAPSHOTS but stick to releases. Trunk versions, whether in pre-compiled form or built locally are just not meant for regular use. Kalle On Tue, Jan 26, 2010 at 8:45 PM, Bryan Lewis jbryanle...@gmail.com wrote: Okay, I tried it again. The maven update worked this time. It picked up the new build with the -3 suffix. However, now I'm getting an error on one of my pages that contains the tapx-datefield component, A javascript error pops up in a Blackbird console: Tapestry.Initializer.tapxDateField() does not exist. I saw this once before after an update, and kicking/restarting things fixed it. This time I've tried a clean build, updating Maven dependencies in eclipse, building outside eclipse, restarting eclipse, clearing my browser cache... it's not going away. Any ideas what would cause this? On Tue, Jan 26, 2010 at 7:50 PM, Andreas Andreou andy...@di.uoa.gr wrote: I'm not sure why you both have problems with 5.1.0.8-SNAPSHOT I see the correct files at: http://repository.apache.org/snapshots/org/apache/tapestry/tapestry-core/5.1.0.8-SNAPSHOT/ http://repository.apache.org/snapshots/org/apache/tapestry/tapestry-upload/5.1.0.8-SNAPSHOT/ Is it possible to investigate this some more? I remember i had manually deployed 5.1.0.7-SNAPSHOT, but 5.1.0.8-SNAPSHOT is auto-deployed from apache's hudson CI server, see: http://hudson.zones.apache.org/hudson/job/tapestry-5.1-freestyle/ http://twitter.com/tapestry_builds On Wed, Jan 27, 2010 at 01:23, David Rees dree...@gmail.com wrote: On Tue, Jan 26, 2010 at 4:43 AM, Andreas Andreou andy...@di.uoa.gr wrote: I'm not sure how this is possible... Version ranges were supposed to help in that regard, i.e. you'd have your pom depend on Tapestry [5.1, 5.2) and perhaps this will just work for you Thanks for the suggestion. For now, I'll lock it to 5.1.0.8-SNAPSHOT. I noticed that tapestry-upload doesn't appear to to have any 5.1.0 SHAPSHOT builds - is that expected or an oversight? Thanks! Dave - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org -- Andreas Andreou - andy...@apache.org - http://blog.andyhot.gr Tapestry / Tacos developer Open Source / JEE Consulting - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
kaptcha + tapestry5
HEllo, I´m trying to insert kaptcha with tapestry with rcaptcha.net but I don´t know how to do... Some help? Thanks -- View this message in context: http://old.nabble.com/kaptcha-%2B-tapestry5-tp27342207p27342207.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: kaptcha + tapestry5
On Wed, 27 Jan 2010 14:14:22 -0200, Rafa88 geli...@hotmail.com wrote: HEllo, Hi! I´m trying to insert kaptcha with tapestry with rcaptcha.net but I don´t know how to do... Some help? Take a look at http://tapestryjava.blogspot.com/2009/12/tapestry-and-kaptcha.html. -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor Owner, software architect and developer, Ars Machina Tecnologia da Informação Ltda. http://www.arsmachina.com.br - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: kaptcha + tapestry5
Thiago H. de Paula Figueiredo wrote: On Wed, 27 Jan 2010 14:14:22 -0200, Rafa88 geli...@hotmail.com wrote: HEllo, Hi! I´m trying to insert kaptcha with tapestry with rcaptcha.net but I don´t know how to do... Some help? Take a look at http://tapestryjava.blogspot.com/2009/12/tapestry-and-kaptcha.html. Ok, thanks, I´m trying this example but I don´t understand because it doesn´t work. I have include the jar file, I have created the two classes but it doesn´t work when I call to t:kaptchaimage t:id=kaptcha/ br/ t:kaptchafield image=kaptcha/ in my file.tml, how the file.java would be?? Thanks -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor Owner, software architect and developer, Ars Machina Tecnologia da Informação Ltda. http://www.arsmachina.com.br - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org -- View this message in context: http://old.nabble.com/kaptcha-%2B-tapestry5-tp27342207p27342668.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Sortable computed Grid column
I ran into a similar problem. IMHO, the Grid component seems frustratingly half-finished. No default sort, no easy to modify sorting behaviors, etc. You can't set the sortable property on the property model, since the data model is completely overwritten in Grid's setupDataModel method. You can't really modify the data model in any way via @SetupRender, @BeginRender or anything like that. One's changes are always lost, which is very annoying. I ended up providing my own model to the grid and adding the column explicitly. My GridDataSource can handle the sorting on the virtual column. Generating the data model was very non-obvious (source is my GridDataSource.) @Inject private BeanModelSource modelSource; @Inject private ComponentResources componentResources; public BeanModel? newModel() { Class? rowType = source.getRowType(); Messages containerMessages = componentResources.getMessages(); return modelSource.createDisplayModel(rowType, containerMessages); } Then I can modify the model: public BeanModel? getModel() { if (model == null) { model = newModel(); PropertyModel p = model.add(type, null); p.sortable(true); } return model; } You then list this new column, type in my case, in the t:include parameter for the grid (not in t:add!) Norman Franke Answering Service for Directors, Inc. www.myasd.com On Jan 26, 2010, at 2:55 PM, Howard Lewis Ship wrote: That is the right approach, a smarter implementation of a property within the BeanModel that can handle the sorting. On Tue, Jan 26, 2010 at 11:00 AM, Michael Prescott michael.r.presc...@gmail.com wrote: How do you go about making a computed column in a Grid sortable? The docs on Grid are great, but in the example the computed column is non- sortable. Can I do it by providing a PropertyConduit through the grid's BeanModel model? Michael -- Howard M. Lewis Ship Creator of Apache Tapestry The source for Tapestry training, mentoring and support. Contact me to learn how I can get you up and productive in Tapestry fast! (971) 678-5210 http://howardlewisship.com - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Sortable computed Grid column
On Wed, Jan 27, 2010 at 9:14 AM, Norman Franke nor...@myasd.com wrote: I ran into a similar problem. IMHO, the Grid component seems frustratingly half-finished. No default sort, no easy to modify sorting behaviors, etc. It could use some TLC, and needs to be better split out into reusable sub-components, so that when you hit its limits, you can build your own without rewriting existing functionality. You can't set the sortable property on the property model, since the data model is completely overwritten in Grid's setupDataModel method. You can't really modify the data model in any way via @SetupRender, @BeginRender or anything like that. One's changes are always lost, which is very annoying. I ended up providing my own model to the grid and adding the column explicitly. My GridDataSource can handle the sorting on the virtual column. Generating the data model was very non-obvious (source is my GridDataSource.) �...@inject private BeanModelSource modelSource; �...@inject private ComponentResources componentResources; public BeanModel? newModel() { Class? rowType = source.getRowType(); Messages containerMessages = componentResources.getMessages(); return modelSource.createDisplayModel(rowType, containerMessages); } Then I can modify the model: public BeanModel? getModel() { if (model == null) { model = newModel(); PropertyModel p = model.add(type, null); p.sortable(true); } return model; } You then list this new column, type in my case, in the t:include parameter for the grid (not in t:add!) Norman Franke Answering Service for Directors, Inc. www.myasd.com On Jan 26, 2010, at 2:55 PM, Howard Lewis Ship wrote: That is the right approach, a smarter implementation of a property within the BeanModel that can handle the sorting. On Tue, Jan 26, 2010 at 11:00 AM, Michael Prescott michael.r.presc...@gmail.com wrote: How do you go about making a computed column in a Grid sortable? The docs on Grid are great, but in the example the computed column is non-sortable. Can I do it by providing a PropertyConduit through the grid's BeanModel model? Michael -- Howard M. Lewis Ship Creator of Apache Tapestry The source for Tapestry training, mentoring and support. Contact me to learn how I can get you up and productive in Tapestry fast! (971) 678-5210 http://howardlewisship.com - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org -- Howard M. Lewis Ship Creator of Apache Tapestry The source for Tapestry training, mentoring and support. Contact me to learn how I can get you up and productive in Tapestry fast! (971) 678-5210 http://howardlewisship.com - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
T5 security and ConcurrentSessionController
Hello i am trying to setup the concurrent session control feature provided by Spring Security Framework with tapestry-spring-security 2.1.1. My idea is to prevent a user from logging in many times. It didn't work at all, I have this ERROR 22:00:51.843 /admin/j_spring_security_check (?:?) java.lang.NullPointerException at org.springframework.security.ui.session.HttpSessionEventPublisher.sessionCreated(HttpSessionEventPublisher.java:70) ... Here's my AppModule : public static AuthenticationManager buildMyProviderManager() throws Exception { ConcurrentSessionControllerImpl c = new ConcurrentSessionControllerImpl(); c.setSessionRegistry(new SessionRegistryImpl()); c.setMaximumSessions(1); c.setExceptionIfMaximumExceeded(true); c.afterPropertiesSet(); ProviderManager pm = new ProviderManager(); pm.setSessionController(c); pm.afterPropertiesSet(); return pm; } in web.xml : listener listener-classorg.springframework.security.ui.session.HttpSessionEventPublisher/listener-class /listener I appreciate any help. Best Regards, Thomas --- Antivirus avast! : message Sortant sain. Base de donnees virale (VPS) : 100127-0, 27/01/2010 Analyse le : 27/01/2010 22:04:34 avast! - copyright (c) 1988-2010 ALWIL Software. http://www.avast.com - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org