Re: ForBean: 4.1 to 4.1.1
I'm curious why storing a list in hidden fields, even as ids, isn't considered a huge security hole. Doesn't it seem like it is just inviting users to manipulate their application into letting them do things to entities they shouldn't have access to, etc. I use volatile wherever I can, despite the risk of stale link exceptions, precisely for this reason. It is either that or put a ton of logic into the converter to ensure that only the correct values are iterated over, and given that business rules may be different from loop to loop, it may even mean implementing different converter logic for every loop (or significant fraction of them) in the application. I am particularly concerned by storing the precomputed values of conditionals in hidden fields. If you have code that says something like span jwcid=@If condition=isAuthorized(...)some code here/span it would be all to easy to manipulate the client into rewinding with different authorization credentials than the page was rendered with. So basically, my strategy is to use volatile=true in almost all conditionals and loops. I am at higher risk of stale link errors, but much lower risk of security breach and malicious users. The one case that forces me to use a non-volatile conditional or loop is when a field from earlier in the page is part of the condition. Since that value can easily change when it is rewound prior to the conditional, I am forced to either implement logic in the page which stores the prior value when the set method is called, or use a non-volatile conditional. --sam On 3/13/07, Jesse Kuhnert [EMAIL PROTECTED] wrote: I'm not certain this change happened from 4.1 to 4.1.1 as I'm pretty sure I never made it. Maybe from 3 - 4 ? The list is stored in the form ~specifically~ so that it does match exactly on render/rewind as anything else would be un-predictable . You can set volatile=true on your list - but if you are using hibernate you really want to make use of the converter parameter to encode the very minimum amount of data necessary to re-constitute your entity list. On 3/12/07, Robert J. Walker [EMAIL PROTECTED] wrote: I just upgraded from Tapestry 4.1 to 4.1.1. Now I'm having some problems with the For component. It seems that it was changed so that it stores the source list in hidden fields in the page and uses the stored version on rewind. I can understand why this might be useful, since it could be problematic if the source list changed on you between render and rewind. That being said, it causes two really big problems for me: 1. The download size of the page just got enormous. 2. The source list contains Hibernate entities, which are now detached on the rewind, causing errors. What I really want is the old behavior, which is to reload the list every time. I'll deal with the consequences of the list changing. Is there some way to get that behavior back, short of making my own component that subclasses ForBean and overrides getData()? Robert J. Walker - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JFlyEditTable update
Hello everybody, A new demo of JFlyEditTable for Tapestry 4.1.1 is present at http://www.wingstech.com/JFlyDemo The component now can incorporates custom widgets into cells when in edit mode as demonstrated here http://www.wingstech.com/JFlyDemo/BrokenGrid.page The grid still has some bugs: 1) it doesn't work under MSIE (if someone has a js debugger for msie and want to check the exception launched by the evil browser is welcome) 2) When using widgets into cells it's necessary that one widget is already present into the page (the BrokenGrid.page has one hidden next to the 'clear list' button), if a widget isn't present an exception about alertdialog not defined into namespace is thrown (this exception should be investigated deeply). New tests need to be done with other dojo widgets. The source code may be retrieved via svn: svn co https://tapestry-jfly.svn.sourceforge.net/svnroot/tapestry-jfly/trunkjfly I hope you enjoy it. Have a good day, kiuma
Catch 22 - Tapestry5 vs Maven (vs me)
Hi, I've tried the hilo example given in the Tapestry5 tutorial (which is also the first time I used Maven). The build failed: mvn.bat archetype:create -DremoteRepositories=http://people.apache.org/repo/m2-snapshot-repository/ -DarchetypeGroupId=org.apache.tapestry -DarchetypeArtifactId=quickstart -DarchetypeVersion=5.0.3-SNAPSHOT -DgroupId=org.example -DartifactId=myapp -DpackageName=org.example.myapp -Dversion=1.0.0-SNAPSHOT Error message: = [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error creating from archetype Embedded error: Archetype does not exist: Unable to download the artifact from any repository Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=org.apache.tapestry -DartifactId=quickstart \ -Dversion=5.0.3-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file org.apache.tapestry:quickstart:jar:5.0.3-SNAPSHOT from the specified remote repositories: central (http://repo1.maven.org/maven2) = I got around that by adding -DremoteRepositories=http://people.apache.org/repo/m2-snapshot-repository/ to the command-line. This time the build was successful. The next step in the tutorial is: mvn jetty:run This failed with: = [ERROR] BUILD ERROR [INFO] [INFO] Error building POM (may not be this project's POM). Project ID: org.apache.maven.plugins:maven-war-plugin Reason: Error getting POM for 'org.apache.maven.plugins:maven-war-plugin' from the repository: Failed to resolve artifact, possibly due to a repository list that is not appropriately equipped for this artifact's metadata. org.apache.maven.plugins:maven-war-plugin:pom:2.0.3-SNAPSHOT from the specified remote repositories: apache.snapshots (http://people.apache.org/repo/m2-snapshot-repository/), howardlewisship.com (http://howardlewisship.com/repository), central (http://repo1.maven.org/maven2) = Which is weird. My local repo directory has org\apache\maven\plugins\maven-war-plugin, inside there's maven-metadata-apache.snapshots.xml, which has: = ?xml version=1.0 encoding=UTF-8?metadata groupIdorg.apache.maven.plugins/groupId artifactIdmaven-war-plugin/artifactId version2.0-beta-3-SNAPSHOT/version versioning latest2.0.3-SNAPSHOT/latest versions version2.0-beta-3-SNAPSHOT/version version2.0-SNAPSHOT/version version2.0.1-SNAPSHOT/version version2.0.1-20060627.091727-2/version version2.0.1-20060627.092201-2/version version2.0.2-SNAPSHOT/version version2.0.3-SNAPSHOT/version /versions lastUpdated20070311165228/lastUpdated /versioning /metadata = I can get past this, too, by editing pom.xml, removing the repository apache.snapshots. The build starts after downloading a bunch more of stuff, including some from people.apache.org/repo2/m2-snapshot-repository. This is probably only strange to me, who has never used maven and has not read the docs. Unfortunately, after the promising start, if fails when building: = [INFO] [compiler:compile] [INFO] Compiling 2 source files to D:\TEMP\myapp\target\classes [INFO] [ERROR] BUILD FAILURE [INFO] [INFO] Compilation failure D:\TEMP\myapp\src\main\java\org\example\myapp\services\AppModule.java:[8,42] cannot find symbol symbol : class Contribute location: package org.apache.tapestry.ioc.annotations D:\TEMP\myapp\src\main\java\org\example\myapp\services\AppModule.java:[9,42] cannot find symbol symbol : class Id location: package org.apache.tapestry.ioc.annotations D:\TEMP\myapp\src\main\java\org\example\myapp\services\AppModule.java:[20,1] cannot find symbol symbol: class Id @Id(app) D:\TEMP\myapp\src\main\java\org\example\myapp\services\AppModule.java:[23,5] cannot find symbol symbol : class Contribute location: class org.example.myapp.services.AppModule D:\TEMP\myapp\src\main\java\org\example\myapp\services\AppModule.java:[73,5] cannot find symbol symbol : class Contribute location: class org.example.myapp.services.AppModule = This is weird, as it did download Tapestry 5: = Downloading: http://people.apache.org/repo/m2-snapshot-repository//org/apache/tapestry/tapestry-ioc/5.0.3-SNAPSHOT/tapestry-ioc-5.0.3-20070311.173413-3.jar [...] Downloading: http://people.apache.org/repo/m2-snapshot-repository//org/apache/tapestry/tapestry-core/5.0.3-SNAPSHOT/tapestry-core-5.0.3-20070311.173413-3.jar = I'm at the end of my wit - could someone please point me in the right direction? TIA, Kofa - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Catch 22 - Tapestry5 vs Maven (vs me)
you should try mvn archetype:create ↵ -DarchetypeGroupId=org.apache.tapestry ↵ -DarchetypeArtifactId=tapestry-simple ↵ -DgroupId=org.example ↵ -DartifactId=hilo ↵ -DpackageName=org.example.hilo ↵ -DarchetypeVersion=5.0.2 it works fine, 5.0.3-SNAPSHOT is curently being changed rapidly after you have little fun with it you can try 5.0.3-SNAPSHOT I did that by changing tapestry version in bottom of pom.xml regarding the errors in hilo app: @id and @Contribute are being removed from ioc so naturaly it doesn't compile however you can just remove those lines and the hilo app should work just fine Davor Hrg On 3/14/07, Kovács István [EMAIL PROTECTED] wrote: Hi, I've tried the hilo example given in the Tapestry5 tutorial (which is also the first time I used Maven). The build failed: mvn.bat archetype:create -DremoteRepositories=http://people.apache.org/repo/m2-snapshot-repository/ -DarchetypeGroupId=org.apache.tapestry -DarchetypeArtifactId=quickstart -DarchetypeVersion=5.0.3-SNAPSHOT -DgroupId=org.example -DartifactId=myapp -DpackageName=org.example.myapp -Dversion=1.0.0-SNAPSHOT Error message: = [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error creating from archetype Embedded error: Archetype does not exist: Unable to download the artifact from any repository Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=org.apache.tapestry -DartifactId=quickstart \ -Dversion=5.0.3-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file org.apache.tapestry:quickstart:jar:5.0.3-SNAPSHOT from the specified remote repositories: central (http://repo1.maven.org/maven2) = I got around that by adding -DremoteRepositories=http://people.apache.org/repo/m2-snapshot-repository/ to the command-line. This time the build was successful. The next step in the tutorial is: mvn jetty:run This failed with: = [ERROR] BUILD ERROR [INFO] [INFO] Error building POM (may not be this project's POM). Project ID: org.apache.maven.plugins:maven-war-plugin Reason: Error getting POM for 'org.apache.maven.plugins:maven-war-plugin' from the repository: Failed to resolve artifact, possibly due to a repository list that is not appropriately equipped for this artifact's metadata. org.apache.maven.plugins:maven-war-plugin:pom:2.0.3-SNAPSHOT from the specified remote repositories: apache.snapshots (http://people.apache.org/repo/m2-snapshot-repository/ ), howardlewisship.com (http://howardlewisship.com/repository), central (http://repo1.maven.org/maven2) = Which is weird. My local repo directory has org\apache\maven\plugins\maven-war-plugin, inside there's maven-metadata-apache.snapshots.xml, which has: = ?xml version=1.0 encoding=UTF-8?metadata groupIdorg.apache.maven.plugins/groupId artifactIdmaven-war-plugin/artifactId version2.0-beta-3-SNAPSHOT/version versioning latest2.0.3-SNAPSHOT/latest versions version2.0-beta-3-SNAPSHOT/version version2.0-SNAPSHOT/version version2.0.1-SNAPSHOT/version version2.0.1-20060627.091727-2/version version2.0.1-20060627.092201-2/version version2.0.2-SNAPSHOT/version version2.0.3-SNAPSHOT/version /versions lastUpdated20070311165228/lastUpdated /versioning /metadata = I can get past this, too, by editing pom.xml, removing the repository apache.snapshots. The build starts after downloading a bunch more of stuff, including some from people.apache.org/repo2/m2-snapshot-repository. This is probably only strange to me, who has never used maven and has not read the docs. Unfortunately, after the promising start, if fails when building: = [INFO] [compiler:compile] [INFO] Compiling 2 source files to D:\TEMP\myapp\target\classes [INFO] [ERROR] BUILD FAILURE [INFO] [INFO] Compilation failure D:\TEMP\myapp\src\main\java\org\example\myapp\services\AppModule.java:[8,42] cannot find symbol symbol : class Contribute location: package org.apache.tapestry.ioc.annotations D:\TEMP\myapp\src\main\java\org\example\myapp\services\AppModule.java:[9,42] cannot find symbol symbol : class Id location: package org.apache.tapestry.ioc.annotations D:\TEMP\myapp\src\main\java\org\example\myapp\services\AppModule.java:[20,1] cannot find symbol symbol: class Id @Id(app) D:\TEMP\myapp\src\main\java\org\example\myapp\services\AppModule.java:[23,5] cannot find symbol symbol : class Contribute location: class org.example.myapp.services.AppModule D:\TEMP\myapp\src\main\java\org\example\myapp\services\AppModule.java:[73,5] cannot find symbol symbol : class Contribute location: class
T4.1.1: Encoding problem with assets
I recently upgraded from 4.0 to 4.1.1, and have solved most problems except one: The inclusion of dojo and tapestry javascript libraries from the classpath of tapestry-framework.jar doesn't work. I've narrowed the problem down to encoding. When I try to open the script file in the browser using http://localhost/myapp/assets/static/dojo/dojo.js, the file is displayed, but with wrong encoding causing only strange characters to appear. My App.application file contains the following: meta key=org.apache.tapestry.template-encoding value=UTF-8 / meta key=org.apache.tapestry.output-encoding value=UTF-8 / meta key=org.apache.tapestry.messages-encoding value=UTF-8 / When I remove those 3 meta tags, the javascript is rendered as us-ascii in the browser, but is still filled with bad characters. I tried to replace the dojo part of the .jar file with the one that I downloaded myself from dojotoolkit.org, which solved the problem. But obviously not with the tapestry core js-files. Does anyone know anything about this?
[OT] [T5] tapestry project structure
I noticed in the tapestry sources that while it's a multi-module maven project, all of the modules are at the same level in the source tree and each have their own set of branches/tags/trunk folders rather than having each module contained within it's parent module. What have you found to be the advantages of this? How does having each in a separate folder effect doing releases? Do you keep the version numbers in sync? Thanks. :) -- Dan Adams Senior Software Engineer Interactive Factory 617.235.5857 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tapestry Wizard Component
Folks, Does there exist a Wizard component anywhere. I am hoping tapestry can accomodate a better widget model for this kind of component. Struts turned out to be disorderly and sprawled. The wizard I would like is a wizard that can operate it's states off of a database so that in the event of a failure or quit, we can resume according to the state the wizard is in maybe 2 weeks later according to the state of the database. A modular self contained model. With BACK and NEXT buttons and eventually a FINISH button at the end and it accomodates N pages with which the pages can be any KIND of custom content do it yourself custom content pages whereby they all register at bind time. It can be static for now... nothing dynamic. Not interested in message queues yet. Am I asking for too much? Has anyone done it? Any prototypes available? Thanks in advance Best regards Ken in nashua _ Find a local pizza place, movie theater, and more .then map the best route! http://maps.live.com/?icid=hmtag1FORM=MGAC01 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tapestry Wizard Component
Ken, You have just given to me a very nice idea for the next web component I'll add to jfly as soon as I'll finish the JFlyEditTable. Thx for the idea, kiuma On 3/14/07, Ken nashua [EMAIL PROTECTED] wrote: Folks, Does there exist a Wizard component anywhere. I am hoping tapestry can accomodate a better widget model for this kind of component. Struts turned out to be disorderly and sprawled. The wizard I would like is a wizard that can operate it's states off of a database so that in the event of a failure or quit, we can resume according to the state the wizard is in maybe 2 weeks later according to the state of the database. A modular self contained model. With BACK and NEXT buttons and eventually a FINISH button at the end and it accomodates N pages with which the pages can be any KIND of custom content do it yourself custom content pages whereby they all register at bind time. It can be static for now... nothing dynamic. Not interested in message queues yet. Am I asking for too much? Has anyone done it? Any prototypes available? Thanks in advance Best regards Ken in nashua _ Find a local pizza place, movie theater, and more….then map the best route! http://maps.live.com/?icid=hmtag1FORM=MGAC01 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT] Problem switching from jboss to jetty - Need help!
Hi, I having a problem when I switching my development environment from running on JBoss 4.0.4.GA to jetty-5.1.12. I am using Eclipse 3.2.2 and the jetty launcher plugin. when I try to run my application with jetty launcher everything goes well until the end when jetty is starting up the servlet... I got this strange exception and I cant figure out the way to solve this. 11:00:48.593 INFO [main] org.apache.tapestry.ApplicationServlet.init(ApplicationServlet.java:211) 12 Initialized application servlet 'MyCompany': 750 millis to create HiveMind Registry, 1,657 millis overall. org.mortbay.util.MultiException[java.lang.ClassNotFoundException: org.apache.jasper.servlet.JspServlet] at org.mortbay.http.HttpServer.doStart(HttpServer.java:686) at org.mortbay.util.Container.start(Container.java:72) at com.iw.plugins.jettyrunner.PluginRunner.launch(PluginRunner.java:282) at com.iw.plugins.jettyrunner.PluginRunner.launch(PluginRunner.java:104) at com.iw.plugins.jettyrunner.PluginRunner.main(PluginRunner.java:75) java.lang.ClassNotFoundException: org.apache.jasper.servlet.JspServlet at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at org.mortbay.http.ContextLoader.loadClass(ContextLoader.java:219) at org.mortbay.http.ContextLoader.loadClass(ContextLoader.java:187) at org.mortbay.http.HttpContext.loadClass(HttpContext.java:1227) at org.mortbay.jetty.servlet.Holder.start(Holder.java:188) at org.mortbay.jetty.servlet.ServletHolder.start(ServletHolder.java:219) at org.mortbay.jetty.servlet.ServletHandler.initializeServlets(ServletHandler.java:446) at org.mortbay.jetty.servlet.WebApplicationHandler.initializeServlets(WebApplicationHandler.java:321) at org.mortbay.jetty.servlet.WebApplicationContext.doStart(WebApplicationContext.java:509) at org.mortbay.util.Container.start(Container.java:72) at org.mortbay.http.HttpServer.doStart(HttpServer.java:708) at org.mortbay.util.Container.start(Container.java:72) at com.iw.plugins.jettyrunner.PluginRunner.launch(PluginRunner.java:282) at com.iw.plugins.jettyrunner.PluginRunner.launch(PluginRunner.java:104) at com.iw.plugins.jettyrunner.PluginRunner.main(PluginRunner.java:75) java.lang.ClassNotFoundException: org.apache.jasper.servlet.JspServlet at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at org.mortbay.http.ContextLoader.loadClass(ContextLoader.java:219) at org.mortbay.http.ContextLoader.loadClass(ContextLoader.java:187) at org.mortbay.http.HttpContext.loadClass(HttpContext.java:1227) at org.mortbay.jetty.servlet.Holder.start(Holder.java:188) at org.mortbay.jetty.servlet.ServletHolder.start(ServletHolder.java:219) at org.mortbay.jetty.servlet.ServletHandler.initializeServlets(ServletHandler.java:446) at org.mortbay.jetty.servlet.WebApplicationHandler.initializeServlets(WebApplicationHandler.java:321) at org.mortbay.jetty.servlet.WebApplicationContext.doStart(WebApplicationContext.java:509) at org.mortbay.util.Container.start(Container.java:72) at org.mortbay.http.HttpServer.doStart(HttpServer.java:708) at org.mortbay.util.Container.start(Container.java:72) at com.iw.plugins.jettyrunner.PluginRunner.launch(PluginRunner.java:282) at com.iw.plugins.jettyrunner.PluginRunner.launch(PluginRunner.java:104) at com.iw.plugins.jettyrunner.PluginRunner.main(PluginRunner.java:75) I guess (hope) that the only thing is a missing jar file... Thanks in advance, Jacob -- View this message in context: http://www.nabble.com/-OT--Problem-switching-from-jboss-to-jetty---Need-help%21-tf3402709.html#a9476350 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: [OT] Problem switching from jboss to jetty - Need help!
I think you have to check you project dependency libraries under eclipse. kiuma On 3/14/07, jake123 [EMAIL PROTECTED] wrote: Hi, I having a problem when I switching my development environment from running on JBoss 4.0.4.GA to jetty-5.1.12. I am using Eclipse 3.2.2 and the jetty launcher plugin. when I try to run my application with jetty launcher everything goes well until the end when jetty is starting up the servlet... I got this strange exception and I cant figure out the way to solve this. 11:00:48.593 INFO [main] org.apache.tapestry.ApplicationServlet.init(ApplicationServlet.java:211) 12 Initialized application servlet 'MyCompany': 750 millis to create HiveMind Registry, 1,657 millis overall. org.mortbay.util.MultiException[java.lang.ClassNotFoundException: org.apache.jasper.servlet.JspServlet] at org.mortbay.http.HttpServer.doStart(HttpServer.java:686) at org.mortbay.util.Container.start(Container.java:72) at com.iw.plugins.jettyrunner.PluginRunner.launch( PluginRunner.java:282) at com.iw.plugins.jettyrunner.PluginRunner.launch( PluginRunner.java:104) at com.iw.plugins.jettyrunner.PluginRunner.main(PluginRunner.java :75) java.lang.ClassNotFoundException: org.apache.jasper.servlet.JspServlet at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at org.mortbay.http.ContextLoader.loadClass(ContextLoader.java :219) at org.mortbay.http.ContextLoader.loadClass(ContextLoader.java :187) at org.mortbay.http.HttpContext.loadClass(HttpContext.java:1227) at org.mortbay.jetty.servlet.Holder.start(Holder.java:188) at org.mortbay.jetty.servlet.ServletHolder.start( ServletHolder.java:219) at org.mortbay.jetty.servlet.ServletHandler.initializeServlets( ServletHandler.java:446) at org.mortbay.jetty.servlet.WebApplicationHandler.initializeServlets( WebApplicationHandler.java:321) at org.mortbay.jetty.servlet.WebApplicationContext.doStart( WebApplicationContext.java:509) at org.mortbay.util.Container.start(Container.java:72) at org.mortbay.http.HttpServer.doStart(HttpServer.java:708) at org.mortbay.util.Container.start(Container.java:72) at com.iw.plugins.jettyrunner.PluginRunner.launch( PluginRunner.java:282) at com.iw.plugins.jettyrunner.PluginRunner.launch( PluginRunner.java:104) at com.iw.plugins.jettyrunner.PluginRunner.main(PluginRunner.java :75) java.lang.ClassNotFoundException: org.apache.jasper.servlet.JspServlet at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at org.mortbay.http.ContextLoader.loadClass(ContextLoader.java :219) at org.mortbay.http.ContextLoader.loadClass(ContextLoader.java :187) at org.mortbay.http.HttpContext.loadClass(HttpContext.java:1227) at org.mortbay.jetty.servlet.Holder.start(Holder.java:188) at org.mortbay.jetty.servlet.ServletHolder.start( ServletHolder.java:219) at org.mortbay.jetty.servlet.ServletHandler.initializeServlets( ServletHandler.java:446) at org.mortbay.jetty.servlet.WebApplicationHandler.initializeServlets( WebApplicationHandler.java:321) at org.mortbay.jetty.servlet.WebApplicationContext.doStart( WebApplicationContext.java:509) at org.mortbay.util.Container.start(Container.java:72) at org.mortbay.http.HttpServer.doStart(HttpServer.java:708) at org.mortbay.util.Container.start(Container.java:72) at com.iw.plugins.jettyrunner.PluginRunner.launch( PluginRunner.java:282) at com.iw.plugins.jettyrunner.PluginRunner.launch( PluginRunner.java:104) at com.iw.plugins.jettyrunner.PluginRunner.main(PluginRunner.java :75) I guess (hope) that the only thing is a missing jar file... Thanks in advance, Jacob -- View this message in context: http://www.nabble.com/-OT--Problem-switching-from-jboss-to-jetty---Need-help%21-tf3402709.html#a9476350 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: Tapestry Wizard Component
Andrea, Additionally... to make this thing commercial grade... It would be nice to have a 100% width header bar at the top of the wizard with the contigious linear layout of all states connected to each other by arrows -- across the top whereby the current state is highlighted in bright green. OnNext, this bar would update to reflect the current state again. STATE 1 --- STATE 2 --- STATE 3 --- STATE N | | | | | user-defined-extensible-custom-content | | | | | | BACKFINISH | Ok, Dude... Best regards Ken in nashua _ Find a local pizza place, movie theater, and more .then map the best route! http://maps.live.com/?icid=hmtag1FORM=MGAC01 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to include DOCTYPE?
Thanks for the reply. As it turns out, the problem was with my CSS. On 14/03/07, Robert Zeigler [EMAIL PROTECTED] wrote: Pretty sure this isn't supported yet. See: http://tapestry.apache.org/tapestry5/tapestry-core/guide/dom.html Under Dom Classes, Document, there's a todo that includes doctype support. Robert On Mar 14, 2007, at 3/1410:46 AM , Kovács István wrote: Hi, I'm playing with Tapestry 5 (thanks Davor for getting me started!). I need to include a DOCTYPE in my HTML. The t5-tutorial says it's possible (Templates may even have a DOCTYPE or an XML schema to validate the structure of the template.); however, if I include a DOCTYPE in my template, it's removed in rendered output. That is, if my template is: === !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd; html xmlns:t=http://tapestry.apache.org/schema/tapestry_5_0_0.xsd; head title... === , rendered output is === htmlheadlink href=/myapp/assets/tapestry/default.css rel=stylesheet type=text/csstitle... === Without the DOCTYPE being there, I get a weird layout (I'm a beginner at CSS, too, so I may have broken something). BTW, the W3C validator says the link element is not closed properly, which is a requirement for XHTML. Please let me know how to include the DOCTYPE. TIA, Kofa - 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: How to include DOCTYPE?
Pretty sure this isn't supported yet. See: http://tapestry.apache.org/tapestry5/tapestry-core/guide/dom.html Under Dom Classes, Document, there's a todo that includes doctype support. Robert On Mar 14, 2007, at 3/1410:46 AM , Kovács István wrote: Hi, I'm playing with Tapestry 5 (thanks Davor for getting me started!). I need to include a DOCTYPE in my HTML. The t5-tutorial says it's possible (Templates may even have a DOCTYPE or an XML schema to validate the structure of the template.); however, if I include a DOCTYPE in my template, it's removed in rendered output. That is, if my template is: === !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd; html xmlns:t=http://tapestry.apache.org/schema/tapestry_5_0_0.xsd; head title... === , rendered output is === htmlheadlink href=/myapp/assets/tapestry/default.css rel=stylesheet type=text/csstitle... === Without the DOCTYPE being there, I get a weird layout (I'm a beginner at CSS, too, so I may have broken something). BTW, the W3C validator says the link element is not closed properly, which is a requirement for XHTML. Please let me know how to include the DOCTYPE. TIA, Kofa - 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]
How to include DOCTYPE?
Hi, I'm playing with Tapestry 5 (thanks Davor for getting me started!). I need to include a DOCTYPE in my HTML. The t5-tutorial says it's possible (Templates may even have a DOCTYPE or an XML schema to validate the structure of the template.); however, if I include a DOCTYPE in my template, it's removed in rendered output. That is, if my template is: === !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd; html xmlns:t=http://tapestry.apache.org/schema/tapestry_5_0_0.xsd; head title... === , rendered output is === htmlheadlink href=/myapp/assets/tapestry/default.css rel=stylesheet type=text/csstitle... === Without the DOCTYPE being there, I get a weird layout (I'm a beginner at CSS, too, so I may have broken something). BTW, the W3C validator says the link element is not closed properly, which is a requirement for XHTML. Please let me know how to include the DOCTYPE. TIA, Kofa - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Select/Option not working with Ajax in IE6
I want to have a list where I can select muliple values and then update some overview of the selected items by means of Ajax. This works in firefox, but it doesn't work in IE6. I use the EventListener to bind the dojo event and its with Tapestry 4.1.1. Anybody know how this could work in IE6 too? See example below. Regards, Diego ** TestPage2.html span jwcid=$content$ span jwcid=@Shell title=Test consoleEnabled=true parseWidgets=true span jwcid=@Body DIV class=CenterColumn jwcid=[EMAIL PROTECTED] form jwcid=[EMAIL PROTECTED] updateComponents=ognl:{'selectionresult'} div jwcid=[EMAIL PROTECTED] span jwcid=@Insert value=ognl:selectedColors/ /div label jwcid=@FieldLabel field=component:colorChooser displayName=Choose a colorColor/label DIV class=TreeContentI jwcid=[EMAIL PROTECTED] select jwcid=[EMAIL PROTECTED] multiple=true size=4 span jwcid=@For source=ognl:colors value=ognl:currentColor index=ognl:currentColorIndex renderTag=false option jwcid=@Option selected=ognl:selection[currentColorIndex] id=ognl:'ddd'+currentColorIndex label=ognl:currentColor/ /span /select /DIV /form /DIV /span /span ** TestPage.java import org.apache.tapestry.IRequestCycle; import org.apache.tapestry.annotations.EventListener; import org.apache.tapestry.annotations.InitialValue; import org.apache.tapestry.html.BasePage; public abstract class TestPage2 extends BasePage { private String[] colors = { blue, red, green, yellow }; public abstract int getCurrentColorIndex(); public abstract String getCurrentColor(); @InitialValue(new boolean[colors.length]) public abstract boolean[] getSelection(); public abstract void setSelection(boolean[] selection); public String[] getColors() { return colors; } /** * Listen for when an item from a list is selected * * @param cycle */ @EventListener(events = { onmouseup }, targets = colorSelection, submitForm = f1, async = true) public void selectFromList2(IRequestCycle cycle) { } public String getSelectedColors() { String out = ; for (int i = 0; i colors.length; i++) { if (getSelection()[i]) { out += colors[i] + - ; } } return out; } }
Re: [OT] [T5] tapestry project structure
Yes, mostly. Eclipse just has the one .classpath/.project file to identify all the source paths and libraries for a module; it doesn't have a concept of a nested project with its own .classpath/.project. It'll fight you on this! Meanwhile, the pom.xml for the project doesn't have all the depenencies needed by sub-projects. On 3/14/07, DJ Gredler [EMAIL PROTECTED] wrote: I've wondered about this, too. I think there are benefits to the modular design even if the version numbers are kept in sync -- in fact, I think keeping the version numbers in sync makes it easier for users to decide what bits they need, since the decision is based only on required functionality, and not on transitive dependency concerns. When you say that Eclipse can't handle the nested structure, do you mean the maven2 plugin? On 3/14/07, Howard Lewis Ship [EMAIL PROTECTED] wrote: This is more compatible with Eclipse; Eclipse can't handle a nested project structure. In addition, I expect that the release numbers of some of the sub-projects will decouple. That is, tapestry-spring may become stable at, say, 5.0.4 and we'll leave it alone as we rev tapestry-core up to, say, 5.0.9. Anyway, that's the theory. The practice is looking a little different, because of JIRA. Having just TAPESTRY as the issue tracker key limits the ability to meaningfully track version numbers across the components (such as tapestry-core). One option would be to start creating sub-projects within the Tapestry category (currently, there's just the TAPESTRY project), so that each could track its bugs itself. Another option would be to re-organize it, as you mentioned, with tapestry5/trunk/tapestry-xxx and tapestry/tags/tapestry-xxx ... that would certainly make things easier when creating a new release (much less tagging!). SVN does let us change our mind after the fact, to a large degree. On 3/14/07, Dan Adams [EMAIL PROTECTED] wrote: I noticed in the tapestry sources that while it's a multi-module maven project, all of the modules are at the same level in the source tree and each have their own set of branches/tags/trunk folders rather than having each module contained within it's parent module. What have you found to be the advantages of this? How does having each in a separate folder effect doing releases? Do you keep the version numbers in sync? Thanks. :) -- Dan Adams Senior Software Engineer Interactive Factory 617.235.5857 - 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 - 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 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Eclipse + Maven2 + Tapestry 4.0.2
Does Anybody have a Tutorial to start a developing with Eclipse + Maven2 + Tapestr 4.0.2? I am beginer in Tapestry + Java and I use Eclipse + WTP and is very slow. Tks -- __ Bruno Mignoni [EMAIL PROTECTED]
Re: [OT] Problem switching from jboss to jetty - Need help!
Hi, I have tried to figure this one out, but so far no luck... I have deleted the only jboss specific jar file I had in my project and now I am s close to have my application work in jetty... but this last error... I cant find anything about it in google that makes sens... Here is the entire log from my start up: launching Jetty webapp: / on address: 0.0.0.0:8080 using dir: [C:\DevAreaMyCompanyWeb\MyCompany\webapp] 11:46:49.500 INFO [main] org.mortbay.log.LogImpl.add(LogImpl.java:109) 16 added [EMAIL PROTECTED] 11:46:49.468 INFO [main] org.mortbay.log.LogImpl.reset(LogImpl.java:228) 11 reset 11:46:49.500 INFO [main] org.mortbay.log.LogImpl.add(LogImpl.java:109) 11 added [EMAIL PROTECTED] log4j:WARN No appenders could be found for logger (org.mortbay.util.Container). log4j:WARN Please initialize the log4j system properly. 11:46:49.906 INFO [main] org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:174) 09 Root WebApplicationContext: initialization started 11:46:49.968 INFO [main] org.springframework.core.CollectionFactory.clinit(CollectionFactory.java:73) 20 JDK 1.4+ collections available 11:46:49.968 INFO [main] org.springframework.core.CollectionFactory.clinit(CollectionFactory.java:76) 20 Commons Collections 3.x available 11:46:50.015 INFO [main] org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:330) 19 Loading XML bean definitions from ServletContext resource [/WEB-INF/applicationContext-persistence.xml] 11:46:50.484 INFO [main] org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:330) 19 Loading XML bean definitions from ServletContext resource [/WEB-INF/applicationContext-service.xml] 11:46:50.562 INFO [main] org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:100) 13 Bean factory for application context [Root WebApplicationContext]: org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [dataSource,org.springframework.aop.config.internalAutoProxyCreator,org.springframework.transaction.interceptor.TransactionAttributeSourceAdvisor,transactionManager,sessionFactory,hibernateTemplate,appUserDao,appUserRoleDao,articleDao,articleImageDao,companyDao,customTagDao,customerDao,employeeDao,headRepDao,loginEventDao,menuDao,menuItemDao,portletDao,portletRegionDao,regionDao,repDao,repAddressDao,repCertificationDao,repEmailDao,repPhoneDao,repSiteDao,repSitePhraseDao,repStateDao,siteContactDao,siteContactDetailDao,siteCustomizationDao,siteLogoDao,templateDao,templateGroupDao,userCustomizationDao,jdbcDaoImpl,org.springframework.aop.framework.autoproxy.DefaultAdvisorAutoProxyCreator,org.springframework.transaction.interceptor.TransactionAttributeSourceAdvisor#1,transactionInterceptor,appUserService,communicationService,complianceService,customerService,employeeService,loggerUtil,repService,repSiteService]; root of BeanFactory hierarchy 11:46:50.562 INFO [main] org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:322) 12 48 beans defined in application context [Root WebApplicationContext] 11:46:50.671 INFO [main] org.springframework.aop.framework.DefaultAopProxyFactory.clinit(DefaultAopProxyFactory.java:61) 34 CGLIB2 available: proxyTargetClass feature enabled 11:46:50.734 INFO [main] org.springframework.context.support.AbstractApplicationContext$BeanPostProcessorChecker.postProcessAfterInitialization(AbstractApplicationContext.java:898) 23 Bean 'org.springframework.aop.config.internalAutoProxyCreator' is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 11:46:50.734 INFO [main] org.springframework.context.support.AbstractApplicationContext$BeanPostProcessorChecker.postProcessAfterInitialization(AbstractApplicationContext.java:898) 23 Bean 'org.springframework.aop.framework.autoproxy.DefaultAdvisorAutoProxyCreator' is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 11:46:50.750 INFO [main] org.springframework.context.support.AbstractApplicationContext.initMessageSource(AbstractApplicationContext.java:473) 13 Unable to locate MessageSource with name 'messageSource': using default [EMAIL PROTECTED] 11:46:50.750 INFO [main] org.springframework.context.support.AbstractApplicationContext.initApplicationEventMulticaster(AbstractApplicationContext.java:495) 13 Unable to locate ApplicationEventMulticaster with name 'applicationEventMulticaster': using default [EMAIL PROTECTED] 11:46:50.750 INFO [main] org.springframework.ui.context.support.UiApplicationContextUtils.initThemeSource(UiApplicationContextUtils.java:83) 14 Unable to locate ThemeSource with name 'themeSource': using default [EMAIL PROTECTED] 11:46:50.765 INFO [main]
Re: Eclipse + Maven2 + Tapestry 4.0.2
For the Eclipse + Tapestry part i recommend Kent's book(http://www.agileskills2.org/EWDT/index.html), it's not free not in my opinion very worth the money. As for Maven, you should download this free book http://www.mergere.com/m2book_download.jsp. With this you should be up and running very quickly Bruno Mignoni wrote: Does Anybody have a Tutorial to start a developing with Eclipse + Maven2 + Tapestr 4.0.2? I am beginer in Tapestry + Java and I use Eclipse + WTP and is very slow. Tks
Re: Eclipse + Maven2 + Tapestry 4.0.2
I would like a pom.xml exemplo to start a Tapestry Developing, do you have? On 3/14/07, Hugo Palma [EMAIL PROTECTED] wrote: For the Eclipse + Tapestry part i recommend Kent's book(http://www.agileskills2.org/EWDT/index.html), it's not free not in my opinion very worth the money. As for Maven, you should download this free book http://www.mergere.com/m2book_download.jsp. With this you should be up and running very quickly Bruno Mignoni wrote: Does Anybody have a Tutorial to start a developing with Eclipse + Maven2 + Tapestr 4.0.2? I am beginer in Tapestry + Java and I use Eclipse + WTP and is very slow. Tks -- __ Bruno Mignoni [EMAIL PROTECTED]
renderTag
Another hiccup with 4.1 - 4.1.1: We have a VXML application that stopped working after the conversion. Turned out the reason was that components like If, For, etc. by default used to not render their tags (renderTag=false) but now the default is true, In HTML this often isn't a big deal, but it really screwed up our VXML stuff. So I found out how to change the default via a global parameter, but now exception rendering looks awful, probably because the exception renderer is expecting the default value of renderTag to be true. Is there any way to set the default just for our pages and components, while leaving it alone for components from the Tapestry framework? Robert J. Walker - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Eclipse + Maven2 + Tapestry 4.0.2
An easier option would be for you to use the Tapestry 4 archetype found and explained here http://www.joshlong.com//jl/entry/20070227 I'm not sure but i think this archetype configures your pom for Tapestry 4.1, but if you want to use 4.0.2 you just have to change the version number in the pom.xml file and your ready to go. Bruno Mignoni wrote: I would like a pom.xml exemplo to start a Tapestry Developing, do you have? On 3/14/07, Hugo Palma [EMAIL PROTECTED] wrote: For the Eclipse + Tapestry part i recommend Kent's book(http://www.agileskills2.org/EWDT/index.html), it's not free not in my opinion very worth the money. As for Maven, you should download this free book http://www.mergere.com/m2book_download.jsp. With this you should be up and running very quickly Bruno Mignoni wrote: Does Anybody have a Tutorial to start a developing with Eclipse + Maven2 + Tapestr 4.0.2? I am beginer in Tapestry + Java and I use Eclipse + WTP and is very slow. Tks
RE: [OT] [T5] tapestry project structure
I definately agree that keeping version numbers in sync would make things easier. For some reason Tap takes a lot of flack on the versioning of it. Could be a compliment if that's the only gripe :P But I agree, the versioning is chaotic. Why not adapt a linux-esque system... even numbers stable and a release, odd are bleeding/test. -Greg -Original Message- From: DJ Gredler [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 14, 2007 12:17 PM To: Tapestry users Subject: Re: [OT] [T5] tapestry project structure I've wondered about this, too. I think there are benefits to the modular design even if the version numbers are kept in sync -- in fact, I think keeping the version numbers in sync makes it easier for users to decide what bits they need, since the decision is based only on required functionality, and not on transitive dependency concerns. When you say that Eclipse can't handle the nested structure, do you mean the maven2 plugin? On 3/14/07, Howard Lewis Ship [EMAIL PROTECTED] wrote: This is more compatible with Eclipse; Eclipse can't handle a nested project structure. In addition, I expect that the release numbers of some of the sub-projects will decouple. That is, tapestry-spring may become stable at, say, 5.0.4 and we'll leave it alone as we rev tapestry-core up to, say, 5.0.9. Anyway, that's the theory. The practice is looking a little different, because of JIRA. Having just TAPESTRY as the issue tracker key limits the ability to meaningfully track version numbers across the components (such as tapestry-core). One option would be to start creating sub-projects within the Tapestry category (currently, there's just the TAPESTRY project), so that each could track its bugs itself. Another option would be to re-organize it, as you mentioned, with tapestry5/trunk/tapestry-xxx and tapestry/tags/tapestry-xxx ... that would certainly make things easier when creating a new release (much less tagging!). SVN does let us change our mind after the fact, to a large degree. On 3/14/07, Dan Adams [EMAIL PROTECTED] wrote: I noticed in the tapestry sources that while it's a multi-module maven project, all of the modules are at the same level in the source tree and each have their own set of branches/tags/trunk folders rather than having each module contained within it's parent module. What have you found to be the advantages of this? How does having each in a separate folder effect doing releases? Do you keep the version numbers in sync? Thanks. :) -- Dan Adams Senior Software Engineer Interactive Factory 617.235.5857 - 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 - 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: [OT] [T5] tapestry project structure
Hmm. I currently designing a project that will have several sub-projects so I may just move over to this. One of the things I did notice is that you can't check out a sub-project just by itself or else maven will puke. You have to check out the parent project, install it locally, and then build the sub-project. A minor concern though. One option for developers that the mylar project uses would be to create a team project set (file export java team project set). Then you make this downloaded in the tapestry docs and in order to set up the workspace you just import that one file which then checks out all of the eclipse projects necessary to work on it. It's pretty cool. On Wed, 2007-03-14 at 09:39 -0700, Howard Lewis Ship wrote: Yes, mostly. Eclipse just has the one .classpath/.project file to identify all the source paths and libraries for a module; it doesn't have a concept of a nested project with its own .classpath/.project. It'll fight you on this! Meanwhile, the pom.xml for the project doesn't have all the depenencies needed by sub-projects. On 3/14/07, DJ Gredler [EMAIL PROTECTED] wrote: I've wondered about this, too. I think there are benefits to the modular design even if the version numbers are kept in sync -- in fact, I think keeping the version numbers in sync makes it easier for users to decide what bits they need, since the decision is based only on required functionality, and not on transitive dependency concerns. When you say that Eclipse can't handle the nested structure, do you mean the maven2 plugin? On 3/14/07, Howard Lewis Ship [EMAIL PROTECTED] wrote: This is more compatible with Eclipse; Eclipse can't handle a nested project structure. In addition, I expect that the release numbers of some of the sub-projects will decouple. That is, tapestry-spring may become stable at, say, 5.0.4 and we'll leave it alone as we rev tapestry-core up to, say, 5.0.9. Anyway, that's the theory. The practice is looking a little different, because of JIRA. Having just TAPESTRY as the issue tracker key limits the ability to meaningfully track version numbers across the components (such as tapestry-core). One option would be to start creating sub-projects within the Tapestry category (currently, there's just the TAPESTRY project), so that each could track its bugs itself. Another option would be to re-organize it, as you mentioned, with tapestry5/trunk/tapestry-xxx and tapestry/tags/tapestry-xxx ... that would certainly make things easier when creating a new release (much less tagging!). SVN does let us change our mind after the fact, to a large degree. On 3/14/07, Dan Adams [EMAIL PROTECTED] wrote: I noticed in the tapestry sources that while it's a multi-module maven project, all of the modules are at the same level in the source tree and each have their own set of branches/tags/trunk folders rather than having each module contained within it's parent module. What have you found to be the advantages of this? How does having each in a separate folder effect doing releases? Do you keep the version numbers in sync? Thanks. :) -- Dan Adams Senior Software Engineer Interactive Factory 617.235.5857 - 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 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Dan Adams Senior Software Engineer Interactive Factory 617.235.5857 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] [T5] tapestry project structure
Yeah, I've run into this at work as well. The main problem I ran into was that the project depended on the maven-installed versions of the different modules, even if the modules in question were a part of the overall project... so for example tapestry-core's dependency on tapestry-ioc would trigger a build path dependency on the tapestry-ioc jar in the m2 repo, rather than just ignoring it in favor of the actual code in the project. It seems like this should be solvable by the maven people, even without nested project support in eclipse... And speaking of nested project support, I just added my vote here... https://bugs.eclipse.org/bugs/show_bug.cgi?id=35973 On 3/14/07, Howard Lewis Ship [EMAIL PROTECTED] wrote: Yes, mostly. Eclipse just has the one .classpath/.project file to identify all the source paths and libraries for a module; it doesn't have a concept of a nested project with its own .classpath/.project. It'll fight you on this! Meanwhile, the pom.xml for the project doesn't have all the depenencies needed by sub-projects. On 3/14/07, DJ Gredler [EMAIL PROTECTED] wrote: I've wondered about this, too. I think there are benefits to the modular design even if the version numbers are kept in sync -- in fact, I think keeping the version numbers in sync makes it easier for users to decide what bits they need, since the decision is based only on required functionality, and not on transitive dependency concerns. When you say that Eclipse can't handle the nested structure, do you mean the maven2 plugin? On 3/14/07, Howard Lewis Ship [EMAIL PROTECTED] wrote: This is more compatible with Eclipse; Eclipse can't handle a nested project structure. In addition, I expect that the release numbers of some of the sub-projects will decouple. That is, tapestry-spring may become stable at, say, 5.0.4 and we'll leave it alone as we rev tapestry-core up to, say, 5.0.9. Anyway, that's the theory. The practice is looking a little different, because of JIRA. Having just TAPESTRY as the issue tracker key limits the ability to meaningfully track version numbers across the components (such as tapestry-core). One option would be to start creating sub-projects within the Tapestry category (currently, there's just the TAPESTRY project), so that each could track its bugs itself. Another option would be to re-organize it, as you mentioned, with tapestry5/trunk/tapestry-xxx and tapestry/tags/tapestry-xxx ... that would certainly make things easier when creating a new release (much less tagging!). SVN does let us change our mind after the fact, to a large degree. On 3/14/07, Dan Adams [EMAIL PROTECTED] wrote: I noticed in the tapestry sources that while it's a multi-module maven project, all of the modules are at the same level in the source tree and each have their own set of branches/tags/trunk folders rather than having each module contained within it's parent module. What have you found to be the advantages of this? How does having each in a separate folder effect doing releases? Do you keep the version numbers in sync? Thanks. :) -- Dan Adams Senior Software Engineer Interactive Factory 617.235.5857 - 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 - 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 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Injecting hivemind properties into spring beans
Ben, Its been some time but I'm curious, why a Singleton? cheers, miguel On 12/14/06, Ben Gidley [EMAIL PROTECTED] wrote: This is quite easy to do you create Spring factory bean that provides the service To make this work I cheated an chucked the registry onto a Singleton. I suspect other strategies are possible. e.g. public class HivemindFactoryBean implements FactoryBean { private String serviceId; private Class serviceInterface; public Object getObject() throws Exception { return RegistryManager.getInstance().getRegistry().getService( serviceId, serviceInterface); } public Class getObjectType() { return serviceInterface; } public boolean isSingleton() { return true; } public String getServiceId() { return serviceId; } public void setServiceId(String serviceId) { this.serviceId = serviceId; } public Class getServiceInterface() { return serviceInterface; } public void setServiceInterface(Class serviceInterface) { this.serviceInterface = serviceInterface; } } On 12/13/06, Miguel Angel Hernández [EMAIL PROTECTED] wrote: Stefan, How did this turned out? I ran into a similar problem, and found this link very usefull: http://hivemind.apache.org/hivemind/BuilderFactory.html Indeed injecting spring services in hivemind's is fairly easy, though backwards is'nt... Miguel
Hivemind Registry and Spring
Hi all, How can I expose the Hivemind Registry in a spring bean? thanks Miguel
Re: [OT] [T5] tapestry project structure
hmm. i've been quite happy with it, barring a couple small bugs. in any case, team projects sets are a normal eclipse thing and don't have anything to do with mylar. On Wed, 2007-03-14 at 11:49 -0700, Howard Lewis Ship wrote: I tried using Mylar for a week, but it slowed Eclipse down to a crawl and added a bunch of instability. On 3/14/07, Dan Adams [EMAIL PROTECTED] wrote: Hmm. I currently designing a project that will have several sub-projects so I may just move over to this. One of the things I did notice is that you can't check out a sub-project just by itself or else maven will puke. You have to check out the parent project, install it locally, and then build the sub-project. A minor concern though. One option for developers that the mylar project uses would be to create a team project set (file export java team project set). Then you make this downloaded in the tapestry docs and in order to set up the workspace you just import that one file which then checks out all of the eclipse projects necessary to work on it. It's pretty cool. On Wed, 2007-03-14 at 09:39 -0700, Howard Lewis Ship wrote: Yes, mostly. Eclipse just has the one .classpath/.project file to identify all the source paths and libraries for a module; it doesn't have a concept of a nested project with its own .classpath/.project. It'll fight you on this! Meanwhile, the pom.xml for the project doesn't have all the depenencies needed by sub-projects. On 3/14/07, DJ Gredler [EMAIL PROTECTED] wrote: I've wondered about this, too. I think there are benefits to the modular design even if the version numbers are kept in sync -- in fact, I think keeping the version numbers in sync makes it easier for users to decide what bits they need, since the decision is based only on required functionality, and not on transitive dependency concerns. When you say that Eclipse can't handle the nested structure, do you mean the maven2 plugin? On 3/14/07, Howard Lewis Ship [EMAIL PROTECTED] wrote: This is more compatible with Eclipse; Eclipse can't handle a nested project structure. In addition, I expect that the release numbers of some of the sub-projects will decouple. That is, tapestry-spring may become stable at, say, 5.0.4 and we'll leave it alone as we rev tapestry-core up to, say, 5.0.9. Anyway, that's the theory. The practice is looking a little different, because of JIRA. Having just TAPESTRY as the issue tracker key limits the ability to meaningfully track version numbers across the components (such as tapestry-core). One option would be to start creating sub-projects within the Tapestry category (currently, there's just the TAPESTRY project), so that each could track its bugs itself. Another option would be to re-organize it, as you mentioned, with tapestry5/trunk/tapestry-xxx and tapestry/tags/tapestry-xxx ... that would certainly make things easier when creating a new release (much less tagging!). SVN does let us change our mind after the fact, to a large degree. On 3/14/07, Dan Adams [EMAIL PROTECTED] wrote: I noticed in the tapestry sources that while it's a multi-module maven project, all of the modules are at the same level in the source tree and each have their own set of branches/tags/trunk folders rather than having each module contained within it's parent module. What have you found to be the advantages of this? How does having each in a separate folder effect doing releases? Do you keep the version numbers in sync? Thanks. :) -- Dan Adams Senior Software Engineer Interactive Factory 617.235.5857 - 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 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Dan Adams Senior Software Engineer Interactive Factory 617.235.5857 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Dan Adams Senior Software Engineer Interactive Factory 617.235.5857
Re: T5 Upload component?
I have a problem building the upload component. Form doesn't have support for setting the enctype, so i have to pass enctype='multipart/form-data' as an informal parameter. Then the forms just blows up whenever i submit it. In Tap4, there was a filter that creates a fake request with the values. How should I implement this logic in tap5 ? On 3/12/07, DJ Gredler [EMAIL PROTECTED] wrote: I'm going to need it soon as well, but haven't looked into it at all. Go for it! On 3/12/07, Pablo Ruggia [EMAIL PROTECTED] wrote: Does anyone implemented this Upload component ? I need it, so if nobody has gone there yet, i'll give it a try. On 3/9/07, Howard Lewis Ship [EMAIL PROTECTED] wrote: Yep, not yet implemented. On 3/9/07, Hugo Palma [EMAIL PROTECTED] wrote: I can't see any upload component here http://tapestry.apache.org/tapestry5/tapestry-core/component-parameters.html so i guess that means it's still not implemented. Peter Beshai wrote: How do we use input type=file in T5? Is this functionality implemented yet? -- 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 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: T5 Upload component?
Sorry, i forgot to wrote that the forms blows because it doesn't get the parameter values, because it's not prepared to recieve a multipart request. To prepare the multipar request so it seems like a regular one, in tap4 has MultipartDecoderFilter. I just want to know what is the best way to reproduce this behaviour in tap5. On 3/14/07, Pablo Ruggia [EMAIL PROTECTED] wrote: I have a problem building the upload component. Form doesn't have support for setting the enctype, so i have to pass enctype='multipart/form-data' as an informal parameter. Then the forms just blows up whenever i submit it. In Tap4, there was a filter that creates a fake request with the values. How should I implement this logic in tap5 ? On 3/12/07, DJ Gredler [EMAIL PROTECTED] wrote: I'm going to need it soon as well, but haven't looked into it at all. Go for it! On 3/12/07, Pablo Ruggia [EMAIL PROTECTED] wrote: Does anyone implemented this Upload component ? I need it, so if nobody has gone there yet, i'll give it a try. On 3/9/07, Howard Lewis Ship [EMAIL PROTECTED] wrote: Yep, not yet implemented. On 3/9/07, Hugo Palma [EMAIL PROTECTED] wrote: I can't see any upload component here http://tapestry.apache.org/tapestry5/tapestry-core/component-parameters.html so i guess that means it's still not implemented. Peter Beshai wrote: How do we use input type=file in T5? Is this functionality implemented yet? -- 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 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: T5 - Context parameters and style sheets links
Realistically, the context is not always known during development. Business folk could easily come back after the entire QA cycle and say that it needs to be changed for marketing reasons. This would require a code change that may force an entire round of QA again. There should be some way to refer to resources without hard coding the context. On 3/12/07, Howard Lewis Ship [EMAIL PROTECTED] wrote: This is a conscious decision, that you will know early on what the context path will be. The effort to avoid this in T4, using a base tag, caused far more problems than it solved. A solution using query parameters is likewise: it makes your site off-limits to any kind of search engine, and it tends to create longer and less pretty URLs. On 3/12/07, DJ Gredler [EMAIL PROTECTED] wrote: I've never had to operate out of a context other than root, so I've just hardcoded it to /mystyle.css or whatever... On 3/12/07, Bogdan Calmac [EMAIL PROTECTED] wrote: Consider a UserDetail page that has an URL like http://server/context/UserDetail/jdoe;. Here I'm using the tapestry style of passing parameters, as part of the context. The problem here is that if you have a styleset link to mystyle.css, it will try to look for http://server/context/userdetail/mystyle.css which of course does not exit. The alternative to use the full path to the css, /context/mystyle.css is also bad because you don't want to hardcode the name of the context. There are 2 correct solutions to this problem which would be nice to be part of the framework: 1. Allow context information to (optionally) be passed to a page as query parameters, so the above URL would be http://server/context/UserDetail?userid=jdoe;. The relative link to the stylesheet would be fine now, but I don't know if this fits with the design of the framework. 2. Create something like an AssetLink component that takes care to prepend so context, so that: link t:type=AssetLink href=/mystyle.css rel=stylesheet type=text/css/ would generate; link href=/context/mystyle.css rel=stylesheet type=text/css/ I would expect there were others who encountered the same quirk. How did you address it? Thank you, Bogdan Calmac. - 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 - 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 - Context parameters and style sheets links
Will be a Shell component that makes possible to add css as assets ? On 3/14/07, Todd Orr [EMAIL PROTECTED] wrote: Realistically, the context is not always known during development. Business folk could easily come back after the entire QA cycle and say that it needs to be changed for marketing reasons. This would require a code change that may force an entire round of QA again. There should be some way to refer to resources without hard coding the context. On 3/12/07, Howard Lewis Ship [EMAIL PROTECTED] wrote: This is a conscious decision, that you will know early on what the context path will be. The effort to avoid this in T4, using a base tag, caused far more problems than it solved. A solution using query parameters is likewise: it makes your site off-limits to any kind of search engine, and it tends to create longer and less pretty URLs. On 3/12/07, DJ Gredler [EMAIL PROTECTED] wrote: I've never had to operate out of a context other than root, so I've just hardcoded it to /mystyle.css or whatever... On 3/12/07, Bogdan Calmac [EMAIL PROTECTED] wrote: Consider a UserDetail page that has an URL like http://server/context/UserDetail/jdoe;. Here I'm using the tapestry style of passing parameters, as part of the context. The problem here is that if you have a styleset link to mystyle.css, it will try to look for http://server/context/userdetail/mystyle.css which of course does not exit. The alternative to use the full path to the css, /context/mystyle.css is also bad because you don't want to hardcode the name of the context. There are 2 correct solutions to this problem which would be nice to be part of the framework: 1. Allow context information to (optionally) be passed to a page as query parameters, so the above URL would be http://server/context/UserDetail?userid=jdoe;. The relative link to the stylesheet would be fine now, but I don't know if this fits with the design of the framework. 2. Create something like an AssetLink component that takes care to prepend so context, so that: link t:type=AssetLink href=/mystyle.css rel=stylesheet type=text/css/ would generate; link href=/context/mystyle.css rel=stylesheet type=text/css/ I would expect there were others who encountered the same quirk. How did you address it? Thank you, Bogdan Calmac. - 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 - 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 - Context parameters and style sheets links
Maybe I'm not fully grasping the problem... what's wrong with using a context asset? Instead of saying link href=/context/default.css..., why not do: link t:type=Any href=prop:stylsheet / .java: @Inject(context:default.css) private Asset _stylesheet; //note: tapestry will coerce the stylesheet appropriately into the client url string public Asset getStylesheet() { return _stylesheet; } Then you just need to know the path relative to the context, without needing to know the context... Robert On Mar 14, 2007, at 3/143:55 PM , Todd Orr wrote: Realistically, the context is not always known during development. Business folk could easily come back after the entire QA cycle and say that it needs to be changed for marketing reasons. This would require a code change that may force an entire round of QA again. There should be some way to refer to resources without hard coding the context. On 3/12/07, Howard Lewis Ship [EMAIL PROTECTED] wrote: This is a conscious decision, that you will know early on what the context path will be. The effort to avoid this in T4, using a base tag, caused far more problems than it solved. A solution using query parameters is likewise: it makes your site off-limits to any kind of search engine, and it tends to create longer and less pretty URLs. On 3/12/07, DJ Gredler [EMAIL PROTECTED] wrote: I've never had to operate out of a context other than root, so I've just hardcoded it to /mystyle.css or whatever... On 3/12/07, Bogdan Calmac [EMAIL PROTECTED] wrote: Consider a UserDetail page that has an URL like http://server/context/UserDetail/jdoe;. Here I'm using the tapestry style of passing parameters, as part of the context. The problem here is that if you have a styleset link to mystyle.css, it will try to look for http://server/context/userdetail/mystyle.css which of course does not exit. The alternative to use the full path to the css, /context/mystyle.css is also bad because you don't want to hardcode the name of the context. There are 2 correct solutions to this problem which would be nice to be part of the framework: 1. Allow context information to (optionally) be passed to a page as query parameters, so the above URL would be http://server/context/UserDetail?userid=jdoe;. The relative link to the stylesheet would be fine now, but I don't know if this fits with the design of the framework. 2. Create something like an AssetLink component that takes care to prepend so context, so that: link t:type=AssetLink href=/mystyle.css rel=stylesheet type=text/css/ would generate; link href=/context/mystyle.css rel=stylesheet type=text/ css/ I would expect there were others who encountered the same quirk. How did you address it? Thank you, Bogdan Calmac. - 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 - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
T4.1.1 - Getting client Remote Address IP?
Hi all, well, that's my problem.. i'm trying to get the client IP that is connected to my tapestry app. I have read a lot, but all the help i could find is about tap4.0, and there are a lot of changes since that version. So, anyone knows how to get the client remote addres, the IP? thanks! -Daniel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Eclipse + Maven2 + Tapestry 4.0.2
Hello, this is what I posted last summer on Maven list: I configured Eclipse 3.2, WTP 1.5 and Maven 2.0.4 to play in the same band. Here is how I prepared my environment for developing Tapestry web applications: 1. Create new Dynamic Web project with Eclipse. Enter src/main/webapp for Content Directory. Enter src/main/java for Java Source Directory. 2. Install Eclipse plugin via Help/Software Updates/Find and Install ( http://m2eclipse.codehaus.org/). 3. Install Eclipse plugin for synchronizing WTP Web App Libraries with Maven dependencies (http://adam.kruszewski.name/eclipse/) also with Software Updates. See http://jira.codehaus.org/browse/MNGECLIPSE-105?page=all for more on this sync issue. 4. Enable your project for Maven2 by right clicking on project and choosing Maven2/Enable. Enter POM values, don't forget to set war for Packaging. The icon indicating that your project is a WTP project will be replaced my small red letter m. Also Maven2 Dependencies library will show up (empty). 5. Right click on your project in Package Explorer (I work in Java Perspective) and choose Properties. Find LibCopy properties in the list and check the only checkbox and be sure that Local folder points to src/main/webapp/WEB-INF/lib. 6. Add dependent library (say Tapestry) by right clicking the project and then Maven2/Add Dependency. In the dialog type tapestry which will show up a list of possible artifacts. Choose version 4.0.2 and wait for all jars to download (there should be 10). Maven2 Dependency library in Package Explorer should now contain references to jars in your local maven repository. Also Web App Libraries should contain white jar icons with a small arrow in the lower right corner. 7. Configure Tomcat (or any other container) in Preferences/Server/Installed Runtime and then attach your project to this server instance. 8. Specific instructions for Tapestry can be found at http://wiki.apache.org/tapestry/HowToSetupEclipseWtp You can now change HTML _and_ Java source files without copying anything anywhere. This is as rapid as it gets in pro/large web app development as far as I can tell. Having HTML designer doing page mockups with Dreamweaver _in parallel_ with Tapestry coder, both using Subversion, is a winning game but this is already off-topic. I hope this recipe will get you up to speed. There are issues with this, it is not perfect. The other option is with Jetty Eclipse plugin or just plain mvn jetty:run. Cheers, Borut 2007/3/14, Bruno Mignoni [EMAIL PROTECTED]: Does Anybody have a Tutorial to start a developing with Eclipse + Maven2 + Tapestr 4.0.2? I am beginer in Tapestry + Java and I use Eclipse + WTP and is very slow. Tks -- __ Bruno Mignoni [EMAIL PROTECTED]
Re: T4.1.1 - Portlet problem
Hmmm, now what, we were just looking forward to developing T 4.1.x portlets. -Borut 2007/3/14, Jesse Kuhnert [EMAIL PROTECTED]: Looks nasty. I wouldn't be surprised if something had run awful for portlets. I've yet to find a suitably easy environment to setup a simple portlet app to test things in but can hopefully get to it umm soon-ish. On 3/9/07, Martin Petras [EMAIL PROTECTED] wrote: Hi, I am trying to port my portlet application from tapestry 4.0.2 to tapestry 4.1.1. I have just replaced the libraries and got these exceptions (see below). I am using Tomcat 5.5.12, Jetspeed 2.0, Hivemind 1.1.1. Have really no idea how to resolve the problem. The problem occurs in all my portlets. I attached a sample portlet where I'm getting the error. javax.portlet.PortletException at org.apache.tapestry.portlet.RenderRequestServicerToWebRequestServicerBridge.service (RenderRequestServicerToWe bRequestServicerBridge.java:54) at $RenderRequestServicer_111370567df.service($RenderRequestServicer_111370567df.java) at $RenderRequestServicer_111370567de.service($RenderRequestServicer_111370567de.java) at $RenderRequestServicer_111370567d9.service($RenderRequestServicer_111370567d9.java) at $RenderRequestServicer_111370567d8.service($RenderRequestServicer_111370567d8.java) at org.apache.tapestry.portlet.ApplicationPortlet.render( ApplicationPortlet.java:161) at org.apache.jetspeed.factory.JetspeedPortletInstance.render( JetspeedPortletInstance.java:102) at org.apache.jetspeed.container.JetspeedContainerServlet.doGet( JetspeedContainerServlet.java:230) at javax.servlet.http.HttpServlet.service(HttpServlet.java:689) (and more other exceptions) Nested Exception is java.lang.NullPointerException: Property 'webRequest' of OuterProxy for tapestry.globals.RequestGlo bals(org.apache.tapestry.services.RequestGlobals) is null. at $WebRequest_11137056809._targetServiceProperty($WebRequest_11137056809.java) at $WebRequest_11137056809.getLocale($WebRequest_11137056809.java) at $WebRequest_111370567cd.getLocale($WebRequest_111370567cd.java) at $WebRequest_111370567cc.getLocale($WebRequest_111370567cc.java) at org.apache.tapestry.services.impl.RequestLocaleManagerImpl.extractLocaleForCurrentRequest (RequestLocaleManage rImpl.java:94) at $RequestLocaleManager_111370567ee.extractLocaleForCurrentRequest($RequestLocaleManager_111370567ee.java) at $RequestLocaleManager_111370567ef.extractLocaleForCurrentRequest($RequestLocaleManager_111370567ef.java) at org.apache.tapestry.services.impl.EngineManagerImpl.getEngineInstance( EngineManagerImpl.java:42) at $EngineManager_111370567e9.getEngineInstance($EngineManager_111370567e9.java) at $EngineManager_111370567e8.getEngineInstance($EngineManager_111370567e8.java) at org.apache.tapestry.services.impl.InvokeEngineTerminator.service( InvokeEngineTerminator.java:45) at $WebRequestServicer_111370567e7.service($WebRequestServicer_111370567e7.java) at $WebRequestServicer_111370567e6.service($WebRequestServicer_111370567e6.java) at $WebRequestServicer_111370567e5.service($WebRequestServicer_111370567e5.java) at $WebRequestServicer_111370567e4.service($WebRequestServicer_111370567e4.java) at org.apache.tapestry.portlet.RenderRequestServicerToWebRequestServicerBridge.service (RenderRequestServicerToWe bRequestServicerBridge.java:50) (and more other exceptions) Files: .application - ?xml version=1.0 encoding=UTF-8? !DOCTYPE application PUBLIC -//Apache Software Foundation//Tapestry Specification 4.0//EN http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd; !-- generated by Spindle, http://spindle.sourceforge.net -- application name=myLRUDocs engine-class=org.apache.tapestry.engine.BaseEngine descriptionadd a description/description page name=myLRUDocsEdit specification-path=myLRUDocsEdit.page / library id=contrib specification-path=classpath:/org/apache/tapestry/contrib/Contrib.library/ /application hivemodule.xml ?xml version=1.0? module id=com.skms.WebDavTapestry.MyLRUDocs.MyLRUDocsPage version=4.1.1 package=org.apache.tapestry.portlet Add on for Tapestry that adds native Portlet support. dependency module-id=tapestry version=4.1.1/ dependency module-id=tapestry.portlet version=4.1.1/ dependency module-id=tapestry.contrib version=4.1.1/ dependency module-id=hivemind.lib version=1.1.1/ contribution configuration-id=tapestry.portlet.resolver.PageResolverRules match portlet-mode=view page=myLRUDocs/ match portlet-mode=edit page=myLRUDocsEdit/ /contribution contribution configuration-id=tapestry.state.ApplicationObjects
Re: T4.1.1 - Getting client Remote Address IP?
Simple: inject the HttpServletRequest into your page inject property=request object=service: tapestry.globals.HttpServletRequest/ then use it into your page code: getRequest().getRemoteAddr(). For more info: http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/http/HttpServletRequest.html Ciao, kiuma On 3/14/07, Daniel Anguita O. [EMAIL PROTECTED] wrote: Hi all, well, that's my problem.. i'm trying to get the client IP that is connected to my tapestry app. I have read a lot, but all the help i could find is about tap4.0, and there are a lot of changes since that version. So, anyone knows how to get the client remote addres, the IP? thanks! -Daniel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [T5]Question on ASO configuration
Thanks Howard, it now working. Howard Lewis Ship wrote: Sorry, just a typo; the name of the class should be ApplicationStateContribution (not ApplicationStateConfiguration). On 3/13/07, Weisu [EMAIL PROTECTED] wrote: Hi, I am following the User Guide on ASO, what is ApplicationStateConfiguration? Do I have to create this interface, the online example code is: public void contributeApplicationStateManager(MappedConfigurationClass, ApplicationStateConfiguration configuration) { ApplicationStateCreatorMyState creator = new ApplicationStateCreatorMyState() { public MyState create() { return new MyState(new Date()); } }; configuration.add(MyState.class, new ApplicationStateContribution(session, creator)); } -- View this message in context: http://www.nabble.com/-T5-Question-on-ASO-configuration-tf3399851.html#a9467437 Sent from the Tapestry - User mailing list archive at Nabble.com. - 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 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/-T5-Question-on-ASO-configuration-tf3399851.html#a9484190 Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Cant Checkout tapestry-spring project
Hi all, I cant CO tapestry-spring trunk: Authentication realm: http://svn.javaforge.com:80 Subversion Repository Username: svn: PROPFIND request failed on '/svn/tapestry/tapestry-spring/trunk' svn: PROPFIND of '/svn/tapestry/tapestry-spring/trunk': authorization failed (http://svn.javaforge.com) does it has anonymous access? cheers, Miguel
Re: Cant Checkout tapestry-spring project
anonymous/anon On 3/14/07, Miguel Angel Hernández [EMAIL PROTECTED] wrote: Hi all, I cant CO tapestry-spring trunk: Authentication realm: http://svn.javaforge.com:80 Subversion Repository Username: svn: PROPFIND request failed on '/svn/tapestry/tapestry-spring/trunk' svn: PROPFIND of '/svn/tapestry/tapestry-spring/trunk': authorization failed (http://svn.javaforge.com) does it has anonymous access? cheers, Miguel
T5.0.3-Ioc Service Module ID
Hi, I had just downloaded the 5.0.3, and coz there is no more @Id, so i had to comment out @Id(app), but it produces this error msg: java.lang.RuntimeException: Module 'app' does not exist. Please ensure that the JAR file for the module is on the classpath. Thanks. -- View this message in context: http://www.nabble.com/T5.0.3-Ioc-Service-Module-ID-tf3406347.html#a9488457 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.0.3-Ioc Service Module ID
Sorry , my fault, I didn't delete 5.0.2 from lib directory. Weisu wrote: Hi, I had just downloaded the 5.0.3, and coz there is no more @Id, so i had to comment out @Id(app), but it produces this error msg: java.lang.RuntimeException: Module 'app' does not exist. Please ensure that the JAR file for the module is on the classpath. Thanks. -- View this message in context: http://www.nabble.com/T5.0.3-Ioc-Service-Module-ID-tf3406347.html#a9488931 Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]