Re: Tapestry 4.1.2-SNAPSHOT + Tacos 4.1.0-SNAPSHOT syntax error
Alright! It works again, thanks to all for quick response. 2007/4/24, Andreas Andreou [EMAIL PROTECTED]: Well, this has resulted in a few (perhaps known?) ognl issues - i'm filling some bug reports now. Anyway, try grabbing the new tacos snapshot and retrying... it now works.
RE: Upgrading Tapestry
Shit, that looks nice. If I only weren't so fed up with dev-environment changes-upgrades at the moment... -Original Message- From: Jesse Kuhnert [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 24, 2007 2:48 PM To: Tapestry users Subject: Re: Upgrading Tapestry FYI - if you're not against a commercial editor the HandyTapestry IDEA plugin does all that you have mentioned and much much more...I use it myself for T4 related dev. http://handyedit.com/ On 4/24/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Eclipse-WTP is quite decent. With Annotations and/or auto-completion in xml the only things I miss are: - jumping between template and Java files - an autocompleting template editor. both losses don't hurt a lot - for me. Could be different if you used a real lot of different component-types. Marcus -Original Message- From: James Sherwood [mailto:[EMAIL PROTECTED] Sent: Monday, April 23, 2007 1:36 PM To: Tapestry users Subject: Re: Upgrading Tapestry Hello, Sorry, I said tapestry 4 and meant 4.1. So currently we use Tapestry 3 and wish to upgrade to Tapestry 4.1. We use spindle/eclipse and it says that spindle only works with 3 so I was wondering what people are using to develop Tapestry 4.1. Thanks, James - Original Message - From: James Sherwood [EMAIL PROTECTED] To: Tapestry users users@tapestry.apache.org Sent: Monday, April 23, 2007 8:25 AM Subject: Upgrading Tapestry Hello, I am starting to upgrade to Tapestry 4 from 3 and noticed that spindle only supports 3. We use Eclipse/Spindle and I was wondering what people are using for Tapestry 4? Thanks, James - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ NOD32 2212 (20070423) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Jesse Kuhnert Tapestry/Dojo team member/developer Open source based consulting work centered around dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tap 4.1.2 Snapshot : Unable to parse a validator
Hi Jesse, Did you forget to run a unit test for it? Jan Jessek wrote: https://issues.apache.org/jira/browse/TAPESTRY-1428 Fixed and deploying now - sorry about the regression. On 4/24/07, Shing Hing Man [EMAIL PROTECTED] wrote: I have an application written couple of months ago in Tap 4.1.2 Snaphot. When I run it with the latest snapshot : org.apache.tapestry:tapestry-framework:4.1.2-20070424.031019-55 I have the following error exception : Unable to parse 'required,min=0.0001[%defaultProbInterestRate], max=199.9[%defaultProb-interestRate]' into a list of validators. Stack Trace: snipped -- Jesse Kuhnert Tapestry/Dojo team member/developer Open source based consulting work centered around dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com -- View this message in context: http://www.nabble.com/Tap-4.1.2-Snapshot-%3A-Unable-to-parse-a-validator-tf3640962.html#a10176183 Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
ActionLink Parameter
Hello, Considering the Tutorial with the Start and Guess page: On the Start page is an ActionLink (Start guessing) which initialises the number to guess by calling the onAction() Method which calls the guess.setup() Method and passes a random number... Is it possible to pass different parameters to the guess page which depend on different ActionLinks? E.g. if there are three ActionLinks: Start guessing (1-10) Start guessing (1-100) Start guessing (word) In the first and second case a number should be passed, in the second case a string... Thanks for any help, Hans -- Abteilungen SAI und Stochastik Universität Ulm Helmholtzstr. 18 Raum E22 0731/50-23575 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to trigger an async event when checkbox is (de)selected on BeanForm component?
Hello, I want to make an async call when a check box is selected or deselected on an automatically generated form (by BeanForm component). What is the best way to achieve this in T4.1.2? -Borut
Where is the Date(java.util.Date) in the grid? T5
I wrote a employee(pojo) with a hiredate (Date type), When it works with a grid, the grid didn't render the hiredate column. Other types(int or string ) work fine! Can anyone explain this? thanks for any help! -- Chinese name:徐 依伟 English name: will
Adding getLink() to ICallback
I'd like to see a getLink() method added to ICallback so we can do redirect-after-post with the callback. public ILink getLink(IRequestCycle cycle); The reason is that I like to keep a callback stack as I descend into the pages. A page can pop its calling page off the stack and often I'd like to redirect to it rather than just activate it. Any comments?
Re: Adding getLink() to ICallback
Something like that sounds reasonable (I think) - at least until I look at the impl code. A jira issue would help us remember. (or if you wanted to patch it and post it to jira it'd be doubly helpful ;) ) On 4/25/07, Geoff Callender [EMAIL PROTECTED] wrote: I'd like to see a getLink() method added to ICallback so we can do redirect-after-post with the callback. public ILink getLink(IRequestCycle cycle); The reason is that I like to keep a callback stack as I descend into the pages. A page can pop its calling page off the stack and often I'd like to redirect to it rather than just activate it. Any comments? -- Jesse Kuhnert Tapestry/Dojo team member/developer Open source based consulting work centered around dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com
Re: Adding getLink() to ICallback
Thanks, Jesse. I've added it to JIRA and included implementation code. https://issues.apache.org/jira/browse/TAPESTRY-1429 Geoff On 25/04/2007, at 10:59 PM, Jesse Kuhnert wrote: Something like that sounds reasonable (I think) - at least until I look at the impl code. A jira issue would help us remember. (or if you wanted to patch it and post it to jira it'd be doubly helpful ;) ) On 4/25/07, Geoff Callender [EMAIL PROTECTED] wrote: I'd like to see a getLink() method added to ICallback so we can do redirect-after-post with the callback. public ILink getLink(IRequestCycle cycle); The reason is that I like to keep a callback stack as I descend into the pages. A page can pop its calling page off the stack and often I'd like to redirect to it rather than just activate it. Any comments? -- Jesse Kuhnert Tapestry/Dojo team member/developer Open source based consulting work centered around dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to subclass Tapestry.default_invalid_field_handler ?
In javascript I'm keeping a variable set once a form is submitted as part of a submit once strategy. The only problem is: if client- side validation detects an error then my variable isn't reset. I'm thinking that I need to reset it in the Tapestry.default_invalid_field_handler javascript prototype method. Can that method be subclassed? How? (Javascript is not my forte) Am I even on the right track? Geoff - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to subclass Tapestry.default_invalid_field_handler ?
This website is surprisingly helpful in this regard, look at the Object and entities section: http://www.javascriptkit.com/javatutors/ That combined with the documentation (and linked source at the top) here should theoretically be enough to get you started: http://tapestry.apache.org/tapestry4.1/javascript/form.html On 4/25/07, Geoff Callender [EMAIL PROTECTED] wrote: In javascript I'm keeping a variable set once a form is submitted as part of a submit once strategy. The only problem is: if client- side validation detects an error then my variable isn't reset. I'm thinking that I need to reset it in the Tapestry.default_invalid_field_handler javascript prototype method. Can that method be subclassed? How? (Javascript is not my forte) Am I even on the right track? Geoff - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Jesse Kuhnert Tapestry/Dojo team member/developer Open source based consulting work centered around dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com
Re: How to subclass Tapestry.default_invalid_field_handler ?
On a different tack - is there an existing javascript function I can call or variable I can inspect to determine whether a link or submit is currently being processed? On 25/04/2007, at 11:48 PM, Jesse Kuhnert wrote: This website is surprisingly helpful in this regard, look at the Object and entities section: http://www.javascriptkit.com/javatutors/ That combined with the documentation (and linked source at the top) here should theoretically be enough to get you started: http://tapestry.apache.org/tapestry4.1/javascript/form.html On 4/25/07, Geoff Callender [EMAIL PROTECTED] wrote: In javascript I'm keeping a variable set once a form is submitted as part of a submit once strategy. The only problem is: if client- side validation detects an error then my variable isn't reset. I'm thinking that I need to reset it in the Tapestry.default_invalid_field_handler javascript prototype method. Can that method be subclassed? How? (Javascript is not my forte) Am I even on the right track? Geoff - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Jesse Kuhnert Tapestry/Dojo team member/developer Open source based consulting work centered around dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
T5: Component com.bt.oi.scorecard.pages.Start does not contain an embedded component with id 'html
Can anyone help here? I am just stumped. I have a maven2 app with spring 2, hibernate, and xfire.. the rest works fine. I have also jetty 6.1.1 plugin I do the dependencies for tapestry, and everything is fine in the classpath. However every time I try and do anything tapestry I get the following: . org.apache.tapestry.ioc.internal.util.TapestryException Component com.bt.oi.scorecard.pages.Start does not contain an embedded component with id 'html'. Stack trace o org.apache.tapestry.internal.structure.ComponentPageElementImpl.getEmbedde dElement(ComponentPageElementImpl.java:836) o org.apache.tapestry.internal.structure.PageImpl.getComponentElementByNeste dId(PageImpl.java:83) o org.apache.tapestry.internal.services.ActionLinkHandlerImpl.handle(ActionL inkHandlerImpl.java:69) o org.apache.tapestry.internal.services.ActionLinkHandlerImpl.handle(ActionL inkHandlerImpl.java:53) o org.apache.tapestry.internal.services.ComponentActionDispatcher.dispatch(C omponentActionDispatcher.java:115) o org.apache.tapestry.services.TapestryModule$12.service(TapestryModule.java :1201) o org.apache.tapestry.internal.services.LocalizationFilter.service(Localizat ionFilter.java:43) o org.apache.tapestry.services.TapestryModule$3.service(TapestryModule.java: 736) o org.apache.tapestry.internal.services.StaticFilesFilter.service(StaticFile sFilter.java:63) o org.apache.tapestry.internal.services.CheckForUpdatesFilter$2.invoke(Check ForUpdatesFilter.java:91) o org.apache.tapestry.internal.services.CheckForUpdatesFilter$2.invoke(Check ForUpdatesFilter.java:82) o org.apache.tapestry.ioc.internal.util.ConcurrentBarrier.withRead(Concurren tBarrier.java:77) o org.apache.tapestry.internal.services.CheckForUpdatesFilter.service(CheckF orUpdatesFilter.java:104) o org.apache.tapestry.services.TapestryModule$11.service(TapestryModule.java :1179) o org.apache.tapestry.TapestryFilter.doFilter(TapestryFilter.java:115) o org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandl er.java:1065) o org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:365) o org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:185 ) o org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) o org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:689) o org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:391) o org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCo llection.java:146) o org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java: 114) o org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139) o org.mortbay.jetty.Server.handle(Server.java:285) o org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:457) o org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnect ion.java:751) o org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:500) o org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:209) o org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:357) o org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:32 9) o org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java :475) Request Context Path none (deployed as root) Request Path /Start.html Web.xml contains: context-param param-nametapestry.app-package/param-name param-valuecom.bt.oi.scorecard/param-value /context-param package com.bt.oi.scorecard.pages; public class Start { public Date getCurrentTime() { return new Date(); } } /src/main/webapp/WEB-INF/Start.html - html xmlns:t=http://tapestry.apache.org/schema/tapestry_5_0_0.xsd; head titlemyapp Start Page/title /head body h1myapp Start Page/h1 p This is the start page for this application, a good place to start your modifications. Just to prove this is live: /p p The current time is: ${currentTime}. /p p [a t:type=PageLink t:page=Startrefresh/a] /p /body /html Thanks, Alex
Session invalidate question
Hi Everyone, I want to redirect to a page (other than my home page) and invalidate the session there. After i call invalidate I get an exception that states the session has already been invalidated, even if I invalidate the session on the target page in pageEndRender. The question is how do I delay the invalidate on the target page long enough to prevent this exception. For Example: public void pageEndRender(PageEvent e) { if (getRequest().getSession(false) != null){ try { //some clean up code here getRequest().getSession(false).invalidate(); } catch (Exception ex){ //XXX -Exception still appears at runtime in tomcat which cannot be caught } } } Produces The following stack trace: WARN - Exception during post-request cleanup: setAttribute: Session already invalidated - org.apache.tapestry.error.RequestExceptionReporterImpl (45) java.lang.IllegalStateException: setAttribute: Session already invalidated at org.apache.catalina.session.StandardSession.setAttribute(StandardSession.java:1251) at org.apache.catalina.session.StandardSession.setAttribute(StandardSession.java:1233) at org.apache.catalina.session.StandardSessionFacade.setAttribute(StandardSessionFacade.java:129) at org.apache.tapestry.web.ServletWebSession.setAttribute(ServletWebSession.java:62) at org.apache.tapestry.engine.state.SessionScopeManager.store(SessionScopeManager.java:90) at $StateObjectPersistenceManager_1122965794b.store($StateObjectPersistenceManager_1122965794b.java) at org.apache.tapestry.engine.state.StateObjectManagerImpl.store(StateObjectManagerImpl.java:56) at org.apache.tapestry.engine.state.ApplicationStateManagerImpl.flush(ApplicationStateManagerImpl.java:87) at $ApplicationStateManager_1122965778e.flush($ApplicationStateManager_1122965778e.java) at $ApplicationStateManager_1122965778f.flush($ApplicationStateManager_1122965778f.java) at org.apache.tapestry.engine.AbstractEngine.service(AbstractEngine.java:283) at org.apache.tapestry.services.impl.InvokeEngineTerminator.service(InvokeEngineTerminator.java:54) at $WebRequestServicer_1122965784e.service($WebRequestServicer_112296578 etc Thanks Peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: T5 Tapestry IoC services as webservices?
Restfully, I would think. T5 can return almost anything to the browser from a URL, even streams. On 4/24/07, Howard Lewis Ship [EMAIL PROTECTED] wrote: It makes some kind of sense as an add-on. SOAP or REST? (I'd choose REST, right off the bat). It gets uglier from there! On 4/24/07, Bill Holloway [EMAIL PROTECTED] wrote: Are there any plans for tools to export T5 IoC services as webservices? bill -- The future is here. It's just not evenly distributed yet. -- Traditional - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Howard M. Lewis Ship TWD Consulting, Inc. Independent J2EE / Open-Source Java Consultant Creator and PMC Chair, Apache Tapestry Creator, Apache HiveMind Professional Tapestry training, mentoring, support and project work. http://howardlewisship.com -- The future is here. It's just not evenly distributed yet. -- Traditional - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: T5: Component com.bt.oi.scorecard.pages.Start does not contain an embedded component with id 'html
even odder.. when I go to the root of the webapp it actually works.. ie. http://localhost:9000/ works but http://localhost:9000/Start.html does not what on earth have i done wrong.. - Original Message - From: Alex Fishlock [EMAIL PROTECTED] To: users@tapestry.apache.org Sent: 25 April 2007 16:44:13 o'clock (GMT) Europe/London Subject: T5: Component com.bt.oi.scorecard.pages.Start does not contain an embedded component with id 'html Can anyone help here? I am just stumped. I have a maven2 app with spring 2, hibernate, and xfire.. the rest works fine. I have also jetty 6.1.1 plugin I do the dependencies for tapestry, and everything is fine in the classpath. However every time I try and do anything tapestry I get the following: . org.apache.tapestry.ioc.internal.util.TapestryException Component com.bt.oi.scorecard.pages.Start does not contain an embedded component with id 'html'. Stack trace o org.apache.tapestry.internal.structure.ComponentPageElementImpl.getEmbedde dElement(ComponentPageElementImpl.java:836) o org.apache.tapestry.internal.structure.PageImpl.getComponentElementByNeste dId(PageImpl.java:83) o org.apache.tapestry.internal.services.ActionLinkHandlerImpl.handle(ActionL inkHandlerImpl.java:69) o org.apache.tapestry.internal.services.ActionLinkHandlerImpl.handle(ActionL inkHandlerImpl.java:53) o org.apache.tapestry.internal.services.ComponentActionDispatcher.dispatch(C omponentActionDispatcher.java:115) o org.apache.tapestry.services.TapestryModule$12.service(TapestryModule.java :1201) o org.apache.tapestry.internal.services.LocalizationFilter.service(Localizat ionFilter.java:43) o org.apache.tapestry.services.TapestryModule$3.service(TapestryModule.java: 736) o org.apache.tapestry.internal.services.StaticFilesFilter.service(StaticFile sFilter.java:63) o org.apache.tapestry.internal.services.CheckForUpdatesFilter$2.invoke(Check ForUpdatesFilter.java:91) o org.apache.tapestry.internal.services.CheckForUpdatesFilter$2.invoke(Check ForUpdatesFilter.java:82) o org.apache.tapestry.ioc.internal.util.ConcurrentBarrier.withRead(Concurren tBarrier.java:77) o org.apache.tapestry.internal.services.CheckForUpdatesFilter.service(CheckF orUpdatesFilter.java:104) o org.apache.tapestry.services.TapestryModule$11.service(TapestryModule.java :1179) o org.apache.tapestry.TapestryFilter.doFilter(TapestryFilter.java:115) o org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandl er.java:1065) o org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:365) o org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:185 ) o org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) o org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:689) o org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:391) o org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCo llection.java:146) o org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java: 114) o org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139) o org.mortbay.jetty.Server.handle(Server.java:285) o org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:457) o org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnect ion.java:751) o org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:500) o org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:209) o org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:357) o org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:32 9) o org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java :475) Request Context Path none (deployed as root) Request Path /Start.html Web.xml contains: context-param param-nametapestry.app-package/param-name param-valuecom.bt.oi.scorecard/param-value /context-param package com.bt.oi.scorecard.pages; public class Start { public Date getCurrentTime() { return new Date(); } } /src/main/webapp/WEB-INF/Start.html - html xmlns:t=http://tapestry.apache.org/schema/tapestry_5_0_0.xsd; head titlemyapp Start Page/title /head body h1myapp Start Page/h1 p This is the start page for this application, a good place to start your modifications. Just to prove this is live: /p p The current time is: ${currentTime}. /p p [a t:type=PageLink t:page=Startrefresh/a] /p /body /html Thanks, Alex - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: T5: Component com.bt.oi.scorecard.pages.Start does not contain an embedded component with id 'html
http://localhost:9000/start would also work start.html is a reference to an action request: page start, component html, event type action (the default) and that's what Tapestry is complaining about. On 4/25/07, Alex Fishlock [EMAIL PROTECTED] wrote: even odder.. when I go to the root of the webapp it actually works.. ie. http://localhost:9000/ works but http://localhost:9000/Start.html does not what on earth have i done wrong.. - Original Message - From: Alex Fishlock [EMAIL PROTECTED] To: users@tapestry.apache.org Sent: 25 April 2007 16:44:13 o'clock (GMT) Europe/London Subject: T5: Component com.bt.oi.scorecard.pages.Start does not contain an embedded component with id 'html Can anyone help here? I am just stumped. I have a maven2 app with spring 2, hibernate, and xfire.. the rest works fine. I have also jetty 6.1.1 plugin I do the dependencies for tapestry, and everything is fine in the classpath. However every time I try and do anything tapestry I get the following: . org.apache.tapestry.ioc.internal.util.TapestryException Component com.bt.oi.scorecard.pages.Start does not contain an embedded component with id 'html'. Stack trace o org.apache.tapestry.internal.structure.ComponentPageElementImpl.getEmbedde dElement(ComponentPageElementImpl.java:836) o org.apache.tapestry.internal.structure.PageImpl.getComponentElementByNeste dId(PageImpl.java:83) o org.apache.tapestry.internal.services.ActionLinkHandlerImpl.handle(ActionL inkHandlerImpl.java:69) o org.apache.tapestry.internal.services.ActionLinkHandlerImpl.handle(ActionL inkHandlerImpl.java:53) o org.apache.tapestry.internal.services.ComponentActionDispatcher.dispatch(C omponentActionDispatcher.java:115) o org.apache.tapestry.services.TapestryModule$12.service(TapestryModule.java :1201) o org.apache.tapestry.internal.services.LocalizationFilter.service(Localizat ionFilter.java:43) o org.apache.tapestry.services.TapestryModule$3.service(TapestryModule.java: 736) o org.apache.tapestry.internal.services.StaticFilesFilter.service(StaticFile sFilter.java:63) o org.apache.tapestry.internal.services.CheckForUpdatesFilter$2.invoke(Check ForUpdatesFilter.java:91) o org.apache.tapestry.internal.services.CheckForUpdatesFilter$2.invoke(Check ForUpdatesFilter.java:82) o org.apache.tapestry.ioc.internal.util.ConcurrentBarrier.withRead(Concurren tBarrier.java:77) o org.apache.tapestry.internal.services.CheckForUpdatesFilter.service(CheckF orUpdatesFilter.java:104) o org.apache.tapestry.services.TapestryModule$11.service(TapestryModule.java :1179) o org.apache.tapestry.TapestryFilter.doFilter(TapestryFilter.java:115) o org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandl er.java:1065) o org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:365) o org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:185 ) o org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) o org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:689) o org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:391) o org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCo llection.java:146) o org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java: 114) o org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139) o org.mortbay.jetty.Server.handle(Server.java:285) o org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:457) o org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnect ion.java:751) o org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:500) o org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:209) o org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:357) o org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:32 9) o org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java :475) Request Context Path none (deployed as root) Request Path /Start.html Web.xml contains: context-param param-nametapestry.app-package/param-name param-valuecom.bt.oi.scorecard/param-value /context-param package com.bt.oi.scorecard.pages; public class Start { public Date getCurrentTime() { return new Date(); } } /src/main/webapp/WEB-INF/Start.html - html xmlns:t=http://tapestry.apache.org/schema/tapestry_5_0_0.xsd; head titlemyapp Start Page/title /head body h1myapp Start Page/h1 p This is the start page for this application, a good place to start your modifications. Just to prove this is live: /p p The current time is: ${currentTime}. /p p [a t:type=PageLink t:page=Startrefresh/a] /p /body /html Thanks, Alex
Re: T5: Component com.bt.oi.scorecard.pages.Start does not contain an embedded component with id 'html
I guess this is because the default page is called Start (T5 convention you can change) and that you should not call http://localhost:9090/start.html but http://localhost:9090/start I hope this helps, Jérôme. On 4/25/07, Alex Fishlock [EMAIL PROTECTED] wrote: even odder.. when I go to the root of the webapp it actually works.. ie. http://localhost:9000/ works but http://localhost:9000/Start.html does not what on earth have i done wrong.. - Original Message - From: Alex Fishlock [EMAIL PROTECTED] To: users@tapestry.apache.org Sent: 25 April 2007 16:44:13 o'clock (GMT) Europe/London Subject: T5: Component com.bt.oi.scorecard.pages.Start does not contain an embedded component with id 'html Can anyone help here? I am just stumped. I have a maven2 app with spring 2, hibernate, and xfire.. the rest works fine. I have also jetty 6.1.1 plugin I do the dependencies for tapestry, and everything is fine in the classpath. However every time I try and do anything tapestry I get the following: . org.apache.tapestry.ioc.internal.util.TapestryException Component com.bt.oi.scorecard.pages.Start does not contain an embedded component with id 'html'. Stack trace o org.apache.tapestry.internal.structure.ComponentPageElementImpl.getEmbedde dElement(ComponentPageElementImpl.java:836) o org.apache.tapestry.internal.structure.PageImpl.getComponentElementByNeste dId(PageImpl.java:83) o org.apache.tapestry.internal.services.ActionLinkHandlerImpl.handle(ActionL inkHandlerImpl.java:69) o org.apache.tapestry.internal.services.ActionLinkHandlerImpl.handle(ActionL inkHandlerImpl.java:53) o org.apache.tapestry.internal.services.ComponentActionDispatcher.dispatch(C omponentActionDispatcher.java:115) o org.apache.tapestry.services.TapestryModule$12.service(TapestryModule.java :1201) o org.apache.tapestry.internal.services.LocalizationFilter.service(Localizat ionFilter.java:43) o org.apache.tapestry.services.TapestryModule$3.service(TapestryModule.java: 736) o org.apache.tapestry.internal.services.StaticFilesFilter.service(StaticFile sFilter.java:63) o org.apache.tapestry.internal.services.CheckForUpdatesFilter$2.invoke(Check ForUpdatesFilter.java:91) o org.apache.tapestry.internal.services.CheckForUpdatesFilter$2.invoke(Check ForUpdatesFilter.java:82) o org.apache.tapestry.ioc.internal.util.ConcurrentBarrier.withRead(Concurren tBarrier.java:77) o org.apache.tapestry.internal.services.CheckForUpdatesFilter.service(CheckF orUpdatesFilter.java:104) o org.apache.tapestry.services.TapestryModule$11.service(TapestryModule.java :1179) o org.apache.tapestry.TapestryFilter.doFilter(TapestryFilter.java:115) o org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandl er.java:1065) o org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:365) o org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:185 ) o org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) o org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:689) o org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:391) o org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCo llection.java:146) o org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java: 114) o org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139) o org.mortbay.jetty.Server.handle(Server.java:285) o org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:457) o org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnect ion.java:751) o org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:500) o org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:209) o org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:357) o org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:32 9) o org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java :475) Request Context Path none (deployed as root) Request Path /Start.html Web.xml contains: context-param param-nametapestry.app-package/param-name param-valuecom.bt.oi.scorecard/param-value /context-param package com.bt.oi.scorecard.pages; public class Start { public Date getCurrentTime() { return new Date(); } } /src/main/webapp/WEB-INF/Start.html - html xmlns:t=http://tapestry.apache.org/schema/tapestry_5_0_0.xsd; head titlemyapp Start Page/title /head body h1myapp Start Page/h1 p This is the start page for this application, a good place to start your modifications. Just to prove this is live: /p p The current time is: ${currentTime}. /p p [a t:type=PageLink t:page=Startrefresh/a] /p /body /html Thanks, Alex
Re: T5: Component com.bt.oi.scorecard.pages.Start does not contain an embedded component with id 'html
t5 newbie idiot that was quick. thanks, thats it.. right, I'm off.. one t5 app coming up Looking forward to your talk a javaone howard.. I'll be heckling. - Original Message - From: Howard Lewis Ship [EMAIL PROTECTED] To: Tapestry users users@tapestry.apache.org Sent: 25 April 2007 17:18:20 o'clock (GMT) Europe/London Subject: Re: T5: Component com.bt.oi.scorecard.pages.Start does not contain an embedded component with id 'html http://localhost:9000/start would also work start.html is a reference to an action request: page start, component html, event type action (the default) and that's what Tapestry is complaining about. On 4/25/07, Alex Fishlock [EMAIL PROTECTED] wrote: even odder.. when I go to the root of the webapp it actually works.. ie. http://localhost:9000/ works but http://localhost:9000/Start.html does not what on earth have i done wrong.. - Original Message - From: Alex Fishlock [EMAIL PROTECTED] To: users@tapestry.apache.org Sent: 25 April 2007 16:44:13 o'clock (GMT) Europe/London Subject: T5: Component com.bt.oi.scorecard.pages.Start does not contain an embedded component with id 'html Can anyone help here? I am just stumped. I have a maven2 app with spring 2, hibernate, and xfire.. the rest works fine. I have also jetty 6.1.1 plugin I do the dependencies for tapestry, and everything is fine in the classpath. However every time I try and do anything tapestry I get the following: . org.apache.tapestry.ioc.internal.util.TapestryException Component com.bt.oi.scorecard.pages.Start does not contain an embedded component with id 'html'. Stack trace o org.apache.tapestry.internal.structure.ComponentPageElementImpl.getEmbedde dElement(ComponentPageElementImpl.java:836) o org.apache.tapestry.internal.structure.PageImpl.getComponentElementByNeste dId(PageImpl.java:83) o org.apache.tapestry.internal.services.ActionLinkHandlerImpl.handle(ActionL inkHandlerImpl.java:69) o org.apache.tapestry.internal.services.ActionLinkHandlerImpl.handle(ActionL inkHandlerImpl.java:53) o org.apache.tapestry.internal.services.ComponentActionDispatcher.dispatch(C omponentActionDispatcher.java:115) o org.apache.tapestry.services.TapestryModule$12.service(TapestryModule.java :1201) o org.apache.tapestry.internal.services.LocalizationFilter.service(Localizat ionFilter.java:43) o org.apache.tapestry.services.TapestryModule$3.service(TapestryModule.java: 736) o org.apache.tapestry.internal.services.StaticFilesFilter.service(StaticFile sFilter.java:63) o org.apache.tapestry.internal.services.CheckForUpdatesFilter$2.invoke(Check ForUpdatesFilter.java:91) o org.apache.tapestry.internal.services.CheckForUpdatesFilter$2.invoke(Check ForUpdatesFilter.java:82) o org.apache.tapestry.ioc.internal.util.ConcurrentBarrier.withRead(Concurren tBarrier.java:77) o org.apache.tapestry.internal.services.CheckForUpdatesFilter.service(CheckF orUpdatesFilter.java:104) o org.apache.tapestry.services.TapestryModule$11.service(TapestryModule.java :1179) o org.apache.tapestry.TapestryFilter.doFilter(TapestryFilter.java:115) o org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandl er.java:1065) o org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:365) o org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:185 ) o org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) o org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:689) o org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:391) o org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCo llection.java:146) o org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java: 114) o org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139) o org.mortbay.jetty.Server.handle(Server.java:285) o org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:457) o org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnect ion.java:751) o org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:500) o org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:209) o org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:357) o org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:32 9) o org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java :475) Request Context Path none (deployed as root) Request Path /Start.html Web.xml contains: context-param param-nametapestry.app-package/param-name param-valuecom.bt.oi.scorecard/param-value /context-param package com.bt.oi.scorecard.pages; public class Start { public Date getCurrentTime() { return new Date(); } }
Re: T5: Component com.bt.oi.scorecard.pages.Start does not contain an embedded component with id 'html
On 4/25/07, Alex Fishlock [EMAIL PROTECTED] wrote: t5 newbie idiot I don't think so; I think the framework may need a couple of special cases for this, since its seemingly obvious (the start page is start.html, right?). that was quick. thanks, thats it.. right, I'm off.. one t5 app coming up Looking forward to your talk a javaone howard.. I'll be heckling. - Original Message - From: Howard Lewis Ship [EMAIL PROTECTED] To: Tapestry users users@tapestry.apache.org Sent: 25 April 2007 17:18:20 o'clock (GMT) Europe/London Subject: Re: T5: Component com.bt.oi.scorecard.pages.Start does not contain an embedded component with id 'html http://localhost:9000/start would also work start.html is a reference to an action request: page start, component html, event type action (the default) and that's what Tapestry is complaining about. On 4/25/07, Alex Fishlock [EMAIL PROTECTED] wrote: even odder.. when I go to the root of the webapp it actually works.. ie. http://localhost:9000/ works but http://localhost:9000/Start.html does not what on earth have i done wrong.. - Original Message - From: Alex Fishlock [EMAIL PROTECTED] To: users@tapestry.apache.org Sent: 25 April 2007 16:44:13 o'clock (GMT) Europe/London Subject: T5: Component com.bt.oi.scorecard.pages.Start does not contain an embedded component with id 'html Can anyone help here? I am just stumped. I have a maven2 app with spring 2, hibernate, and xfire.. the rest works fine. I have also jetty 6.1.1 plugin I do the dependencies for tapestry, and everything is fine in the classpath. However every time I try and do anything tapestry I get the following: . org.apache.tapestry.ioc.internal.util.TapestryException Component com.bt.oi.scorecard.pages.Start does not contain an embedded component with id 'html'. Stack trace o org.apache.tapestry.internal.structure.ComponentPageElementImpl.getEmbedde dElement(ComponentPageElementImpl.java:836) o org.apache.tapestry.internal.structure.PageImpl.getComponentElementByNeste dId(PageImpl.java:83) o org.apache.tapestry.internal.services.ActionLinkHandlerImpl.handle (ActionL inkHandlerImpl.java:69) o org.apache.tapestry.internal.services.ActionLinkHandlerImpl.handle (ActionL inkHandlerImpl.java:53) o org.apache.tapestry.internal.services.ComponentActionDispatcher.dispatch (C omponentActionDispatcher.java:115) o org.apache.tapestry.services.TapestryModule$12.service( TapestryModule.java :1201) o org.apache.tapestry.internal.services.LocalizationFilter.service (Localizat ionFilter.java:43) o org.apache.tapestry.services.TapestryModule$3.service( TapestryModule.java: 736) o org.apache.tapestry.internal.services.StaticFilesFilter.service (StaticFile sFilter.java:63) o org.apache.tapestry.internal.services.CheckForUpdatesFilter$2.invoke (Check ForUpdatesFilter.java:91) o org.apache.tapestry.internal.services.CheckForUpdatesFilter$2.invoke (Check ForUpdatesFilter.java:82) o org.apache.tapestry.ioc.internal.util.ConcurrentBarrier.withRead (Concurren tBarrier.java:77) o org.apache.tapestry.internal.services.CheckForUpdatesFilter.service (CheckF orUpdatesFilter.java:104) o org.apache.tapestry.services.TapestryModule$11.service( TapestryModule.java :1179) o org.apache.tapestry.TapestryFilter.doFilter(TapestryFilter.java:115) o org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter (ServletHandl er.java:1065) o org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:365) o org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java :185 ) o org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) o org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:689) o org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:391) o org.mortbay.jetty.handler.ContextHandlerCollection.handle (ContextHandlerCo llection.java:146) o org.mortbay.jetty.handler.HandlerCollection.handle( HandlerCollection.java: 114) o org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139) o org.mortbay.jetty.Server.handle(Server.java:285) o org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:457) o org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete (HttpConnect ion.java:751) o org.mortbay.jetty.HttpParser.parseNext(HttpParser.java :500) o org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:209) o org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:357) o org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java :32 9) o org.mortbay.thread.BoundedThreadPool$PoolThread.run( BoundedThreadPool.java :475) Request Context Path none (deployed as root) Request Path /Start.html Web.xml contains: context-param param-nametapestry.app-package/param-name param-valuecom.bt.oi.scorecard/param-value
InjectSpring and NullPointerException
I don't know if this should be asked here or in the SpringFramework forum. I have a bean defined and I need to inject it into a property inside a class that extends BasePage. But when I read this property I get a NullPointerException. Before that, I have tried without providing an implementation for that setter (leaving it asbtract), but Tapestry complains. So, what is the right thing to do? @InjectSpring(somebean) public abstract void SetSomething(); or @InjectSpring(somebean) public void SetSomething(SomeObject so){ this.so = so; } Thanks. -- View this message in context: http://www.nabble.com/InjectSpring-and-NullPointerException-tf3646961.html#a10185808 Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Couple OGNL 2.7 questions
For option 1 yes I've done this locally but not checked it in yet, you should be able to control everything via logging categories / levels. I'm still a little worried about turning this off for get operations as they're definitely bad and I'm not sure anyone will ever notice them otherwise. Are you really getting that many ? I might have accidently turned on too many during the last deploy. WRT Jira emails I'm not sure why people aren't getting notified of ticket changes but that definitely can't be a good thing. Here I was adding comments and thinking people were ignoring me and it was really just the system not sending emails the whole time. :) I'll poke around and see if this is an option on that jira instance. On 4/25/07, Ben Dotte [EMAIL PROTECTED] wrote: We've been working with the latest 4.1.2 snapshots and OGNL 2.7 snapshots for about a week now and things seem to be working a lot better than they were. There are still plenty of places where OGNL is broken but thankfully the failsafe feature seems to handle most of these situations. I have a couple questions about that though: 1. Is it possible to suppress the OGNL failsafe stack traces that get output to the console? I can understand why this is done so people will report the OGNL bugs but given the volume of these that we see it makes our console unusable when we need it for other things. 2. I can't seem to get the OGNL Jira system to send me any notifications about anything. If a bug I reported is commented on, resolved, or closed, I don't get any e-mail about it. I have even tried Watching my own cases but still nothing. Is this just me or is there some setting on the Jira system that needs to be fixed by an administrator? Thanks, Ben - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Jesse Kuhnert Tapestry/Dojo team member/developer Open source based consulting work centered around dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com
Re: InjectSpring and NullPointerException
Santiago Fernández wrote: Hi, mateamargo. The getter @InjectSpring(somebean) public abstract SomeBean getSomething(); works fine... but be careful when you call getSomething()... if you call this getter inside an initialize() method, you will get an exception, because the property isn't injected yet... You must invoque this property from a listener, or PageAttachListener.pageAttached().. Saludos desde Argentina :-) Ok, but If use an abstract method Tapestry complains saying that the method hasn't an implementation. Saludos che. -- View this message in context: http://www.nabble.com/InjectSpring-and-NullPointerException-tf3646961.html#a10186596 Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: InjectSpring and NullPointerException
This code works for me: public abstract class Home extends BasePage { ... @InjectSpring(someBean) public abstract SomeBean getSomeBean(); ... Check this code: http://www.google.com/codesearch?hl=enq=+doc:9AU8EeUPIqc+%40InjectSpring%5C(+show:9AU8EeUPIqc:RIIGoLvmuBc:IOb23uxRU70sa=Ncd=3ct=rics_p=http://howardlewisship.com/downloads/tapestry-javaforge/tapestry-spring-1.0.0-src.zipcs_f=tapestry-spring-1.0.0/src/test/java/com/javaforge/tapestry/spring/pages/Home.java#a0 Saludos 2007/4/25, mateamargo [EMAIL PROTECTED]: Santiago Fernández wrote: Hi, mateamargo. The getter @InjectSpring(somebean) public abstract SomeBean getSomething(); works fine... but be careful when you call getSomething()... if you call this getter inside an initialize() method, you will get an exception, because the property isn't injected yet... You must invoque this property from a listener, or PageAttachListener.pageAttached().. Saludos desde Argentina :-) Ok, but If use an abstract method Tapestry complains saying that the method hasn't an implementation. Saludos che. -- View this message in context: http://www.nabble.com/InjectSpring-and-NullPointerException-tf3646961.html#a10186596 Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: InjectSpring and NullPointerException
I use this with good results: @Inject(spring:somebean) private SomeBean somebean; - Original Message - From: mateamargo [EMAIL PROTECTED] To: users@tapestry.apache.org Sent: 25 April 2007 18:35:21 o'clock (GMT) Europe/London Subject: InjectSpring and NullPointerException I don't know if this should be asked here or in the SpringFramework forum. I have a bean defined and I need to inject it into a property inside a class that extends BasePage. But when I read this property I get a NullPointerException. Before that, I have tried without providing an implementation for that setter (leaving it asbtract), but Tapestry complains. So, what is the right thing to do? @InjectSpring(somebean) public abstract void SetSomething(); or @InjectSpring(somebean) public void SetSomething(SomeObject so){ this.so = so; } Thanks. -- View this message in context: http://www.nabble.com/InjectSpring-and-NullPointerException-tf3646961.html#a10185808 Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: InjectSpring and NullPointerException
Hi, mateamargo. The getter @InjectSpring(somebean) public abstract SomeBean getSomething(); works fine... but be careful when you call getSomething()... if you call this getter inside an initialize() method, you will get an exception, because the property isn't injected yet... You must invoque this property from a listener, or PageAttachListener.pageAttached().. Saludos desde Argentina :-) 2007/4/25, mateamargo [EMAIL PROTECTED]: I don't know if this should be asked here or in the SpringFramework forum. I have a bean defined and I need to inject it into a property inside a class that extends BasePage. But when I read this property I get a NullPointerException. Before that, I have tried without providing an implementation for that setter (leaving it asbtract), but Tapestry complains. So, what is the right thing to do? @InjectSpring(somebean) public abstract void SetSomething(); or @InjectSpring(somebean) public void SetSomething(SomeObject so){ this.so = so; } Thanks. -- View this message in context: http://www.nabble.com/InjectSpring-and-NullPointerException-tf3646961.html#a10185808 Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: T5 Tapestry IoC services as webservices?
On 4/25/07, Bill Holloway [EMAIL PROTECTED] wrote: Restfully, I would think. T5 can return almost anything to the browser from a URL, even streams. That's idea has crawled my mind a lot of times... -- Massimo http://meridio.blogspot.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: InjectSpring and NullPointerException
Alex Fishlock wrote: I use this with good results: @Inject(spring:somebean) private SomeBean somebean; Without getter or setter? Are you using a .page file for each class? -- View this message in context: http://www.nabble.com/InjectSpring-and-NullPointerException-tf3646961.html#a10186539 Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Suggested version
Over the last year, we have slowly been converting an internal application from a home brewed infrastructure to Tapestry 4.0. Some of the new functionality we need to add would best be handled with Ajax and I so I started looking at the newer versions of Tapestry. I can't seem to figure out which version of Tapestry I should upgrade to. The official distribution page lists Tapestry 4.0.2 as the latest stable build. This version doesn't support Ajax to the best of my knowledge. Folks using Maven2 seem to be encouraged to use the 4.1.2-SNAPSHOT. Is it stable enough to be used in a production environment? Is it really a good idea? Is there an official distribution of 4.1.0 or 4.1.1 I should consider? Reading the e-mail list, I see a lot of people using Tapestry 5.0.3. Is there enough functionality ready for me to consider it? I assume this will be the longest migration path for us, but since I need to upgrade, if now is the time, so be it. Thank you in advance for any help. Tony Nelson Starpoint Solutions - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Couple OGNL 2.7 questions
Great, please let us know how to suppress the stack traces once you have it checked in. As far as I can tell there is no way to control the log output because it is directly calling t.printStackTrace(), sending the output to System.err (HivemindExpressionCompiler.java lines 165 and 212): try { classFab.addMethod(Modifier.PUBLIC, valueGetter, getBody); } catch (Throwable t) { t.printStackTrace(); generateFailSafe(context, expression, root); return; } Wouldn't you need to be using the _log logger on there instead of t.printStackTrace() in order to suppress these? If you get the Jira e-mails working that would be great too; I wouldn't have to check the system every day to see what has happened :) Thanks again, Ben -Original Message- From: Jesse Kuhnert [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 25, 2007 1:18 PM To: Tapestry users Subject: Re: Couple OGNL 2.7 questions For option 1 yes I've done this locally but not checked it in yet, you should be able to control everything via logging categories / levels. I'm still a little worried about turning this off for get operations as they're definitely bad and I'm not sure anyone will ever notice them otherwise. Are you really getting that many ? I might have accidently turned on too many during the last deploy. WRT Jira emails I'm not sure why people aren't getting notified of ticket changes but that definitely can't be a good thing. Here I was adding comments and thinking people were ignoring me and it was really just the system not sending emails the whole time. :) I'll poke around and see if this is an option on that jira instance. On 4/25/07, Ben Dotte [EMAIL PROTECTED] wrote: We've been working with the latest 4.1.2 snapshots and OGNL 2.7 snapshots for about a week now and things seem to be working a lot better than they were. There are still plenty of places where OGNL is broken but thankfully the failsafe feature seems to handle most of these situations. I have a couple questions about that though: 1. Is it possible to suppress the OGNL failsafe stack traces that get output to the console? I can understand why this is done so people will report the OGNL bugs but given the volume of these that we see it makes our console unusable when we need it for other things. 2. I can't seem to get the OGNL Jira system to send me any notifications about anything. If a bug I reported is commented on, resolved, or closed, I don't get any e-mail about it. I have even tried Watching my own cases but still nothing. Is this just me or is there some setting on the Jira system that needs to be fixed by an administrator? Thanks, Ben - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Jesse Kuhnert Tapestry/Dojo team member/developer Open source based consulting work centered around dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tap 4.1.2 Snapshot : Unable to parse a validator
Thanks Jesse! The exception I mentioned in my orginal email has gone away with today's Tap 4.1.2 snapshot. But I still have another exception. Unable to read OGNL expression 'parsed OGNL expression' of [EMAIL PROTECTED]/creditDer/NToDefault]: source is null for getProperty(null, nToDefaultBean) org.apache.hivemind.ApplicationRuntimeException Unable to read OGNL expression 'parsed OGNL expression' of [EMAIL PROTECTED]/creditDer/NToDefault]: source is null for getProperty(null, nToDefaultBean) component: [EMAIL PROTECTED]/creditDer/NToDefault] location: context:/WEB-INF/pages/creditDer/NToDefault.page, line 7, column 22 2 !DOCTYPE page-specification PUBLIC 3 -//Apache Software Foundation//Tapestry Specification 4.0//EN 4 http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd; 5 6 7 page-specification 8 property name=myValue / 9 10 property name=myRow / 11 12 component id=form type=Form [ +/- ] Exception: source is null for getProperty(null, nToDefaultBean) ognl.OgnlException source is null for getProperty(null, nToDefaultBean) Stack Trace: * ognl.OgnlRuntime.getProperty(OgnlRuntime.java:1750) * ognl.ASTProperty.getValueBody(ASTProperty.java:109) * ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:200) * ognl.SimpleNode.getValue(SimpleNode.java:244) * ognl.ASTChain.getValueBody(ASTChain.java:137) * ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:200) * ognl.SimpleNode.getValue(SimpleNode.java:244) * ognl.ASTCtor.getValueBody(ASTCtor.java:84) * ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:200) * ognl.SimpleNode.getValue(SimpleNode.java:244) * ognl.ASTCtor18141583Accessor.get(ASTCtor18141583Accessor.java) * org.apache.tapestry.services.impl.ExpressionEvaluatorImpl.read(ExpressionEvaluatorImpl.java:141) * $ExpressionEvaluator_1122a29ca37.read($ExpressionEvaluator_1122a29ca37.java) * org.apache.tapestry.binding.ExpressionBinding.resolveExpression(ExpressionBinding.java:128) * org.apache.tapestry.binding.ExpressionBinding.getObject(ExpressionBinding.java:113) * org.apache.tapestry.components.ForBean.evaluateSourceIterator(ForBean.java:693) * org.apache.tapestry.components.ForBean.storeSourceData(ForBean.java:409) * org.apache.tapestry.components.ForBean.getData(ForBean.java:333) * org.apache.tapestry.components.ForBean.renderComponent(ForBean.java:130) * org.apache.tapestry.AbstractComponent.render(AbstractComponent.java:712) * org.apache.tapestry.services.impl.DefaultResponseBuilder.render(DefaultResponseBuilder.java:184) * org.apache.tapestry.AbstractComponent.renderBody(AbstractComponent.java:525) * org.apache.tapestry.form.FormSupportImpl.render(FormSupportImpl.java:514) * org.apache.tapestry.form.Form.renderComponent(Form.java:226) * org.apache.tapestry.AbstractComponent.render(AbstractComponent.java:712) * org.apache.tapestry.services.impl.DefaultResponseBuilder.render(DefaultResponseBuilder.java:184) * org.apache.tapestry.AbstractComponent.renderBody(AbstractComponent.java:525) * org.apache.tapestry.components.RenderBody.renderComponent(RenderBody.java:41) * org.apache.tapestry.AbstractComponent.render(AbstractComponent.java:712) * org.apache.tapestry.services.impl.DefaultResponseBuilder.render(DefaultResponseBuilder.java:184) * org.apache.tapestry.AbstractComponent.renderBody(AbstractComponent.java:525) * org.apache.tapestry.html.Body.renderComponent(Body.java:38) * org.apache.tapestry.AbstractComponent.render(AbstractComponent.java:712) * org.apache.tapestry.services.impl.DefaultResponseBuilder.render(DefaultResponseBuilder.java:184) * org.apache.tapestry.AbstractComponent.renderBody(AbstractComponent.java:525) === In the console, I also have the following exception. org.apache.hivemind.ApplicationRuntimeException: Unable to add method java.lang.Object get(ognl.OgnlContext, java.lang.Object) to class ognl.ASTCtor18141583Accessor: [source error] syntax error near new int[.getNToDefau at org.apache.tapestry.enhance.ClassFabImpl.addMethod(ClassFabImpl.java:278) at org.apache.tapestry.services.impl.HiveMindExpressionCompiler.compileExpression(HiveMindExpressionCompiler.java:162) at ognl.OgnlRuntime.compileExpression(OgnlRuntime.java:387) at ognl.Ognl.compileExpression(Ognl.java:123) at org.apache.tapestry.services.impl.ExpressionCacheImpl.parse(ExpressionCacheImpl.java:129) at org.apache.tapestry.services.impl.ExpressionCacheImpl.getCompiledExpression(ExpressionCacheImpl.java:91) at $ExpressionCache_1122a29ca39.getCompiledExpression($ExpressionCache_1122a29ca39.java) at org.apache.tapestry.binding.ExpressionBinding.resolveExpression(ExpressionBinding.java:122) at org.apache.tapestry.binding.ExpressionBinding.getObject(ExpressionBinding.java:113) at
Re: T5 Tapestry IoC services as webservices?
Since I'm guessing that the functionality required for proper ajax support web services will probably share almost entirely the same set of code (besides having to render things) it's probably not that far off. On 4/25/07, Massimo Lusetti [EMAIL PROTECTED] wrote: On 4/25/07, Bill Holloway [EMAIL PROTECTED] wrote: Restfully, I would think. T5 can return almost anything to the browser from a URL, even streams. That's idea has crawled my mind a lot of times... -- Massimo http://meridio.blogspot.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Jesse Kuhnert Tapestry/Dojo team member/developer Open source based consulting work centered around dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com
Re: InjectSpring and NullPointerException
Jessek wrote: Where are you getting that local member from ? You can't have anything injected and used as a local member because the method you add the annotation to will likely be replaced...So if you've been trying to set a member and seeing it null that's why - it's not actually using your method to inject it. I just typed by memory, in fact it is: public ListPerson getPersons(){ return getPersonDAO().getAll(); } @InjectSpring(personDAObean) public abstract PersonDAO getPersonDAO(); I have added a .page file for this class with this: ?xml version=1.0? !DOCTYPE page-specification PUBLIC -//Apache Software Foundation//Tapestry Specification 4.0//EN http://tapestry.apache.org/dtd/Tapestry_4_0.dtd; page-specification class=com.foo.PersonsList property name=personDAO / /page-specification -- View this message in context: http://www.nabble.com/InjectSpring-and-NullPointerException-tf3646961.html#a10187850 Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: InjectSpring and NullPointerException
Santiago Fernández wrote: Yes, you need a .page file, like every tapestry page. Or set the property org.apache.tapestry.page-class-packages in .application file. Browse into the example: http://www.google.com/codesearch?hl=enq=show:W7d5X-mFWSg:dORw9TpfYA4:F3TWNBX8eZ4sa=Nct=rdcs_p=http://howardlewisship.com/downloads/tapestry-javaforge/tapestry-spring-1.0.0-src.zipcs_f=tapestry-spring-1.0.0/src/test/webapp/WEB-INF/app.application I have used other classes without a .page file without problems. But this I need a property to be injected by Spring and I'm not able to do it. The exception says that cannont read the persons OGNL: tr jwcid=@For source=ognl:persons value=person element=tr The method getPersons: public ListPerson getPersons(){ return PersonDAO.getAll(); } This is because PersonDAO is null, and this is what I need to be injected by Spring. -- View this message in context: http://www.nabble.com/InjectSpring-and-NullPointerException-tf3646961.html#a10187525 Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: InjectSpring and NullPointerException
Where are you getting that local member from ? You can't have anything injected and used as a local member because the method you add the annotation to will likely be replaced...So if you've been trying to set a member and seeing it null that's why - it's not actually using your method to inject it. On 4/25/07, mateamargo [EMAIL PROTECTED] wrote: public ListPerson getPersons(){ return PersonDAO.getAll(); } This is because PersonDAO is null, and this is what I need to be injected by Spring. -- View this message in context: http://www.nabble.com/InjectSpring-and-NullPointerException-tf3646961.html#a10187525 Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Jesse Kuhnert Tapestry/Dojo team member/developer Open source based consulting work centered around dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com
Re: Couple OGNL 2.7 questions
Yep, that jira not sending mails was a huge wtf... I remember seeing that my issues were resolved two weeks after jesse had fixed them! On 4/25/07, Ben Dotte [EMAIL PROTECTED] wrote: Great, please let us know how to suppress the stack traces once you have it checked in. As far as I can tell there is no way to control the log output because it is directly calling t.printStackTrace(), sending the output to System.err (HivemindExpressionCompiler.java lines 165 and 212): try { classFab.addMethod(Modifier.PUBLIC, valueGetter, getBody); } catch (Throwable t) { t.printStackTrace(); generateFailSafe(context, expression, root); return; } Wouldn't you need to be using the _log logger on there instead of t.printStackTrace() in order to suppress these? If you get the Jira e-mails working that would be great too; I wouldn't have to check the system every day to see what has happened :) Thanks again, Ben -Original Message- From: Jesse Kuhnert [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 25, 2007 1:18 PM To: Tapestry users Subject: Re: Couple OGNL 2.7 questions For option 1 yes I've done this locally but not checked it in yet, you should be able to control everything via logging categories / levels. I'm still a little worried about turning this off for get operations as they're definitely bad and I'm not sure anyone will ever notice them otherwise. Are you really getting that many ? I might have accidently turned on too many during the last deploy. WRT Jira emails I'm not sure why people aren't getting notified of ticket changes but that definitely can't be a good thing. Here I was adding comments and thinking people were ignoring me and it was really just the system not sending emails the whole time. :) I'll poke around and see if this is an option on that jira instance. On 4/25/07, Ben Dotte [EMAIL PROTECTED] wrote: We've been working with the latest 4.1.2 snapshots and OGNL 2.7 snapshots for about a week now and things seem to be working a lot better than they were. There are still plenty of places where OGNL is broken but thankfully the failsafe feature seems to handle most of these situations. I have a couple questions about that though: 1. Is it possible to suppress the OGNL failsafe stack traces that get output to the console? I can understand why this is done so people will report the OGNL bugs but given the volume of these that we see it makes our console unusable when we need it for other things. 2. I can't seem to get the OGNL Jira system to send me any notifications about anything. If a bug I reported is commented on, resolved, or closed, I don't get any e-mail about it. I have even tried Watching my own cases but still nothing. Is this just me or is there some setting on the Jira system that needs to be fixed by an administrator? Thanks, Ben - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Jesse Kuhnert Tapestry/Dojo team member/developer Open source based consulting work centered around dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Andreas Andreou - [EMAIL PROTECTED] - http://andyhot.di.uoa.gr Tapestry / Tacos developer Open Source / JEE Consulting
Re: T5: No root element has been defined
Not progress, but a clarification. I get the no root element has been defined error whenever I navigate to a URL that contains a page that exists as an HTML template. For example, I have Start.html and CopyOfStart1.html files in the root of my WAR file. If I go to: http://localhost:8080/warfilename/Start http://localhost:8080/warfilename/ or http://localhost:8080/warfilename/CopyOfStart1 I get the no root element error. If I go anywhere else, for example http://localhost:8080/warfilename/Blah I get a 404. Any thoughts anyone? ta, Tim. On Saturday 21 April 2007 15:08, DigitLiao wrote: I test it. Your html template has no problem. But where did you put this template? When I delete test.html, It shows the same error as yours. The template should be put in the same package as Java file or in WEB-INF/ that match java package from tapestry app root package. ?xml version=1.0 encoding=UTF-8 ? On 4/21/07, Tim Sawyer [EMAIL PROTECTED] wrote: Hi All, Can someone give me a clue what this means? I might still be having supplier jar trouble, if that's a pointer. I get this exception when trying to display my first page in my first T5 application: An unexpected application exception has occurred. * java.lang.IllegalStateException No root element has been defined. Stack trace org.apache.tapestry.dom.Document.toMarkup(Document.java:89) org.apache.tapestry.internal.services.MarkupWriterImpl.toMarkup( MarkupWriterImpl.java:51) org.apache.tapestry.internal.services.PageResponseRendererImpl.renderPage Response (PageResponseRendererImpl.java:49) org.apache.tapestry.internal.services.RootPathDispatcher$1.renderPage( RootPathDispatcher.java:66) org.apache.tapestry.internal.services.PageLinkHandlerImpl.handle( PageLinkHandlerImpl.java:89) org.apache.tapestry.internal.services.PageLinkHandlerImpl.handle( PageLinkHandlerImpl.java:49) org.apache.tapestry.internal.services.RootPathDispatcher.dispatch ( RootPathDispatcher.java:76) org.apache.tapestry.services.TapestryModule$12.service(TapestryModule.jav a :1201) org.apache.tapestry.internal.services.LocalizationFilter.service( LocalizationFilter.java:43) org.apache.tapestry.services.TapestryModule$3.service (TapestryModule.java :736) org.apache.tapestry.internal.services.StaticFilesFilter.service( StaticFilesFilter.java:63) org.apache.tapestry.internal.services.CheckForUpdatesFilter$2.invoke( CheckForUpdatesFilter.java:91) org.apache.tapestry.internal.services.CheckForUpdatesFilter$2.invoke( CheckForUpdatesFilter.java:82) org.apache.tapestry.ioc.internal.util.ConcurrentBarrier.withRead( ConcurrentBarrier.java:77) org.apache.tapestry.internal.services.CheckForUpdatesFilter.service ( CheckForUpdatesFilter.java:104) org.apache.tapestry.services.TapestryModule$11.service(TapestryModule.jav a :1179) org.apache.tapestry.TapestryFilter.doFilter(TapestryFilter.java:115) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter ( ApplicationFilterChain.java:235) org.apache.catalina.core.ApplicationFilterChain.doFilter( ApplicationFilterChain.java:206) org.apache.catalina.core.StandardWrapperValve.invoke( StandardWrapperValve.java:228) org.apache.catalina.core.StandardContextValve.invoke ( StandardContextValve.java:175) org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java :128) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java :104) org.apache.catalina.core.StandardEngineValve.invoke ( StandardEngineValve.java:109) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java :216) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844 ) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process ( Http11Protocol.java:634) org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:445) java.lang.Thread.run(Thread.java:595) What's the file it's trying to parse? My HTML is simple (not even any Tap markup), and web.xml looks ok html xmlns:t=http://tapestry.apache.org/schema/tapestry_5_0_0.xsd; head titleTitle/title /head body pThe time is not here./p /body /html ?xml version=1.0 encoding=UTF-8? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app display-nameTitle/display-name context-param param-nametapestry.app-package/param-name param-valueuk.co.title/param-value /context-param filter filter-nameapp/filter-name filter-classorg.apache.tapestry.TapestryFilter/filter-class /filter filter-mapping filter-nameapp/filter-name url-pattern/*/url-pattern /filter-mapping /web-app Any pointers appreciated! Tim.
Re: T5: No root element has been defined
Sorry, my bad - the Start.java and CopyOfStart1.java exist, not the HTML files. Apologies, Tim. On Wednesday 25 April 2007 21:43, Tim Sawyer wrote: Not progress, but a clarification. I get the no root element has been defined error whenever I navigate to a URL that contains a page that exists as an HTML template. For example, I have Start.html and CopyOfStart1.html files in the root of my WAR file. If I go to: http://localhost:8080/warfilename/Start http://localhost:8080/warfilename/ or http://localhost:8080/warfilename/CopyOfStart1 I get the no root element error. If I go anywhere else, for example http://localhost:8080/warfilename/Blah I get a 404. Any thoughts anyone? ta, Tim. On Saturday 21 April 2007 15:08, DigitLiao wrote: I test it. Your html template has no problem. But where did you put this template? When I delete test.html, It shows the same error as yours. The template should be put in the same package as Java file or in WEB-INF/ that match java package from tapestry app root package. ?xml version=1.0 encoding=UTF-8 ? On 4/21/07, Tim Sawyer [EMAIL PROTECTED] wrote: Hi All, Can someone give me a clue what this means? I might still be having supplier jar trouble, if that's a pointer. I get this exception when trying to display my first page in my first T5 application: An unexpected application exception has occurred. * java.lang.IllegalStateException No root element has been defined. Stack trace org.apache.tapestry.dom.Document.toMarkup(Document.java:89) org.apache.tapestry.internal.services.MarkupWriterImpl.toMarkup( MarkupWriterImpl.java:51) org.apache.tapestry.internal.services.PageResponseRendererImpl.renderPa ge Response (PageResponseRendererImpl.java:49) org.apache.tapestry.internal.services.RootPathDispatcher$1.renderPage( RootPathDispatcher.java:66) org.apache.tapestry.internal.services.PageLinkHandlerImpl.handle( PageLinkHandlerImpl.java:89) org.apache.tapestry.internal.services.PageLinkHandlerImpl.handle( PageLinkHandlerImpl.java:49) org.apache.tapestry.internal.services.RootPathDispatcher.dispatch ( RootPathDispatcher.java:76) org.apache.tapestry.services.TapestryModule$12.service(TapestryModule.j av a :1201) org.apache.tapestry.internal.services.LocalizationFilter.service( LocalizationFilter.java:43) org.apache.tapestry.services.TapestryModule$3.service (TapestryModule.java :736) org.apache.tapestry.internal.services.StaticFilesFilter.service( StaticFilesFilter.java:63) org.apache.tapestry.internal.services.CheckForUpdatesFilter$2.invoke( CheckForUpdatesFilter.java:91) org.apache.tapestry.internal.services.CheckForUpdatesFilter$2.invoke( CheckForUpdatesFilter.java:82) org.apache.tapestry.ioc.internal.util.ConcurrentBarrier.withRead( ConcurrentBarrier.java:77) org.apache.tapestry.internal.services.CheckForUpdatesFilter.service ( CheckForUpdatesFilter.java:104) org.apache.tapestry.services.TapestryModule$11.service(TapestryModule.j av a :1179) org.apache.tapestry.TapestryFilter.doFilter(TapestryFilter.java:115) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter ( ApplicationFilterChain.java:235) org.apache.catalina.core.ApplicationFilterChain.doFilter( ApplicationFilterChain.java:206) org.apache.catalina.core.StandardWrapperValve.invoke( StandardWrapperValve.java:228) org.apache.catalina.core.StandardContextValve.invoke ( StandardContextValve.java:175) org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.jav a :128) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.jav a :104) org.apache.catalina.core.StandardEngineValve.invoke ( StandardEngineValve.java:109) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java :216) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:8 44 ) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process ( Http11Protocol.java:634) org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:445) java.lang.Thread.run(Thread.java:595) What's the file it's trying to parse? My HTML is simple (not even any Tap markup), and web.xml looks ok html xmlns:t=http://tapestry.apache.org/schema/tapestry_5_0_0.xsd; head titleTitle/title /head body pThe time is not here./p /body /html ?xml version=1.0 encoding=UTF-8? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app display-nameTitle/display-name context-param param-nametapestry.app-package/param-name param-valueuk.co.title/param-value /context-param filter filter-nameapp/filter-name
Re: InjectSpring and NullPointerException
Alejandro Scandroli wrote: Hi MateAmargo just remove the property from the page definition let the .page empty page-specification class=com.foo.PersonsList /page-specification Saludos. Alejandro. Hi Alejandro, I have just removed the property and now I'm trying to run Jetty... Nope, the same problem. I don't know why I get a NullPointerException. The object PersonDAO is a subclass of HibernateDAOSupport, and I don't know if it keeps null because a bad configuration or what. -- View this message in context: http://www.nabble.com/InjectSpring-and-NullPointerException-tf3646961.html#a10189304 Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: T5: No root element has been defined
Sorted - works now. With Start.html inside WEB-INF it works, with it outside it didn't. Thanks, Tim. On Wednesday 25 April 2007 21:47, Tim Sawyer wrote: Sorry, my bad - the Start.java and CopyOfStart1.java exist, not the HTML files. Apologies, Tim. On Wednesday 25 April 2007 21:43, Tim Sawyer wrote: Not progress, but a clarification. I get the no root element has been defined error whenever I navigate to a URL that contains a page that exists as an HTML template. For example, I have Start.html and CopyOfStart1.html files in the root of my WAR file. If I go to: http://localhost:8080/warfilename/Start http://localhost:8080/warfilename/ or http://localhost:8080/warfilename/CopyOfStart1 I get the no root element error. If I go anywhere else, for example http://localhost:8080/warfilename/Blah I get a 404. Any thoughts anyone? ta, Tim. On Saturday 21 April 2007 15:08, DigitLiao wrote: I test it. Your html template has no problem. But where did you put this template? When I delete test.html, It shows the same error as yours. The template should be put in the same package as Java file or in WEB-INF/ that match java package from tapestry app root package. ?xml version=1.0 encoding=UTF-8 ? On 4/21/07, Tim Sawyer [EMAIL PROTECTED] wrote: Hi All, Can someone give me a clue what this means? I might still be having supplier jar trouble, if that's a pointer. I get this exception when trying to display my first page in my first T5 application: An unexpected application exception has occurred. * java.lang.IllegalStateException No root element has been defined. Stack trace org.apache.tapestry.dom.Document.toMarkup(Document.java:89) org.apache.tapestry.internal.services.MarkupWriterImpl.toMarkup( MarkupWriterImpl.java:51) org.apache.tapestry.internal.services.PageResponseRendererImpl.render Pa ge Response (PageResponseRendererImpl.java:49) org.apache.tapestry.internal.services.RootPathDispatcher$1.renderPage ( RootPathDispatcher.java:66) org.apache.tapestry.internal.services.PageLinkHandlerImpl.handle( PageLinkHandlerImpl.java:89) org.apache.tapestry.internal.services.PageLinkHandlerImpl.handle( PageLinkHandlerImpl.java:49) org.apache.tapestry.internal.services.RootPathDispatcher.dispatch ( RootPathDispatcher.java:76) org.apache.tapestry.services.TapestryModule$12.service(TapestryModule .j av a :1201) org.apache.tapestry.internal.services.LocalizationFilter.service( LocalizationFilter.java:43) org.apache.tapestry.services.TapestryModule$3.service (TapestryModule.java :736) org.apache.tapestry.internal.services.StaticFilesFilter.service( StaticFilesFilter.java:63) org.apache.tapestry.internal.services.CheckForUpdatesFilter$2.invoke( CheckForUpdatesFilter.java:91) org.apache.tapestry.internal.services.CheckForUpdatesFilter$2.invoke( CheckForUpdatesFilter.java:82) org.apache.tapestry.ioc.internal.util.ConcurrentBarrier.withRead( ConcurrentBarrier.java:77) org.apache.tapestry.internal.services.CheckForUpdatesFilter.service ( CheckForUpdatesFilter.java:104) org.apache.tapestry.services.TapestryModule$11.service(TapestryModule .j av a :1179) org.apache.tapestry.TapestryFilter.doFilter(TapestryFilter.java:115) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter ( ApplicationFilterChain.java:235) org.apache.catalina.core.ApplicationFilterChain.doFilter( ApplicationFilterChain.java:206) org.apache.catalina.core.StandardWrapperValve.invoke( StandardWrapperValve.java:228) org.apache.catalina.core.StandardContextValve.invoke ( StandardContextValve.java:175) org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j av a :128) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j av a :104) org.apache.catalina.core.StandardEngineValve.invoke ( StandardEngineValve.java:109) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav a :216) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java :8 44 ) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce ss ( Http11Protocol.java:634) org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:44 5) java.lang.Thread.run(Thread.java:595) What's the file it's trying to parse? My HTML is simple (not even any Tap markup), and web.xml looks ok html xmlns:t=http://tapestry.apache.org/schema/tapestry_5_0_0.xsd; head titleTitle/title /head body pThe time is not here./p /body /html ?xml version=1.0 encoding=UTF-8? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application
Re: Session invalidate question
Peter, I have encountered a similar problem, and I think that the problem was not in my code, but in where I was doing the session.invalidate(). In trying to remove a cookie on logout, I found that I needed to do the invalidation in an IEngineService. You can then do a redirect to whatever page you want at that time. This may not fit your needs, but what I did was to create my own service via this configuration point in Hivemind: service-point id=LogoutService interface=org.apache.tapestry.engine.IEngineService invoke-factory construct class=tapestry.LogoutService set-service property=request service-id=tapestry.globals.HttpServletRequest / set-service property=response service-id=tapestry.globals.HttpServletResponse / set-object property=servletPath value=app-property:org.apache.tapestry.servlet-path / set-object property=linkFactory value=infrastructure:linkFactory / /construct /invoke-factory /service-point contribution configuration-id=tapestry.services.FactoryServices service name=logout object=service:LogoutService / /contribution Then in my service method of my engine class, I did the cookie handling and the session.invalidate() using parts of the code from Tapestry's logout service: public void service(IRequestCycle cycle) throws IOException { HttpSession session = _request.getSession(false); if (session != null) { try { session.invalidate(); } catch (IllegalStateException ex) { logger.warn(Exception thrown invalidating HttpSession., ex); // Otherwise, ignore it. } } [do cookie handling] _response.sendRedirect(page_to_redirect_to.html); } Hope that helps. Cheers, Matt Peter Stavrinides wrote: Hi Everyone, I want to redirect to a page (other than my home page) and invalidate the session there. After i call invalidate I get an exception that states the session has already been invalidated, even if I invalidate the session on the target page in pageEndRender. The question is how do I delay the invalidate on the target page long enough to prevent this exception. For Example: public void pageEndRender(PageEvent e) { if (getRequest().getSession(false) != null){ try { //some clean up code here getRequest().getSession(false).invalidate(); } catch (Exception ex){ //XXX -Exception still appears at runtime in tomcat which cannot be caught } } } Produces The following stack trace: WARN - Exception during post-request cleanup: setAttribute: Session already invalidated - org.apache.tapestry.error.RequestExceptionReporterImpl (45) java.lang.IllegalStateException: setAttribute: Session already invalidated at org.apache.catalina.session.StandardSession.setAttribute(StandardSession.java:1251) at org.apache.catalina.session.StandardSession.setAttribute(StandardSession.java:1233) at org.apache.catalina.session.StandardSessionFacade.setAttribute(StandardSessionFacade.java:129) at org.apache.tapestry.web.ServletWebSession.setAttribute(ServletWebSession.java:62) at org.apache.tapestry.engine.state.SessionScopeManager.store(SessionScopeManager.java:90) at $StateObjectPersistenceManager_1122965794b.store($StateObjectPersistenceManager_1122965794b.java) at org.apache.tapestry.engine.state.StateObjectManagerImpl.store(StateObjectManagerImpl.java:56) at org.apache.tapestry.engine.state.ApplicationStateManagerImpl.flush(ApplicationStateManagerImpl.java:87) at $ApplicationStateManager_1122965778e.flush($ApplicationStateManager_1122965778e.java) at $ApplicationStateManager_1122965778f.flush($ApplicationStateManager_1122965778f.java) at org.apache.tapestry.engine.AbstractEngine.service(AbstractEngine.java:283) at org.apache.tapestry.services.impl.InvokeEngineTerminator.service(InvokeEngineTerminator.java:54) at $WebRequestServicer_1122965784e.service($WebRequestServicer_112296578 etc Thanks Peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: T5: No root element has been defined
That's the expected, documented behavior (though it is a change from Tapestry 4). Templates go in the WEB-INF folder. On 4/25/07, Tim Sawyer [EMAIL PROTECTED] wrote: Sorted - works now. With Start.html inside WEB-INF it works, with it outside it didn't. Thanks, Tim. On Wednesday 25 April 2007 21:47, Tim Sawyer wrote: Sorry, my bad - the Start.java and CopyOfStart1.java exist, not the HTML files. Apologies, Tim. On Wednesday 25 April 2007 21:43, Tim Sawyer wrote: Not progress, but a clarification. I get the no root element has been defined error whenever I navigate to a URL that contains a page that exists as an HTML template. For example, I have Start.html and CopyOfStart1.html files in the root of my WAR file. If I go to: http://localhost:8080/warfilename/Start http://localhost:8080/warfilename/ or http://localhost:8080/warfilename/CopyOfStart1 I get the no root element error. If I go anywhere else, for example http://localhost:8080/warfilename/Blah I get a 404. Any thoughts anyone? ta, Tim. On Saturday 21 April 2007 15:08, DigitLiao wrote: I test it. Your html template has no problem. But where did you put this template? When I delete test.html, It shows the same error as yours. The template should be put in the same package as Java file or in WEB-INF/ that match java package from tapestry app root package. ?xml version=1.0 encoding=UTF-8 ? On 4/21/07, Tim Sawyer [EMAIL PROTECTED] wrote: Hi All, Can someone give me a clue what this means? I might still be having supplier jar trouble, if that's a pointer. I get this exception when trying to display my first page in my first T5 application: An unexpected application exception has occurred. * java.lang.IllegalStateException No root element has been defined. Stack trace org.apache.tapestry.dom.Document.toMarkup(Document.java:89) org.apache.tapestry.internal.services.MarkupWriterImpl.toMarkup( MarkupWriterImpl.java:51) org.apache.tapestry.internal.services.PageResponseRendererImpl.render Pa ge Response (PageResponseRendererImpl.java:49) org.apache.tapestry.internal.services.RootPathDispatcher$1.renderPage ( RootPathDispatcher.java:66) org.apache.tapestry.internal.services.PageLinkHandlerImpl.handle( PageLinkHandlerImpl.java:89) org.apache.tapestry.internal.services.PageLinkHandlerImpl.handle( PageLinkHandlerImpl.java:49) org.apache.tapestry.internal.services.RootPathDispatcher.dispatch( RootPathDispatcher.java:76) org.apache.tapestry.services.TapestryModule$12.service (TapestryModule .j av a :1201) org.apache.tapestry.internal.services.LocalizationFilter.service( LocalizationFilter.java:43) org.apache.tapestry.services.TapestryModule$3.service (TapestryModule.java :736) org.apache.tapestry.internal.services.StaticFilesFilter.service( StaticFilesFilter.java:63) org.apache.tapestry.internal.services.CheckForUpdatesFilter$2.invoke( CheckForUpdatesFilter.java:91) org.apache.tapestry.internal.services.CheckForUpdatesFilter$2.invoke( CheckForUpdatesFilter.java:82) org.apache.tapestry.ioc.internal.util.ConcurrentBarrier.withRead( ConcurrentBarrier.java:77) org.apache.tapestry.internal.services.CheckForUpdatesFilter.service ( CheckForUpdatesFilter.java:104) org.apache.tapestry.services.TapestryModule$11.service (TapestryModule .j av a :1179) org.apache.tapestry.TapestryFilter.doFilter(TapestryFilter.java :115) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter ( ApplicationFilterChain.java:235) org.apache.catalina.core.ApplicationFilterChain.doFilter( ApplicationFilterChain.java:206) org.apache.catalina.core.StandardWrapperValve.invoke( StandardWrapperValve.java:228) org.apache.catalina.core.StandardContextValve.invoke ( StandardContextValve.java:175) org.apache.catalina.core.StandardHostValve.invoke( StandardHostValve.j av a :128) org.apache.catalina.valves.ErrorReportValve.invoke( ErrorReportValve.j av a :104) org.apache.catalina.core.StandardEngineValve.invoke ( StandardEngineValve.java:109) org.apache.catalina.connector.CoyoteAdapter.service( CoyoteAdapter.jav a :216) org.apache.coyote.http11.Http11Processor.process( Http11Processor.java :8 44 ) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce ss ( Http11Protocol.java:634) org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java :44 5) java.lang.Thread.run(Thread.java:595) What's the file it's trying to parse? My HTML is simple (not even any Tap markup), and web.xml looks ok html xmlns:t= http://tapestry.apache.org/schema/tapestry_5_0_0.xsd; head titleTitle/title /head body
T5: exception from mvn -Dmaven.test.skip=true site
Hi there, if i call mvn -Dmaven.test.skip=true site to generate the tapestry-site maven throws me follwing exception (i try it also with jdk 1.6.0-b105) some hints ? D:\usr\local\tapestry5\tapestry-project\..\tapestry-core\src\main\java\org\apache\tapestry\corelib\mixins\RenderInformals.java:41: w arning - Tag @link: reference not found: PostBeginRender java.lang.ClassCastException: com.sun.tools.javadoc.ClassDocImpl at com.sun.tools.javadoc.AnnotationDescImpl.annotationType(AnnotationDescImpl.java:46) at com.sun.tools.doclets.internal.toolkit.util.Util.isDeprecated(Util.java:804) at com.sun.tools.doclets.formats.html.PackageWriterImpl.writeClassesSummary(PackageWriterImpl.java:114) at com.sun.tools.doclets.internal.toolkit.builders.PackageSummaryBuilder.buildClassSummary(PackageSummaryBuilder.java:175) at sun.reflect.GeneratedMethodAccessor68.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at com.sun.tools.doclets.internal.toolkit.builders.PackageSummaryBuilder.invokeMethod(PackageSummaryBuilder.java:81) at com.sun.tools.doclets.internal.toolkit.builders.AbstractBuilder.build(AbstractBuilder.java:90) at com.sun.tools.doclets.internal.toolkit.builders.PackageSummaryBuilder.buildSummary(PackageSummaryBuilder.java:148) at sun.reflect.GeneratedMethodAccessor65.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at com.sun.tools.doclets.internal.toolkit.builders.PackageSummaryBuilder.invokeMethod(PackageSummaryBuilder.java:81) at com.sun.tools.doclets.internal.toolkit.builders.AbstractBuilder.build(AbstractBuilder.java:90) at com.sun.tools.doclets.internal.toolkit.builders.PackageSummaryBuilder.buildPackageDoc(PackageSummaryBuilder.java:106) at sun.reflect.GeneratedMethodAccessor63.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at com.sun.tools.doclets.internal.toolkit.builders.PackageSummaryBuilder.invokeMethod(PackageSummaryBuilder.java:81) at com.sun.tools.doclets.internal.toolkit.builders.AbstractBuilder.build(AbstractBuilder.java:90) at com.sun.tools.doclets.internal.toolkit.builders.PackageSummaryBuilder.build(PackageSummaryBuilder.java:92) at com.sun.tools.doclets.formats.html.HtmlDoclet.generatePackageFiles(HtmlDoclet.java:183) at com.sun.tools.doclets.internal.toolkit.AbstractDoclet.startGeneration(AbstractDoclet.java:120) at com.sun.tools.doclets.internal.toolkit.AbstractDoclet.start(AbstractDoclet.java:64) at com.sun.tools.doclets.formats.html.HtmlDoclet.start(HtmlDoclet.java:42) at com.sun.tools.doclets.standard.Standard.start(Standard.java:23) 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:585) at com.sun.tools.javadoc.DocletInvoker.invoke(DocletInvoker.java:269) at com.sun.tools.javadoc.DocletInvoker.start(DocletInvoker.java:143) at com.sun.tools.javadoc.Start.parseAndExecute(Start.java:340) at com.sun.tools.javadoc.Start.begin(Start.java:128) at com.sun.tools.javadoc.Main.execute(Main.java:41) at com.sun.tools.javadoc.Main.main(Main.java:31) java.lang.ClassCastException: com.sun.tools.javadoc.ClassDocImpl at com.sun.tools.javadoc.AnnotationDescImpl.annotationType(AnnotationDescImpl.java:46) at com.sun.tools.doclets.internal.toolkit.util.ClassUseMapper.mapAnnotations(ClassUseMapper.java:439) at com.sun.tools.doclets.internal.toolkit.util.ClassUseMapper.init(ClassUseMapper.java:183) at com.sun.tools.doclets.formats.html.ClassUseWriter.generate(ClassUseWriter.java:109) at com.sun.tools.doclets.formats.html.HtmlDoclet.generateOtherFiles(HtmlDoclet.java:92) at com.sun.tools.doclets.internal.toolkit.AbstractDoclet.startGeneration(AbstractDoclet.java:122) at com.sun.tools.doclets.internal.toolkit.AbstractDoclet.start(AbstractDoclet.java:64) at com.sun.tools.doclets.formats.html.HtmlDoclet.start(HtmlDoclet.java:42) at com.sun.tools.doclets.standard.Standard.start(Standard.java:23) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at
Re: Dependent drop down list
Hi Simeon, Could you please provide some sample? I would like to implement dependent drop down list ( partial page rendering)? Thanks. Sri. Simeon Koptelov-2 wrote: Well, I've done this for my project, using tacos:AjaxDirectLink to update dependent select. If you're interested, I can package it and deploy to tassel. -- Best, Simeon Koptelov - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Dependent-drop-down-list-tf1563364.html#a10189827 Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: InjectSpring and NullPointerException
I have no clue. Are you sure your spring context is ok? and is getting loaded? Have you tried with @InjectObject(spring:personDAObean)? Dough it should produce the same result On 4/25/07, mateamargo [EMAIL PROTECTED] wrote: Alejandro Scandroli wrote: Hi MateAmargo just remove the property from the page definition let the .page empty page-specification class=com.foo.PersonsList /page-specification Saludos. Alejandro. Hi Alejandro, I have just removed the property and now I'm trying to run Jetty... Nope, the same problem. I don't know why I get a NullPointerException. The object PersonDAO is a subclass of HibernateDAOSupport, and I don't know if it keeps null because a bad configuration or what. -- View this message in context: http://www.nabble.com/InjectSpring-and-NullPointerException-tf3646961.html#a10189304 Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: InjectSpring and NullPointerException
Alejandro Scandroli wrote: I have no clue. Are you sure your spring context is ok? and is getting loaded? Have you tried with @InjectObject(spring:personDAObean)? Dough it should produce the same result I know that it is loading fine because if I change something I get a bean error. I can't find the annotation @InjectObject, I guess is because I'm using Tapestry 4.0.2. Which version are you using? -- View this message in context: http://www.nabble.com/InjectSpring-and-NullPointerException-tf3646961.html#a10190301 Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
T5 LinkSubmit?
Is there any equivalent in T5 of LinkSubmit? Ta, Tim. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: T5 LinkSubmit?
Not yet; I don't think there's an issue to track this yet, adding one would be most helpful. On 4/25/07, Tim Sawyer [EMAIL PROTECTED] wrote: Is there any equivalent in T5 of LinkSubmit? Ta, Tim. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Howard M. Lewis Ship TWD Consulting, Inc. Independent J2EE / Open-Source Java Consultant Creator and PMC Chair, Apache Tapestry Creator, Apache HiveMind Professional Tapestry training, mentoring, support and project work. http://howardlewisship.com
Re: T5: exception from mvn -Dmaven.test.skip=true site
Looks like a bug for Sun or for Maven. Seriously, that doesn't look like it has much to do with Tapestry per-se. I build this all the time with Sun JDK 1.5 on Mac OS X. Do you get the exception without maven.test.skip? Try mvn install site ... that may work better. On 4/25/07, Sven Homburg [EMAIL PROTECTED] wrote: Hi there, if i call mvn -Dmaven.test.skip=true site to generate the tapestry-site maven throws me follwing exception (i try it also with jdk 1.6.0-b105) some hints ? D:\usr\local\tapestry5\tapestry-project\..\tapestry-core\src\main\java\org\apache\tapestry\corelib\mixins\RenderInformals.java:41: w arning - Tag @link: reference not found: PostBeginRender java.lang.ClassCastException: com.sun.tools.javadoc.ClassDocImpl at com.sun.tools.javadoc.AnnotationDescImpl.annotationType( AnnotationDescImpl.java:46) at com.sun.tools.doclets.internal.toolkit.util.Util.isDeprecated(Util.java :804) at com.sun.tools.doclets.formats.html.PackageWriterImpl.writeClassesSummary( PackageWriterImpl.java:114) at com.sun.tools.doclets.internal.toolkit.builders.PackageSummaryBuilder.buildClassSummary (PackageSummaryBuilder.java:175) at sun.reflect.GeneratedMethodAccessor68.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke( DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at com.sun.tools.doclets.internal.toolkit.builders.PackageSummaryBuilder.invokeMethod (PackageSummaryBuilder.java:81) at com.sun.tools.doclets.internal.toolkit.builders.AbstractBuilder.build( AbstractBuilder.java:90) at com.sun.tools.doclets.internal.toolkit.builders.PackageSummaryBuilder.buildSummary (PackageSummaryBuilder.java:148) at sun.reflect.GeneratedMethodAccessor65.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke( DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at com.sun.tools.doclets.internal.toolkit.builders.PackageSummaryBuilder.invokeMethod (PackageSummaryBuilder.java:81) at com.sun.tools.doclets.internal.toolkit.builders.AbstractBuilder.build( AbstractBuilder.java:90) at com.sun.tools.doclets.internal.toolkit.builders.PackageSummaryBuilder.buildPackageDoc (PackageSummaryBuilder.java:106) at sun.reflect.GeneratedMethodAccessor63.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke( DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at com.sun.tools.doclets.internal.toolkit.builders.PackageSummaryBuilder.invokeMethod (PackageSummaryBuilder.java:81) at com.sun.tools.doclets.internal.toolkit.builders.AbstractBuilder.build( AbstractBuilder.java:90) at com.sun.tools.doclets.internal.toolkit.builders.PackageSummaryBuilder.build (PackageSummaryBuilder.java:92) at com.sun.tools.doclets.formats.html.HtmlDoclet.generatePackageFiles( HtmlDoclet.java:183) at com.sun.tools.doclets.internal.toolkit.AbstractDoclet.startGeneration( AbstractDoclet.java:120) at com.sun.tools.doclets.internal.toolkit.AbstractDoclet.start( AbstractDoclet.java:64) at com.sun.tools.doclets.formats.html.HtmlDoclet.start(HtmlDoclet.java:42) at com.sun.tools.doclets.standard.Standard.start(Standard.java:23) 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:585) at com.sun.tools.javadoc.DocletInvoker.invoke(DocletInvoker.java:269) at com.sun.tools.javadoc.DocletInvoker.start(DocletInvoker.java :143) at com.sun.tools.javadoc.Start.parseAndExecute(Start.java:340) at com.sun.tools.javadoc.Start.begin(Start.java:128) at com.sun.tools.javadoc.Main.execute(Main.java:41) at com.sun.tools.javadoc.Main.main(Main.java:31) java.lang.ClassCastException: com.sun.tools.javadoc.ClassDocImpl at com.sun.tools.javadoc.AnnotationDescImpl.annotationType( AnnotationDescImpl.java:46) at com.sun.tools.doclets.internal.toolkit.util.ClassUseMapper.mapAnnotations( ClassUseMapper.java:439) at com.sun.tools.doclets.internal.toolkit.util.ClassUseMapper.init( ClassUseMapper.java:183) at com.sun.tools.doclets.formats.html.ClassUseWriter.generate( ClassUseWriter.java:109) at com.sun.tools.doclets.formats.html.HtmlDoclet.generateOtherFiles( HtmlDoclet.java:92) at com.sun.tools.doclets.internal.toolkit.AbstractDoclet.startGeneration( AbstractDoclet.java:122) at com.sun.tools.doclets.internal.toolkit.AbstractDoclet.start( AbstractDoclet.java:64) at com.sun.tools.doclets.formats.html.HtmlDoclet.start(HtmlDoclet.java:42) at
Re: Hivemind eager loading of a service which references tapestry services is not possible
Howard, At present this is all the output I'm getting, I haven't enabled Log4j/Logging yet though (haven't decided on the best way to do so). org.apache.hivemind.ApplicationRuntimeException: Unable to construct service tapestry.init.MasterInitializer: Failure invoking constructor for class $ApplicationInitializer_1122b245fc1: java.lang.ArrayStoreException location: jar:file:/C:/Program%20Files/Apache%20Software%20Foundation/Tomcat%205.5/webapps/TapestryStart/WEB-INF/lib/tapestry-framework-4.1.1.jar!/META-INF/tapestry.init.xml, line 27, column 60 org.apache.hivemind.ApplicationRuntimeException: Failure invoking constructor for class $ApplicationInitializer_1122b245fc1: java.lang.ArrayStoreException location: jar:file:/C:/Program%20Files/Apache%20Software%20Foundation/Tomcat%205.5/webapps/TapestryStart/WEB-INF/lib/tapestry-framework-4.1.1.jar!/META-INF/tapestry.init.xml, line 27, column 60 org.apache.hivemind.ApplicationRuntimeException: Failure invoking constructor for class $ApplicationInitializer_1122b245fc1: java.lang.ArrayStoreException java.lang.ArrayStoreException java.lang.System.arraycopy(Native Method) java.util.ArrayList.toArray(ArrayList.java:304) $ApplicationInitializer_1122b245fc1.init($ApplicationInitializer_1122b245fc1.java) sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) java.lang.reflect.Constructor.newInstance(Constructor.java:494) org.apache.hivemind.util.ConstructorUtils.invoke(ConstructorUtils.java:139) org.apache.hivemind.util.ConstructorUtils.invokeMatchingConstructor(ConstructorUtils.java:92) org.apache.hivemind.util.ConstructorUtils.invokeConstructor(ConstructorUtils.java:79) org.apache.hivemind.lib.chain.ChainBuilderImpl.createInstance(ChainBuilderImpl.java:109) org.apache.hivemind.lib.chain.ChainBuilderImpl.buildImplementation(ChainBuilderImpl.java:58) $ChainBuilder_1122b245fb8.buildImplementation($ChainBuilder_1122b245fb8.java) $ChainBuilder_1122b245fb7.buildImplementation($ChainBuilder_1122b245fb7.java) org.apache.hivemind.lib.chain.ChainFactory.createCoreServiceImplementation(ChainFactory.java:67) $ServiceImplementationFactory_1122b245fb6.createCoreServiceImplementation($ServiceImplementationFactory_1122b245fb6.java) $ServiceImplementationFactory_1122b245fb5.createCoreServiceImplementation($ServiceImplementationFactory_1122b245fb5.java) org.apache.hivemind.impl.InvokeFactoryServiceConstructor.constructCoreServiceImplementation(InvokeFactoryServiceConstructor.java:62) org.apache.hivemind.impl.servicemodel.AbstractServiceModelImpl.constructCoreServiceImplementation(AbstractServiceModelImpl.java:108) org.apache.hivemind.impl.servicemodel.AbstractServiceModelImpl.constructNewServiceImplementation(AbstractServiceModelImpl.java:158) org.apache.hivemind.impl.servicemodel.AbstractServiceModelImpl.constructServiceImplementation(AbstractServiceModelImpl.java:140) org.apache.hivemind.impl.servicemodel.SingletonServiceModel.getActualServiceImplementation(SingletonServiceModel.java:69) $ApplicationInitializer_1122b245fb4._service($ApplicationInitializer_1122b245fb4.java) $ApplicationInitializer_1122b245fb4.initialize($ApplicationInitializer_1122b245fb4.java) $ApplicationInitializer_1122b245fb3.initialize($ApplicationInitializer_1122b245fb3.java) org.apache.tapestry.ApplicationServlet.initializeApplication(ApplicationServlet.java:299) org.apache.tapestry.ApplicationServlet.init(ApplicationServlet.java:198) Howard Lewis Ship wrote: Check your console; there is almost certainly additional output describing why the code failed. On 4/25/07, Paul Stanton [EMAIL PROTECTED] wrote: Thanks Marcus, I think I'm closer but it still doesn't work. I've updated my hivemodule.xml, so now the initializer part reads: contribution configuration-id=tapestry.init.ApplicationInitializers command id=zzz object=service:zzz/ /contribution But now I get the following exception: org.apache.hivemind.ApplicationRuntimeException: Unable to construct service tapestry.init.MasterInitializer: Failure invoking constructor for class $ApplicationInitializer_1122afa4f72: java.lang.ArrayStoreException location: jar:file:tapestry-framework-4.1.1.jar!/META-INF/tapestry.init.xml, line 27, column 60 Is there any documentation for this besides the hivedocs? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Hivemind eager loading of a service which references tapestry services is not possible
One possibility is that the service you are contributing does not implement the correct interface, though I'm pretty sure there should be checks in place for that. I wrote the ChainBuilder code in HiveMind a couple of years back! Basically, your contributions are mixed in with Tapestry's and anybody else's to form a chain-of-command. The exception inside the constructor indicates that there was an issue converting the List to an object array (of the service interface type) and the most likely cause there is that your contributed service is the wrong type. On 4/25/07, Paul Stanton [EMAIL PROTECTED] wrote: Howard, At present this is all the output I'm getting, I haven't enabled Log4j/Logging yet though (haven't decided on the best way to do so). org.apache.hivemind.ApplicationRuntimeException: Unable to construct service tapestry.init.MasterInitializer: Failure invoking constructor for class $ApplicationInitializer_1122b245fc1: java.lang.ArrayStoreException location: jar:file:/C:/Program%20Files/Apache%20Software%20Foundation/Tomcat%205.5/webapps/TapestryStart/WEB-INF/lib/tapestry- framework-4.1.1.jar!/META-INF/tapestry.init.xml, line 27, column 60 org.apache.hivemind.ApplicationRuntimeException: Failure invoking constructor for class $ApplicationInitializer_1122b245fc1: java.lang.ArrayStoreException location: jar:file:/C:/Program%20Files/Apache%20Software%20Foundation/Tomcat%205.5/webapps/TapestryStart/WEB-INF/lib/tapestry- framework-4.1.1.jar!/META-INF/tapestry.init.xml, line 27, column 60 org.apache.hivemind.ApplicationRuntimeException: Failure invoking constructor for class $ApplicationInitializer_1122b245fc1: java.lang.ArrayStoreException java.lang.ArrayStoreException java.lang.System.arraycopy(Native Method) java.util.ArrayList.toArray(ArrayList.java:304) $ApplicationInitializer_1122b245fc1.init($ApplicationInitializer_1122b245fc1.java) sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) sun.reflect.NativeConstructorAccessorImpl.newInstance( NativeConstructorAccessorImpl.java:39) sun.reflect.DelegatingConstructorAccessorImpl.newInstance( DelegatingConstructorAccessorImpl.java:27) java.lang.reflect.Constructor.newInstance(Constructor.java:494) org.apache.hivemind.util.ConstructorUtils.invoke(ConstructorUtils.java :139) org.apache.hivemind.util.ConstructorUtils.invokeMatchingConstructor( ConstructorUtils.java:92) org.apache.hivemind.util.ConstructorUtils.invokeConstructor( ConstructorUtils.java:79) org.apache.hivemind.lib.chain.ChainBuilderImpl.createInstance( ChainBuilderImpl.java:109) org.apache.hivemind.lib.chain.ChainBuilderImpl.buildImplementation( ChainBuilderImpl.java:58) $ChainBuilder_1122b245fb8.buildImplementation($ChainBuilder_1122b245fb8.java) $ChainBuilder_1122b245fb7.buildImplementation($ChainBuilder_1122b245fb7.java) org.apache.hivemind.lib.chain.ChainFactory.createCoreServiceImplementation (ChainFactory.java:67) $ServiceImplementationFactory_1122b245fb6.createCoreServiceImplementation($ServiceImplementationFactory_1122b245fb6.java) $ServiceImplementationFactory_1122b245fb5.createCoreServiceImplementation($ServiceImplementationFactory_1122b245fb5.java) org.apache.hivemind.impl.InvokeFactoryServiceConstructor.constructCoreServiceImplementation (InvokeFactoryServiceConstructor.java:62) org.apache.hivemind.impl.servicemodel.AbstractServiceModelImpl.constructCoreServiceImplementation (AbstractServiceModelImpl.java:108) org.apache.hivemind.impl.servicemodel.AbstractServiceModelImpl.constructNewServiceImplementation (AbstractServiceModelImpl.java:158) org.apache.hivemind.impl.servicemodel.AbstractServiceModelImpl.constructServiceImplementation (AbstractServiceModelImpl.java:140) org.apache.hivemind.impl.servicemodel.SingletonServiceModel.getActualServiceImplementation (SingletonServiceModel.java:69) $ApplicationInitializer_1122b245fb4._service($ApplicationInitializer_1122b245fb4.java) $ApplicationInitializer_1122b245fb4.initialize($ApplicationInitializer_1122b245fb4.java) $ApplicationInitializer_1122b245fb3.initialize($ApplicationInitializer_1122b245fb3.java) org.apache.tapestry.ApplicationServlet.initializeApplication( ApplicationServlet.java:299) org.apache.tapestry.ApplicationServlet.init(ApplicationServlet.java:198) Howard Lewis Ship wrote: Check your console; there is almost certainly additional output describing why the code failed. On 4/25/07, Paul Stanton [EMAIL PROTECTED] wrote: Thanks Marcus, I think I'm closer but it still doesn't work. I've updated my hivemodule.xml, so now the initializer part reads: contribution configuration-id=tapestry.init.ApplicationInitializers command id=zzz object=service:zzz/ /contribution But now I get the following exception: org.apache.hivemind.ApplicationRuntimeException: Unable to construct service tapestry.init.MasterInitializer: Failure invoking constructor for class $ApplicationInitializer_1122afa4f72: java.lang.ArrayStoreException location:
Re: Where is the Date(java.util.Date) in the grid? T5
I don't have a date editor yet, so it isn't configured in Tapestry 5 IoC as an visible edittable field. Only such fields are displayed by the BeanEditor and the Grid. The Grid should be a little more flexible, as many more things can be displayed than can be editted, of course! On 4/25/07, Donyee [EMAIL PROTECTED] wrote: I wrote a employee(pojo) with a hiredate (Date type), When it works with a grid, the grid didn't render the hiredate column. Other types(int or string ) work fine! Can anyone explain this? thanks for any help! -- Chinese name:徐 依伟 English name: will -- Howard M. Lewis Ship TWD Consulting, Inc. Independent J2EE / Open-Source Java Consultant Creator and PMC Chair, Apache Tapestry Creator, Apache HiveMind Professional Tapestry training, mentoring, support and project work. http://howardlewisship.com
Re: Suggested version
That depends entirely on your requirements. The API for tap 4.1.x is still not entirely stable (or wasn't last time I checked, anyway, and I assume that the fact that it isn't the recommended release is confirmation of this), so not only are you still likely to encounter bugs, but there is also no guarantee that you won't have to modify code to upgrade your version to the latest 4.1.x release. This is more an issue for some teams than for others. Tap 4.0.x does support ajax functionality, via the tacos component library, which provided much of the insipration for the tap 4.1 ajax mechanism. So if you want a stable codebase, you can definitely opt ofr Tap 4.0 + tacos 4.0. Given the differences that will arise between tap 5.x and tap 4.1, I am just waiting for tap 5.x. It doesn't look as though there will be any backwards compatibility from 4.1 to 5, so I am just going to skip the 4.1 release and get maximum return on my upgrade investment by going straight to 5.x once it is ready. It is definitely lacking in much necessary functionality right now including, I believe, any mechanism for doing ajax-type requests. So I definitely don't recommend 5.x, but the choice of whether to go with 4.0 or 4.1 is dependent upon your requirements with regard to stability. --sam On 4/25/07, Tony Nelson [EMAIL PROTECTED] wrote: Over the last year, we have slowly been converting an internal application from a home brewed infrastructure to Tapestry 4.0. Some of the new functionality we need to add would best be handled with Ajax and I so I started looking at the newer versions of Tapestry. I can't seem to figure out which version of Tapestry I should upgrade to. The official distribution page lists Tapestry 4.0.2 as the latest stable build. This version doesn't support Ajax to the best of my knowledge. Folks using Maven2 seem to be encouraged to use the 4.1.2-SNAPSHOT. Is it stable enough to be used in a production environment? Is it really a good idea? Is there an official distribution of 4.1.0 or 4.1.1 I should consider? Reading the e-mail list, I see a lot of people using Tapestry 5.0.3. Is there enough functionality ready for me to consider it? I assume this will be the longest migration path for us, but since I need to upgrade, if now is the time, so be it. Thank you in advance for any help. Tony Nelson Starpoint Solutions - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
ResponseBuilder.updateComponent() doesn't render PropertySelection correctly?
Hello there, I just tried tapestry 4.1's EventListener and ResponseBuilder to implement a cascading dropdown list in an ajax way. Here's what I've encountered. Two selects A and B, implemented with PropertySelection. When a value of A is selected, B's contents are fetched from database and rendered dynamically. I'm using EventListener to do this: @EventListener(targets=A, events=onchange, submitForm =form) public void selectA(IRequestCycle cycle) { bModel = New model for b based on value of A cycle.getResponseBuilder().updateComponent(b); } I saw bModel was updated correctly, however, B was still rendered with empty options. I followed the advice below, but still no luck... http://mail-archives.apache.org/mod_mbox/tapestry-dev/200607.mbox/[EMAIL PROTECTED] Any help will be highly appreciated. Thanks! regards, -Jammy _ Interest Rates NEAR 39yr LOWS! $430,000 Mortgage for $1,299/mo - Calculate new payment http://www.lowermybills.com/lre/index.jsp?sourceid=lmb-9632-19132moid=14888 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Rendered Time - value stored in property? (Tap 4.0.2)
Hi, When I view my generated HTML source, I see info at the bottom such as !-- Render time: ~ 9 ms -- My question, is the value 9ms stored in some Java property that I have access to? All I'm looking to do is to log this property to a log file to track generation time. I would guess somehow I could turn on log4j Tapestry in DEBUG mode, though I'm only concerned with the rendered time value. Thanks. Thanks, Josh - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Rendered Time - value stored in property? (Tap 4.0.2)
No, it's just a standard: long time = System.currentTimeMillis(); // do stuff writer.printComment( ...) sort of thing in the Shell component. The value is local to the method context only. On 4/25/07, Josh Joy [EMAIL PROTECTED] wrote: Hi, When I view my generated HTML source, I see info at the bottom such as !-- Render time: ~ 9 ms -- My question, is the value 9ms stored in some Java property that I have access to? All I'm looking to do is to log this property to a log file to track generation time. I would guess somehow I could turn on log4j Tapestry in DEBUG mode, though I'm only concerned with the rendered time value. Thanks. Thanks, Josh - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Jesse Kuhnert Tapestry/Dojo team member/developer Open source based consulting work centered around dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com
T5: Block override for BeanEditForm
I've implemented my own BeanModel/PropertyModel to allow my pre-tapestry data model to interact with the BeanEditFrom. I've run into a roadblock. When my beanModel returns a property datatype other than text, checkbox or select, I'm unable to set the BlockOverride in BeanEditForm.setParameterName(). For the case at hand, I want to produce a datatype of crud which would (when rendered via BeanEditForm) produce a link to a page where the parameter can be edited. I'm thinking that if I can induce Tapestry to use my own block for non-primitive datatypes. Can others see the utility in this approach? Is there someway that I could add a parameter binding to ComponentResources so that a custom override can be provided? Thanks, Ki