Testify 1.0.2-SNAPSHOT using deprecated ClassTransformation.addMethod(TransformMethodSignature,String)
Hi, My Tapestry Testify tests stopped working when using the latest Tapestry trunk (5.2.0-SNAPSHOT). The stacktrace seems to be pointing to the deprecated method ClassTransformation.addMethod(TransformMethodSignature,String) which is called when handling the @ForComponents annotation (see long stacktrace below). Is this due the Testify SNAPSHOT not being updated to match the new 5.2.0-SNAPSHOT approach or is there something else at play? Cheers, Joost stacktrace java.lang.RuntimeException: java.lang.ClassNotFoundException: caught an exception while obtaining a class file for org.apache.tapestry5.corelib.pages.ExceptionReport at org.apache.tapestry5.internal.services.ComponentInstantiatorSourceImpl.findClass(ComponentInstantiatorSourceImpl.java:301) at org.apache.tapestry5.internal.services.ComponentInstantiatorSourceImpl.getInstantiator(ComponentInstantiatorSourceImpl.java:277) at $ComponentInstantiatorSource_12760a05d45.getInstantiator($ComponentInstantiatorSource_12760a05d45.java) at org.apache.tapestry5.internal.pageload.PageLoaderImpl.createAssembler(PageLoaderImpl.java:193) at org.apache.tapestry5.internal.pageload.PageLoaderImpl.getAssembler(PageLoaderImpl.java:183) at org.apache.tapestry5.internal.pageload.PageLoaderImpl.loadPage(PageLoaderImpl.java:157) at $PageLoader_12760a05d7b.loadPage($PageLoader_12760a05d7b.java) at org.apache.tapestry5.internal.services.PagePoolCache.checkout(PagePoolCache.java:210) at org.apache.tapestry5.internal.services.PagePoolImpl.checkout(PagePoolImpl.java:99) at $PagePool_12760a05d7a.checkout($PagePool_12760a05d7a.java) at org.apache.tapestry5.internal.services.RequestPageCacheImpl.get(RequestPageCacheImpl.java:51) at $RequestPageCache_12760a05d79.get($RequestPageCache_12760a05d79.java) at $RequestPageCache_12760a05d73.get($RequestPageCache_12760a05d73.java) at org.apache.tapestry5.internal.services.DefaultRequestExceptionHandler.handleRequestException(DefaultRequestExceptionHandler.java:69) at $RequestExceptionHandler_12760a05d57.handleRequestException($RequestExceptionHandler_12760a05d57.java) at org.apache.tapestry5.internal.services.RequestErrorFilter.service(RequestErrorFilter.java:42) at $RequestHandler_12760a05d5d.service($RequestHandler_12760a05d5d.java) at org.apache.tapestry5.services.TapestryModule$4.service(TapestryModule.java:917) at $RequestHandler_12760a05d5d.service($RequestHandler_12760a05d5d.java) at org.apache.tapestry5.services.TapestryModule$3.service(TapestryModule.java:907) at $RequestHandler_12760a05d5d.service($RequestHandler_12760a05d5d.java) at org.apache.tapestry5.internal.services.StaticFilesFilter.service(StaticFilesFilter.java:85) at $RequestHandler_12760a05d5d.service($RequestHandler_12760a05d5d.java) at org.apache.tapestry5.internal.test.EndOfRequestCleanupFilter.service(EndOfRequestCleanupFilter.java:42) at $RequestHandler_12760a05d5d.service($RequestHandler_12760a05d5d.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_12760a05d5d.service($RequestHandler_12760a05d5d.java) at $RequestHandler_12760a05d41.service($RequestHandler_12760a05d41.java) at org.apache.tapestry5.test.PageTester.renderPage(PageTester.java:189) at com.joostschouten.common.tapestrytestsuite.BasePageTester.renderPage(BasePageTester.java:53) at com.joostschouten.common.http.tapestrybase.tests.components.formelements.TimeZoneAwareDatePickerTest.setup(TimeZoneAwareDatePickerTest.java:47) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.junit.internal.runners.BeforeAndAfterRunner.invokeMethod(BeforeAndAfterRunner.java:74) at org.junit.internal.runners.BeforeAndAfterRunner.runBefores(BeforeAndAfterRunner.java:50) at org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:33) at org.junit.internal.runners.TestMethodRunner.runMethod(TestMethodRunner.java:75) at org.junit.internal.runners.TestMethodRunner.run(TestMethodRunner.java:45) at org.junit.internal.runners.TestClassMethodsRunner.invokeTestMethod(TestClassMethodsRunner.java:66) at org.junit.internal.runners.TestClassMethodsRunner.run(TestClassMethodsRunner.java:35) at
Re: Error in tapestry.js in IE 8
Hi, I'm still facing this issue. I cannot use Tapestry 5 on IE8! Am I only one who face to this problem? Or Tapestry cannot be used on IE8? Could anybody answer me, plese? Please help! Libor -- View this message in context: http://old.nabble.com/Error-in-tapestry.js-in-IE-8-tp27714386p27901196.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: Error in tapestry.js in IE 8
how about : meta http-equiv=X-UA-Compatible content=IE=EmulateIE7 / ? LiborGMC wrote: Hi, I'm still facing this issue. I cannot use Tapestry 5 on IE8! Am I only one who face to this problem? Or Tapestry cannot be used on IE8? Could anybody answer me, plese? Please help! Libor -- View this message in context: http://old.nabble.com/Error-in-tapestry.js-in-IE-8-tp27714386p27901856.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: Error in tapestry.js in IE 8
Prototype 1.6.0 in T5.1 has such issue on IE8. You can upgrade prototype.js to 1.6.1 or use tapx lib. DH - Original Message - From: LiborGMC l.pre...@gmc.net To: users@tapestry.apache.org Sent: Monday, March 15, 2010 3:51 PM Subject: Re: Error in tapestry.js in IE 8 Hi, I'm still facing this issue. I cannot use Tapestry 5 on IE8! Am I only one who face to this problem? Or Tapestry cannot be used on IE8? Could anybody answer me, plese? Please help! Libor -- View this message in context: http://old.nabble.com/Error-in-tapestry.js-in-IE-8-tp27714386p27901196.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: Empty body?
Hi Manuel, Seems more logical to have the ul at the same level as the li. That way you will know if you have generated any li. BR Mats Manuel Sugawara skrev: Hi I'm working in a menu component, similar to the one in the howtos. The menuItem template looks like: t:content li t:if test=isPage t:pageLink page=prop:page class=prop:className${pageTitle}/t:pageLink p:else a href=# class=${className}${pageTitle}/a /p:else /t:if ul t:body/ /ul /li /t:content however this template still renders an empty ul if there is no body. I would like to conditionally display the ul depending if there is a body or not. Something like: t:if test=hasBody ul t:body/ /ul /t:if Now, I have solved this implementing the hasBody method like: @Inject private ComponentResources resources; public boolean getHasBody() { Block block = resources.getBody(); if (PlaceholderBlock.equals(block.toString())) { return false; } return true; } This works but seems a bit flaky. Is there a better way to figure out if a block is empty? Regards, Manuel. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Error in tapestry.js in IE 8
Or use one of the latest snapshots which contains a newer version of prototype. Uli On 15.03.2010 10:23, DH wrote: Prototype 1.6.0 in T5.1 has such issue on IE8. You can upgrade prototype.js to 1.6.1 or use tapx lib. DH - Original Message - From: LiborGMCl.pre...@gmc.net To:users@tapestry.apache.org Sent: Monday, March 15, 2010 3:51 PM Subject: Re: Error in tapestry.js in IE 8 Hi, I'm still facing this issue. I cannot use Tapestry 5 on IE8! Am I only one who face to this problem? Or Tapestry cannot be used on IE8? Could anybody answer me, plese? Please help! Libor -- View this message in context: http://old.nabble.com/Error-in-tapestry.js-in-IE-8-tp27714386p27901196.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: Testify 1.0.2-SNAPSHOT using deprecated ClassTransformation.addMethod(TransformMethodSignature,String)
On Mon, 15 Mar 2010 04:15:41 -0300, Joost Schouten (ml) joost...@jsportal.com wrote: org.apache.tapestry5.corelib.pages.ExceptionReport.request: Method ClassTransformation.addMethod(TransformMethodSignature,String) has been deprecated and is no longer functional. Please consult the JavaDoc for a suitable replacement. The class transformation API was changed in Tapestry 5.2-SNAPSHOT. -- 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
T5: getting a specific locale string from Messages
Hi, Messages.get(key) returns a localized string, is there a way to get a string from a particular locale? example: Messages.get(key, de)? Thanks, Angelo -- View this message in context: http://old.nabble.com/T5%3A-getting-a-specific-locale-string-from-Messages-tp27903953p27903953.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: Error in tapestry.js in IE 8
Thanks for quick reply. I have tried night build I can see little progress if have used Tapestry 5.2.0 But still it is not work 100%. From time time it doesn't propagate selected checkboxes to server. Night build 5.1. didn't work at all. I have tried to copy prototype.js version 1.6.1 to tapestry-core.jar directly but no progress. Maybe I'm using wrong library for checkboxes group? I'm using net.sf.lombok. Started to be flustrated. Libor -- View this message in context: http://old.nabble.com/Error-in-tapestry.js-in-IE-8-tp27714386p27904652.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: Live service reloading in 5.2
On 15.03.2010 01:14, Howard Lewis Ship wrote: That's very odd, I can't think of a reason why any of the changes I made would change that behavior. So, to be more precise: Our application was build mainly using the approach proposed in http://wiki.apache.org/tapestry/Tapstry5First_project_with_Tapestry5%2C_Spring_and_Hibernate So according to that we have spring managed beans or services, for example PersonManager interface and PersonManagerImpl class PersonDao interface and PersonDaoImpl class All database related logic is in Dao classes, Manager classes only control business and transaction logic or simply get the results from the Dao. And recently we started to circumvent Spring and build services only with Tapestry related tools so one such service is for example EnrollmentService which is bound in AppModule like this: binder.bind(EnrollmentService.class, EnrollmentServiceImpl.class); And it is used in the older spring service PersonDaoImple like this: @Inject @Autowired private EnrollmentService enrollmentService; So what I described was the case in 5.1.0.5. So when I switched from 5.1.0.5 to 5.2.0-SNAPSHOT in the pom.xml, I got the message that it was not able to find the enrollmentService bean. This was really strange and it was solved with deleteing @Autowired. Now I don't really understand how does this function at all because the enrollmentService is not configured in the spring xml. smime.p7s Description: S/MIME Cryptographic Signature
Re: Error in tapestry.js in IE 8
I guess that's some problem of that third-party library then. If you request the prototype.js file directly (i.e. point your browser to the URL used inside the page source to include it), what version does it say it has? Uli On 15.03.2010 14:59, LiborGMC wrote: Thanks for quick reply. I have tried night build I can see little progress if have used Tapestry 5.2.0 But still it is not work 100%. From time time it doesn't propagate selected checkboxes to server. Night build 5.1. didn't work at all. I have tried to copy prototype.js version 1.6.1 to tapestry-core.jar directly but no progress. Maybe I'm using wrong library for checkboxes group? I'm using net.sf.lombok. Started to be flustrated. Libor - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Testify 1.0.2-SNAPSHOT using deprecated ClassTransformation.addMethod(TransformMethodSignature,String)
The class transformation API was changed in Tapestry 5.2-SNAPSHOT. Is it planned to provide the old API work in 5.2 as well? (and not break backward compatibility) One other thing that stopped working is this: http://wiki.apache.org/tapestry/Tapestry5AnotherSelectWithObjects Piero - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Testify 1.0.2-SNAPSHOT using deprecated ClassTransformation.addMethod(TransformMethodSignature,String)
Thiago H. de Paula Figueiredo thiag...@gmail.com wrote on 15/03/2010 12:40:53: On Mon, 15 Mar 2010 04:15:41 -0300, Joost Schouten (ml) joost...@jsportal.com wrote: org.apache.tapestry5.corelib.pages.ExceptionReport.request: Method ClassTransformation.addMethod(TransformMethodSignature,String) has been deprecated and is no longer functional. Please consult the JavaDoc for a suitable replacement. The class transformation API was changed in Tapestry 5.2-SNAPSHOT. I will update Testify to work with Tapestry 5.2 but I was waiting until it gets relatively near a release so I didn't have to maintain multiple releases of Testify or track changes in T5.2. Paul --- This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and delete this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. Please refer to http://www.db.com/en/content/eu_disclosures.htm for additional EU corporate and regulatory disclosures.
Re: [Announce] Tapestry Testify project - v1.0.1 released
Hi Angelo, I'm not entirely sure what's causing the error; but I have a workaround :-) Testify runs on top of Tapestry's testing infrastructure. Tapestry's testing infrastructure doesn't route via HttpServletRequest/HttpServletResponse - it comes in at the level of Tapestry's own Request and Response objects. So, basically anything you do at the servlet level won't feature in the tests. So, I'd suggest breaking your AppModule into several modules. Put the servlet-oriented parts into one module and then *don't* include that module when you create the TapestryTester. FYI, I am coming to the conclusion that building the TapestryTester from an AppModule is not a good idea - you should pick and choose the modules that are relevant for the kinds of tests you are doing (See http://tapestry.formos.com/projects/tapestry-testify/types-of-testing.html). - Paul Angelo Chen angelochen...@yahoo.com.hk wrote on 13/03/2010 00:12:02: Hi Paul, THis is a good news, I'd like to give it another try. last time I gave up after encountering a problem and can't find any solution anywhere: http://old.nabble.com/T5%3A-how-to-put-Testify-into-real-use-- td26038980.html#a26038980 any idea why I'm getting that error? Angelo --- This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and delete this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. Please refer to http://www.db.com/en/content/eu_disclosures.htm for additional EU corporate and regulatory disclosures.
Component used in 2 different pages and have method getParentPage
Hi, I have a problem. I have dialog that used in 2 pages each page implements Interface CommonPage in component I have getParentPage that returns CommonPage When I switch pages I have cast exception : $Page1 cannot be cast to com.mycompany.Page2 what could be the problem?
Re: Testify 1.0.2-SNAPSHOT using deprecated ClassTransformation.addMethod(TransformMethodSignature,String)
On Mon, 15 Mar 2010 11:49:53 -0300, Piero Sartini li...@pierosartini.de wrote: The class transformation API was changed in Tapestry 5.2-SNAPSHOT. Is it planned to provide the old API work in 5.2 as well? (and not break backward compatibility) One other thing that stopped working is this: http://wiki.apache.org/tapestry/Tapestry5AnotherSelectWithObjects The approach used in that wiki page (using a list even when handling a form submission) is far from recommended. I advise anyone to not use it. -- 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
exception page debug
I have already raised this question some time ago, but we still did not overcome our situation. It is frequent in our project that when a exception page should be shown, we have completely null response (no data at all). And often even no log messages in log4j with stacktrace. At a glance, I've thought this is a spring-security integration problem (and it seemed logical), but even turning off all its filters does not help. So now if I forget to put private for a field, I have null response and I should guess what is the problem. What can I do in my situation? I can provide any information about my environment and code. Please, god, send me a geek that likes puzzles :-) - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Error in tapestry.js in IE 8
Tapestry using prototype 1.6.1 (I've done what you suggest). Ok I will try to use another library for checkbox group. Any recommendations? -- View this message in context: http://old.nabble.com/Error-in-tapestry.js-in-IE-8-tp27714386p27906691.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: exception page debug
Hi, Have you overrided the ExceptionReport or even ExceptionRequestHandler ? Regards, Christophe Cordenier. 2010/3/15 Yury Luneff bitter...@ya.ru I have already raised this question some time ago, but we still did not overcome our situation. It is frequent in our project that when a exception page should be shown, we have completely null response (no data at all). And often even no log messages in log4j with stacktrace. At a glance, I've thought this is a spring-security integration problem (and it seemed logical), but even turning off all its filters does not help. So now if I forget to put private for a field, I have null response and I should guess what is the problem. What can I do in my situation? I can provide any information about my environment and code. Please, god, send me a geek that likes puzzles :-) - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org -- Regards, Christophe Cordenier. Developer of wooki @wookicentral.com
[ANNOUNCEMENT] New releases of conversations and hibernate-seedentity modules
Just to avoid spamming the list too often, I'm sending these two release announcements as aggregated. We've released 0.1.0 version of tapestry-hibernate-seedentity and 0.1.1 of tapestry-conversations. The documentation for both is updated and the libraries are available from Central immediately. We also have a simple live example of conversations running on GAE at http://tapestry-conversations.tynamo.org. See release notes below. Enjoy! Tynamo team --- Release Notes - Tynamo - Version hibernate-seedentity-0.1.0 (documentation at http://tynamo.org/tapestry-hibernate-seedentity+guide) Improvement * [TYNAMO-10] - Support @NaturalId * [TYNAMO-38] - Change SeedEntityIdentifier to work on classes rather than objects * [TYNAMO-39] - Allow partially committing seed entities Task * [TYNAMO-28] - Rename package org.tynamo.seedentity to org.tynamo.seedentity.hibernate --- Release Notes - Tynamo - Version conversations-0.1.1 (documentation at http://tynamo.org/tapestry-conversations+guide) Improvement * [TYNAMO-37] - Lowercase only the cookie name both before reading and writing to support T5.1 and T5.2 New Feature * [TYNAMO-35] - Enhance ConversationAware for use by services and allow objects to register themselves as conversation listeners Task * [TYNAMO-31] - Make Conversation class serializable for clustering and failover and to make the conversation example work on GAE - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: exception page debug
Perhaps you have injected a service before the exception handler/filter? -- Robert Hailey On Mar 15, 2010, at 11:17 AM, Yury Luneff wrote: I have already raised this question some time ago, but we still did not overcome our situation. It is frequent in our project that when a exception page should be shown, we have completely null response (no data at all). And often even no log messages in log4j with stacktrace. At a glance, I've thought this is a spring-security integration problem (and it seemed logical), but even turning off all its filters does not help. So now if I forget to put private for a field, I have null response and I should guess what is the problem. What can I do in my situation? I can provide any information about my environment and code. Please, god, send me a geek that likes puzzles :-) - 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
Cannot create 'form' component / NPE
Ok... I've got another question. I've copied/modified the code template for the login form to make a logout page, but when it tries to make the form object it throws a NullPointerException. The exception report simply highlights the definition of the form (which is the same as on the working page): form t:id=form -- Robert Hailey org.apache.tapestry5.ioc.internal.util.TapestryException: Failure creating embedded component 'form' of das.pages.Logout: java.lang.NullPointerException [at context:Logout.tml, line 8] at org .apache .tapestry5 .internal .pageload .ComponentAssemblerImpl .createEmbeddedAssembler(ComponentAssemblerImpl.java:315) at org .apache .tapestry5 .internal.pageload.PageLoaderImpl.startComponent(PageLoaderImpl.java: 749) at org .apache .tapestry5 .internal.pageload.PageLoaderImpl.component(PageLoaderImpl.java:614) at org .apache .tapestry5 .internal .pageload.PageLoaderImpl.processTemplateToken(PageLoaderImpl.java:402) at org .apache .tapestry5 .internal.pageload.PageLoaderImpl.element(PageLoaderImpl.java:674) at org .apache .tapestry5 .internal .pageload.PageLoaderImpl.processTemplateToken(PageLoaderImpl.java:397) at org .apache .tapestry5 .internal.pageload.PageLoaderImpl.element(PageLoaderImpl.java:674) at org .apache .tapestry5 .internal .pageload.PageLoaderImpl.processTemplateToken(PageLoaderImpl.java:397) at org .apache .tapestry5 .internal.pageload.PageLoaderImpl.programAssembler(PageLoaderImpl.java: 234) at org .apache .tapestry5 .internal.pageload.PageLoaderImpl.createAssembler(PageLoaderImpl.java: 207) at org .apache .tapestry5 .internal.pageload.PageLoaderImpl.getAssembler(PageLoaderImpl.java:183) at org .apache .tapestry5 .internal.pageload.PageLoaderImpl.loadPage(PageLoaderImpl.java:157) at $PageLoader_12762d8a5e9.loadPage($PageLoader_12762d8a5e9.java) at org .apache .tapestry5.internal.services.PagePoolCache.checkout(PagePoolCache.java: 210) at org .apache .tapestry5.internal.services.PagePoolImpl.checkout(PagePoolImpl.java:99) at $PagePool_12762d8a5e8.checkout($PagePool_12762d8a5e8.java) at org .apache .tapestry5 .internal.services.RequestPageCacheImpl.get(RequestPageCacheImpl.java: 51) at $RequestPageCache_12762d8a5e7.get($RequestPageCache_12762d8a5e7.java) at $RequestPageCache_12762d8a5e0.get($RequestPageCache_12762d8a5e0.java) at org .apache .tapestry5 .internal .services .PageRenderRequestHandlerImpl.handle(PageRenderRequestHandlerImpl.java: 52) at org.apache.tapestry5.services.TapestryModule $33.handle(TapestryModule.java:1943) at $ PageRenderRequestHandler_12762d8a5e3 .handle($PageRenderRequestHandler_12762d8a5e3.java) at $ PageRenderRequestHandler_12762d8a5d7 .handle($PageRenderRequestHandler_12762d8a5d7.java) at org .apache .tapestry5 .internal .services .ComponentRequestHandlerTerminator .handlePageRender(ComponentRequestHandlerTerminator.java:48) at das .security .SecurityLoginFilter.handlePageRender(SecurityLoginFilter.java:70) at $ ComponentRequestHandler_12762d8a62d .handlePageRender($ComponentRequestHandler_12762d8a62d.java) at $ ComponentRequestHandler_12762d8a5dc .handlePageRender($ComponentRequestHandler_12762d8a5dc.java) at org .apache .tapestry5 .internal .services.PageRenderDispatcher.dispatch(PageRenderDispatcher.java:45) at $Dispatcher_12762d8a5de.dispatch($Dispatcher_12762d8a5de.java) at $Dispatcher_12762d8a5d2.dispatch($Dispatcher_12762d8a5d2.java) at org.apache.tapestry5.services.TapestryModule $RequestHandlerTerminator.service(TapestryModule.java:245) at das.services.TimingFilter.service(TimingFilter.java:43) at $RequestHandler_12762d8a5d3.service($RequestHandler_12762d8a5d3.java) [...snip...] Caused by: java.lang.NullPointerException at javassist.Loader.loadClass(Loader.java:304) at java.lang.ClassLoader.loadClass(ClassLoader.java:252) at org .apache .tapestry5 .internal .services .ComponentInstantiatorSourceImpl .findClass(ComponentInstantiatorSourceImpl.java:296) at org .apache .tapestry5 .internal .services .ComponentInstantiatorSourceImpl .getInstantiator(ComponentInstantiatorSourceImpl.java:276) at $ ComponentInstantiatorSource_12762d8a5b7 .getInstantiator($ComponentInstantiatorSource_12762d8a5b7.java) at org .apache .tapestry5 .internal .pageload .EmbeddedComponentAssemblerImpl .getModel(EmbeddedComponentAssemblerImpl.java:173) at org .apache .tapestry5 .internal .pageload .EmbeddedComponentAssemblerImpl .init(EmbeddedComponentAssemblerImpl.java:82) at org .apache .tapestry5 .internal .pageload .ComponentAssemblerImpl .createEmbeddedAssembler(ComponentAssemblerImpl.java:266) ... 79 more
Re: Cannot create 'form' component / NPE
What version of Tapestry? Come on, you know the drill, give us information to help you. On Mon, Mar 15, 2010 at 9:43 AM, Robert Hailey rob...@cmediacorp.com wrote: Ok... I've got another question. I've copied/modified the code template for the login form to make a logout page, but when it tries to make the form object it throws a NullPointerException. The exception report simply highlights the definition of the form (which is the same as on the working page): form t:id=form -- Robert Hailey org.apache.tapestry5.ioc.internal.util.TapestryException: Failure creating embedded component 'form' of das.pages.Logout: java.lang.NullPointerException [at context:Logout.tml, line 8] at org.apache.tapestry5.internal.pageload.ComponentAssemblerImpl.createEmbeddedAssembler(ComponentAssemblerImpl.java:315) at org.apache.tapestry5.internal.pageload.PageLoaderImpl.startComponent(PageLoaderImpl.java:749) at org.apache.tapestry5.internal.pageload.PageLoaderImpl.component(PageLoaderImpl.java:614) at org.apache.tapestry5.internal.pageload.PageLoaderImpl.processTemplateToken(PageLoaderImpl.java:402) at org.apache.tapestry5.internal.pageload.PageLoaderImpl.element(PageLoaderImpl.java:674) at org.apache.tapestry5.internal.pageload.PageLoaderImpl.processTemplateToken(PageLoaderImpl.java:397) at org.apache.tapestry5.internal.pageload.PageLoaderImpl.element(PageLoaderImpl.java:674) at org.apache.tapestry5.internal.pageload.PageLoaderImpl.processTemplateToken(PageLoaderImpl.java:397) at org.apache.tapestry5.internal.pageload.PageLoaderImpl.programAssembler(PageLoaderImpl.java:234) at org.apache.tapestry5.internal.pageload.PageLoaderImpl.createAssembler(PageLoaderImpl.java:207) at org.apache.tapestry5.internal.pageload.PageLoaderImpl.getAssembler(PageLoaderImpl.java:183) at org.apache.tapestry5.internal.pageload.PageLoaderImpl.loadPage(PageLoaderImpl.java:157) at $PageLoader_12762d8a5e9.loadPage($PageLoader_12762d8a5e9.java) at org.apache.tapestry5.internal.services.PagePoolCache.checkout(PagePoolCache.java:210) at org.apache.tapestry5.internal.services.PagePoolImpl.checkout(PagePoolImpl.java:99) at $PagePool_12762d8a5e8.checkout($PagePool_12762d8a5e8.java) at org.apache.tapestry5.internal.services.RequestPageCacheImpl.get(RequestPageCacheImpl.java:51) at $RequestPageCache_12762d8a5e7.get($RequestPageCache_12762d8a5e7.java) at $RequestPageCache_12762d8a5e0.get($RequestPageCache_12762d8a5e0.java) at org.apache.tapestry5.internal.services.PageRenderRequestHandlerImpl.handle(PageRenderRequestHandlerImpl.java:52) at org.apache.tapestry5.services.TapestryModule$33.handle(TapestryModule.java:1943) at $PageRenderRequestHandler_12762d8a5e3.handle($PageRenderRequestHandler_12762d8a5e3.java) at $PageRenderRequestHandler_12762d8a5d7.handle($PageRenderRequestHandler_12762d8a5d7.java) at org.apache.tapestry5.internal.services.ComponentRequestHandlerTerminator.handlePageRender(ComponentRequestHandlerTerminator.java:48) at das.security.SecurityLoginFilter.handlePageRender(SecurityLoginFilter.java:70) at $ComponentRequestHandler_12762d8a62d.handlePageRender($ComponentRequestHandler_12762d8a62d.java) at $ComponentRequestHandler_12762d8a5dc.handlePageRender($ComponentRequestHandler_12762d8a5dc.java) at org.apache.tapestry5.internal.services.PageRenderDispatcher.dispatch(PageRenderDispatcher.java:45) at $Dispatcher_12762d8a5de.dispatch($Dispatcher_12762d8a5de.java) at $Dispatcher_12762d8a5d2.dispatch($Dispatcher_12762d8a5d2.java) at org.apache.tapestry5.services.TapestryModule$RequestHandlerTerminator.service(TapestryModule.java:245) at das.services.TimingFilter.service(TimingFilter.java:43) at $RequestHandler_12762d8a5d3.service($RequestHandler_12762d8a5d3.java) [...snip...] Caused by: java.lang.NullPointerException at javassist.Loader.loadClass(Loader.java:304) at java.lang.ClassLoader.loadClass(ClassLoader.java:252) at org.apache.tapestry5.internal.services.ComponentInstantiatorSourceImpl.findClass(ComponentInstantiatorSourceImpl.java:296) at org.apache.tapestry5.internal.services.ComponentInstantiatorSourceImpl.getInstantiator(ComponentInstantiatorSourceImpl.java:276) at $ComponentInstantiatorSource_12762d8a5b7.getInstantiator($ComponentInstantiatorSource_12762d8a5b7.java) at org.apache.tapestry5.internal.pageload.EmbeddedComponentAssemblerImpl.getModel(EmbeddedComponentAssemblerImpl.java:173) at org.apache.tapestry5.internal.pageload.EmbeddedComponentAssemblerImpl.init(EmbeddedComponentAssemblerImpl.java:82) at org.apache.tapestry5.internal.pageload.ComponentAssemblerImpl.createEmbeddedAssembler(ComponentAssemblerImpl.java:266) ... 79 more -- 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,
Re: Component used in 2 different pages and have method getParentPage
Tapestry pages can't just be casted to individual page instances because they are dynamically enhanced. Cast them to their interface type or @InjectPage them. Uli On 15.03.2010 16:06, Andrey Etush wrote: Hi, I have a problem. I have dialog that used in 2 pages each page implements Interface CommonPage in component I have getParentPage that returns CommonPage When I switch pages I have cast exception : $Page1 cannot be cast to com.mycompany.Page2 what could be the problem? - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Cannot create 'form' component / NPE
You want t:form t:id=form or form t:type=form t:id=form Uli On 15.03.2010 18:43, Robert Hailey wrote: Ok... I've got another question. I've copied/modified the code template for the login form to make a logout page, but when it tries to make the form object it throws a NullPointerException. The exception report simply highlights the definition of the form (which is the same as on the working page): form t:id=form -- Robert Hailey org.apache.tapestry5.ioc.internal.util.TapestryException: Failure creating embedded component 'form' of das.pages.Logout: java.lang.NullPointerException [at context:Logout.tml, line 8] at org.apache.tapestry5.internal.pageload.ComponentAssemblerImpl.createEmbeddedAssembler(ComponentAssemblerImpl.java:315) at org.apache.tapestry5.internal.pageload.PageLoaderImpl.startComponent(PageLoaderImpl.java:749) at org.apache.tapestry5.internal.pageload.PageLoaderImpl.component(PageLoaderImpl.java:614) at org.apache.tapestry5.internal.pageload.PageLoaderImpl.processTemplateToken(PageLoaderImpl.java:402) at org.apache.tapestry5.internal.pageload.PageLoaderImpl.element(PageLoaderImpl.java:674) at org.apache.tapestry5.internal.pageload.PageLoaderImpl.processTemplateToken(PageLoaderImpl.java:397) at org.apache.tapestry5.internal.pageload.PageLoaderImpl.element(PageLoaderImpl.java:674) at org.apache.tapestry5.internal.pageload.PageLoaderImpl.processTemplateToken(PageLoaderImpl.java:397) at org.apache.tapestry5.internal.pageload.PageLoaderImpl.programAssembler(PageLoaderImpl.java:234) at org.apache.tapestry5.internal.pageload.PageLoaderImpl.createAssembler(PageLoaderImpl.java:207) at org.apache.tapestry5.internal.pageload.PageLoaderImpl.getAssembler(PageLoaderImpl.java:183) at org.apache.tapestry5.internal.pageload.PageLoaderImpl.loadPage(PageLoaderImpl.java:157) at $PageLoader_12762d8a5e9.loadPage($PageLoader_12762d8a5e9.java) at org.apache.tapestry5.internal.services.PagePoolCache.checkout(PagePoolCache.java:210) at org.apache.tapestry5.internal.services.PagePoolImpl.checkout(PagePoolImpl.java:99) at $PagePool_12762d8a5e8.checkout($PagePool_12762d8a5e8.java) at org.apache.tapestry5.internal.services.RequestPageCacheImpl.get(RequestPageCacheImpl.java:51) at $RequestPageCache_12762d8a5e7.get($RequestPageCache_12762d8a5e7.java) at $RequestPageCache_12762d8a5e0.get($RequestPageCache_12762d8a5e0.java) at org.apache.tapestry5.internal.services.PageRenderRequestHandlerImpl.handle(PageRenderRequestHandlerImpl.java:52) at org.apache.tapestry5.services.TapestryModule$33.handle(TapestryModule.java:1943) at $PageRenderRequestHandler_12762d8a5e3.handle($PageRenderRequestHandler_12762d8a5e3.java) at $PageRenderRequestHandler_12762d8a5d7.handle($PageRenderRequestHandler_12762d8a5d7.java) at org.apache.tapestry5.internal.services.ComponentRequestHandlerTerminator.handlePageRender(ComponentRequestHandlerTerminator.java:48) at das.security.SecurityLoginFilter.handlePageRender(SecurityLoginFilter.java:70) at $ComponentRequestHandler_12762d8a62d.handlePageRender($ComponentRequestHandler_12762d8a62d.java) at $ComponentRequestHandler_12762d8a5dc.handlePageRender($ComponentRequestHandler_12762d8a5dc.java) at org.apache.tapestry5.internal.services.PageRenderDispatcher.dispatch(PageRenderDispatcher.java:45) at $Dispatcher_12762d8a5de.dispatch($Dispatcher_12762d8a5de.java) at $Dispatcher_12762d8a5d2.dispatch($Dispatcher_12762d8a5d2.java) at org.apache.tapestry5.services.TapestryModule$RequestHandlerTerminator.service(TapestryModule.java:245) at das.services.TimingFilter.service(TimingFilter.java:43) at $RequestHandler_12762d8a5d3.service($RequestHandler_12762d8a5d3.java) [...snip...] Caused by: java.lang.NullPointerException at javassist.Loader.loadClass(Loader.java:304) at java.lang.ClassLoader.loadClass(ClassLoader.java:252) at org.apache.tapestry5.internal.services.ComponentInstantiatorSourceImpl.findClass(ComponentInstantiatorSourceImpl.java:296) at org.apache.tapestry5.internal.services.ComponentInstantiatorSourceImpl.getInstantiator(ComponentInstantiatorSourceImpl.java:276) at $ComponentInstantiatorSource_12762d8a5b7.getInstantiator($ComponentInstantiatorSource_12762d8a5b7.java) at org.apache.tapestry5.internal.pageload.EmbeddedComponentAssemblerImpl.getModel(EmbeddedComponentAssemblerImpl.java:173) at org.apache.tapestry5.internal.pageload.EmbeddedComponentAssemblerImpl.init(EmbeddedComponentAssemblerImpl.java:82) at org.apache.tapestry5.internal.pageload.ComponentAssemblerImpl.createEmbeddedAssembler(ComponentAssemblerImpl.java:266) ... 79 more - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: exception page debug
Hi, Have you overrided the ExceptionReport or even ExceptionRequestHandler ? Regards, Christophe Cordenier. in security module from tapestry5.localhost.nu ()there is: @InjectService(SpringSecurityExceptionFilter) final SpringSecurityExceptionTranslationFilter springSecurityExceptionFilter) where public class SpringSecurityExceptionTranslationFilter extends SpringSecurityFilter as today i have turned off this module in a whole and the problem persists, it is probably not the source of problem. Even if it is, security there checks logged user if he can read logs and puts error message otherwise and i don't receive any error message, just null. In my project i haven't touched anything related to expectionreport and such by myself and if i had, it would be the first place i watch for fixes. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Cannot create 'form' component / NPE
On Mar 15, 2010, at 2:02 PM, Ulrich Stärk wrote: You want t:form t:id=form or form t:type=form t:id=form Uli Thank you, that worked... now I am wondering why Login.tml works w/ the original form (?). On Mar 15, 2010, at 1:09 PM, Howard Lewis Ship wrote: What version of Tapestry? Come on, you know the drill, give us information to help you. It is version 5.1.0.5 -- Robert Hailey On 15.03.2010 18:43, Robert Hailey wrote: Ok... I've got another question. I've copied/modified the code template for the login form to make a logout page, but when it tries to make the form object it throws a NullPointerException. The exception report simply highlights the definition of the form (which is the same as on the working page): form t:id=form -- Robert Hailey org.apache.tapestry5.ioc.internal.util.TapestryException: Failure creating embedded component 'form' of das.pages.Logout: java.lang.NullPointerException [at context:Logout.tml, line 8] at org .apache .tapestry5 .internal .pageload .ComponentAssemblerImpl .createEmbeddedAssembler(ComponentAssemblerImpl.java:315) at org .apache .tapestry5 .internal .pageload.PageLoaderImpl.startComponent(PageLoaderImpl.java:749) at org .apache .tapestry5 .internal.pageload.PageLoaderImpl.component(PageLoaderImpl.java:614) at org .apache .tapestry5 .internal .pageload.PageLoaderImpl.processTemplateToken(PageLoaderImpl.java: 402) at org .apache .tapestry5 .internal.pageload.PageLoaderImpl.element(PageLoaderImpl.java:674) at org .apache .tapestry5 .internal .pageload.PageLoaderImpl.processTemplateToken(PageLoaderImpl.java: 397) at org .apache .tapestry5 .internal.pageload.PageLoaderImpl.element(PageLoaderImpl.java:674) at org .apache .tapestry5 .internal .pageload.PageLoaderImpl.processTemplateToken(PageLoaderImpl.java: 397) at org .apache .tapestry5 .internal .pageload.PageLoaderImpl.programAssembler(PageLoaderImpl.java:234) at org .apache .tapestry5 .internal .pageload.PageLoaderImpl.createAssembler(PageLoaderImpl.java:207) at org .apache .tapestry5 .internal.pageload.PageLoaderImpl.getAssembler(PageLoaderImpl.java: 183) at org .apache .tapestry5 .internal.pageload.PageLoaderImpl.loadPage(PageLoaderImpl.java:157) at $PageLoader_12762d8a5e9.loadPage($PageLoader_12762d8a5e9.java) at org .apache .tapestry5 .internal.services.PagePoolCache.checkout(PagePoolCache.java:210) at org .apache .tapestry5 .internal.services.PagePoolImpl.checkout(PagePoolImpl.java:99) at $PagePool_12762d8a5e8.checkout($PagePool_12762d8a5e8.java) at org .apache .tapestry5 .internal .services.RequestPageCacheImpl.get(RequestPageCacheImpl.java:51) at $RequestPageCache_12762d8a5e7.get($RequestPageCache_12762d8a5e7.java) at $RequestPageCache_12762d8a5e0.get($RequestPageCache_12762d8a5e0.java) at org .apache .tapestry5 .internal .services .PageRenderRequestHandlerImpl .handle(PageRenderRequestHandlerImpl.java:52) at org.apache.tapestry5.services.TapestryModule $33.handle(TapestryModule.java:1943) at $ PageRenderRequestHandler_12762d8a5e3 .handle($PageRenderRequestHandler_12762d8a5e3.java) at $ PageRenderRequestHandler_12762d8a5d7 .handle($PageRenderRequestHandler_12762d8a5d7.java) at org .apache .tapestry5 .internal .services .ComponentRequestHandlerTerminator .handlePageRender(ComponentRequestHandlerTerminator.java:48) at das .security .SecurityLoginFilter.handlePageRender(SecurityLoginFilter.java:70) at $ ComponentRequestHandler_12762d8a62d .handlePageRender($ComponentRequestHandler_12762d8a62d.java) at $ ComponentRequestHandler_12762d8a5dc .handlePageRender($ComponentRequestHandler_12762d8a5dc.java) at org .apache .tapestry5 .internal .services.PageRenderDispatcher.dispatch(PageRenderDispatcher.java:45) at $Dispatcher_12762d8a5de.dispatch($Dispatcher_12762d8a5de.java) at $Dispatcher_12762d8a5d2.dispatch($Dispatcher_12762d8a5d2.java) at org.apache.tapestry5.services.TapestryModule $RequestHandlerTerminator.service(TapestryModule.java:245) at das.services.TimingFilter.service(TimingFilter.java:43) at $RequestHandler_12762d8a5d3.service($RequestHandler_12762d8a5d3.java) [...snip...] Caused by: java.lang.NullPointerException at javassist.Loader.loadClass(Loader.java:304) at java.lang.ClassLoader.loadClass(ClassLoader.java:252) at org .apache .tapestry5 .internal .services .ComponentInstantiatorSourceImpl .findClass(ComponentInstantiatorSourceImpl.java:296) at org .apache .tapestry5 .internal .services .ComponentInstantiatorSourceImpl .getInstantiator(ComponentInstantiatorSourceImpl.java:276) at $ ComponentInstantiatorSource_12762d8a5b7 .getInstantiator($ComponentInstantiatorSource_12762d8a5b7.java) at org .apache .tapestry5 .internal .pageload .EmbeddedComponentAssemblerImpl .getModel(EmbeddedComponentAssemblerImpl.java:173) at org .apache .tapestry5 .internal .pageload .EmbeddedComponentAssemblerImpl
Re: exception page debug
Perhaps you have injected a service before the exception handler/filter? -- Robert Hailey i guess, i have solved the issue ;) the problem was in custom logic i've added to stock timingFilter! So I am happy again, thanks to everyone! :-D - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: exception page debug
On Mar 15, 2010, at 2:10 PM, Yury Luneff wrote: Hi, Have you overrided the ExceptionReport or even ExceptionRequestHandler ? Regards, Christophe Cordenier. in security module from tapestry5.localhost.nu ()there is: @InjectService(SpringSecurityExceptionFilter) final SpringSecurityExceptionTranslationFilter springSecurityExceptionFilter) where public class SpringSecurityExceptionTranslationFilter extends SpringSecurityFilter as today i have turned off this module in a whole and the problem persists, it is probably not the source of problem. Even if it is, security there checks logged user if he can read logs and puts error message otherwise and i don't receive any error message, just null. In my project i haven't touched anything related to expectionreport and such by myself and if i had, it would be the first place i watch for fixes. Yury, I think that something is catching the exceptions and not rendering anything. Do you have any custom filters? My understanding is that this anti-pattern will break exception reporting in a filter: try { return handler.service(request, response); } catch (Exception e) { log.debug(i just silently broke something, e) //@bug: here, exception caught! } -- Robert Hailey
Re: exception page debug
On Mar 15, 2010, at 2:10 PM, Yury Luneff wrote: Hi, Have you overrided the ExceptionReport or even ExceptionRequestHandler ? Regards, Christophe Cordenier. in security module from tapestry5.localhost.nu ()there is: @InjectService(SpringSecurityExceptionFilter) final SpringSecurityExceptionTranslationFilter springSecurityExceptionFilter) where public class SpringSecurityExceptionTranslationFilter extends SpringSecurityFilter as today i have turned off this module in a whole and the problem persists, it is probably not the source of problem. Even if it is, security there checks logged user if he can read logs and puts error message otherwise and i don't receive any error message, just null. In my project i haven't touched anything related to expectionreport and such by myself and if i had, it would be the first place i watch for fixes. Yury, I think that something is catching the exceptions and not rendering anything. Do you have any custom filters? My understanding is that this anti-pattern will break exception reporting in a filter: try { return handler.service(request, response); } catch (Exception e) { log.debug(i just silently broke something, e) //@bug: here, exception caught! } i think i had exactly that (no servlet api knowledge, i'm stupid, i'm ok with it): public RequestFilter buildTimingFilter(final Logger logger) { return new RequestFilter() { public boolean service(Request request, Response response, RequestHandler handler) throws IOException { long startTime = System.currentTimeMillis(); boolean successful = true; try { // The responsibility of a filter is to invoke the corresponding method // in the handler. When you chain multiple filters together, each filter // received a handler that is a bridge to the next filter. successful = handler.service(request, response); } finally { long elapsed = System.currentTimeMillis() - startTime; if (!successful) { logger.error(String.format(%s not found, request.getPath())); } else { logger.info( String.format( Request time: %d ms for %s, elapsed, request.getPath())); } return successful; } } }; } - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: exception page debug
On Mar 15, 2010, at 2:42 PM, Yury Luneff wrote: Yury, I think that something is catching the exceptions and not rendering anything. Do you have any custom filters? My understanding is that this anti-pattern will break exception reporting in a filter: try { return handler.service(request, response); } catch (Exception e) { log.debug(i just silently broke something, e) //@bug: here, exception caught! } i think i had exactly that (no servlet api knowledge, i'm stupid, i'm ok with it): public RequestFilter buildTimingFilter(final Logger logger) { return new RequestFilter() { public boolean service(Request request, Response response, RequestHandler handler) throws IOException { long startTime = System.currentTimeMillis(); boolean successful = true; try { // The responsibility of a filter is to invoke the corresponding method // in the handler. When you chain multiple filters together, each filter // received a handler that is a bridge to the next filter. successful = handler.service(request, response); } finally { long elapsed = System.currentTimeMillis() - startTime; if (!successful) { logger.error(String.format(%s not found, request.getPath())); } else { logger.info( String.format( Request time: %d ms for %s, elapsed, request.getPath())); } return successful; } } }; } Ok... having a return or throw statement in a 'finally' clause is bad java. I'm glad you found the issue, though! -- Robert Hailey
Re: Render large page
Hi, Actually Dmitry is right that javascript variables are invalid. They cannot contain '-' character and error that is shown when they do is exactly SyntaxError: missing ; before statement. I've happend to have similiar issue. This is because tapestry adds '-' + random number to generated client ids during ajax request. You propably could still use RoundCornerContainer component you just have to change your code to remove '-' from client id's for example pageRenderSupport.addScript( var %s = new Ck.Rounded('%s', '%s', '%s', '%s', '%s');, getClientId().replace(-,), getClientId(), bgcolor, fgcolor, size, renderPart); Above should fix the problem. Kind Regards, Dariusz On Sat, Mar 6, 2010 at 7:38 AM, Henry Chen hc...@peacocknine.com wrote: The variables are valid. The problem is both Confirm and RoundCornerContainer components use prototype to manipulate the html. I ended up replacing those component with some simple js functions and problem solved. -- View this message in context: http://n2.nabble.com/Render-large-page-tp4677583p4685449.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: Testify 1.0.2-SNAPSHOT using deprecated ClassTransformation.addMethod(TransformMethodSignature,String)
I will update Testify to work with Tapestry 5.2 but I was waiting until it gets relatively near a release so I didn't have to maintain multiple releases of Testify or track changes in T5.2. Paul Thanks, I will await these changes. Until then I'll use a Tapestry 5.2 revision from before the ClassTransformation changes. Cheers, Joost - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Testify 1.0.2-SNAPSHOT using deprecated ClassTransformation.addMethod(TransformMethodSignature,String)
One other thing that stopped working is this: http://wiki.apache.org/tapestry/Tapestry5AnotherSelectWithObjects The approach used in that wiki page (using a list even when handling a form submission) is far from recommended. I advise anyone to not use it. Why? I am using it in some projects without any problems. If it is that bad - someone should remove it from the wiki. It is the first place users are looking for solutions. Could you provide a better solution to the problem? (Maybe even integrate it with tapestry, as it is a very common problem). Piero - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
[JOB] Looking for t5 contractors
Hey all. We are looking for good t5 contractors (full-time optimally). We are located in Boston, MA, USA. Located locally is of course preferred but remote is okay too. Here's a short-list of the things I'm looking for: • T5 (of course) • Some experience building some serious software / working in a large codebase • Good at working independently and within a team • Testing (junit, selenium) • XML (xpath, xslt, xquery) (optional but ideal) Dan Adams Principal Software Engineer iFactory: a division of RDW Group, Inc. Direct: 617.235.5857 @iFactoryBoston PubFactory: the revolutionary e-publishing platform from iFactory
Re: Empty body?
On Mar 12, 2010, at 1:20 PM, Manuel Sugawara wrote: Hi I'm working in a menu component, similar to the one in the howtos. The menuItem template looks like: I am not able to find such a menu component in the howtos. Can you provide a link please? -- Robert Hailey - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Why does nesting break my Ajax?
On Mar 13, 2010, at 6:54 PM, Thiago H. de Paula Figueiredo wrote: On Sat, 13 Mar 2010 12:20:52 -0300, Pierce T. Wetter III pie...@paceap.com wrote: T5 already has some magic elements, a.k.a. directives, such as t:body, t:parameter, t:block, t:content and t:remove. I don't want to introduce magic component types as well. Agreed, but does it seem unreasonable to have the directives work with invisible instrumentation as well? Even if it had to be t:directive=remove? I really like this idea. :) Please file a JIRA asking for it. Ok, filed as TAP5-1053. Pierce smime.p7s Description: S/MIME cryptographic signature
Does Ajax Form Loop render full form on addRow?
Guys, I'm stilling trying to trace this issue with AjaxFormLoop. I have a simple question. Does an Add Row event trigger the entire AjaxForm to be updated via Ajax or is just the new row returned? Regards, Greg. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Does Ajax Form Loop render full form on addRow?
On Mon, 15 Mar 2010 22:55:12 -0300, Greg Pagendam-Turner g...@liftyourgame.com wrote: I'm stilling trying to trace this issue with AjaxFormLoop. I have a simple question. Does an Add Row event trigger the entire AjaxForm to be updated via Ajax or is just the new row returned? Just the new row returned. Firebug will show you what is changed to the page DOM when an AJAX update is done. -- 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: Does Ajax Form Loop render full form on addRow?
|Thanks Thiago, When the Add Row works the following JSON is returned: {content:tdinput value='H4sIAJWSQUtbQRDHV6lIya00H0BIqxZ9STQvRgUhrc0pBCHag7d5L/NeV/btrrsT83LxA3joRyj03voVpHjw5nfoB||+g19CCl+15CKAjRnJb5z85/fjPM999sabDB3mEKiRZoywRB9jTPIG0pk7SV0tU9cFHkIuEia9iBMrEHGsLP6BFotGSGvhcqg4IH7k20kijJev||+7lLpDGX4C0cerL60/p98O00W20GaFUHD3N08Qe9U+gwsoC5BxuUuGy3g/1U7e9Cv1Ss1v1Ld2636jUmtsDzy2MRva9oOEk1TEI47GYX94LnY3r||+xMKkvHhscxmo8XLrnyo7h383f0M2d/iZl0PNR4zi7ZQkZaeI8xl2ODwTpbnY0YcWNJQoKOzp9JF4BFrxk4EUJqcRS9Uhepr9+c3BZ||+Fe8eJrtUkowSHec4JSrmTTJps7q1U/fDarQTRvOxNedlOzIqRGvzPVjLlby97tWi0df7RcZSPVhjb2c3FzDpnY2xTOx1Jjya4dk2mUvh6ZEtgaEe0LRtMVcOnTLf7qZG48bznmpW9cLdUjMiNONb||+gcBEiTtqAMAAA==' name='t:formdata' type='hidden'\/input\/td\n\t\t\t\t\t\t\ttdinput size='10'|| id='firstName-12765c1f7cf' name='firstName-12765c1f7cf' type='text'\/inputimg id='firstName-12765c1f7cf-icon'|| class='t-error-icon t-invisible' alt='' src='/jumpstart/assets/tapestry/5.1.0.5/spacer.gif'/\/td||\n\t\t\t\t\t\t\ttdinput size='10' id='lastName-12765c1f7cf' name='lastName-12765c1f7cf' type='text'||\/inputimg id='lastName-12765c1f7cf-icon' class='t-error-icon t-invisible' alt='' src='/jumpstart||/assets/tapestry/5.1.0.5/spacer.gif'/\/td\n\t\t\t\t\t\t\ttdinput size='10' value='' id='startDate-12765c1f7cf'|| name='startDate-12765c1f7cf' type='text'\/inputimg alt='[Show]' src='/jumpstart/assets/tapestry||/5.1.0.5/corelib/components/datefield.gif' class='t-calendar-trigger' id='startDate-12765c1f7cf-trigger'||/img id='startDate-12765c1f7cf-icon' class='t-error-icon t-invisible' alt='' src='/jumpstart/assets||/tapestry/5.1.0.5/spacer.gif'/\/td\n\t\t\t\t\t\t\t!-- If optimistic locking is needed then uncomment|| this next line.\n\t\t\t\t\t\t\t\tt:hidden t:id=\version\ value=\personHolder.person.version\/|| --\n\t\t\t\t\t\t\ttda id='removerowlink-12765c1f7cf' href='#'remove\/a\/td,scripts:[/jumpstart||/assets/datepicker/5.1.0.5/js/datepicker.js,/jumpstart/assets/tapestry/5.1.0.5/corelib/components/datefield||.js],elementId:rowInjector-12765c1f7cf,script:Tapestry.init({\formLoopRemoveLink\:[{\link||\:\removerowlink-12765c1f7cf\,\fragment\:\rowInjector-12765c1f7cf\,\url\:\/jumpstart/examples||/tables/ajaxformloop1.ajaxformloop:triggerremoverow/-50604586296580483\}],\validate\:[[\startDate-12765c1f7cf||\,[[\required\,\You must provide a value for Start Date.\]]],[\firstName-12765c1f7cf\,[[\required||\,\You must provide a value for First Name.\],[\maxlength\,\You may provide at most 10 characters|| for First Name.\,10]]],[\lastName-12765c1f7cf\,[[\required\,\You must provide a value for Last|| Name.\],[\maxlength\,\You may provide at most 10 characters for Last Name.\,10,\dateField||\:[{\field\:\startDate-12765c1f7cf\,\localization\:{\firstDay\:6,\months\:[\January\,\February||\,\March\,\April\,\May\,\June\,\July\,\August\,\September\,\October\,\November\,\December||\,\\],\days\:\mtwtfss\},\formatURL\:\/jumpstart/examples/tables/ajaxformloop1.startdate:format||\,\parseURL\:\/jumpstart/examples/tables/ajaxformloop1.startdate:parse\}]});\n,stylesheets:[||{href:/jumpstart/assets/datepicker/5.1.0.5/css/datepicker.css}]} | I'm not able to work out what is built just before the Hidden Field exception is thrown. Regards, Greg. On 16/03/2010 12:10 PM, Thiago H. de Paula Figueiredo wrote: On Mon, 15 Mar 2010 22:55:12 -0300, Greg Pagendam-Turner g...@liftyourgame.com wrote: I'm stilling trying to trace this issue with AjaxFormLoop. I have a simple question. Does an Add Row event trigger the entire AjaxForm to be updated via Ajax or is just the new row returned? Just the new row returned. Firebug will show you what is changed to the page DOM when an AJAX update is done.