Re: javascript error
On 08-10-15 15:49, Christine wrote: The page has a submit button, that doesn't seem to do anything. The problem seems to be in regexp. This works: but this doesn't: (I do have the regexp definition in a properties file). When I put I get an error message for the input, always. dagdag Christine This is the error I get, Form validiation/submit error `TypeError: input.match is not a function', in form ElementWrapper[action="/gossipUI/admin/addserver.addserverform" method="post" id="addServerForm" class="has-error">], triggering t5:field:input-validation event on ElementWrapper[data-regexp-message="Port does not match pattern '^[0-9]+$'." data-validate-regexp="^[0-9]+$" data-max-length-message="You may provide at most 5 characters for Port." data-validate-max-length="5" data-required-message="You must provide a value for Port." data-optionality="required" data-translation-message="You must provide an integer value for Port." data-translation="integer" data-validation="true" value="0" id="port" class="form-control" name="port" type="text">] together with this one TypeError: input.match is not a function(…) defaultValidateAndSubmit @ core.js:443 wrapped @ core.js:413 jQuery.event.dispatch @ core.js:230 jQuery.event.add.elemData.handle @ core.js:220 a jar "js.jar" is on my classpath, do I need to have that? dagdag Christine - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: javascript error
I forgot that I recently added a line in my module file configuration.add(SymbolConstants.JAVASCRIPT_INFRASTRUCTURE_PROVIDER, "jquery"); as suggested on my previous question on this list. My good friend Martijn reminded me of this :-) Removing the line solves the current issue. So now I'm looking for a fix that allows me to run Ajax properly and have the submit button work. dagdag Christine On 08-10-15 15:49, Christine wrote: Hi, I have a form in a page that worked fine until recently. It stopped working after I reinstalled Ubuntu and after I switched from Tapestry beta26 to beta35. I am not aware of changes in my code. The page has a submit button, that doesn't seem to do anything. This is the error I get, Form validiation/submit error `TypeError: input.match is not a function', in form ElementWrapper[action="/gossipUI/admin/addserver.addserverform" method="post" id="addServerForm" class="has-error">], triggering t5:field:input-validation event on ElementWrapper[data-regexp-message="Port does not match pattern '^[0-9]+$'." data-validate-regexp="^[0-9]+$" data-max-length-message="You may provide at most 5 characters for Port." data-validate-max-length="5" data-required-message="You must provide a value for Port." data-optionality="required" data-translation-message="You must provide an integer value for Port." data-translation="integer" data-validation="true" value="0" id="port" class="form-control" name="port" type="text">] together with this one TypeError: input.match is not a function(…) defaultValidateAndSubmit @ core.js:443 wrapped @ core.js:413 jQuery.event.dispatch @ core.js:230 jQuery.event.add.elemData.handle @ core.js:220 a jar "js.jar" is on my classpath, do I need to have that? dagdag Christine - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
javascript error
Hi, I have a form in a page that worked fine until recently. It stopped working after I reinstalled Ubuntu and after I switched from Tapestry beta26 to beta35. I am not aware of changes in my code. The page has a submit button, that doesn't seem to do anything. This is the error I get, Form validiation/submit error `TypeError: input.match is not a function', in form ElementWrapper[action="/gossipUI/admin/addserver.addserverform" method="post" id="addServerForm" class="has-error">], triggering t5:field:input-validation event on ElementWrapper[data-regexp-message="Port does not match pattern '^[0-9]+$'." data-validate-regexp="^[0-9]+$" data-max-length-message="You may provide at most 5 characters for Port." data-validate-max-length="5" data-required-message="You must provide a value for Port." data-optionality="required" data-translation-message="You must provide an integer value for Port." data-translation="integer" data-validation="true" value="0" id="port" class="form-control" name="port" type="text">] together with this one TypeError: input.match is not a function(…) defaultValidateAndSubmit @ core.js:443 wrapped @ core.js:413 jQuery.event.dispatch @ core.js:230 jQuery.event.add.elemData.handle @ core.js:220 a jar "js.jar" is on my classpath, do I need to have that? dagdag Christine - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Ajax issue in beta35
On 14-09-15 11:41, françois facon wrote: I would suggest you to do a project->clean under eclipse and also to do a mvn clean before the build of your war. I would also try to clean the remote server. Thanks François, now it works. dagdag Christine - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Ajax issue in beta35
On 13-09-15 19:34, françois facon wrote: Good news! I had to face the same problem with some tapestry5-jquery components Your issue is related to TAP5-2463. This should be fix in next version. Anyway, if you don't have any legacy code that use prototype.js, it is better to only use jQuery. :-) I didn't have javascript, I don't like it. Only thing I do is use a simple script to update a zone without having to refresh a page. But I still have this issue, when I put the application in a war file. It used to work before I added the js code. The app works in Eclipse with RunJettyRun, but not with Jetty in a .war file. 2015-09-13 17:24:17.619:WARN:oejw.WebAppContext:Failed startup of context o.e.j.w.WebAppContext{/mgnl,file:/var/cache/jetty8/data/jetty-0.0.0.0-8080-mgnl.war-_mgnl-any-/webapp/},/var/lib/jetty8/webapps/mgnl.war javax.servlet.UnavailableException: org.apache.tapestry5.TapestryFilter at org.eclipse.jetty.servlet.Holder.doStart(Holder.java:114) at org.eclipse.jetty.servlet.FilterHolder.doStart(FilterHolder.java:90) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64) at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:768) at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:265) at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1270) at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:719) at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:522) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64) at org.eclipse.jetty.deploy.bindings.StandardStarter.processBinding(StandardStarter.java:39) at org.eclipse.jetty.deploy.AppLifeCycle.runBindings(AppLifeCycle.java:186) at org.eclipse.jetty.deploy.DeploymentManager.requestAppGoal(DeploymentManager.java:494) at org.eclipse.jetty.deploy.DeploymentManager.addApp(DeploymentManager.java:141) at org.eclipse.jetty.deploy.providers.ScanningAppProvider.fileAdded(ScanningAppProvider.java:145) at org.eclipse.jetty.deploy.providers.ScanningAppProvider$1.fileAdded(ScanningAppProvider.java:56) at org.eclipse.jetty.util.Scanner.reportAddition(Scanner.java:615) at org.eclipse.jetty.util.Scanner.reportDifferences(Scanner.java:540) at org.eclipse.jetty.util.Scanner.scan(Scanner.java:403) at org.eclipse.jetty.util.Scanner.doStart(Scanner.java:337) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64) at org.eclipse.jetty.deploy.providers.ScanningAppProvider.doStart(ScanningAppProvider.java:121) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64) at org.eclipse.jetty.deploy.DeploymentManager.startAppProvider(DeploymentManager.java:555) at org.eclipse.jetty.deploy.DeploymentManager.doStart(DeploymentManager.java:230) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64) at org.eclipse.jetty.util.component.AggregateLifeCycle.doStart(AggregateLifeCycle.java:81) at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:58) at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:96) at org.eclipse.jetty.server.Server.doStart(Server.java:282) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64) at org.eclipse.jetty.xml.XmlConfiguration$1.run(XmlConfiguration.java:1274) at java.security.AccessController.doPrivileged(Native Method) at org.eclipse.jetty.xml.XmlConfiguration.main(XmlConfiguration.java:1197) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.eclipse.jetty.start.Main.invokeMain(Main.java:473) at org.eclipse.jetty.start.Main.start(Main.java:615) at org.eclipse.jetty.start.Main.main(Main.java:96) Best regards François 2015-09-13 17:46 GMT+02:00 Christine : On 13-09-15 11:12, françois facon wrote: Hi Christine, Did you try to force the use of jQuery whithout prototype in your beta35 version ? This could be done by adding the following code configuration.add( SymbolConstants.JAVASCRIPT_INFRASTRUCTURE_PROVIDER, "jquery"); in the contributeApplicationDefaults part of your AppModule. that worked, thank you. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional
Re: Ajax issue in beta35
On 13-09-15 11:12, françois facon wrote: Hi Christine, Did you try to force the use of jQuery whithout prototype in your beta35 version ? This could be done by adding the following code configuration.add( SymbolConstants.JAVASCRIPT_INFRASTRUCTURE_PROVIDER, "jquery"); in the contributeApplicationDefaults part of your AppModule. that worked, thank you. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Ajax issue in beta35
On 13-09-15 11:12, françois facon wrote: Hi Christine, Did you try to force the use of jQuery whithout prototype in your beta35 version ? I will try. After I created a .war file from the app and uploaded it to the server, running jetty8, the app worked, but the ajax call doesn't. I think it's an issue with where the assets and .js files are put, I'm not sure. When I run the same .war file on my desktop computer with jetty8, I get 2015-09-13 17:24:17.619:WARN:oejw.WebAppContext:Failed startup of context o.e.j.w.WebAppContext{/mgnl,file:/var/cache/jetty8/data/jetty-0.0.0.0-8080-mgnl.war-_mgnl-any-/webapp/},/var/lib/jetty8/webapps/mgnl.war javax.servlet.UnavailableException: org.apache.tapestry5.TapestryFilter at org.eclipse.jetty.servlet.Holder.doStart(Holder.java:114) at org.eclipse.jetty.servlet.FilterHolder.doStart(FilterHolder.java:90) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64) at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:768) at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:265) at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1270) at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:719) at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:522) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64) at org.eclipse.jetty.deploy.bindings.StandardStarter.processBinding(StandardStarter.java:39) at org.eclipse.jetty.deploy.AppLifeCycle.runBindings(AppLifeCycle.java:186) at org.eclipse.jetty.deploy.DeploymentManager.requestAppGoal(DeploymentManager.java:494) at org.eclipse.jetty.deploy.DeploymentManager.addApp(DeploymentManager.java:141) at org.eclipse.jetty.deploy.providers.ScanningAppProvider.fileAdded(ScanningAppProvider.java:145) at org.eclipse.jetty.deploy.providers.ScanningAppProvider$1.fileAdded(ScanningAppProvider.java:56) at org.eclipse.jetty.util.Scanner.reportAddition(Scanner.java:615) at org.eclipse.jetty.util.Scanner.reportDifferences(Scanner.java:540) at org.eclipse.jetty.util.Scanner.scan(Scanner.java:403) at org.eclipse.jetty.util.Scanner.doStart(Scanner.java:337) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64) at org.eclipse.jetty.deploy.providers.ScanningAppProvider.doStart(ScanningAppProvider.java:121) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64) at org.eclipse.jetty.deploy.DeploymentManager.startAppProvider(DeploymentManager.java:555) at org.eclipse.jetty.deploy.DeploymentManager.doStart(DeploymentManager.java:230) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64) at org.eclipse.jetty.util.component.AggregateLifeCycle.doStart(AggregateLifeCycle.java:81) at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:58) at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:96) at org.eclipse.jetty.server.Server.doStart(Server.java:282) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64) at org.eclipse.jetty.xml.XmlConfiguration$1.run(XmlConfiguration.java:1274) at java.security.AccessController.doPrivileged(Native Method) at org.eclipse.jetty.xml.XmlConfiguration.main(XmlConfiguration.java:1197) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.eclipse.jetty.start.Main.invokeMain(Main.java:473) at org.eclipse.jetty.start.Main.start(Main.java:615) at org.eclipse.jetty.start.Main.main(Main.java:96) This is the page: http://www.christine.nl/mgnl/7 dagdag Christine This could be done by adding the following code configuration.add( SymbolConstants.JAVASCRIPT_INFRASTRUCTURE_PROVIDER, "jquery"); in the contributeApplicationDefaults part of your AppModule. Best Regards François 2015-09-12 20:15 GMT+02:00 Christine : I have recently added Ajax to a project, to update a zone periodically (following the example in Jumpstart7). I couldn't get it to work in one project, but copying the code to another, similar project showed it worked. Today I found it stopped working. Took me some time to realize I had updated the projects from 5.4 beta26 to beta35. Moving back to 26 made the call work again. I can give the code, but it's basically copied
Ajax issue in beta35
I have recently added Ajax to a project, to update a zone periodically (following the example in Jumpstart7). I couldn't get it to work in one project, but copying the code to another, similar project showed it worked. Today I found it stopped working. Took me some time to realize I had updated the projects from 5.4 beta26 to beta35. Moving back to 26 made the call work again. I can give the code, but it's basically copied and pasted from the Periodic Update example in jumpstart7. dagdag Christine - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
prefilling password
I have a form with a password field. It gets pre-filled with a previously used password string. How can I prevent the browser and/or Tapestry from putting a value in the password field? dagdag Christine - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: assets:context location in war file
On 18-05-15 14:39, Thiago H de Paula Figueiredo wrote: That's your error. The context asset path root folder is the root of the WAR. In the sources, if you follow the Maven folder conventions, the context root folder is /src/main/webapp. Thanks. But somehow, it now seems to find the layout.css, but not the images. I checked the war file. Now i put the images outside the app, which works, for now. dagdag Christine - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
assets:context location in war file
Hi, I run a Tapestry 5.4-beta-26 app in Eclipse with RunJettyRun, which works fine. Now I want to create a war file, I use wtp, it works to a certain point, but it seems Tapestry can't find the context folder. Where do I put the stuff that's in "webapp" in Eclipse? I get Exceptions on href="${asset:context:/favicon.ico}"> in a tml file: Caused by: java.lang.RuntimeException: Unable to locate asset 'context:favicon.ico' (the file does not exist). at org.apache.tapestry5.internal.services.AssetSourceImpl.getLocalizedAssetFromResource(AssetSourceImpl.java:376) at org.apache.tapestry5.internal.services.AssetSourceImpl.getAssetInLocale(AssetSourceImpl.java:309) at org.apache.tapestry5.internal.services.AssetSourceImpl.access$300(AssetSourceImpl.java:46) at org.apache.tapestry5.internal.services.AssetSourceImpl$1.invoke(AssetSourceImpl.java:194) at org.apache.tapestry5.internal.services.AssetSourceImpl$1.invoke(AssetSourceImpl.java:153) at org.apache.tapestry5.ioc.internal.OperationTrackerImpl.invoke(OperationTrackerImpl.java:82) and on @Import(stylesheet = "context:layout/layout.css") in Layout.java: Caused by: java.lang.RuntimeException: Unable to locate asset 'context:layout/layout.css' (the file does not exist). In my Eclipse project that runs with RunJettyRun I have a webapp dir at the same level as "java" and "resources", in which there's layout/layout.css and images. In the war, I have WebContent with META-INF and WEB-INF, I put layout/layout.css and images in WEB-INF. My question is basically "where do I put layout/layout.css and images in the WebContent folder, and how do I tell jetty8/Tapestry to look there?" I used to be able make it work that way, but it's been a while since I used Tapestry and I don't remember the details. dagdag Christine - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: JPA again
On 10/12/2011 04:49 PM, Serge Eby wrote: Hi, Look for JPA here: http://tapestry5.de/ Thank you. Actually, that is the sample I am using. HTH, /Serge -- View this message in context: http://tapestry-users.832.n2.nabble.com/JPA-again-tp6885036p6885313.html Sent from the Tapestry Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
JPA again
Hi, I'm using 5.3 beta 19 now. Tapestry jpa can't seem to find my persistence.xml. When I make a deliberate typo in the file, it doesn't complain. Even when I delete the file, jpa doesn't complain. I'd expect jpa to say someting like "missing persistence unit". META-INF is in the root of my war file, persistence.xml is in META-INF. I've tried running my app in eclipse using runjettyrun, and by running mvn jetty:run. What I get is a null em. http://pastebin.com/QCg7Uj65 Christine - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Tapestry JPA question
On 10/09/2011 10:14 PM, Lenny Primak wrote: 5.3.0 is very old. Your problem may be that you need the later beta... tapestry-repo https://repository.apache.org/content/groups/staging and use beta-18 or later. Thanks. I now use beta-18 from the staging repository. But the entityManager is still null. It seems to be an issue with the location of persistence.xml, or the processing of it. I put META-INF in the root of my project, then the app starts normally. But if I remove the sql Driver jar from the classpath, the app still starts normally, only complaining about em being null. I'd expect it to complain about the Driver jar missing. So, is it ok to put persistence.xml in META-INF which is in the root of my project? In the war file, META-INF ends up in the root. Do I need a reference to the persistence unit in web.xml? dagdag Christine On Oct 9, 2011, at 4:10 PM, Christine wrote: Hi, I read the messages from a month ago about getting the example app running as explained here: http://tapestry.apache.org/integrating-with-jpa.html I have put version 5.3.0 in my pom, so it downloads Tapestry 5.3.0 including jpa. I have added tapestry-jpa, ejb3 and eclipselink dependencies. I have a persistence.xml, I have edited the web.xml, and everything as in the example. I run my app with runjettyrun in Eclipse. I have tried with postgres and H2, but that doesn't seem to make a difference. I don't see an eclipselink login in the logs. What I get is a null pointer exception on the EntityManager, it doesn't get injected or it isn't created. Here's my persistence.xml, AppModule.java, tapestry startup log: http://pastebin.com/QCg7Uj65 I'm sure there's something very basic that I have missed, but reading and rereading both the tutorial page and the previous email conversation, I can't find it. Would anyone care to have a quick look? Thanks! Christine - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Tapestry JPA question
Hi, I read the messages from a month ago about getting the example app running as explained here: http://tapestry.apache.org/integrating-with-jpa.html I have put version 5.3.0 in my pom, so it downloads Tapestry 5.3.0 including jpa. I have added tapestry-jpa, ejb3 and eclipselink dependencies. I have a persistence.xml, I have edited the web.xml, and everything as in the example. I run my app with runjettyrun in Eclipse. I have tried with postgres and H2, but that doesn't seem to make a difference. I don't see an eclipselink login in the logs. What I get is a null pointer exception on the EntityManager, it doesn't get injected or it isn't created. Here's my persistence.xml, AppModule.java, tapestry startup log: http://pastebin.com/QCg7Uj65 I'm sure there's something very basic that I have missed, but reading and rereading both the tutorial page and the previous email conversation, I can't find it. Would anyone care to have a quick look? Thanks! Christine - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
T5 Re: Portlets?
spaway wrote: liferay supports tapestry - meaning you can develop liferay's portlet in tapestry as a plugin - I suppose! check liferay's wiki/blog very well! I couldn't find anything. It would be really nice if Tapesty5 would support portlets. dagdag Christine 2009/8/6 Christine A friend told me that Tapestry will support portlets at some point. Is that true? One of my clients is switching to Liferay and I'd like to develop the portlets with Tapestry.... dagdag Christine -- dagdag is just a two-character rotation of byebye. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org -- dagdag is just a two-character rotation of byebye.
Portlets?
A friend told me that Tapestry will support portlets at some point. Is that true? One of my clients is switching to Liferay and I'd like to develop the portlets with Tapestry dagdag Christine -- dagdag is just a two-character rotation of byebye. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: stax2 issue
Howard Lewis Ship wrote: This is likely related ... ... but it isn't. Eclipse apparently found a woodstox jar that was not put in the war file I created. Sorry for causing confusion here. Christine an effort is underway to release a bug fix release for 5.1 to address this issue and not require the Woodstox parser (but will probably still require some StAX parser). On Wed, Jul 1, 2009 at 1:59 PM, Christine wrote: Hi, My app uses Tapestry and Google Maps. I upgraded to Tapestry 5.1, running my app in Eclipse works fine (I use run jetty run). However, when I create a war file and run it in Jetty, I get this error: Exception constructing service 'TemplateParser': Error invoking constructor org.apache.tapestry5.internal.services.TemplateParserImpl(Map, boolean) (at TemplateParserImpl.java:50) via org.apache.tapestry5.internal.services.InternalModule.bind(ServiceBinder) (at InternalModule.java:65) (for service 'TemplateParser'): com.sun.xml.internal.stream.XMLInputFactoryImpl cannot be cast to org.codehaus.stax2.XMLInputFactory2 I found an earlier email about woodstox not being compatible with google app engine. Is this related to that? I hesitate to go back to t5.0 because in t5.1 I can have my javascript included by Tapestry - it needs to be loaded before I build the map, or rather, before I create the markers. dagdag Christine -- dagdag is just a two-character rotation of byebye. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org -- dagdag is just a two-character rotation of byebye.
stax2 issue
Hi, My app uses Tapestry and Google Maps. I upgraded to Tapestry 5.1, running my app in Eclipse works fine (I use run jetty run). However, when I create a war file and run it in Jetty, I get this error: Exception constructing service 'TemplateParser': Error invoking constructor org.apache.tapestry5.internal.services.TemplateParserImpl(Map, boolean) (at TemplateParserImpl.java:50) via org.apache.tapestry5.internal.services.InternalModule.bind(ServiceBinder) (at InternalModule.java:65) (for service 'TemplateParser'): com.sun.xml.internal.stream.XMLInputFactoryImpl cannot be cast to org.codehaus.stax2.XMLInputFactory2 I found an earlier email about woodstox not being compatible with google app engine. Is this related to that? I hesitate to go back to t5.0 because in t5.1 I can have my javascript included by Tapestry - it needs to be loaded before I build the map, or rather, before I create the markers. dagdag Christine -- dagdag is just a two-character rotation of byebye. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Validating nested loops with helper classes
Stephan Windmüller wrote: All jobs and select boxes are drawn as expected, but now I am stuck. After submitting the form How do you submit the form? the values reset, job.assignments is never changed. Also I am unable to validate if a user has been assigned twice or more to a job. JobEncoder creates a new DisplayJob, reading the assignments from the database, so the data is of course not changed. But where is the place to change the database? Does anyone know how I can accomplish this task? Or is it even possible to display the data in a Grid component? TIA Stephan - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org -- dagdag is just a two-character rotation of byebye. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: recursion in PropertyConduitSource?
Howard Lewis Ship wrote: Try using the correct dependency: antlr-runtime-3.1.1. thanks, that works. On Tue, Jun 23, 2009 at 10:35 AM, Christine wrote: replying to an old reply, about an error I get when upgrading to Tapestry 5.1 (upgrade consisted of replacing the three Tapeestry lib files that I have in my project by their 5.1 versions): This is the first error I get in my Eclipse console: java.lang.NoClassDefFoundError: org/antlr/runtime/CharStream at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Class.java:2406) at java.lang.Class.getConstructors(Class.java:1476) at org.apache.tapestry5.ioc.internal.util.InternalUtils.findAutobuildConstructor(InternalUtils.java:628) at org.apache.tapestry5.ioc.internal.ServiceResourcesImpl$4.invoke(ServiceResourcesImpl.java:150) at org.apache.tapestry5.ioc.internal.OperationTrackerImpl.invoke(OperationTrackerImpl.java:68) at org.apache.tapestry5.ioc.internal.PerThreadOperationTracker.invoke(PerThreadOperationTracker.java:68) at org.apache.tapestry5.ioc.internal.RegistryImpl.invoke(RegistryImpl.java:941) at org.apache.tapestry5.ioc.internal.ServiceResourcesImpl.autobuild(ServiceResourcesImpl.java:145) at org.apache.tapestry5.ioc.internal.services.AutobuildObjectProvider.provide(AutobuildObjectProvider.java:33) at org.apache.tapestry5.ioc.internal.services.MasterObjectProviderImpl$1.invoke(MasterObjectProviderImpl.java:48) at org.apache.tapestry5.ioc.internal.OperationTrackerImpl.invoke(OperationTrackerImpl.java:68) at org.apache.tapestry5.ioc.internal.PerThreadOperationTracker.invoke(PerThreadOperationTracker.java:68) at org.apache.tapestry5.ioc.internal.RegistryImpl.invoke(RegistryImpl.java:941) at org.apache.tapestry5.ioc.internal.services.MasterObjectProviderImpl.provide(MasterObjectProviderImpl.java:41) at $MasterObjectProvider_1220e25ac25.provide($MasterObjectProvider_1220e25ac25.java) at org.apache.tapestry5.ioc.internal.RegistryImpl.getObject(RegistryImpl.java:696) at org.apache.tapestry5.ioc.internal.ObjectLocatorImpl.getObject(ObjectLocatorImpl.java:49) at org.apache.tapestry5.ioc.internal.util.InternalUtils.calculateInjection(InternalUtils.java:209) at org.apache.tapestry5.ioc.internal.util.InternalUtils.access$000(InternalUtils.java:43) at org.apache.tapestry5.ioc.internal.util.InternalUtils$2.invoke(InternalUtils.java:256) at org.apache.tapestry5.ioc.internal.OperationTrackerImpl.invoke(OperationTrackerImpl.java:68) at org.apache.tapestry5.ioc.internal.PerThreadOperationTracker.invoke(PerThreadOperationTracker.java:68) at org.apache.tapestry5.ioc.internal.RegistryImpl.invoke(RegistryImpl.java:941) at org.apache.tapestry5.ioc.internal.util.InternalUtils.calculateParameters(InternalUtils.java:260) at org.apache.tapestry5.ioc.internal.util.InternalUtils.calculateParametersForMethod(InternalUtils.java:217) at org.apache.tapestry5.ioc.internal.ServiceBuilderMethodInvoker.createObject(ServiceBuilderMethodInvoker.java:56) at org.apache.tapestry5.ioc.internal.OperationTrackingObjectCreator$1.invoke(OperationTrackingObjectCreator.java:45) at org.apache.tapestry5.ioc.internal.OperationTrackerImpl.invoke(OperationTrackerImpl.java:68) at org.apache.tapestry5.ioc.internal.PerThreadOperationTracker.invoke(PerThreadOperationTracker.java:68) at org.apache.tapestry5.ioc.internal.RegistryImpl.invoke(RegistryImpl.java:941) at org.apache.tapestry5.ioc.internal.OperationTrackingObjectCreator.createObject(OperationTrackingObjectCreator.java:49) at org.apache.tapestry5.ioc.internal.SingletonServiceLifecycle.createService(SingletonServiceLifecycle.java:29) at org.apache.tapestry5.ioc.internal.LifecycleWrappedServiceCreator.createObject(LifecycleWrappedServiceCreator.java:46) at org.apache.tapestry5.ioc.internal.AdvisorStackBuilder.createObject(AdvisorStackBuilder.java:60) at org.apache.tapestry5.ioc.internal.InterceptorStackBuilder.createObject(InterceptorStackBuilder.java:52) at org.apache.tapestry5.ioc.internal.RecursiveServiceCreationCheckWrapper.createObject(RecursiveServiceCreationCheckWrapper.java:60) at org.apache.tapestry5.ioc.internal.OperationTrackingObjectCreator$1.invoke(OperationTrackingObjectCreator.java:45) at org.apache.tapestry5.ioc.internal.OperationTrackerImpl.invoke(OperationTrackerImpl.java:68) at org.apache.tapestry5.ioc.internal.PerThreadOperationTracker.invoke(PerThreadOperationTracker.java:68) at org.apache.tapestry5.ioc.internal.RegistryImpl.invoke(RegistryImpl.java:941) at org.apache.tapestry5.ioc.internal.OperationTrackingObjectCreator.createObject(OperationTrackingObjectCreator.java:49) at org.apache.tapestry5.ioc.internal.services.JustInTimeObjectCreator.obtainObjectFromCreator(JustInTimeObjectCreator.java:68) at org.apache.tapestry5.ioc.internal.services.JustInTimeObjectCreator.createObject(JustInTimeObjectCreator.java:57) at $PropertyConduitSource_1220e25ac9d.delegate
Re: recursion in PropertyConduitSource?
(ServletHandler.java:1084) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:726) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) at org.mortbay.jetty.Server.handle(Server.java:320) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505) at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:828) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:514) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395) at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:450) Caused by: java.lang.ClassNotFoundException: org.antlr.runtime.CharStream at java.net.URLClassLoader$1.run(URLClassLoader.java:217) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:205) at java.lang.ClassLoader.loadClass(ClassLoader.java:323) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294) at java.lang.ClassLoader.loadClass(ClassLoader.java:268) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:336) ... 113 more The next error that I find in the console is the one I mentioned before. I have antlr 2.7.6 on my class path, same as before. Christine Sven Homburg wrote: have a look at your console output. may be there ist another exception in front of the shown exception with regards Sven Homburg Founder of the Chenille Kit Project http://www.chenillekit.org 2009/5/13 Christine After upgrading to 5.1, I get the error below. Apparently, there's an error in my app but when Tapestry wants to complain about the error, something goes wrong, or that's what it looks like to me. I have checked that the app still works with 5.0. dagdag Christine HTTP ERROR: 500 Exception assembling root component of page core/ExceptionReport: Could not convert 'productionMode' into a component parameter binding: Exception constructing service 'PropertyConduitSource': Construction of service 'PropertyConduitSource' has failed due to recursion: the service depends on itself in some way. Please check org.apache.tapestry5.services.TapestryModule.buildPropertyConduitSource(PropertyConduitSourceImpl, InvalidationEventHub) (at TapestryModule.java:1341) for references to another service that is itself dependent on service 'PropertyConduitSource'. RequestURI=/show/v440njzm Caused by: java.lang.RuntimeException: Exception assembling root component of page core/ExceptionReport: Could not convert 'productionMode' into a component parameter binding: Exception constructing service 'PropertyConduitSource': Construction of service 'PropertyConduitSource' has failed due to recursion: the service depends on itself in some way. Please check org.apache.tapestry5.services.TapestryModule.buildPropertyConduitSource(PropertyConduitSourceImpl, InvalidationEventHub) (at TapestryModule.java:1341) for references to another service that is itself dependent on service 'PropertyConduitSource'. at org.apache.tapestry5.internal.pageload.ComponentAssemblerImpl.assembleRootComponent(ComponentAssemblerImpl.java:110) at org.apache.tapestry5.internal.pageload.PageLoaderImpl.loadPage(PageLoaderImpl.java:159) at $PageLoader_1213948b5d9.loadPage($PageLoader_1213948b5d9.java) at org.apache.tapestry5.internal.services.PagePoolCache.checkout(PagePoolCache.java:210) at org.apache.tapestry5.internal.services.PagePoolImpl.checkout(PagePoolImpl.java:99) at $PagePool_1213948b5d8.checkout($PagePool_1213948b5d8.java) at org.apache.tapestry5.internal.services.RequestPageCacheImpl.get(RequestPageCacheImpl.java:51) at $RequestPageCache_1213948b5d7.get($RequestPageCache_1213948b5d7.java) at $RequestPageCache_1213948b5d0.get($RequestPageCache_1213948b5d0.java) at org.apache.tapestry5.internal.services.DefaultRequestExceptionHandler.handleRequestException(DefaultRequestExceptionHandler.java:69) at $RequestExceptionHandler_1213948b5ba.handleRequestException($RequestExceptionHandler_1213948b5ba.java) at org.apache.tapestry5.internal.services.RequestErrorFilter.service(RequestErrorFilter.java:42) at $RequestHandler_1213948b5bc.service($RequestHandler_1213948b5bc.java) at org.apache.tapestry5.services.TapestryModule$4.service(TapestryModule
recursion in PropertyConduitSource?
After upgrading to 5.1, I get the error below. Apparently, there's an error in my app but when Tapestry wants to complain about the error, something goes wrong, or that's what it looks like to me. I have checked that the app still works with 5.0. dagdag Christine HTTP ERROR: 500 Exception assembling root component of page core/ExceptionReport: Could not convert 'productionMode' into a component parameter binding: Exception constructing service 'PropertyConduitSource': Construction of service 'PropertyConduitSource' has failed due to recursion: the service depends on itself in some way. Please check org.apache.tapestry5.services.TapestryModule.buildPropertyConduitSource(PropertyConduitSourceImpl, InvalidationEventHub) (at TapestryModule.java:1341) for references to another service that is itself dependent on service 'PropertyConduitSource'. RequestURI=/show/v440njzm Caused by: java.lang.RuntimeException: Exception assembling root component of page core/ExceptionReport: Could not convert 'productionMode' into a component parameter binding: Exception constructing service 'PropertyConduitSource': Construction of service 'PropertyConduitSource' has failed due to recursion: the service depends on itself in some way. Please check org.apache.tapestry5.services.TapestryModule.buildPropertyConduitSource(PropertyConduitSourceImpl, InvalidationEventHub) (at TapestryModule.java:1341) for references to another service that is itself dependent on service 'PropertyConduitSource'. at org.apache.tapestry5.internal.pageload.ComponentAssemblerImpl.assembleRootComponent(ComponentAssemblerImpl.java:110) at org.apache.tapestry5.internal.pageload.PageLoaderImpl.loadPage(PageLoaderImpl.java:159) at $PageLoader_1213948b5d9.loadPage($PageLoader_1213948b5d9.java) at org.apache.tapestry5.internal.services.PagePoolCache.checkout(PagePoolCache.java:210) at org.apache.tapestry5.internal.services.PagePoolImpl.checkout(PagePoolImpl.java:99) at $PagePool_1213948b5d8.checkout($PagePool_1213948b5d8.java) at org.apache.tapestry5.internal.services.RequestPageCacheImpl.get(RequestPageCacheImpl.java:51) at $RequestPageCache_1213948b5d7.get($RequestPageCache_1213948b5d7.java) at $RequestPageCache_1213948b5d0.get($RequestPageCache_1213948b5d0.java) at org.apache.tapestry5.internal.services.DefaultRequestExceptionHandler.handleRequestException(DefaultRequestExceptionHandler.java:69) at $RequestExceptionHandler_1213948b5ba.handleRequestException($RequestExceptionHandler_1213948b5ba.java) at org.apache.tapestry5.internal.services.RequestErrorFilter.service(RequestErrorFilter.java:42) at $RequestHandler_1213948b5bc.service($RequestHandler_1213948b5bc.java) at org.apache.tapestry5.services.TapestryModule$4.service(TapestryModule.java:778) at $RequestHandler_1213948b5bc.service($RequestHandler_1213948b5bc.java) at org.apache.tapestry5.services.TapestryModule$3.service(TapestryModule.java:767) at $RequestHandler_1213948b5bc.service($RequestHandler_1213948b5bc.java) at org.apache.tapestry5.internal.services.StaticFilesFilter.service(StaticFilesFilter.java:85) at $RequestHandler_1213948b5bc.service($RequestHandler_1213948b5bc.java) at org.apache.tapestry5.internal.services.CheckForUpdatesFilter$2.invoke(CheckForUpdatesFilter.java:90) at org.apache.tapestry5.internal.services.CheckForUpdatesFilter$2.invoke(CheckForUpdatesFilter.java:81) at org.apache.tapestry5.ioc.internal.util.ConcurrentBarrier.withRead(ConcurrentBarrier.java:85) at org.apache.tapestry5.internal.services.CheckForUpdatesFilter.service(CheckForUpdatesFilter.java:103) at $RequestHandler_1213948b5bc.service($RequestHandler_1213948b5bc.java) at $RequestHandler_1213948b5b2.service($RequestHandler_1213948b5b2.java) at org.apache.tapestry5.services.TapestryModule$HttpServletRequestHandlerTerminator.service(TapestryModule.java:197) at org.apache.tapestry5.internal.gzip.GZipFilter.service(GZipFilter.java:53) at $HttpServletRequestHandler_1213948b5b4.service($HttpServletRequestHandler_1213948b5b4.java) at org.apache.tapestry5.internal.services.IgnoredPathsFilter.service(IgnoredPathsFilter.java:62) at $HttpServletRequestFilter_1213948b5b1.service($HttpServletRequestFilter_1213948b5b1.java) at $HttpServletRequestHandler_1213948b5b4.service($HttpServletRequestHandler_1213948b5b4.java) at org.apache.tapestry5.services.TapestryModule$2.service(TapestryModule.java:726) at $HttpServletRequestHandler_1213948b5b4.service($HttpServletRequestHandler_1213948b5b4.java) at $HttpServletRequestHandler_1213948b5af.service($HttpServletRequestHandler_1213948b5af.java)
Re: Loop in javascript?
Thiago H. de Paula Figueiredo wrote: One way of doing it: in your page or component class, @Inject RenderSupport and generate Javascript through RenderSupport.addScript(). I made the loop in javascript, then added an Ajax.Request to get json data from an onEvent in my component. The ajax request sends an index which gives it the appropirate element from a List. I use it to put markers on a Google map that's created in my tml file. A friend helped me figure it out :-) dagdag Christine - dagdag is just a two-character rotation of byebye. smime.p7s Description: S/MIME Cryptographic Signature
Loop in javascript?
Hi, I'd like to iterate an ArrayList() in my java file from within javascript in the tpl file. It seems that Loop only works as part of an html tag. Is there a way I can have javascript loop over an ArrayList() ? dagdag Christine -- dagdag is just a two-character rotation of byebye. smime.p7s Description: S/MIME Cryptographic Signature
Re: [daniel.a.jo...@gmail.com: Hibernate.cfg or persistence.xml?]
From: daniel joyce To: users@tapestry.apache.org X-Virus-Checked: Checked by ClamAV on apache.org I want to use persistence annotations in my tapestry application, but the documentation on the hibernate-tapestry integration is sparse and contradictory. Do I need to use Hibernate.cfg.xml, or can I use a persistence.xml with hibernate as the persistence provider? I see references to acquiring a EntityManager, or setting up some kind of automatic service in the AppModule, but all the info I've found is sparse at best. I'm not a Hibernate expert, but the Hibernate book explains how to switch from using hibernate.cfg.xml to just persistence.xml. I use persistence.xml, but it all depends - I guess - on how you want to use Hibernate and Java persistence. dagdag Christine Any better sources out there? -Daniel - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org - End forwarded message - smime.p7s Description: S/MIME Cryptographic Signature
Re: img tag (src)
Hi, may I suggest that the tutorial on tapestry.apache.org ("tutorial1") be updated? The "mvn create" command doesn't work for me as it is now, maven suggested I use "generate", but then you need some additional info to make it work properly. This would make life easier for newbies - like me. Maybe this has been suggested before, couldn't find it in the archives. I'm willing to provide the new chunks of text. dagdag Christine -- dagdag is just a two character rotation of byebye www.christine.nl smime.p7s Description: S/MIME Cryptographic Signature