Problem on a T4 + hivemind project
Hello, I've an old T4 application that I'm trying to migrate. Currently the application is built with ant, before migrating it to T5, I want to mavenize it The problem that I'm currently having is with HiveMind I have a configuratin-point in a jar and the contribution into another. The contribution is configuration-point id=MailReceivers occurs=1..n schema-id=MailReceiverSchema/ the message I'm having is myApp.MailReceivers contains no contributions but expects at least one contribution. Could you help me with this issue please ? Thanks in advance, Andrea Chiumenti - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
using dojo in tapestry 5
Hi all, am new to tapestry5. And am learning it. div jwcid=datepic...@dojo:Widget dojoType=dpwidgets:newDatePicker isContainer=true/div Since tapestry4.1.5 was integrated with dojo. I used the above method to get a dojo widget. What is method in tapestry 5? Is there any example or tutorial using dojo with tapestry 5. Also any tutorial for using dwr? Thanks in advance -- View this message in context: http://www.nabble.com/using-dojo-in-tapestry-5-tp23171034p23171034.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: using dojo in tapestry 5
Since tapestry4.1.5 was integrated with dojo. I used the above method to get a dojo widget. What is method in tapestry 5? Dojo is not integrated natively into Tapestry 5, it uses Pototype instead, but you could have a look at the ChenillKit datepicker instead: http://www.chenillekit.org/demo/tapcomp/datetimefielddemo Also any tutorial for using dwr? Not that I know of... though its pretty straightforward, the DWR docs are nice and detailed with examples. Peter - Original Message - From: kk4Nabble kavya@gmail.com To: users@tapestry.apache.org Sent: Wednesday, 22 April, 2009 10:24:43 GMT +02:00 Athens, Beirut, Bucharest, Istanbul Subject: using dojo in tapestry 5 Hi all, am new to tapestry5. And am learning it. div jwcid=datepic...@dojo:Widget dojoType=dpwidgets:newDatePicker isContainer=true/div Since tapestry4.1.5 was integrated with dojo. I used the above method to get a dojo widget. What is method in tapestry 5? Is there any example or tutorial using dojo with tapestry 5. Also any tutorial for using dwr? Thanks in advance -- View this message in context: http://www.nabble.com/using-dojo-in-tapestry-5-tp23171034p23171034.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 - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: using dojo in tapestry 5
Yes it is! I've done it. It's currently in alpha status and I'm waiting the dojo comunity will review the maven dojo build plugin I've done. When the plugin will be successfully tested, then the project will be modifyed to use it and moved to formos.com (Howard allowing :P) If you want to give the T5 dojo integration library go to http://tapestry-jfly.sourceforge.net/ Cheers, kiuma On Wed, Apr 22, 2009 at 9:42 AM, Peter Stavrinides p.stavrini...@albourne.com wrote: Since tapestry4.1.5 was integrated with dojo. I used the above method to get a dojo widget. What is method in tapestry 5? Dojo is not integrated natively into Tapestry 5, it uses Pototype instead, but you could have a look at the ChenillKit datepicker instead: http://www.chenillekit.org/demo/tapcomp/datetimefielddemo Also any tutorial for using dwr? Not that I know of... though its pretty straightforward, the DWR docs are nice and detailed with examples. Peter - Original Message - From: kk4Nabble kavya@gmail.com To: users@tapestry.apache.org Sent: Wednesday, 22 April, 2009 10:24:43 GMT +02:00 Athens, Beirut, Bucharest, Istanbul Subject: using dojo in tapestry 5 Hi all, am new to tapestry5. And am learning it. div jwcid=datepic...@dojo:Widget dojoType=dpwidgets:newDatePicker isContainer=true/div Since tapestry4.1.5 was integrated with dojo. I used the above method to get a dojo widget. What is method in tapestry 5? Is there any example or tutorial using dojo with tapestry 5. Also any tutorial for using dwr? Thanks in advance -- View this message in context: http://www.nabble.com/using-dojo-in-tapestry-5-tp23171034p23171034.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 - 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
Re: using dojo in tapestry 5
Thanks a lot.. Hoping to see dojo with T5. I was really dissappointed when i heard T5 is not integrated with dojo. Anyways I ll look into the url u sent. Thanks again :-) Andrea Chiumenti wrote: Yes it is! I've done it. It's currently in alpha status and I'm waiting the dojo comunity will review the maven dojo build plugin I've done. When the plugin will be successfully tested, then the project will be modifyed to use it and moved to formos.com (Howard allowing :P) If you want to give the T5 dojo integration library go to http://tapestry-jfly.sourceforge.net/ Cheers, kiuma On Wed, Apr 22, 2009 at 9:42 AM, Peter Stavrinides p.stavrini...@albourne.com wrote: Since tapestry4.1.5 was integrated with dojo. I used the above method to get a dojo widget. What is method in tapestry 5? Dojo is not integrated natively into Tapestry 5, it uses Pototype instead, but you could have a look at the ChenillKit datepicker instead: http://www.chenillekit.org/demo/tapcomp/datetimefielddemo Also any tutorial for using dwr? Not that I know of... though its pretty straightforward, the DWR docs are nice and detailed with examples. Peter - Original Message - From: kk4Nabble kavya@gmail.com To: users@tapestry.apache.org Sent: Wednesday, 22 April, 2009 10:24:43 GMT +02:00 Athens, Beirut, Bucharest, Istanbul Subject: using dojo in tapestry 5 Hi all, am new to tapestry5. And am learning it. div jwcid=datepic...@dojo:Widget dojoType=dpwidgets:newDatePicker isContainer=true/div Since tapestry4.1.5 was integrated with dojo. I used the above method to get a dojo widget. What is method in tapestry 5? Is there any example or tutorial using dojo with tapestry 5. Also any tutorial for using dwr? Thanks in advance -- View this message in context: http://www.nabble.com/using-dojo-in-tapestry-5-tp23171034p23171034.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 - 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 -- View this message in context: http://www.nabble.com/using-dojo-in-tapestry-5-tp23171034p23171648.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: using dojo in tapestry 5
not integrating it natively is a good choice IMHO, because doing so dojo versions are not boud to T5 releases Remember that it's alpha. I need to do some work on it before going in beta On Wed, Apr 22, 2009 at 10:07 AM, kk4Nabble kavya@gmail.com wrote: Thanks a lot.. Hoping to see dojo with T5. I was really dissappointed when i heard T5 is not integrated with dojo. Anyways I ll look into the url u sent. Thanks again :-) Andrea Chiumenti wrote: Yes it is! I've done it. It's currently in alpha status and I'm waiting the dojo comunity will review the maven dojo build plugin I've done. When the plugin will be successfully tested, then the project will be modifyed to use it and moved to formos.com (Howard allowing :P) If you want to give the T5 dojo integration library go to http://tapestry-jfly.sourceforge.net/ Cheers, kiuma On Wed, Apr 22, 2009 at 9:42 AM, Peter Stavrinides p.stavrini...@albourne.com wrote: Since tapestry4.1.5 was integrated with dojo. I used the above method to get a dojo widget. What is method in tapestry 5? Dojo is not integrated natively into Tapestry 5, it uses Pototype instead, but you could have a look at the ChenillKit datepicker instead: http://www.chenillekit.org/demo/tapcomp/datetimefielddemo Also any tutorial for using dwr? Not that I know of... though its pretty straightforward, the DWR docs are nice and detailed with examples. Peter - Original Message - From: kk4Nabble kavya@gmail.com To: users@tapestry.apache.org Sent: Wednesday, 22 April, 2009 10:24:43 GMT +02:00 Athens, Beirut, Bucharest, Istanbul Subject: using dojo in tapestry 5 Hi all, am new to tapestry5. And am learning it. div jwcid=datepic...@dojo:Widget dojoType=dpwidgets:newDatePicker isContainer=true/div Since tapestry4.1.5 was integrated with dojo. I used the above method to get a dojo widget. What is method in tapestry 5? Is there any example or tutorial using dojo with tapestry 5. Also any tutorial for using dwr? Thanks in advance -- View this message in context: http://www.nabble.com/using-dojo-in-tapestry-5-tp23171034p23171034.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 - 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 -- View this message in context: http://www.nabble.com/using-dojo-in-tapestry-5-tp23171034p23171648.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 - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: [Announce] Tapestry XPath project
Very very good, greetings! On Tue, Apr 21, 2009 at 10:24 PM, Thiago H. de Paula Figueiredo thiag...@gmail.com wrote: Em Tue, 21 Apr 2009 17:07:46 -0300, Paul Field tapes...@cloudinthesky.co.uk escreveu: I'd like to announce that the Tapestry XPath project is now available as a Snapshot release at Tapestry 360: https://tapestry.formos.com/nightly/tapestry-xpath/ Tapestry XPath allows you to use XPath expressions to query the Tapestry DOM, which is a particularly useful thing to do in tests of components and pages. Awesome! I wanted something like this some time ago, when writing a mixin that added some CSS classes to tr elements generated by a Grid. I did the queries by hand, but wished there was something like XPath to do that . . . now there is! :) -- Thiago H. de Paula Figueiredo Independent Java consultant, developer, and instructor http://www.arsmachina.com.br/thiago - 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
[T5] Caused by: java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.String
any idea how to trace that error back...seems it occurs in restoreStateBeforePageAttach but what does that procedure do? i am using trails ty, harald Caused by: java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.String at rd.wtp.portal.base.BlockWizard.restoreStateBeforePageAttach(BlockWizard.java) at rd.wtp.portal.pages.portal.PrintJobEditor.restoreStateBeforePageAttach(PrintJobEditor.java) at org.apache.tapestry5.internal.structure.ComponentPageElementImpl$1.run(ComponentPageElementImpl.java:74) at org.apache.tapestry5.internal.structure.ComponentPageElementImpl.invoke(ComponentPageElementImpl.java:933 - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: [T5] Caused by: java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.String
sorry, sent too fast... i am using trails conversations for persistance - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: using dojo in tapestry 5
Hii Andrea, I added repository idTapestryJFly/id urlhttp://tapestry-jfly.sourceforge.net/repository//url /repository under repositories and dependency groupIdnet.sourceforge.tapestryjfly/groupId artifactIddojotapestry5/artifactId version1.2.3-rc2/version /dependency under dependencies inside pom.xml But now am getting java.lang.NoSuchMethodError:org.apache.tapestry5.internal.structure.Page.getLogicalName()Ljava/lang/String; Did i miss anything? Complete error: java.lang.NoSuchMethodError: org.apache.tapestry5.internal.structure.Page.getLogicalName()Ljava/lang/String; at net.sourceforge.tapestryjfly.dojotapestry5.decorators.DojoMarkupRendererDecoratorImpl$1.getDojoAnnotation(DojoMarkupRendererDecoratorImpl.java:89) at net.sourceforge.tapestryjfly.dojotapestry5.decorators.DojoMarkupRendererDecoratorImpl$1.renderPageMarkup(DojoMarkupRendererDecoratorImpl.java:107) at net.sourceforge.tapestryjfly.dojotapestry5.decorators.DojoMarkupRendererDecoratorImpl$1.advise(DojoMarkupRendererDecoratorImpl.java:79) at org.apache.tapestry5.ioc.internal.services.AbstractInvocation.proceed(AbstractInvocation.java:121) at $PageMarkupRenderer_120cd58764a.renderPageMarkup($PageMarkupRenderer_120cd58764a.java) at $PageMarkupRenderer_120cd587643.renderPageMarkup($PageMarkupRenderer_120cd587643.java) at org.apache.tapestry5.internal.services.PageResponseRendererImpl.renderPageResponse(PageResponseRendererImpl.java:61) at $PageResponseRenderer_120cd5875ff.renderPageResponse($PageResponseRenderer_120cd5875ff.java) at org.apache.tapestry5.internal.services.DefaultRequestExceptionHandler.handleRequestException(DefaultRequestExceptionHandler.java:77) at $RequestExceptionHandler_120cd5875e7.handleRequestException($RequestExceptionHandler_120cd5875e7.java) at org.apache.tapestry5.internal.services.RequestErrorFilter.service(RequestErrorFilter.java:42) at $RequestHandler_120cd5875e9.service($RequestHandler_120cd5875e9.java) at org.apache.tapestry5.services.TapestryModule$4.service(TapestryModule.java:772) at $RequestHandler_120cd5875e9.service($RequestHandler_120cd5875e9.java) at org.apache.tapestry5.services.TapestryModule$3.service(TapestryModule.java:762) at $RequestHandler_120cd5875e9.service($RequestHandler_120cd5875e9.java) at org.apache.tapestry5.internal.services.StaticFilesFilter.service(StaticFilesFilter.java:85) at $RequestHandler_120cd5875e9.service($RequestHandler_120cd5875e9.java) at org.apache.tapestry5.internal.services.URLRewriterRequestFilter.service(URLRewriterRequestFilter.java:64) at $RequestHandler_120cd5875e9.service($RequestHandler_120cd5875e9.java) at com.dentapriseT5.services.AppModule$1.service(AppModule.java:84) at $RequestFilter_120cd5875e5.service($RequestFilter_120cd5875e5.java) at $RequestHandler_120cd5875e9.service($RequestHandler_120cd5875e9.java) at org.apache.tapestry5.internal.services.CheckForUpdatesFilter$2.invoke(CheckForUpdatesFilter.java:90) at org.apache.tapestry5.internal.services.CheckForUpdatesFilter$2.invoke(CheckForUpdatesFilter.java:81) at org.apache.tapestry5.ioc.internal.util.ConcurrentBarrier.withRead(ConcurrentBarrier.java:85) at org.apache.tapestry5.internal.services.CheckForUpdatesFilter.service(CheckForUpdatesFilter.java:103) at $RequestHandler_120cd5875e9.service($RequestHandler_120cd5875e9.java) at $RequestHandler_120cd5875de.service($RequestHandler_120cd5875de.java) at org.apache.tapestry5.services.TapestryModule$HttpServletRequestHandlerTerminator.service(TapestryModule.java:201) at org.apache.tapestry5.internal.gzip.GZipFilter.service(GZipFilter.java:53) at $HttpServletRequestHandler_120cd5875e0.service($HttpServletRequestHandler_120cd5875e0.java) at org.apache.tapestry5.internal.services.IgnoredPathsFilter.service(IgnoredPathsFilter.java:62) at $HttpServletRequestFilter_120cd5875dd.service($HttpServletRequestFilter_120cd5875dd.java) at $HttpServletRequestHandler_120cd5875e0.service($HttpServletRequestHandler_120cd5875e0.java) at org.apache.tapestry5.services.TapestryModule$2.service(TapestryModule.java:722) at $HttpServletRequestHandler_120cd5875e0.service($HttpServletRequestHandler_120cd5875e0.java) at $HttpServletRequestHandler_120cd5875db.service($HttpServletRequestHandler_120cd5875db.java) at org.apache.tapestry5.TapestryFilter.doFilter(TapestryFilter.java:127) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
RE: Parameter publishing and informal parameters
Thanks Howard, that works perfectly. (and I obviously need an eye test..) -Original Message- From: Howard Lewis Ship [mailto:hls...@gmail.com] Sent: 21 April 2009 17:00 To: Tapestry users Subject: Re: Parameter publishing and informal parameters The @Component.inheritInformalParameter annotation attribute allows all informal parameters of an outer component to be connected to a contained component. On Tue, Apr 21, 2009 at 3:48 AM, Blower, Andy andy.blo...@proquest.co.uk wrote: I've just been simplifying one of our components using parameter publishing, and I just realised that informal parameters are not passed to the inner component (loop) to render on the element which is passed okay. (although we're not using inherit: or publishParameters for element, as it didn't seem to work correctly) Does anyone know of a way of passing informal parameters, or is this an instance where we should have used inheritance instead of composition? -- Howard M. Lewis Ship Creator of Apache Tapestry Director of Open Source Technology at Formos - 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
What happened to the DoubleTranslator in 5.1
Hi, The DoubleTranslator doesn't appear in the Deprecated API: http://tapestry.apache.org/tapestry5.1/apidocs/deprecated-list.html#class And strangely it appears as usual in the docs: http://tapestry.apache.org/tapestry5.1/apidocs/org/apache/tapestry5/internal/translator/DoubleTranslator.html But as from 5.1.0.2 it is missing? ...I know this is an internal class, but is there anything I can replace it with until I can find time to rework this code? thanks, Peter - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: using dojo in tapestry 5
this because you are using T5.1.x It's a problem I've already solved, but you have to use the version from git. If it's not a problem use T5.0.x cheers, kiuma On Wed, Apr 22, 2009 at 12:32 PM, kk4Nabble kavya@gmail.com wrote: Hii Andrea, I added repository idTapestryJFly/id urlhttp://tapestry-jfly.sourceforge.net/repository//url /repository under repositories and dependency groupIdnet.sourceforge.tapestryjfly/groupId artifactIddojotapestry5/artifactId version1.2.3-rc2/version /dependency under dependencies inside pom.xml But now am getting java.lang.NoSuchMethodError:org.apache.tapestry5.internal.structure.Page.getLogicalName()Ljava/lang/String; Did i miss anything? Complete error: java.lang.NoSuchMethodError: org.apache.tapestry5.internal.structure.Page.getLogicalName()Ljava/lang/String; at net.sourceforge.tapestryjfly.dojotapestry5.decorators.DojoMarkupRendererDecoratorImpl$1.getDojoAnnotation(DojoMarkupRendererDecoratorImpl.java:89) at net.sourceforge.tapestryjfly.dojotapestry5.decorators.DojoMarkupRendererDecoratorImpl$1.renderPageMarkup(DojoMarkupRendererDecoratorImpl.java:107) at net.sourceforge.tapestryjfly.dojotapestry5.decorators.DojoMarkupRendererDecoratorImpl$1.advise(DojoMarkupRendererDecoratorImpl.java:79) at org.apache.tapestry5.ioc.internal.services.AbstractInvocation.proceed(AbstractInvocation.java:121) at $PageMarkupRenderer_120cd58764a.renderPageMarkup($PageMarkupRenderer_120cd58764a.java) at $PageMarkupRenderer_120cd587643.renderPageMarkup($PageMarkupRenderer_120cd587643.java) at org.apache.tapestry5.internal.services.PageResponseRendererImpl.renderPageResponse(PageResponseRendererImpl.java:61) at $PageResponseRenderer_120cd5875ff.renderPageResponse($PageResponseRenderer_120cd5875ff.java) at org.apache.tapestry5.internal.services.DefaultRequestExceptionHandler.handleRequestException(DefaultRequestExceptionHandler.java:77) at $RequestExceptionHandler_120cd5875e7.handleRequestException($RequestExceptionHandler_120cd5875e7.java) at org.apache.tapestry5.internal.services.RequestErrorFilter.service(RequestErrorFilter.java:42) at $RequestHandler_120cd5875e9.service($RequestHandler_120cd5875e9.java) at org.apache.tapestry5.services.TapestryModule$4.service(TapestryModule.java:772) at $RequestHandler_120cd5875e9.service($RequestHandler_120cd5875e9.java) at org.apache.tapestry5.services.TapestryModule$3.service(TapestryModule.java:762) at $RequestHandler_120cd5875e9.service($RequestHandler_120cd5875e9.java) at org.apache.tapestry5.internal.services.StaticFilesFilter.service(StaticFilesFilter.java:85) at $RequestHandler_120cd5875e9.service($RequestHandler_120cd5875e9.java) at org.apache.tapestry5.internal.services.URLRewriterRequestFilter.service(URLRewriterRequestFilter.java:64) at $RequestHandler_120cd5875e9.service($RequestHandler_120cd5875e9.java) at com.dentapriseT5.services.AppModule$1.service(AppModule.java:84) at $RequestFilter_120cd5875e5.service($RequestFilter_120cd5875e5.java) at $RequestHandler_120cd5875e9.service($RequestHandler_120cd5875e9.java) at org.apache.tapestry5.internal.services.CheckForUpdatesFilter$2.invoke(CheckForUpdatesFilter.java:90) at org.apache.tapestry5.internal.services.CheckForUpdatesFilter$2.invoke(CheckForUpdatesFilter.java:81) at org.apache.tapestry5.ioc.internal.util.ConcurrentBarrier.withRead(ConcurrentBarrier.java:85) at org.apache.tapestry5.internal.services.CheckForUpdatesFilter.service(CheckForUpdatesFilter.java:103) at $RequestHandler_120cd5875e9.service($RequestHandler_120cd5875e9.java) at $RequestHandler_120cd5875de.service($RequestHandler_120cd5875de.java) at org.apache.tapestry5.services.TapestryModule$HttpServletRequestHandlerTerminator.service(TapestryModule.java:201) at org.apache.tapestry5.internal.gzip.GZipFilter.service(GZipFilter.java:53) at $HttpServletRequestHandler_120cd5875e0.service($HttpServletRequestHandler_120cd5875e0.java) at org.apache.tapestry5.internal.services.IgnoredPathsFilter.service(IgnoredPathsFilter.java:62) at $HttpServletRequestFilter_120cd5875dd.service($HttpServletRequestFilter_120cd5875dd.java) at $HttpServletRequestHandler_120cd5875e0.service($HttpServletRequestHandler_120cd5875e0.java) at org.apache.tapestry5.services.TapestryModule$2.service(TapestryModule.java:722) at $HttpServletRequestHandler_120cd5875e0.service($HttpServletRequestHandler_120cd5875e0.java) at $HttpServletRequestHandler_120cd5875db.service($HttpServletRequestHandler_120cd5875db.java) at org.apache.tapestry5.TapestryFilter.doFilter(TapestryFilter.java:127) at
Re: What happened to the DoubleTranslator in 5.1
Funnily the javadocs haven't been regenerated with the 5.1.0.1, 5.1.0.2 and 5.1.0.3 releases, they are still for 5.1.0.0. In the meantime, the DoubleTranslator has been replaced with the more generic and locale-aware NumericTranslator. Also check the nightly docs at http://tapestry.formos.com/nightly/tapestry5/. HTH, Uli Am 22.04.2009 13:11 schrieb Peter Stavrinides: Hi, The DoubleTranslator doesn't appear in the Deprecated API: http://tapestry.apache.org/tapestry5.1/apidocs/deprecated-list.html#class And strangely it appears as usual in the docs: http://tapestry.apache.org/tapestry5.1/apidocs/org/apache/tapestry5/internal/translator/DoubleTranslator.html But as from 5.1.0.2 it is missing? ...I know this is an internal class, but is there anything I can replace it with until I can find time to rework this code? thanks, Peter - 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
Re: Tweaking the bean edit form.
On Wed, Apr 22, 2009 at 9:47 AM, kk4Nabble kavya@gmail.com wrote: So suppose we have 20 fields in entity class will it displays everything one below the other? What is to be done to have firstname and last name in same row? In this case, maybe you are better served by not using BeanEditForm or using BeanEditor excluding these fields from it and adding them to your HTML by hand. I am not able to override this class. I changed DIV.t-beaneditor LABEL and DIV.t-beaneditor But did not know how to change this? Take a look at the generated HTML. The label and input elements are surrounded by a div with class t-beaneditor-row, so you have to override div.t-beaneditor-row. -- Thiago - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Error while launching Login page
Can you give an example? -Borut 2009/4/22 Otho taa...@googlemail.com: It is also straightforward to configure Spring Secuity as usual (aka in Spring config), if you should need features which are not yet in the spring security module or should use spring data access abstractions anyways. 2009/4/21 Borut Bolčina borut.bolc...@gmail.com Hi, did you have a look at http://www.localhost.nu/java/tapestry-spring-security/? There is also a sample application to download at http://www.localhost.nu/svn/public/tapestry-spring-security-sample/ HTH, Borut 2009/4/21 ChandraB b_chan...@yahoo.com: I am a newbie to tapestry, i am getting NullPointerException when i access authManager. How do i inject AuthManager? Chandra ChandraB wrote: Service id 'authenticationProvider' is not defined by any module My appModule.java is as below public class AppModule { public static void bind(ServiceBinder binder) { binder.bind(com.eveo.edetail.reporting.service.UserDetailsService.class, UserDetailsServiceImpl.class).withId(UserDetailsServiceImpl); binder.bind(SaltSourceService.class, SaltSourceImpl.class).withId(SaltSourceImpl); } public static SaltSourceService buildMySaltSource() throws Exception { SaltSourceImpl saltSource = new SaltSourceImpl(); saltSource.setSystemWideSalt(DEADBEEF); saltSource.afterPropertiesSet(); return saltSource; } public static UserDetailsService buildUserDetailsService(UserDao userDao) { return new com.eveo.edetail.reporting.service.impl.UserDetailsServiceImpl(userDao); } public static void contributeProviderManager( OrderedConfigurationAuthenticationProvider configuration, @InjectService(DaoAuthenticationProvider) AuthenticationProvider daoAuthenticationProvider) { System.out.println(AppModule: contributeProviderManager + configuration); System.out.println(+daoAuthenticationProvider); configuration.add(daoAuthenticationProvider, daoAuthenticationProvider); } public static AuthenticationProcessingFilter buildMyAuthenticationProcessingFilter( @AcegiServices final AuthenticationManager manager, @AcegiServices final RememberMeServices rememberMeServices, @Inject @Value(${acegi.check.url}) final String authUrl, @Inject @Value(${acegi.target.url}) final String targetUrl, @Inject @Value(${acegi.failure.url}) final String failureUrl) throws Exception { System.out.println(Auth URL+ authUrl ); AuthenticationProcessingFilter filter = new AuthenticationProcessingFilter(); filter.setAuthenticationManager(manager); filter.setAuthenticationFailureUrl(failureUrl); filter.setDefaultTargetUrl(targetUrl); filter.setFilterProcessesUrl(authUrl); filter.setRememberMeServices(rememberMeServices); filter.afterPropertiesSet(); return filter; } public static void contributeAliasOverrides( @InjectService(MySaltSource) SaltSourceService saltSource, @InjectService(MyAuthenticationProcessingFilter) AuthenticationProcessingFilter authenticationProcessingFilter, ConfigurationAliasContribution configuration) { System.out.println(AppModule: contributeAliasOverrides + configuration); configuration.add(AliasContribution.create(SaltSourceService.class,saltSource)); configuration.add(AliasContribution.create(AuthenticationProcessingFilter.class,authenticationProcessingFilter)); } public static LoginHelper buildLoginHelper(@InjectService(MySaltSource) SaltSourceService saltSource, PasswordEncoder encrypter , AuthenticationManager authManager) { return new AcegiLoginHelper(authManager,saltSource,encrypter); //return new AcegiLoginHelper(authManager); } public static void contributeApplicationDefaults(MappedConfigurationString, String configuration){ configuration.add(SymbolConstants.SUPPORTED_LOCALES, en); configuration.add(SymbolConstants.PRODUCTION_MODE, false); configuration.add(acegi.failure.url, /error); configuration.add(acegi.password.encoder, org.acegisecurity.providers.encoding.PlaintextPasswordEncoder); configuration.add(acegi.target.url, /Program); } /** * This is a service definition, the service will be named TimingFilter. The interface, * RequestFilter, is used within the RequestHandler service pipeline, which is built from the * RequestHandler service configuration.
IE 8 and Javascript Rendersupport.addScript() problem
Hi everyone! The following code works fine under Firefox3 but not under IE8. I made a little component where I build up a drop down menue and a javascript section which should access the components id element. Test.java (a component): @IncludeJavaScriptLibrary(value = {Test.js}) public class Test { @Inject private ComponentResources resources; @Environmental private RenderSupport pageRenderSupport; @BeginRender public void graph(MarkupWriter writer){ //Method selection..make a drop down menue writer.write(Choose a wellType: ); //make a selection - drop down box writer.element(form,name,listColors); writer.element(select,id,wellType,name,WellType); //the value will be the html color we will paint the table element with when clicking at a specific well writer.element(option,value,positive,selected,selected); writer.write(positive); writer.end(); writer.element(option,value,negative); writer.write(negative); writer.end(); writer.element(option,value,other); writer.write(other); writer.end(); writer.element(option,value,contaminated); writer.write(contaminated); writer.end(); //end of selectionBox div writer.end(); //end of form writer.end(); } void afterRender(MarkupWriter writer){ //javascript will send the name of the clicked well names later to this java class back (see onreceiveWellID method) Link link = resources.createEventLink(receiveWellID); pageRenderSupport.addScript(new Test(wellType);); } } Therefore I made a small javascript file: Test.js: var Test = Class.create(); Test.prototype = { initialize: function(wellType) { alert(wellType.value); } } A small test page: TestComponent.tml html xmlns:t=http://tapestry.apache.org/schema/tapestry_5_0_0.xsd; head titleTapestry 5 Demo Application/title /head body t:Test/ /body /html Now if I am using this component everything works fine under FF3 but under IE8 I got the message that the 'wellType' is undefined. But if I look into the html generated code I can see that the select tags are before the javascript so it should find the element id. Is this a bug in Explorer8. Thanks for your help. Oliver -- View this message in context: http://n2.nabble.com/IE-8-and-Javascript-Rendersupport.addScript%28%29-problem-tp2676456p2676456.html Sent from the Tapestry Users 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: What happened to the DoubleTranslator in 5.1
Uploading documentation to apache.org is something of an additive process. Perhaps I should start wiping out the target directory before uploading fresh content. On Wed, Apr 22, 2009 at 4:36 AM, Ulrich Stärk u...@spielviel.de wrote: Funnily the javadocs haven't been regenerated with the 5.1.0.1, 5.1.0.2 and 5.1.0.3 releases, they are still for 5.1.0.0. In the meantime, the DoubleTranslator has been replaced with the more generic and locale-aware NumericTranslator. Also check the nightly docs at http://tapestry.formos.com/nightly/tapestry5/. HTH, Uli Am 22.04.2009 13:11 schrieb Peter Stavrinides: Hi, The DoubleTranslator doesn't appear in the Deprecated API: http://tapestry.apache.org/tapestry5.1/apidocs/deprecated-list.html#class And strangely it appears as usual in the docs: http://tapestry.apache.org/tapestry5.1/apidocs/org/apache/tapestry5/internal/translator/DoubleTranslator.html But as from 5.1.0.2 it is missing? ...I know this is an internal class, but is there anything I can replace it with until I can find time to rework this code? thanks, Peter - 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 -- Howard M. Lewis Ship Creator of Apache Tapestry Director of Open Source Technology at Formos - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: IE 8 and Javascript Rendersupport.addScript() problem
pageRenderSupport.addScript(new Test(wellType);); I'm not surprised that IE8 fails, but that FF3 works; in fact, there's probably an error in the FF3 console. What is the value of variable wellType? It's undefined. On Wed, Apr 22, 2009 at 7:15 AM, olip oliverp...@googlemail.com wrote: Hi everyone! The following code works fine under Firefox3 but not under IE8. I made a little component where I build up a drop down menue and a javascript section which should access the components id element. Test.java (a component): @IncludeJavaScriptLibrary(value = {Test.js}) public class Test { �...@inject private ComponentResources resources; �...@environmental private RenderSupport pageRenderSupport; �...@beginrender public void graph(MarkupWriter writer){ //Method selection..make a drop down menue writer.write(Choose a wellType: ); //make a selection - drop down box writer.element(form,name,listColors); writer.element(select,id,wellType,name,WellType); //the value will be the html color we will paint the table element with when clicking at a specific well writer.element(option,value,positive,selected,selected); writer.write(positive); writer.end(); writer.element(option,value,negative); writer.write(negative); writer.end(); writer.element(option,value,other); writer.write(other); writer.end(); writer.element(option,value,contaminated); writer.write(contaminated); writer.end(); //end of selectionBox div writer.end(); //end of form writer.end(); } void afterRender(MarkupWriter writer){ //javascript will send the name of the clicked well names later to this java class back (see onreceiveWellID method) Link link = resources.createEventLink(receiveWellID); pageRenderSupport.addScript(new Test(wellType);); } } Therefore I made a small javascript file: Test.js: var Test = Class.create(); Test.prototype = { initialize: function(wellType) { alert(wellType.value); } } A small test page: TestComponent.tml html xmlns:t=http://tapestry.apache.org/schema/tapestry_5_0_0.xsd; head titleTapestry 5 Demo Application/title /head body t:Test/ /body /html Now if I am using this component everything works fine under FF3 but under IE8 I got the message that the 'wellType' is undefined. But if I look into the html generated code I can see that the select tags are before the javascript so it should find the element id. Is this a bug in Explorer8. Thanks for your help. Oliver -- View this message in context: http://n2.nabble.com/IE-8-and-Javascript-Rendersupport.addScript%28%29-problem-tp2676456p2676456.html Sent from the Tapestry Users 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 -- Howard M. Lewis Ship Creator of Apache Tapestry Director of Open Source Technology at Formos - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: [REQUEST] Live T5 web sites, quotes, marketting
We moved our web Extranet to Tapestry starting a little over three years ago. We chose Tapestry in order to solve a number of interoperability problems that had developed within our organization over time. We needed to move away from a dated Perl web API that was difficult to maintain and had poor integration with our internal software systems (all Java based). Due to the nature and size of these systems, this was a drawn out process, in the past we found Perl was quick and efficient to develop in, but as our software systems grew in complexity, Java became more attractive. We looked to Tapestry in order to move to a pure Java environment and to create something more maintainable. Our integration problems were partly solved using, at first Hivemind, and then later Tapestry IoC... we managed to abstract our codebase enough to run Tapestry in parallel with Perl, and tapestry components provided a modular view technology, which in turn provided us with a productive and reliable solution to migrate to what became, in retrospect, a highly testable and productive environment. Peter Stavrinides Albourne Partners Ltd. - Original Message - From: Otho taa...@googlemail.com To: Tapestry users users@tapestry.apache.org Sent: Saturday, 18 April, 2009 11:29:56 GMT +02:00 Athens, Beirut, Bucharest, Istanbul Subject: Re: [REQUEST] Live T5 web sites, quotes, marketting It's very similar for me, but on a smaller scale. I developed a couple of internal apps in T5, mostly integration with legacy stuff and also an app which for me replaces the most annoying parts of the horrid interface of the webshop-software in use. Since I am lazy I looked into the scripting frameworks, too (as can be easily seen from my posts here on this list ;) ) but always come back to T5 on Java. The reason is simply productivity as understood: Time and effort I need to get a finished, useable product. Dynamic languages are really only good for prototypes or somewhat simplistic stuff. This doesn't mean they can't be used for complex applications, they just lose the race for productivity then. The possible IDE support is limited principally, since there is no way for the IDE to know what I intend to do with dynamic properties and methods and thus many errors which I see in Java as I type, occur in dynamic languages only at runtime and mostly with exceptions and error messages which are all but helpful in tracking the problem down. The few lines of code (IF any) you can save compared to Tapestry 5 are easily eaten up by less maintainability and added debugging time. Furthermore in Java I anyways only type like 60% of the code, since static typing enables much more autocompletion and code generation which then is actually typo-free and also easy to refactor if need be. Thus lines of code which are waived so much nowadays are really a non issue, as is the verbosity of Java. Constructs like ListWhatever = new ArraysListWhatever(); may be verbose, but they also denote exactly my intent, are readable and written mostly by the IDE anyways. And you don't need a comment to understand what is going on. All in all I would says that I am much more productive with Java/Tap5 than with any other Java Framework and also more productive than with dynamic frameworks. The measures Tapestry takes to reduce boilerplate help while still maintaining the Java typical readability, but mostly it is the very natural flow of coding which is enabled by Tapestry itself and its seamless Spring integration. 2009/4/17 Ville Virtanen ville.virta...@cerion.fi Hi, nice to see what others are making. We use T5 to build different kinds of systems for public and private sectors, but mainly budgeting and enterprise resource planning and monitoring software. Currently we have 4 T5 systems in production all in different client's environments, and two more projects are nearing release almost immediately. Our software typically integrates to multiple other systems, like personnel registries, data warehouses, salary systems, reporting systems etc. to combine all the wonderful data already present in most companies and to present it in usable and efficient way. The number of systems, old and new that are in use in a typical firm is overwhelming.. We'll anyway T5 has proven to be stable, doesn't require much resources to do it's tasks and is easy and reliable to integrate to almost anything. The most important thing to us is that T5 allows us, you could even say directs us, to architect our systems easily and well, it supports us to write easy-to-understand code by removing all that clutter and exposes only the real things we wish to do, which directly means less code, which directly means quality and reduced costs (the drop of unsuccesfull code inspections etc.) lowered bug fix times etc. And we can also sell cheaper in the first place and win more cases, as development times have dropped. Also it can be seen that the developers who
[T5] Tapestry.decimalFormatSymbols
Hi, I have javascript that depends on Tapestry.decimalFormatSymbols. How can I ensure that those symbols are added to page? Could there be annotation that would trigger it? - Ville -- View this message in context: http://www.nabble.com/-T5--Tapestry.decimalFormatSymbols-tp23175562p23175562.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: [T5] Tapestry.decimalFormatSymbols
Currently, including a field with numeric validation is the trigger for this. There is not currently a provision for providing them otherwise (the code that generates the necessary JS is inside the NumericValidator class). On Wed, Apr 22, 2009 at 9:50 AM, Ville Virtanen ville.virta...@cerion.fi wrote: Hi, I have javascript that depends on Tapestry.decimalFormatSymbols. How can I ensure that those symbols are added to page? Could there be annotation that would trigger it? - Ville -- View this message in context: http://www.nabble.com/-T5--Tapestry.decimalFormatSymbols-tp23175562p23175562.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 -- Howard M. Lewis Ship Creator of Apache Tapestry Director of Open Source Technology at Formos - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
'Add Forms' and Looping
I've got a form that allows you to add a number of new users. When the form is initially populated, you're coming from a list of email addresses in another form, so I can populate a bunch of blank users with email addresses and render the template that way. Works fine, comes out with a row for each user, with the email addresses filled in. As I understand it, since I haven't written my own encoder, Tapestry will serialize each user into a hidden field. A little ugly, but I can live with that for now. When the form is submitted, since I haven't saved my 'context' anywhere, it'll come back into existence with a null, or possibly empty collection reference. Rather than populating that collection, tapestry just ignores the fact that it has a bunch of fields, looks at the empty collection, decides there's nothing to bind to and declares success by calling the success method, near as I can tell. I was hoping it would be able to reconsistute the entities from the form data, which ... I'm now guessing is only true if there are blank entities waiting to be reconsistuted? That leaves me with some options: 1. Persist the transient collection with flash. I'd rather not stuff a bunch of data in the HTTP session if I can avoid it, but this does seem to work. 2. Persist the /size/ of the collection (flash, or in a page context), then populate an empty collection. This'll use less HTTP Session space (or none, if I use onPassivate()), but seems a little unnecessary. 3. Possibly, if I write my own encoder, this goes away entirely, as I can subclass the default and provide an implementation for provideMissingObject(). I'm not sure, but that might accomplish what I'm looking for. Anyone already run into this? Have ideas I haven't thought of on how best to handle this? - Geoffrey -- Geoffrey Wiseman http://www.geoffreywiseman.ca/
Ajax and Validation
I wasn't sure if Tapestry did any magic under the covers to work with server-side validation and ajax form submits. I did a quick experiment and it doesn't seem to: - Create a form, give it a zone to do ajax submit. - Create an onValidateForm method, throw a ValidationException from it. - Load up the application. Submit the form. - The zone gets updated, no validation messages appear. No big surprises so far -- this is Ajax form submits and the fact that validation isn't meant to work with it, near as I can tell. The next part, however, worries me a little: - Refresh the page, or go the same URL. - The page renders as if you'd just submitted the form. The field is populated an there's a visible error block. - I don't have any Persist annotations here or anything, so I'm a little disturbed that it's retaining a form value and validation state despite that. Am I missing something, or is this some kind of ugly edge case around ajax and form validation? Now you could argue that ajax form submits and validation don't belong together, which I might agree with. I'd have to understand how Tapestry handles graceful degradation in order to argue the point. On a side note, I'd love to be able to throw a t:errors outside of a form in a block and point it /to/ the form to use that to display validation errors. (e.g. t:block t:id=errorst:errors t:form=save //t:block) - Geoffrey -- Geoffrey Wiseman http://www.geoffreywiseman.ca/
partial form update
Hi, is there a way to partially update a form from an action link? Thanks in advance Jorge
Re: [T5] Persistent fields may not be updated until after the page has finished loading
Does that mean that for every persistent variable you have to write a if (field == null) field = new Anything(); in the SetupRender? Is there no easier way? Cheers, Tobias Marcel Sammut schrieb: I had the same problem when moving to 5.0.16. It was pretty simple for me, since what I was doing was initializing my persistant variables in the declaration. What I did was move the initialization to the SetupRender phase of the cycle. Hope that works for you too. Cheers, Marcel Eric Ma wrote: Why was this restriction introduced in 5.0.16? It completely breaks our application. If the benefit is marginal, can we roll back to the original behavior? Or alternatively, what is a better practice under 5.0.16? Thanks, - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: [T5] Persistent fields may not be updated until after the page has finished loading
My suggestion: care for the initialization in the getters - this works best for me. Like this: public MyBusinessBean getBean() { if (this.bean == null) { this.bean = new MyBusinessBean(); } return this.bean; } works for pages and components... (onActivate!!) Felix Tobias Wehrum schrieb: Does that mean that for every persistent variable you have to write a if (field == null) field = new Anything(); in the SetupRender? Is there no easier way? Cheers, Tobias Marcel Sammut schrieb: I had the same problem when moving to 5.0.16. It was pretty simple for me, since what I was doing was initializing my persistant variables in the declaration. What I did was move the initialization to the SetupRender phase of the cycle. Hope that works for you too. Cheers, Marcel Eric Ma wrote: Why was this restriction introduced in 5.0.16? It completely breaks our application. If the benefit is marginal, can we roll back to the original behavior? Or alternatively, what is a better practice under 5.0.16? Thanks, - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org -- Felix Gonschorek GG-Media Kirchstr. 18 69115 Heidelberg Tel: +49 6221 890 168-0 Fax: +49 6221 890 168-1 Mobil: +49 176 2234 1338 fe...@gg-media.biz http://www.gg-media.biz Vertretungsberechtigte Gesellschafter: Felix Gonschorek Jochen Greiner Umsatzsteuer-Identifikationsnummer gemäß § 27a Umsatzsteuergesetz: DE232906440 - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: [T4] Session Timeout Handling
I don't remember any tapestry specific handler for the session timeout to have ever existed... You should just be able to implement a custom HttpSessionListener and register it with your application server from web.xml On Mon, Apr 20, 2009 at 6:28 PM, Robert Zinger rzin...@gmail.com wrote: Hello, I am using Tapestry 4.0.2. Is there a way in hivemind/tapestry to hook into session timeout handling. I.e. when the session times out because the user walked away for a long period of time, is there some specialized cleanup/reset tasks that can be performed on that event. Additionally, is there a way to reset the session to the same state as it was when the user logs back in? -Robert -Robert - 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
Re: Changing default hibernate.cfg.xml
Maybe you found an answer to this already, but you need to disable the default configuration first ( http://tapestry.apache.org/tapestry5/tapestry-hibernate/conf.html). But I agree, it might make more sense that you'd just be able to override the value for the default filename. At least for me, it's a typical scenario that you run the app in test mode against hsql but in production mode against derby/mysql. Kalle On Tue, Jan 29, 2008 at 8:27 AM, Moritz Gmelin moritz.gme...@gmx.de wrote: Hi, I have multiple services invoved in my web-application that are used in other sub-projects too. That's why it would be useful to be able to manually set the file name for the hibernate configuration to be used (default is always hibernate.cfg.xml). I tried to do the following in AppModule public void contributeHibernateSessionSource (OrderedConfigurationHibernateConfigurer conf) { class MHibernateConfigurer implements HibernateConfigurer { public void configure(org.hibernate.cfg.Configuration configuration) { configuration.configure(hibernate_foo.cfg.xml); } }; conf.add(Default, new MHibernateConfigurer()); } But it tells me that the Default Configuration is already there and it cannot be changed. Is there another way I can achieve this? Regards Moritz
Re: 301 moved permanently
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hey there, I have a similar need on one of my sites. Here's how I solved it: http://markmail.org/message/53xyz7hxzpxyrn5d The code is more than a year old, but it should still work. /Filip On 2009-04-17 11:10, Davor Miku wrote: Hi guys! I have this old struts site, rewritten in T5. Problem are links (with Google). For example old links are : www.example/content/populateContent.do?contentId=xxx and new are: www.example/content/xxx What I want is to set 301 redirect for old links, redirecting to new one, in same class (content/Index.java) Index.java : public void onActivate(String article) { try{ int id = Integer.parseInt(article); // new urls Content content = contentDAO.getContent(id); } catch(Exception e){ article = article.substring(19); // remove populateContent.do?contentId= int id = Integer.parseInt(article); /* Here should be something like this. You get the picture */ response.setStatus(301); response.setHeader( Location, http://www.example.com/content/; + id); } } How can I do this? Every help is appreciated. -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iQEcBAEBAgAGBQJJ75nOAAoJEEfiH7PpjaMn0LoH/RHe+0DCbxwHhSNflQm1DgyX MlNtQLbFWOaTgoJOfJz1ykHELrJAfFyCuzg2e6NRGOkJpJIG5wVKpPQl8/zzJzCq IbRMDbBFLjSObZG1fbYaUWx4hZIwDMLfXwwY7D+DDiTDafOnWOqnrz16x7ZJrHlC MjGklJBc/KR/OLfRVqR4dnweBnJ7nD+sN8kszTtZg8SS6UJsd53MGbWHtOi1GTmS PgL3VXOkb3YeqCrO7QBXxLLG0nA+dNfyXHA64OK2g6e2kM1PchGadr9FFsuvCQPO 1WH07VVmvxbbHh47lrFenbDXNz5NoVIaaA7S4NC/OC7n7vu04uvUESSKne7R8/c= =eK2d -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Ajax and Validation
On Thu, Apr 23, 2009 at 8:38 AM, Geoffrey Wiseman geoffrey.wise...@gmail.com wrote: I wasn't sure if Tapestry did any magic under the covers to work with server-side validation and ajax form submits. I did a quick experiment and it doesn't seem to: - Create a form, give it a zone to do ajax submit. - Create an onValidateForm method, throw a ValidationException from it. - Load up the application. Submit the form. - The zone gets updated, no validation messages appear. I use validation and ajax a lot and it works (quite) well for me. I just replicated what you described and it works. I assume you might not have the t:errors/ component in the block that gets loaded in the zone, nor record the error to one of the Fields. This way, no visual feedback is given. If your setup doesn't work well with placing the t:errors/ in the block that gets reloaded, you could consider placing it in a zone by itself and update multiple zones on the one form submit by returning a MultiZoneUpdate from your EventConstants.SUCCESS action. (haven't tried this btw) No big surprises so far -- this is Ajax form submits and the fact that validation isn't meant to work with it, near as I can tell. The next part, however, worries me a little: - Refresh the page, or go the same URL. - The page renders as if you'd just submitted the form. The field is populated an there's a visible error block. - I don't have any Persist annotations here or anything, so I'm a little disturbed that it's retaining a form value and validation state despite that. Am I missing something, or is this some kind of ugly edge case around ajax and form validation? Now you could argue that ajax form submits and validation don't belong together, which I might agree with. I'd have to understand how Tapestry handles graceful degradation in order to argue the point. On a side note, I'd love to be able to throw a t:errors outside of a form in a block and point it /to/ the form to use that to display validation errors. (e.g. t:block t:id=errorst:errors t:form=save //t:block) This does seem strange. My guess is that the ValidationTracker uses some sort of flash persist that works well on a page request but might not on an Ajax request because it does not use an redirect. Maybe one of the commiters can comment on this? - Geoffrey Cheers, Joost -- Geoffrey Wiseman http://www.geoffreywiseman.ca/ - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: AjaxFormLoop Exception on 5.1.0.2 upgrade
I trimmed my source down to the simplest form trying to isolate the issue. I pasted in the simplest form I could get to. My original contains a number of elements including a bean edit form: t:submitnotifier div t:type=beaneditor t:id=currentcomparison / t:removerowlinkRemove/t:removerowlink /t:submitnotifier It yields the same exception. There were many more elements in there when the exception was first thrown. Tried to trim out any mistake I might be making and was left with the most basic AjaxFormLoop. Zack Howard Lewis Ship wrote: t:ajaxformloop source=comparisons value=currentcomparison encoder=comparisonsencoder t:parameter name=addRow t:addrowlinkAdd a Comparison/t:addrowlink /t:parameter t:submitnotifier t:removerowlinkRemove/t:removerowlink /t:submitnotifier /t:ajaxformloop Shouldn't there be a TextField or something in there? The rather odd error is that Tapestry has to hunt around to find a conforming location to add a hidden field; typically inside a p or before an input tag. Your AjaxFormLoop has, effectively, no body and so no content gets written, and Tapestry can't figure out where to add the hidden field. On Wed, Apr 22, 2009 at 11:52 AM, zack1403 zack.mann...@gmail.com wrote: When I upgraded to 5.1.0.2 my AjaxFormLoops throw exceptions upon trying to add a row. Remove row links still work and the transaction is getting committed even when there is an exception. Ie, if I refresh the page after blackbird shows the exception I can see my added row. I have trimmed down my code to the simplest possible AjaxFormLoop example and an exception is still being thrown. Should I be returning something other than an Object from my onAddRow method? Exception: [ERROR] 35:15 (DefaultRequestExceptionHandler.java:handleRequestException:62) Processing of request failed with uncaught exception: The rendered content did not include any elements that allow for the positioning of the hidden form field's element. java.lang.IllegalStateException: The rendered content did not include any elements that allow for the positioning of the hidden form field's element. at org.apache.tapestry5.corelib.internal.HiddenFieldPositioner.getElement(HiddenFieldPositioner.java:74) at org.apache.tapestry5.corelib.components.FormInjector$1.renderMarkup(FormInjector.java:234) at org.apache.tapestry5.internal.services.PageRenderQueueImpl$Bridge.renderMarkup(PageRenderQueueImpl.java:62) at org.apache.tapestry5.corelib.components.AjaxFormLoop$10.renderMarkup(AjaxFormLoop.java:415) at org.apache.tapestry5.internal.services.PageRenderQueueImpl$Bridge.renderMarkup(PageRenderQueueImpl.java:62) at org.apache.tapestry5.internal.services.PageRenderQueueImpl.renderPartial(PageRenderQueueImpl.java:159) Page class snippet: @CommitAfter public Comparison onAddRow() { return new Comparison(); } Template snippet: t:ajaxformloop source=comparisons value=currentcomparison encoder=comparisonsencoder t:parameter name=addRow t:addrowlinkAdd a Comparison/t:addrowlink /t:parameter t:submitnotifier t:removerowlinkRemove/t:removerowlink /t:submitnotifier /t:ajaxformloop Any help would be much appreciated. -- View this message in context: http://www.nabble.com/AjaxFormLoop-Exception-on-5.1.0.2-upgrade-tp23175801p23175801.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 -- Howard M. Lewis Ship Creator of Apache Tapestry Director of Open Source Technology at Formos - 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://www.nabble.com/AjaxFormLoop-Exception-on-5.1.0.2-upgrade-tp23175801p23187859.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