Re: To the french fellows of the list
Hello from France, I'm Cyrille, and I'm learning on working with Java for 1 year. Before Java I was programming with Php, MSVisualStudio C++ and C#. I'm discovering the Java world with Tapestry 4 and now Tapestry 5. I've read many books about Pojos, EJB3, Hibernate and so. My brain has growed by 4 ! Now days I try to create en friendly environment with Eclipse, Maven and Jetty but I could not stop to think about the facility of the integrated NetBeans/Glassfish. I do not stop to search the perfect environment for Java development ( MS VisualStudio was so integrated and easy to use ;-) I'm living in Tours and often working in Paris (Thanks to the fast TGV train). Sorry to stay anonymous, but I don't want to associate [EMAIL PROTECTED] to my real name. You can know more about me (Name, Businness, ...) by sending me a mail. bonne journée cyrille. Lionel Touati a écrit : Hi François, Yes you're right, sorry about our english reader to have put some differentiation in this list. I hope you will forgive me :) I also forgot to introduce myself as you did. I'm working for a B2B company specialized in business travel. We move our Pseudo struts framework to tapestry 3 about 2 years from now, and we're just finishing our migration to TAP 4.1.2 right now. I'm working in La Défense L. Francois Armand a écrit : Jesse Kuhnert wrote: Not to pry or anything but reading my google analytics data it seems a large number of tapestry people are concentrated in either the very Northern/ Southern (ie Mairseille) or the biggest concentration in Paris.The numbers are dispersed within Paris enough to potentially warrant meeting up if people were so inclined. .. Nevertheless, we can just signal us in this thread, it may be used latter as a contact list or something like that. So, I'm French, work with tapestry 5 since about 2 months for an open source LDAP manager project : InterLDAP (www.interldap.org). I work in Paris 8, and my society's name is Linagora. I will be glad to share my experiences with T5. As the project is open source, the source are available (really alpha dev) : http://svn.forge.objectweb.org/cgi-bin/viewcvs.cgi/interldap/interldap-wui-t5/ Among interesting things, there's an Acegi integration, a simple tree viewer, and a kind of beanEditForm which is intended to work with multi-valuated attributes in place of bean properties. Francois Armand [just a notice to Lionel Touati : by respect to other reader, I think we should always write in English on this list : even non French people may be interested of what happen in Tapestry community (we French people always want to differentiate ourselves from others ;)] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
about JSON-RPC
Hello, I'm using JSON-RPC for talking beetwen a Java Applet and the WebApplication. To manage JsonRpc calls I've done a Servlet. I come to you to know if there is a Tapestry way for handling those JsonRpc calls ? thanks for ideas cyrille - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: about Maven, Java Applet and Tapestry's pages...
Steven Coco a écrit : Hi. You should create a Parent project, with 2 modules: one for the WebApp, and another for the Applet. They will build into their own artifacts -- a War for the WebApp, and a Jar for the Applet -- in your repositories, but they share the parent project's attributes; and they go into folders in the parent projet directory (by convention...). Then you create an Assembly, which instructs Maven to package the Jar with the WebApp, and you can deploy this as a single unit. This should explain most of it: http://maven.apache.org/guides/getting-started/index.html#how_do_i_build_more_than_one_project_at_once Thanks Steven. I done like explained. It works for a library but not for an Applet. Maven put the Jar Applet in the folder WEB-INF/lib/theApplet.jar but it is an Applet, so it should be accessible from web pages. It should be deployed in web content folder. Another need is the jetty:run. jetty serves files from the folder src/main/webapp, not from the target/my-app ... I'm lose in maven's space. I'd posted here because I think tapestry's users should resolved that need. I think I'll go to post my questions at [EMAIL PROTECTED] Thank you for your help Cyrille Ciao. On Sun June 24 2007 8:58:12 am #Cyrille37# wrote: Hello Sorry to be a little out of the Tapestry subject but I would like to get some knowledge from you. I've got a Java applet which is running in a Tapestry page. Today I'm using Ant build to build the project, which is compiling Tapestry application and packaging the Applet in a Jar file. Tapestry application and Java applet are in the same Eclipse project. Now I'm starting to use Maven, which seems to be very used now days. Do you have a idea on how to make Maven compiling Tapestry's pages and classes and packaging the Applet in its own jar file ? Thanks a lot for your feedbacks cyrille. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [T5] Documentation
蝈蝈龙 a écrit : > Why do you emphasize you are a Chinese? It's really not necessary !! perhaps to advertizing that is english is not perfect. sometime I tell where I come from to acknoledge people on my poor english. but it is not the subject of this list, isn't it ;-) cyrille. > > 在07-6-26,小司 <[EMAIL PROTECTED]> 写道: >> >> I'am a chinese user.every user should know Tapestry5 's request life >> cycle.i'm beginner. >> I want to get a detailed Tapestry5 request life cycle.Could you >> provide it in your tapestry5 document?? >> >> -- >> 得与失都是生活 >> Get and Lost are all life. >> - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [T5] archetype quickstart error
Nick Westgate a écrit : true tapestry-snapshots http://people.apache.org/~hlship/tapestry-snapshot-repository/ Yeah! That's work D:\essais.maven>mvn archetype:create -DremoteRepositories=http://people.apache.org/~hlship/tapestry-snapshot-reposi tory -DarchetypeGroupId=org.apache.tapestry -DarchetypeArtifactId=quickstart -DarchetypeVersion=5.0.5-SNAPSHOT -DgroupId=org.example -DartifactId=my-appT5 -DpackageName=org.example.myappT5 -Dversion=1.0.0-SNAPSHOT then D:\essais.maven>mvn jetty:run and all stuff works fine ! Thanks. cyrille - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [T5] archetype quickstart error
Nick Westgate a écrit : Put this snapshot repository in your pom.xml: true tapestry-snapshots http://people.apache.org/~hlship/tapestry-snapshot-repository/ Thanks a lot Nick, I did not know this url. At this url we can find the quickstart 5.0.5-SNAPSHOT, not the 5.0.4 one. So I'll try the 5.0.5-SNAPSHOT. cheers cyrille (2) > [INFO] Compilation failure > > D:\essais.maven\my-appT5\src\main\java\org\example\myappT5\services\AppModule.java:[8,42] > cannot find symbol > symbol : class Contribute > location: package org.apache.tapestry.ioc.annotations > > D:\essais.maven\my-appT5\src\main\java\org\example\myappT5\services\AppModule.java:[9,42] > cannot find symbol > symbol : class Id > location: package org.apache.tapestry.ioc.annotations IIRC, these annotations were removed. Edit your AppModule.java file and delete @Contribute and @Id occurances. If you use a more recent archetype, they won't be in the source anyway. Cheers, Nick. - 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] archetype quickstart error
Kolesnikov, Alexander GNI a écrit : Look, the quickstart specifies this command: mvn archetype:create -DarchetypeGroupId=org.apache.tapestry -DarchetypeArtifactId=quickstart -DarchetypeVersion=5.0.4 -DgroupId=org.example -DartifactId=myapp -DpackageName=org.example.myapp -Dversion=1.0.0-SNAPSHOT See, the version is 5.0.4, not 5.0.4-SNAPSHOT, not 5.0.3-SNAPSHOT Thank you very much Alexander for your help. But ... I did : D:\essais.maven> mvn archetype:create -DremoteRepositories=http://people.apache.org/repo/m2-snapshot-repository -Dar chetypeGroupId=org.apache.tapestry -DarchetypeArtifactId=quickstart -DarchetypeVersion=5.0.4 -DgroupId=org.example -DartifactI d=my-appT5 -DpackageName=org.example.myappT5 -Dversion=1.0.0-SNAPSHOT and try too without the remoteRepositories but maven could not find the quickstart for 5.0.4. Here is the error : [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.4 -Dpackaging=jar -Dfile=/path/to/file org.apache.tapestry:quickstart:jar:5.0.4 from the specified remote repositories: id0 (http://people.apache.org/repo/m2-snapshot-repository) -Original Message- From: #Cyrille37# [mailto:[EMAIL PROTECTED] Sent: 25 June 2007 11:41 To: Tapestry users Subject: Re: [T5] archetype quickstart error Kolesnikov, Alexander GNI a écrit : No, that's not what I meant. First of all, I followed the instructions available here: http://tapestry.apache.org/tapestry5/quickstart/ I did exactly the same: following this quickstart page. The project was successfully built but then it does not compile because of errors : [INFO] [ERROR] BUILD FAILURE [INFO] [INFO] Compilation failure D:\essais.maven\my-appT5\src\main\java\org\example\myappT5\services\AppModule.java:[8,42] cannot find symbol symbol : class Contribute location: package org.apache.tapestry.ioc.annotations D:\essais.maven\my-appT5\src\main\java\org\example\myappT5\services\AppModule.java:[9,42] cannot find symbol symbol : class Id location: package org.apache.tapestry.ioc.annotations D:\essais.maven\my-appT5\src\main\java\org\example\myappT5\services\AppModule.java:[20,1] cannot find symbol symbol: class Id @Id("app") D:\essais.maven\my-appT5\src\main\java\org\example\myappT5\services\AppModule.java:[23,5] cannot find symbol symbol : class Contribute location: class org.example.myappT5.services.AppModule D:\essais.maven\my-appT5\src\main\java\org\example\myappT5\services\AppModule.java:[73,5] cannot find symbol symbol : class Contribute location: class org.example.myappT5.services.AppModule Then I'd try to change the "tapestry-release-version" property to 5.0.4-SNAPSHOT but maven could not find the Tapestry version in repositories. And it's right, while browsing at http://people.apache.org/repo/m2-snapshot-repository/ the last Tapestry version is 5.0.3-SNAPSHOT. cyrille. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [T5] archetype quickstart error
Kolesnikov, Alexander GNI a écrit : No, that's not what I meant. First of all, I followed the instructions available here: http://tapestry.apache.org/tapestry5/quickstart/ I did exactly the same: following this quickstart page. The project was successfully built but then it does not compile because of errors : [INFO] [ERROR] BUILD FAILURE [INFO] [INFO] Compilation failure D:\essais.maven\my-appT5\src\main\java\org\example\myappT5\services\AppModule.java:[8,42] cannot find symbol symbol : class Contribute location: package org.apache.tapestry.ioc.annotations D:\essais.maven\my-appT5\src\main\java\org\example\myappT5\services\AppModule.java:[9,42] cannot find symbol symbol : class Id location: package org.apache.tapestry.ioc.annotations D:\essais.maven\my-appT5\src\main\java\org\example\myappT5\services\AppModule.java:[20,1] cannot find symbol symbol: class Id @Id("app") D:\essais.maven\my-appT5\src\main\java\org\example\myappT5\services\AppModule.java:[23,5] cannot find symbol symbol : class Contribute location: class org.example.myappT5.services.AppModule D:\essais.maven\my-appT5\src\main\java\org\example\myappT5\services\AppModule.java:[73,5] cannot find symbol symbol : class Contribute location: class org.example.myappT5.services.AppModule Then I'd try to change the "tapestry-release-version" property to 5.0.4-SNAPSHOT but maven could not find the Tapestry version in repositories. And it's right, while browsing at http://people.apache.org/repo/m2-snapshot-repository/ the last Tapestry version is 5.0.3-SNAPSHOT. cyrille. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [T5] archetype quickstart error
Kolesnikov, Alexander GNI a écrit : But why you are using 5.0.3-SNAPSHOT? I tried 5.0.4 and it worked fine, I only had to slightly edit the resulting pom.xml. I've edited the pom.xml to change 5.0.3-SNAPSHOT for 5.0.4-SNAPSHOT but it does not work. Here are errors : [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Failed to resolve artifact. Missing: -- 1) org.apache.tapestry:tapestry-core:jar:5.0.4-SNAPSHOT Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=org.apache.tapestry -DartifactId=tapestry-core \ -Dversion=5.0.4-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file Path to dependency: 1) org.example:my-appT5:war:1.0.0-SNAPSHOT 2) org.apache.tapestry:tapestry-core:jar:5.0.4-SNAPSHOT -- 1 required artifact is missing. for artifact: org.example:my-appT5:war:1.0.0-SNAPSHOT from the specified remote repositories: codehaus.snapshots (http://snapshots.repository.codehaus.org), apache.snapshots (http://people.apache.org/repo/m2-snapshot-repository), openqa (http://maven.openqa.org/), Maven Snapshots 2 (http://snapshots.repository.codehaus.org/), Maven Snapshots (http://snapshots.maven.codehaus.org/maven2/), tapestry.javaforge (http://howardlewisship.com/repository), central (http://repo1.maven.org/maven2), dev.java.net (https://maven-repository.dev.java.net/nonav/repository/) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [T5] archetype quickstart error
Kolesnikov, Alexander GNI a écrit : But why you are using 5.0.3-SNAPSHOT? I tried 5.0.4 and it worked fine, But it is the archetype which is using 5.0.3-SNAPSHOT ... I only had to slightly edit the resulting pom.xml. Yes. Good idea ! I'll do a try. Thanks cyrille -Original Message- From: #Cyrille37# [mailto:[EMAIL PROTECTED] Sent: 25 June 2007 11:03 To: Tapestry users Subject: [T5] archetype quickstart error Hello, A project generated with archetypeArtifactId=quickstart does not build. Here are settings used : set remoteRepositories=-DremoteRepositories=http://people.apache.org/repo/m2 -snapshot-repository set archetypeGroupId=-DarchetypeGroupId=org.apache.tapestry set archetypeArtifactId=-DarchetypeArtifactId=quickstart set archetypeVersion=-DarchetypeVersion=5.0.3-SNAPSHOT set groupId=-DgroupId=org.example set artifactId=-DartifactId=my-appT5 set packageName=-DpackageName=org.example.myappT5 set version=-Dversion=1.0.0-SNAPSHOT Here is the error : ... [INFO] [ERROR] BUILD FAILURE [INFO] [INFO] Compilation failure D:\essais.maven\my-appT5\src\main\java\org\example\myappT5\services\AppM odule.java:[8,42] cannot find symbol symbol : class Contribute location: package org.apache.tapestry.ioc.annotations D:\essais.maven\my-appT5\src\main\java\org\example\myappT5\services\AppM odule.java:[9,42] cannot find symbol symbol : class Id location: package org.apache.tapestry.ioc.annotations D:\essais.maven\my-appT5\src\main\java\org\example\myappT5\services\AppM odule.java:[20,1] cannot find symbol symbol: class Id @Id("app") D:\essais.maven\my-appT5\src\main\java\org\example\myappT5\services\AppM odule.java:[23,5] cannot find symbol symbol : class Contribute location: class org.example.myappT5.services.AppModule D:\essais.maven\my-appT5\src\main\java\org\example\myappT5\services\AppM odule.java:[73,5] cannot find symbol symbol : class Contribute location: class org.example.myappT5.services.AppModule Any Idea ? Cyrille. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[T5] archetype quickstart error
Hello, A project generated with archetypeArtifactId=quickstart does not build. Here are settings used : set remoteRepositories=-DremoteRepositories=http://people.apache.org/repo/m2-snapshot-repository set archetypeGroupId=-DarchetypeGroupId=org.apache.tapestry set archetypeArtifactId=-DarchetypeArtifactId=quickstart set archetypeVersion=-DarchetypeVersion=5.0.3-SNAPSHOT set groupId=-DgroupId=org.example set artifactId=-DartifactId=my-appT5 set packageName=-DpackageName=org.example.myappT5 set version=-Dversion=1.0.0-SNAPSHOT Here is the error : ... [INFO] [ERROR] BUILD FAILURE [INFO] [INFO] Compilation failure D:\essais.maven\my-appT5\src\main\java\org\example\myappT5\services\AppModule.java:[8,42] cannot find symbol symbol : class Contribute location: package org.apache.tapestry.ioc.annotations D:\essais.maven\my-appT5\src\main\java\org\example\myappT5\services\AppModule.java:[9,42] cannot find symbol symbol : class Id location: package org.apache.tapestry.ioc.annotations D:\essais.maven\my-appT5\src\main\java\org\example\myappT5\services\AppModule.java:[20,1] cannot find symbol symbol: class Id @Id("app") D:\essais.maven\my-appT5\src\main\java\org\example\myappT5\services\AppModule.java:[23,5] cannot find symbol symbol : class Contribute location: class org.example.myappT5.services.AppModule D:\essais.maven\my-appT5\src\main\java\org\example\myappT5\services\AppModule.java:[73,5] cannot find symbol symbol : class Contribute location: class org.example.myappT5.services.AppModule Any Idea ? Cyrille. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
about tapestry-archetype 4.1.2-SNAPSHOT
Hello to make tapestry-archetype 4.1.2-SNAPSHOT running I add to change the jetty plugin reference : maven-jetty6-plugin 6.0.0beta17 to maven-jetty-plugin 6.0-SNAPSHOT cyrille. Ps: tapestry-archetype 4.1.2-SNAPSHOT found at http://people.apache.org/repo/m2-snapshot-repository - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: which version of tapestry-simple:5.0.?
#Cyrille37# a écrit : #Cyrille37# a écrit : Hello I would like to start with Tapestry5 and looking to the maven's archetype. In the page http://tapestry.apache.org/tapestry5/tapestry-simple/ it is talking about tapestry-simple:5.0.2. Is this number version is relative to Tapestry5 version ? Should I prefer tapestry-simple:5.0.5 ? Please, could you give me some explanation ? thanks cyrille When following instructions of page http://tapestry.apache.org/tapestry5/tapestry-simple/ mvn archetype:create -DremoteRepositories=http://people.apache.org/repo/m2-snapshot-repository -DarchetypeGroupId=org.apache.tapestry -DarchetypeArtifactId=quickstart -DarchetypeVersion=5.0.2 -DgroupId=org.example -DartifactId=myapp -DpackageName=org.example.myapp -Dversion=1.0.0-SNAPSHOT Maven could not find the archetype : [INFO] We are using command line specified remote repositories: http://people.apache.org/repo/m2-snapshot-repository Downloading: http://people.apache.org/repo/m2-snapshot-repository/org/apache/tapestry/quickstart/5.0.2/quickstart-5.0.2.jar [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.2 -Dpackaging=jar -Dfile=/path/to/file org.apache.tapestry:quickstart:jar:5.0.2 from the specified remote repositories: id0 (http://people.apache.org/repo/m2-snapshot-repository) Any help ? Cyrille. Ok, I've found the right archetype version : -DarchetypeVersion=5.0.3-SNAPSHOT So Maven can create the projet. Then I go in the project folder and type mvn jetty:run and gt those errors : [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'jetty'. [INFO] [INFO] Building my-app Tapestry 5 Application [INFO]task-segment: [jetty:run] [INFO] [INFO] Preparing jetty:run [INFO] [resources:resources] [INFO] Using default encoding to copy filtered resources. [INFO] Copying 1 resource [INFO] [compiler:compile] [INFO] Compiling 2 source files to D:\evote.java\projet\my-app\target\classes [INFO] [ERROR] BUILD FAILURE [INFO] [INFO] Compilation failure D:\my-app\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:\my-app\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:\my-app\src\main\java\org\example\myapp\services\AppModule.java:[20,1] cannot find symbol symbol: class Id @Id("app") D:\my-app\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:\my-app\src\main\java\org\example\myapp\services\AppModule.java:[73,5] cannot find symbol symbol : class Contribute location: class org.example.myapp.services.AppModule [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 2 seconds [INFO] Finished at: Sun Jun 24 15:20:53 CEST 2007 [INFO] Final Memory: 5M/10M [INFO] I think I just have to read the pom.xml to add some references ... I'll see ... cyrille. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: which version of tapestry-simple:5.0.?
#Cyrille37# a écrit : Hello I would like to start with Tapestry5 and looking to the maven's archetype. In the page http://tapestry.apache.org/tapestry5/tapestry-simple/ it is talking about tapestry-simple:5.0.2. Is this number version is relative to Tapestry5 version ? Should I prefer tapestry-simple:5.0.5 ? Please, could you give me some explanation ? thanks cyrille When following instructions of page http://tapestry.apache.org/tapestry5/tapestry-simple/ mvn archetype:create -DremoteRepositories=http://people.apache.org/repo/m2-snapshot-repository -DarchetypeGroupId=org.apache.tapestry -DarchetypeArtifactId=quickstart -DarchetypeVersion=5.0.2 -DgroupId=org.example -DartifactId=myapp -DpackageName=org.example.myapp -Dversion=1.0.0-SNAPSHOT Maven could not find the archetype : [INFO] We are using command line specified remote repositories: http://people.apache.org/repo/m2-snapshot-repository Downloading: http://people.apache.org/repo/m2-snapshot-repository/org/apache/tapestry/quickstart/5.0.2/quickstart-5.0.2.jar [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.2 -Dpackaging=jar -Dfile=/path/to/file org.apache.tapestry:quickstart:jar:5.0.2 from the specified remote repositories: id0 (http://people.apache.org/repo/m2-snapshot-repository) Any help ? Cyrille. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
which version of tapestry-simple:5.0.?
Hello I would like to start with Tapestry5 and looking to the maven's archetype. In the page http://tapestry.apache.org/tapestry5/tapestry-simple/ it is talking about tapestry-simple:5.0.2. Is this number version is relative to Tapestry5 version ? Should I prefer tapestry-simple:5.0.5 ? Please, could you give me some explanation ? thanks cyrille - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
about Maven, Java Applet and Tapestry's pages...
Hello Sorry to be a little out of the Tapestry subject but I would like to get some knowledge from you. I've got a Java applet which is running in a Tapestry page. Today I'm using Ant build to build the project, which is compiling Tapestry application and packaging the Applet in a Jar file. Tapestry application and Java applet are in the same Eclipse project. Now I'm starting to use Maven, which seems to be very used now days. Do you have a idea on how to make Maven compiling Tapestry's pages and classes and packaging the Applet in its own jar file ? Thanks a lot for your feedbacks cyrille. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Design question
Hello, Christian Dutaret a écrit : ... I have some web non-regression tests that check for the correctness of the ognl expressions. That has worked fine for me so far. Please, can you tell us how do you implement "web non-regression tests" ? Which tools ? Which methods ? Thanks a lot cyrille - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Should I start with T5
Massimo Lusetti a écrit : On 6/22/07, Ulrich Stärk <[EMAIL PROTECTED]> wrote: On Fr, 22.06.2007, 09:05, #Cyrille37# sagte: > Hello, > I'm starting a new project which should be on line in september. I'm > thinking about using T5. > Is it a good idea ? No. http://www.nabble.com/-T5--Reminder%3A-Tapestry-5-is-Alpha-tf3854247.html#a10919723 I've already started two prototypes for projects whose dead line is end of August and October with T5, my gain of productivity has been so huge that i can (happily) afford some refactoring if needed. I started this way from the first week of T5. > Is the T5 API will have big changes in a near futur ? I'd guess yes. This is my personal opinion. Your situation might be different then mine but I had to make a similar decision and voted agains T5 and I'm now using T4 instead. Even if T5 gets released as scheduled in fall I'd still wait a few months to give eventually existing defects a chance to show up and get fixed. Use it, report it back, fix it. So my word are: go for it. Thank you Massimo Now I've got two opinions ... It's the best to do my choice ;-) cheers cyrille - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Should I start with T5
Ulrich Stärk a écrit : On Fr, 22.06.2007, 09:05, #Cyrille37# sagte: Hello, I'm starting a new project which should be on line in september. I'm thinking about using T5. Is it a good idea ? No. http://www.nabble.com/-T5--Reminder%3A-Tapestry-5-is-Alpha-tf3854247.html#a10919723 Is the T5 API will have big changes in a near futur ? I'd guess yes. This is my personal opinion. Your situation might be different then mine but I had to make a similar decision and voted agains T5 and I'm now using T4 instead. Even if T5 gets released as scheduled in fall I'd still wait a few months to give eventually existing defects a chance to show up and get fixed. Uli Thank you Uli. cheers Cyrille. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Should I start with T5
Hello, I'm starting a new project which should be on line in september. I'm thinking about using T5. Is it a good idea ? Is the T5 API will have big changes in a near futur ? Thanks Cyrille - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [ANN] Tapestry 4 Tutorial, issue 14
Kolesnikov, Alexander GNI a écrit : http://www.devshed.com/c/a/Apache/Apache-Tapestry-and-Custom-Components- DateInput/ Have a look. Alexander Thanks a lot Alexander for your work ! It is good for me, it is good for the community, it is good for Tapestry ! Best regards cyrille - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: T4: when a session http is closed?, where a session http is closed?
César Augusto Mateus a écrit : is some way to capture the moment at which a session HTTP is closed? (perhaps with a service in hivemind) I need to do this: clear a threadLocal just when the session http is closed. (Purpose: the threadLocal must be clean before returning to pool of threadLocals of the container ) Any idea or way, thank you very much... Hello, Just to teach me because I'm a beginner... Could you please tell me what do you need to clean in the threadLocal ? Thanks cyrille - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Split mailing list for T5/T4,4.1
Daniel Jue a écrit : I say we can split it. Make the original list for T3 and T4x users, and make a new one for T5. Interested parties can subscribe to both. We can't guarantee that new subscribers to the current setup will prepend the correct version in the subject line. (Although it has worked pretty well so far!) I think a split could be a proper way. a T4 list for production , a T5 list for developpers. my 2 cents. cyrille Daniel On 6/14/07, Bruce Petro <[EMAIL PROTECTED]> wrote: This sounds great - although you could also do multiple targets which could just prepend a key to all subjects so people could then pick what they want via that key word designation. Sent from my GoodLink synchronized handheld (www.good.com) -Original Message- From: Holger Stolzenberg [mailto:[EMAIL PROTECTED] Sent: Thursday, June 14, 2007 03:40 AM Eastern Standard Time To: Tapestry users Subject:Split mailing list for T5/T4,4.1 Hey guys, I just aksed myself if it would make sense to split up the mailing list into 2 lists. For me, only T4,T4.1 topics are relevat at the moment. Everyday I have to filter out about let me say 80% of the mails because they are T5 related. Thats a lot of overhead. How do you all think about it? Mit lieben Grüßen aus dem eWerk | Holger Stolzenberg | Softwareentwickler | | Geschäftsführer: | Frank Richter, Erik Wende, Hendrik Schubert | | eWerk IT GmbH | Markt 16 | Leipzig 04109 | http://www.ewerk.com | HRB 9065, AG Leipzig | Hauptniederlassung Leipzig | | fon +49.341.4 26 49-0 | fax +49.341.4 26 49-88 | mailto:[EMAIL PROTECTED] | | Support: | fon 0700 CALLME24 (0700 22556324) | fax 0700 CALLME24 (0700 22556324) | | Auskünfte und Angebote per Mail | sind freibleibend und unverbindlich. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: HTML tags....such as Publisher or Front page editor.....
And tell your favorite html editor to use XHTML, no HTML. cyrille erwin_br a écrit : Ex: This wokr fine http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> musiclib Start Page But if i edit on publish or front page like this: http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> musiclib Start Page I get this error!! An unexpected application exception has occurred. * org.apache.tapestry.ioc.internal.util.TapestryException Failure parsing template context:WEB-INF/Start.html: Attribute name "NORESIZE" associated with an element type "FRAME" must be followed by the ' = ' character. location context:WEB-INF/Start.html, line 6, column 40 1 http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> 2 3 musiclib Start Page 4 5 6 7 8 9 10 11 * org.xml.sax.SAXParseException Attribute name "NORESIZE" associated with an element type "FRAME" must be followed by the ' = ' character. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: HTML tags....such as Publisher or Front page editor.....
erwin_br a écrit : * org.apache.tapestry.ioc.internal.util.TapestryException Failure parsing template context:WEB-INF/Start.html: Attribute name "NORESIZE" associated with an element type "FRAME" must be followed by the ' = ' character. The parser say that NORESIZE is not a valid XML Attribute. You can have a try like : Cyrille. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: HTML tags....such as Publisher or Front page editor.....
erwin_br a écrit : i would like to construct a web page using front page or publisher and put into the components tapestry but don´t work EX: i do the screnncast 5...no problem work fine.but if i edit the start.html with publisher or front page and put some html tags then when i run again don´t work... Hello, What is do not work ? Give more detail on the error. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: any idea to inject a ejb to tapestry?
Andrea Chiumenti a écrit : With T4 ? Have a look here: http://hivemind.apache.org/hivemind1/hivedocs/service/hivemind.lib.EJBProxyFactory.html I've added a copy of that mail in the Tapestry's wiki like now we can search "EJB3" in the wiki and find it. http://wiki.apache.org/tapestry/InjectEJB3 cyrille. ciao, kiuma On 5/18/07, Heping Zhang <[EMAIL PROTECTED]> wrote: hi, I use tapestry as web tier and want get a slsb in this tier. this is my code: public abstract class Home extends BasePage { // @EJB // Calculator bean; public String getResult() { // Double message = bean.calculate(11, 22, 0.08, 44); // return message.toString(); InitialContext ctx = null; Calculator bean = null; try { ctx = new InitialContext(); bean = (Calculator) ctx .lookup("ejb3TapestryJboss/CalculatorBean/local"); } catch (NamingException e) { e.printStackTrace(); } Double message = bean.calculate(22, 22, 0.08, 22); return "ok! " + message.toString(); } } When I use JNDI's lookup, as showed above, it works. But when I want to inject a slsb to this page, as the commented code showed, it get nothing. No bean is injected. do I misues this annotation? and how can I inject a bean to tapestry? or I can only do this in servlet? By the way, I use jbossAs 5 beta2 as the server. Thanks for your help in advance. - 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: Eclipse User Libraries and Tapestry 4.0.2
#Cyrille37# a écrit : Stephane PAQUET a écrit : Look at http://www.eclipseplugincentral.com/Web_Links-index-req-viewlink-cid-865.html LibCopy plugin is doing this job for Maven project. I guess you can have a look at the way it is working and just do the same in your project. Regards, SP Thanks, but I've found the solution. some time documentation reading IS THE solution ;-) http://help.eclipse.org/help31/index.jsp?topic=/org.eclipse.wst.doc.user/topics/overview.html I've just updated the wiki : http://wiki.apache.org/tapestry/HowToSetupEclipseWtp cyrille best regards cyrille On May 15, 2007, at 4:33 PM, #Cyrille37# wrote: #Cyrille37# a écrit : Hello, For every Tapestry project I've to copy all Tapestry libraries in the WEB-INF/lib folder. Like I'm using Windows I could not using symbolic links. By that way, each project are heavy. I'd tried to define Tapestry as a Eclipse User Library but jars are not deployed at runtime so the tapestry apache redirect filter is not found. Do you know a way to avoid this heavy copying ?? I've read the HowToSetupEclipseWtp but the author has the same problem. Regards cyrille I forget to specify that I've added the Tapestry Eclipse User Libray in the BuildPath AND in the classpath of the Server Launch configuration for Tomcat5.5 cyrille - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Eclipse User Libraries and Tapestry 4.0.2
Stephane PAQUET a écrit : Look at http://www.eclipseplugincentral.com/Web_Links-index-req-viewlink-cid-865.html LibCopy plugin is doing this job for Maven project. I guess you can have a look at the way it is working and just do the same in your project. Regards, SP Thanks, but I've found the solution. some time documentation reading IS THE solution ;-) http://help.eclipse.org/help31/index.jsp?topic=/org.eclipse.wst.doc.user/topics/overview.html best regards cyrille On May 15, 2007, at 4:33 PM, #Cyrille37# wrote: #Cyrille37# a écrit : Hello, For every Tapestry project I've to copy all Tapestry libraries in the WEB-INF/lib folder. Like I'm using Windows I could not using symbolic links. By that way, each project are heavy. I'd tried to define Tapestry as a Eclipse User Library but jars are not deployed at runtime so the tapestry apache redirect filter is not found. Do you know a way to avoid this heavy copying ?? I've read the HowToSetupEclipseWtp but the author has the same problem. Regards cyrille I forget to specify that I've added the Tapestry Eclipse User Libray in the BuildPath AND in the classpath of the Server Launch configuration for Tomcat5.5 cyrille - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Eclipse User Libraries and Tapestry 4.0.2
#Cyrille37# a écrit : Hello, For every Tapestry project I've to copy all Tapestry libraries in the WEB-INF/lib folder. Like I'm using Windows I could not using symbolic links. By that way, each project are heavy. I'd tried to define Tapestry as a Eclipse User Library but jars are not deployed at runtime so the tapestry apache redirect filter is not found. Do you know a way to avoid this heavy copying ?? I've read the HowToSetupEclipseWtp but the author has the same problem. Regards cyrille I forget to specify that I've added the Tapestry Eclipse User Libray in the BuildPath AND in the classpath of the Server Launch configuration for Tomcat5.5 cyrille - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Eclipse User Libraries and Tapestry 4.0.2
Hello, For every Tapestry project I've to copy all Tapestry libraries in the WEB-INF/lib folder. Like I'm using Windows I could not using symbolic links. By that way, each project are heavy. I'd tried to define Tapestry as a Eclipse User Library but jars are not deployed at runtime so the tapestry apache redirect filter is not found. Do you know a way to avoid this heavy copying ?? I've read the HowToSetupEclipseWtp but the author has the same problem. Regards cyrille - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Eclipse and xhtml undefined jwcid attributes
Hello, I would like to know how to avoid Eclipse warning about xhtml undefined jwcid attributes. The doctype of my pages is: http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> Perhaps it could be possible to add more definition to avoid Eclipse XML validator warning about undefined attributes. Do you have a solution or idea ? Thanks cyrille - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [ANN] Tapestry 4 Tutorial, issue 9
Kolesnikov, Alexander GNI a écrit : Please have a look: http://www.devshed.com/c/a/Apache/Apache-Tapestry-and-DirectLink-IoC-and-DI/ Thanks Alexander ! cyrille Cheers, Alexander -- CONFIDENTIALITY NOTICE: If you have received this email in error, please immediately notify the sender by e-mail at the address shown. This email transmission may contain confidential information. This information is intended only for the use of the individual(s) or entity to whom it is intended even if addressed incorrectly. Please delete it from your files if you are not the intended recipient. Thank you for your compliance. Copyright 2007 CIGNA == - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tapestry links too long for ie? [t4]
Jesse Kuhnert a écrit : Since the size limitation is fairly well known maybe Tapestry should at least generate a log warning or outright exception when it detects a get request that won't be compatible in IE? The exception may be too heavy handed if people are targeting non IE browsers for specific reasons but a warning message seems very reasonable. I think too. +1 Cyrille. On 5/12/07, Marcus <[EMAIL PROTECTED]> wrote: Josh, Are you using @Persist("client") with large array objects? If it's true, try @Persist("session") Marcus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
TAP4.1.1 needs jassist ?
Hello, I'm trying again to run an app with TAP4.1.1 (it runs with TAP4.0.2), but it throws a exception because it could not load : java.lang.NoClassDefFoundError: javassist/ClassPool I've downloaded TAP4.1.1 at http://www.apache.org/dyn/closer.cgi/tapestry/tapestry-project-4.1.1-bin.zip and there is no reference to javassist-x.x.jar in distributed modules. Is it the fault of my application code ? Or just a missing jar in the distribution ? thanks cyrille - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [ANN] Tapestry 4 tutorials, parts 2 and 3
Kolesnikov, Alexander GNI a écrit : I am writing this tutorial for our current and future junior developers - but also to promote Tapestry, which in my opinion should be a commonly recognized first choice for any Java Web development. Parts 2 and 3 were already published, please have a look: http://www.devshed.com/c/a/Apache/Preparing-the-Workspace-for-Apache-Tap estry/ http://www.devshed.com/c/a/Apache/Creating-Your-First-Tapestry-Project/ Thanks a lot for sharing your work like that ! It's nice for the community, and for me too ;-) Best Regards, Cyrille. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JUnit and Tapestry application
Hello, The only documentation I've found to run JUnit Tests on a Tapestry application is for Tapestry 3 : http://tapestry.apache.org/tapestry3/doc/ContributorsGuide/procedures.junit.html Is it enough ? Or is there new stuff to know for Tapestry 4.x ? Thanks cyrille - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Error with Tapestry 4.1.1 and backport-util-concurrent
Hello, I'm trying Tapestry 4.1.1 and at application startup there is an error with the lib backport-util-concurrent. I'm using NetBeans 5.5 and Sun Java System Application Server Platform Edition 9.0_01. ... org.apache.hivemind.ApplicationRuntimeException: Failure invoking constructor for class org.apache.tapestry.services.impl.ComponentConstructorFactoryImpl: class edu.emory.mathcs.backport.java.util.concurrent.helpers.AbstractOwnableQueuedSynchronizer overrides final method setExclusiveOwnerThread.(Ljava/lang/Thread;)V java.lang.VerifyError: class edu.emory.mathcs.backport.java.util.concurrent.helpers.AbstractOwnableQueuedSynchronizer overrides final method setExclusiveOwnerThread.(Ljava/lang/Thread;)V Do you have an idea on it ? Cyrille - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tapestry in a J2EE Architecture
Hello Len, Marilen Corciovei a écrit : I think you should arm yourself with lot of patience. We are doing here a development which involves Tapestry as interface and various JBoss services and EJB3 It's what I will have to do soon ... I think most problems we have had where related to: - various configuration, packaging and classloader conflicts. Such problems can easy make you loose have a day for nothing. For example something as simple as logging and it's not easy enough http://www.len.ro/work/articles/jboss/webapp-logging/ - integrating the monitoring application with the jboss service dependency mechanism and jmx in such a way it whould work both with the webapp in jboss and in a remote tomcat. I'm afraid about all that stuff. J2EE environment seems to be very complex to make working fine. Do you have such bad experience with JBoss failover and loadbalancing ? cyrille. The simplest part was working with EJB3. Len www.len.ro On Tue, 2007-01-23 at 18:02 +0100, Cyrille37 wrote: Hello, I have spent some time to learn Tapestry, and it will be my WebFront framework. In this time I've learned a little about J2EE too. Now I've to create the architecture of my project. It must be a multi-tier architecture, with Apache & Tomcat, a J2EE AS (JBoss or Glassfish), and finally Mysql5 for the Data part. Tapestry will be the WebFront framework, so it will run on Tomcat, with probably the help of Spring2 framework for some stuff. I would like to have your opinion, comment, help and links about how to make Tapestry works with applications hosted on the J2EE AS ... For da moment I'm really floating in the unknown. Thanks a lot Cyrille. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tapestry in a J2EE Architecture
Joel Grignou a écrit : Hello, To speed up the startup of your app, I would consider using "appfuse" http://raibledesigns.com/wiki/Wiki.jsp?page=AppFuse which wraps Tapestry with Spring and Hibernate. Thanks for that Joel. I'd learned some J2EE Stuff while learning Tapestry: Appfuse, Spring2, JPA, Acegi ... Now what I need is a "How To Think" for construct an multi-tier applications on differents servers (Tomcat, JBoss). For example: A user has a Session in Tapestry (on Tomcat). Tapestry use some applications hosted by JBoss on another server and those application have Session too. I do not know how those 2 Sessions work. And this is only a little peace of my ignorance. Cheers cyrille Joel Il giorno mar, 23/01/2007 alle 18.02 +0100, Cyrille37 ha scritto: Hello, I have spent some time to learn Tapestry, and it will be my WebFront framework. In this time I've learned a little about J2EE too. Now I've to create the architecture of my project. It must be a multi-tier architecture, with Apache & Tomcat, a J2EE AS (JBoss or Glassfish), and finally Mysql5 for the Data part. Tapestry will be the WebFront framework, so it will run on Tomcat, with probably the help of Spring2 framework for some stuff. I would like to have your opinion, comment, help and links about how to make Tapestry works with applications hosted on the J2EE AS ... For da moment I'm really floating in the unknown. Thanks a lot Cyrille. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tapestry in a J2EE Architecture
Hello, I have spent some time to learn Tapestry, and it will be my WebFront framework. In this time I've learned a little about J2EE too. Now I've to create the architecture of my project. It must be a multi-tier architecture, with Apache & Tomcat, a J2EE AS (JBoss or Glassfish), and finally Mysql5 for the Data part. Tapestry will be the WebFront framework, so it will run on Tomcat, with probably the help of Spring2 framework for some stuff. I would like to have your opinion, comment, help and links about how to make Tapestry works with applications hosted on the J2EE AS ... For da moment I'm really floating in the unknown. Thanks a lot Cyrille. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Recommendation...
Daniel Tabuenca a écrit : While hivemind and spring share many features in the wire-your-beans up department spring's has many additional features unrelated to bean wiring (such as Acegi Security for example). If I can add that with Spring, you can manage operation transaction within configuration file (.xml) vs. hard coded in business code (.java). I think it is a very important subject. Cyrille ps: sorry for my poor english. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: link to another page's listener
Cyrille37 a écrit : andyhot a écrit : Cyrille37 wrote: Hi, I'd just re-read doc about DirecLink, ExternalLink & Co and I don't find how to create a like in page A which point to a listener of page B. page A has a listener 'newGame'. I would like to add a link on page B which point to pageA.newGame() Is it really not possible or I've missed something ? Well, if you *must*, take a look at http://issues.apache.org/jira/browse/TAPESTRY-944 I like the extListener idea, but I do not understand how to implement it ... Sorry for my missing knowledge :( Perhaps you means to create an extListener factory ? could you tell me where is the mapping from "listener:" to ListenerBindingFactory ? Perhaps I will understand ... Cheers Cyrille - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: link to another page's listener
andyhot a écrit : Cyrille37 wrote: Hi, I'd just re-read doc about DirecLink, ExternalLink & Co and I don't find how to create a like in page A which point to a listener of page B. page A has a listener 'newGame'. I would like to add a link on page B which point to pageA.newGame() Is it really not possible or I've missed something ? Well, if you *must*, take a look at http://issues.apache.org/jira/browse/TAPESTRY-944 I like the extListener idea, but I do not understand how to implement it ... Sorry for my missing knowledge :( cyrille - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
link to another page's listener
Hi, I'd just re-read doc about DirecLink, ExternalLink & Co and I don't find how to create a like in page A which point to a listener of page B. page A has a listener 'newGame'. I would like to add a link on page B which point to pageA.newGame() Is it really not possible or I've missed something ? Tahnks for you help and patience, cyrille - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: reading a file in web root in a Tapestry fashion
Ron Piterman a écrit : yes, thats it - BTW, you don't need an explicit set-service. just exposte a setter in your implementation class, and hivemind will autowire it: public void setServletContext( ServletContext ctx) {...} heuu... I do not really understand. Do you mean Hivemind will do that automatically ? What are rules ? Do you know the documentation about that ? Thanks a lot Cyrille Cheers, Ron Cyrille37 wrote: Ron Piterman a écrit : On which class do you need to access the resource? I've resolved the case with Hivemind. I pass to the ObjectFactory the ServletContext to get a root path and the relative filename. I would have liked only the Hivemind's contribution entry, but to pass parameters to the instance I've understood that we have to use a Factory. So two Hivemind's entries. Perhaps it could be lighter with the Hivemind's "Lightweight Instance Initialization" http://hivemind.apache.org/instance-initialization.html But I do not understand how it works ... I would have liked something simple as: Cyrille Cheers, Ron Cyrille37 wrote: Hello, Sure it is a beginner question, but I'm a beginner :o) I would like to read a file which is located in the web root folder, and put it in a String. I had a look around the Internet and found some tricks : A la "Servlet" : ServletContext theApplicationsServletContext = (ServletContext) this.getExternalContext().getContext(); String realPath = theApplicationsServletContext.getRealPath("/resources/images"); File file = new File(realPath + File.separatorChar + justFileName); A la "Rife" : import com.uwyn.rife.tools.FileUtils; URL resource = getClass().getClassLoader().getResource("model/WordList.txt"); final String wordlist = FileUtils.readString(resource); Please could you tell me what are methods and usages with Tapestry ? Thanks cyrille - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: reading a file in web root in a Tapestry fashion
Ron Piterman a écrit : On which class do you need to access the resource? I've resolved the case with Hivemind. I pass to the ObjectFactory the ServletContext to get a root path and the relative filename. interface="games.hangman.service.HangmanFactory"> service-id="tapestry.globals.ServletContext"/> I would have liked only the Hivemind's contribution entry, but to pass parameters to the instance I've understood that we have to use a Factory. So two Hivemind's entries. Perhaps it could be lighter with the Hivemind's "Lightweight Instance Initialization" http://hivemind.apache.org/instance-initialization.html But I do not understand how it works ... I would have liked something simple as: class="games.hangman.service.Hangman" > ref="tapestry.globals.ServletContext" /> Cyrille Cheers, Ron Cyrille37 wrote: Hello, Sure it is a beginner question, but I'm a beginner :o) I would like to read a file which is located in the web root folder, and put it in a String. I had a look around the Internet and found some tricks : A la "Servlet" : ServletContext theApplicationsServletContext = (ServletContext) this.getExternalContext().getContext(); String realPath = theApplicationsServletContext.getRealPath("/resources/images"); File file = new File(realPath + File.separatorChar + justFileName); A la "Rife" : import com.uwyn.rife.tools.FileUtils; URL resource = getClass().getClassLoader().getResource("model/WordList.txt"); final String wordlist = FileUtils.readString(resource); Please could you tell me what are methods and usages with Tapestry ? Thanks cyrille - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
hivemind create-instance and additionnal parameters
Hi, I know I'm noisy on this list with my beginner's questions. Sorry for that, but it is not so easy to swallow all Tapestry's stuff. by the way, here is my new question: I would like to add a Session object. This config wroks nice. Now I would like to pass a parameter or set a property to that object (like i use to do with Spring). In the object's class (games.hangman.service.Hangman) I would like to inject the ServletContext. With Annotation I could do like : @InjectObject("service:tapestry.globals.ServletContext") public abstract ServletContext getServletContext(); But I do not want to use Annotation. so I would like to add this ServletContext in the previous state-object/create-instance definition. I'd a look at documentation (http://hivemind.apache.org/descriptor.html) but I did not find the right way. Thanks for your help. cyrille - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: reading a file in web root in a Tapestry fashion
Marilen Corciovei a écrit : Hello, @InjectObject("service:tapestry.globals.ServletContext") public abstract ServletContext getServletContext(); I could not use an abstract class. How will I instantiate it ? I would not like to instantiate it with an IoC but like a normal Java Object. Cyrille. ... String imageDir = getServletContext().getRealPath("images"); ... Len www.len.ro <http://www.len.ro> On Thu, 2006-12-21 at 10:02 +0100, Cyrille37 wrote: Hello, Sure it is a beginner question, but I'm a beginner :o) I would like to read a file which is located in the web root folder, and put it in a String. I had a look around the Internet and found some tricks : A la "Servlet" : ServletContext theApplicationsServletContext = (ServletContext) this.getExternalContext().getContext(); String realPath = theApplicationsServletContext.getRealPath("/resources/images"); File file = new File(realPath + File.separatorChar + justFileName); A la "Rife" : import com.uwyn.rife.tools.FileUtils; URL resource = getClass().getClassLoader().getResource("model/WordList.txt"); final String wordlist = FileUtils.readString(resource); Please could you tell me what are methods and usages with Tapestry ? Thanks cyrille - To unsubscribe, e-mail: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: reading a file in web root in a Tapestry fashion
Marilen Corciovei a écrit : Hello, @InjectObject("service:tapestry.globals.ServletContext") public abstract ServletContext getServletContext(); Yes, that's it. Thanks Len. And Please, how to without annotation ? I'm looking in Tapestry Javadoc for some static method and I could not find one. Cyrille ... String imageDir = getServletContext().getRealPath("images"); ... Len www.len.ro <http://www.len.ro> On Thu, 2006-12-21 at 10:02 +0100, Cyrille37 wrote: Hello, Sure it is a beginner question, but I'm a beginner :o) I would like to read a file which is located in the web root folder, and put it in a String. I had a look around the Internet and found some tricks : A la "Servlet" : ServletContext theApplicationsServletContext = (ServletContext) this.getExternalContext().getContext(); String realPath = theApplicationsServletContext.getRealPath("/resources/images"); File file = new File(realPath + File.separatorChar + justFileName); A la "Rife" : import com.uwyn.rife.tools.FileUtils; URL resource = getClass().getClassLoader().getResource("model/WordList.txt"); final String wordlist = FileUtils.readString(resource); Please could you tell me what are methods and usages with Tapestry ? Thanks cyrille - To unsubscribe, e-mail: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: reading a file in web root in a Tapestry fashion
More generally, I would like to know how to access Application environment for a service class. So, Is there somewhere in Tapestry a Static method that could return some global Application information ? For example, from a Service (Business) Class I would like to: - get the Application Web Root to read a file - get a key from a property file which stand in WEB-INF/ Any idea ? Thanks Cyrille Cyrille37 a écrit : Hello, Sure it is a beginner question, but I'm a beginner :o) I would like to read a file which is located in the web root folder, and put it in a String. I had a look around the Internet and found some tricks : A la "Servlet" : ServletContext theApplicationsServletContext = (ServletContext) this.getExternalContext().getContext(); String realPath = theApplicationsServletContext.getRealPath("/resources/images"); File file = new File(realPath + File.separatorChar + justFileName); A la "Rife" : import com.uwyn.rife.tools.FileUtils; URL resource = getClass().getClassLoader().getResource("model/WordList.txt"); final String wordlist = FileUtils.readString(resource); Please could you tell me what are methods and usages with Tapestry ? Thanks cyrille - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tap4 documentation: the For component example is not complete
andyhot a écrit : I'd open one JIRA issue in the 'documentation' category, and i'd start adding my findings there... Hi Andy, I could not find this JIRA - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Can you comment on this?
Emmanuel Sowah a écrit : Hi Guys, I came across this article http://www.infoq.com/news/2006/12/wicket-vs-springmvc-and-jsf and thought probably someone here could comment. Is Tapestry really losing the battle against Wicket? Emmanuel Hi Emmanuel, Did you have a look at Rife http://rifers.org/ ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
reading a file in web root in a Tapestry fashion
Hello, Sure it is a beginner question, but I'm a beginner :o) I would like to read a file which is located in the web root folder, and put it in a String. I had a look around the Internet and found some tricks : A la "Servlet" : ServletContext theApplicationsServletContext = (ServletContext) this.getExternalContext().getContext(); String realPath = theApplicationsServletContext.getRealPath("/resources/images"); File file = new File(realPath + File.separatorChar + justFileName); A la "Rife" : import com.uwyn.rife.tools.FileUtils; URL resource = getClass().getClassLoader().getResource("model/WordList.txt"); final String wordlist = FileUtils.readString(resource); Please could you tell me what are methods and usages with Tapestry ? Thanks cyrille - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tap4 documentation: the For component example is not complete
andyhot a écrit : I'd open one JIRA issue in the 'documentation' category, and i'd start adding my findings there... Thanks Andreas I think it is important to spread the notoriety of Tapestry. When people wants to "get a try" it must be clear and easy. I'll try to report every error/missing/clarify which I'll see. (sorry for my bad english) Cyrille Cyrille37 wrote: Hi, I continue to post some erratum for the online documentation. I'm a beginner so I fall in every simple hole. The "For" component example on pages http://tapestry.apache.org/tapestry4/tapestry/ComponentReference/For.html http://tapestry.apache.org/tapestry4.1/components/general/for.html is not complete. To works I have to add a line in the page specification to "create" the property used by the For 's value attribute. without this, the page doesn't know the "customer" property. Perhaps I'm missing something ?? Cyrille. - 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]
Tap4 documentation: the For component example is not complete
Hi, I continue to post some erratum for the online documentation. I'm a beginner so I fall in every simple hole. The "For" component example on pages http://tapestry.apache.org/tapestry4/tapestry/ComponentReference/For.html http://tapestry.apache.org/tapestry4.1/components/general/for.html is not complete. element="tr"> To works I have to add a line in the page specification to "create" the property used by the For 's value attribute. without this, the page doesn't know the "customer" property. Perhaps I'm missing something ?? Cyrille. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tap4 UsersGuide/State.html#state.aso.access error
Hi, I think there is an error in that page http://tapestry.apache.org/tapestry4/UsersGuide/state.html#state.aso.access in the example of chapter "Accessing Application State Objects" The example is : But it should be : I post this erratum for the **marketing/notoriety** of Tapestry. It is very hard to start learning an application when the doc is not uptodate. :) Cheers, Cyrille - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Get component id in EventListener with multiple targets
Jesse Kuhnert a écrit : Just add a BrowserEvent parameter to your method and it will be automatically populated for you. Once added you should be able to do something along the lines of this to figure out which component fired the event (maybe I should enhance this part to provide a more direct route): void someButtonClicked(IRequestCycle cycle, BrowserEvent event) { String componentClientId = (String)event.getTarget().get("id"); } Just to say that it is a pleasure to read the Tapestry mailing list. When a problem is showed, shure in some time later a nice Tapestry solution is given. Tapestry looks like a really great WebApp Framework. Cyrille On 12/20/06, Peter Beshai <[EMAIL PROTECTED]> wrote: I would like to have multiple targets hooked into a single EventListener, but I cannot figure out how to distinguish which component fired the event within the listener itself. For example, if I have an event listener: @EventListener(targets = {"button1","button2","button3","button4"}, events= "onclick") *public* *void* someButtonClicked(IRequestCycle cycle) { ... } and I need to pass the id of the component that fired off the event listener to another function within the listener. Is there anyway to do this without having to give each button an event listener and having those event listeners all call another function with the component's ID as an argument? -- Peter Beshai - Using Tapestry 4.1.1 Pure Mathematics Student University of Waterloo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Tap4.0.2] about @Persist("client")
Ron Piterman a écrit : I would tip that you hold a reference to a page or some threaded bean where you shouldn't. just a wild guess - Hi Ron. Thanks for your little chocolate :) But the same code (really no change) does not run in a same way when hosted in Tomcat and Glassfish. There is no problem when it runs in Tomcat, There is THE problem when it runs in Glassfish. I think there is some Spring or other libs which do not run in the same way depends on the hosted server. cyrille. Cheers, Ron Cyrille37 wrote: Hi, I could not reproduce the problem with a simple code. It only happend with the complet project (Tap, Spring, Hibernate, BeanForm...) Should I add a Jira entry to remember the problem, or I'm alone with this and let wait to see later. cyrille Cyrille37 a écrit : andyhot a écrit : client, client:page, client:app all use url rewritting to store the property... Effectively, I've tried different @Persist("xxx") and no cookie was set. So, what's the problem again? The problem is with Glassfish. With Glassfish (and all libraries used by my project) the persistence run like a singleton. Here is a part of the code : @Persist("client") public abstract int getDocId(); public abstract void setDocId(int docId); public void activateExternalPage(Object[] parameters, IRequestCycle cycle) { int id = Integer.parseInt( parameters[0].toString()); setDocId( id ); } With Glassfish : With Firefox I make a first call (service=external) : http://localhost:8080/Tap03/Docum/DocumentEdit.external?sp=14 Then I call (service=page) : http://localhost:8080/Tap03/Docum/DocumentEdit.html This second call (serive=page) remember the property "docId". I launch another browser (InternetExplorer) and use the url http://localhost:8080/Tap03/Docum/DocumentEdit.html And ARGH! It display the page with the property "docId" set to 14 (like if I call service external with sp=14). That's crazy. The page and its property seems to be a Singleton instance. With Tomcat there is not that problem. It works like it have to. Cyrille Cyrille37 wrote: Ron Piterman a écrit : forgot about cookies just before christmas? what do you eat those days? :) Ron Chocolate :) By the way. This is not cookies ! But Server ! Argh... ... I'm dying The problem does not exists when the application is running on Tomcat 5.5.17 but exists when running on Glassfish ( Sun Java System Application Server Platform Edition 9.0_01 (build b14)). No code change, just changing project's properties in Netbeans5.5. Shure the is incompatibility somewhere. The application using Tapestry 4.0.2, Spring 2.0 final (3.10.2006), Hibernate 3.2.1GA. Perhaps a Father Christmas's surprise Cyrille. Cyrille37 wrote: Ron Piterman a écrit : user @Persist("client:page") AFAIK, "client" uses cookies. Argh! I've forgotten those so delicious cookies. Sorry for the noise and thanks Ron for your fast and efficient answer ! Cheers cyrille Cheers, Ron Cyrille37 wrote: Hello, There is something I do not understand. I've got a page which remember a property "docId" with the @Persist("client") annotation. @Persist("client") public abstract int getDocId(); public abstract void setDocId(int docId); When I call the page with an ExternalLink (service=external) I'm setting that "docId" property. http://localhost:8080/Tap03/Docum/DocumentEdit.external?sp=14 public void activateExternalPage(Object[] parameters, IRequestCycle cycle) { int id = Integer.parseInt( parameters[0].toString()); setDocId( id ); } After that call, if I call the page directly (service=page) http://localhost:8080/Tap03/Docum/DocumentEdit.html The page has remembered the "docId" property which I've previously called with the ExternalLink. I do not understand how it could be possible, because the @Persist("client") could not memorize the property on server-side ... Have you got an idea where I've to look to find my mistake ? Thanks cyrille. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Tap4.0.2] about @Persist("client")
Hi, I could not reproduce the problem with a simple code. It only happend with the complet project (Tap, Spring, Hibernate, BeanForm...) Should I add a Jira entry to remember the problem, or I'm alone with this and let wait to see later. cyrille Cyrille37 a écrit : andyhot a écrit : client, client:page, client:app all use url rewritting to store the property... Effectively, I've tried different @Persist("xxx") and no cookie was set. So, what's the problem again? The problem is with Glassfish. With Glassfish (and all libraries used by my project) the persistence run like a singleton. Here is a part of the code : @Persist("client") public abstract int getDocId(); public abstract void setDocId(int docId); public void activateExternalPage(Object[] parameters, IRequestCycle cycle) { int id = Integer.parseInt( parameters[0].toString()); setDocId( id ); } With Glassfish : With Firefox I make a first call (service=external) : http://localhost:8080/Tap03/Docum/DocumentEdit.external?sp=14 Then I call (service=page) : http://localhost:8080/Tap03/Docum/DocumentEdit.html This second call (serive=page) remember the property "docId". I launch another browser (InternetExplorer) and use the url http://localhost:8080/Tap03/Docum/DocumentEdit.html And ARGH! It display the page with the property "docId" set to 14 (like if I call service external with sp=14). That's crazy. The page and its property seems to be a Singleton instance. With Tomcat there is not that problem. It works like it have to. Cyrille Cyrille37 wrote: Ron Piterman a écrit : forgot about cookies just before christmas? what do you eat those days? :) Ron Chocolate :) By the way. This is not cookies ! But Server ! Argh... ... I'm dying The problem does not exists when the application is running on Tomcat 5.5.17 but exists when running on Glassfish ( Sun Java System Application Server Platform Edition 9.0_01 (build b14)). No code change, just changing project's properties in Netbeans5.5. Shure the is incompatibility somewhere. The application using Tapestry 4.0.2, Spring 2.0 final (3.10.2006), Hibernate 3.2.1GA. Perhaps a Father Christmas's surprise Cyrille. Cyrille37 wrote: Ron Piterman a écrit : user @Persist("client:page") AFAIK, "client" uses cookies. Argh! I've forgotten those so delicious cookies. Sorry for the noise and thanks Ron for your fast and efficient answer ! Cheers cyrille Cheers, Ron Cyrille37 wrote: Hello, There is something I do not understand. I've got a page which remember a property "docId" with the @Persist("client") annotation. @Persist("client") public abstract int getDocId(); public abstract void setDocId(int docId); When I call the page with an ExternalLink (service=external) I'm setting that "docId" property. http://localhost:8080/Tap03/Docum/DocumentEdit.external?sp=14 public void activateExternalPage(Object[] parameters, IRequestCycle cycle) { int id = Integer.parseInt( parameters[0].toString()); setDocId( id ); } After that call, if I call the page directly (service=page) http://localhost:8080/Tap03/Docum/DocumentEdit.html The page has remembered the "docId" property which I've previously called with the ExternalLink. I do not understand how it could be possible, because the @Persist("client") could not memorize the property on server-side ... Have you got an idea where I've to look to find my mistake ? Thanks cyrille. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Popup a Tapestry page in a new window?
Istvan Szucs a écrit : Use the org.apache.tapestry.contrib.link.PopupLinkRenderer bean is your page. It is a example, visit this page: http://lombok.demon.co.uk/tapestry4Demo/TestPopup.html Hello, Perhaps you can add a link to your page http://lombok.demon.co.uk/tapestry4Demo/app in the Tapestry's wiki. Your page give us some useful examples for beginners. Regards cyrille Bye! István Szücs -Original Message- From: [EMAIL PROTECTED] Sent: Tue, 19 Dec 2006 15:49:44 +0100 To: users@tapestry.apache.org Subject: Re: Popup a Tapestry page in a new window? Use the "target" parameter of the link components with value "_blank". BR: Norbi talk.small írta: How to create a href, when it is cliked, I can specify a Tapestry page to popup in a new window (instead of refrreshing the current page)? Thanks, Talk.small - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Tap4.0.2] about @Persist("client")
andyhot a écrit : client, client:page, client:app all use url rewritting to store the property... Effectively, I've tried different @Persist("xxx") and no cookie was set. So, what's the problem again? The problem is with Glassfish. With Glassfish (and all libraries used by my project) the persistence run like a singleton. Here is a part of the code : @Persist("client") public abstract int getDocId(); public abstract void setDocId(int docId); public void activateExternalPage(Object[] parameters, IRequestCycle cycle) { int id = Integer.parseInt( parameters[0].toString()); setDocId( id ); } With Glassfish : With Firefox I make a first call (service=external) : http://localhost:8080/Tap03/Docum/DocumentEdit.external?sp=14 Then I call (service=page) : http://localhost:8080/Tap03/Docum/DocumentEdit.html This second call (serive=page) remember the property "docId". I launch another browser (InternetExplorer) and use the url http://localhost:8080/Tap03/Docum/DocumentEdit.html And ARGH! It display the page with the property "docId" set to 14 (like if I call service external with sp=14). That's crazy. The page and its property seems to be a Singleton instance. With Tomcat there is not that problem. It works like it have to. Cyrille Cyrille37 wrote: Ron Piterman a écrit : forgot about cookies just before christmas? what do you eat those days? :) Ron Chocolate :) By the way. This is not cookies ! But Server ! Argh... ... I'm dying The problem does not exists when the application is running on Tomcat 5.5.17 but exists when running on Glassfish ( Sun Java System Application Server Platform Edition 9.0_01 (build b14)). No code change, just changing project's properties in Netbeans5.5. Shure the is incompatibility somewhere. The application using Tapestry 4.0.2, Spring 2.0 final (3.10.2006), Hibernate 3.2.1GA. Perhaps a Father Christmas's surprise Cyrille. Cyrille37 wrote: Ron Piterman a écrit : user @Persist("client:page") AFAIK, "client" uses cookies. Argh! I've forgotten those so delicious cookies. Sorry for the noise and thanks Ron for your fast and efficient answer ! Cheers cyrille Cheers, Ron Cyrille37 wrote: Hello, There is something I do not understand. I've got a page which remember a property "docId" with the @Persist("client") annotation. @Persist("client") public abstract int getDocId(); public abstract void setDocId(int docId); When I call the page with an ExternalLink (service=external) I'm setting that "docId" property. http://localhost:8080/Tap03/Docum/DocumentEdit.external?sp=14 public void activateExternalPage(Object[] parameters, IRequestCycle cycle) { int id = Integer.parseInt( parameters[0].toString()); setDocId( id ); } After that call, if I call the page directly (service=page) http://localhost:8080/Tap03/Docum/DocumentEdit.html The page has remembered the "docId" property which I've previously called with the ExternalLink. I do not understand how it could be possible, because the @Persist("client") could not memorize the property on server-side ... Have you got an idea where I've to look to find my mistake ? Thanks cyrille. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Tap4.0.2] about @Persist("client")
Ron Piterman a écrit : forgot about cookies just before christmas? what do you eat those days? :) Ron Chocolate :) By the way. This is not cookies ! But Server ! Argh... ... I'm dying The problem does not exists when the application is running on Tomcat 5.5.17 but exists when running on Glassfish ( Sun Java System Application Server Platform Edition 9.0_01 (build b14)). No code change, just changing project's properties in Netbeans5.5. Shure the is incompatibility somewhere. The application using Tapestry 4.0.2, Spring 2.0 final (3.10.2006), Hibernate 3.2.1GA. Perhaps a Father Christmas's surprise Cyrille. Cyrille37 wrote: Ron Piterman a écrit : user @Persist("client:page") AFAIK, "client" uses cookies. Argh! I've forgotten those so delicious cookies. Sorry for the noise and thanks Ron for your fast and efficient answer ! Cheers cyrille Cheers, Ron Cyrille37 wrote: Hello, There is something I do not understand. I've got a page which remember a property "docId" with the @Persist("client") annotation. @Persist("client") public abstract int getDocId(); public abstract void setDocId(int docId); When I call the page with an ExternalLink (service=external) I'm setting that "docId" property. http://localhost:8080/Tap03/Docum/DocumentEdit.external?sp=14 public void activateExternalPage(Object[] parameters, IRequestCycle cycle) { int id = Integer.parseInt( parameters[0].toString()); setDocId( id ); } After that call, if I call the page directly (service=page) http://localhost:8080/Tap03/Docum/DocumentEdit.html The page has remembered the "docId" property which I've previously called with the ExternalLink. I do not understand how it could be possible, because the @Persist("client") could not memorize the property on server-side ... Have you got an idea where I've to look to find my mistake ? Thanks cyrille. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Tap4.0.2] about @Persist("client")
Ron Piterman a écrit : user @Persist("client:page") AFAIK, "client" uses cookies. Argh! I've forgotten those so delicious cookies. Sorry for the noise and thanks Ron for your fast and efficient answer ! Cheers cyrille Cheers, Ron Cyrille37 wrote: Hello, There is something I do not understand. I've got a page which remember a property "docId" with the @Persist("client") annotation. @Persist("client") public abstract int getDocId(); public abstract void setDocId(int docId); When I call the page with an ExternalLink (service=external) I'm setting that "docId" property. http://localhost:8080/Tap03/Docum/DocumentEdit.external?sp=14 public void activateExternalPage(Object[] parameters, IRequestCycle cycle) { int id = Integer.parseInt( parameters[0].toString()); setDocId( id ); } After that call, if I call the page directly (service=page) http://localhost:8080/Tap03/Docum/DocumentEdit.html The page has remembered the "docId" property which I've previously called with the ExternalLink. I do not understand how it could be possible, because the @Persist("client") could not memorize the property on server-side ... Have you got an idea where I've to look to find my mistake ? Thanks cyrille. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Tap4.0.2] about @Persist("client")
Hello, There is something I do not understand. I've got a page which remember a property "docId" with the @Persist("client") annotation. @Persist("client") public abstract int getDocId(); public abstract void setDocId(int docId); When I call the page with an ExternalLink (service=external) I'm setting that "docId" property. http://localhost:8080/Tap03/Docum/DocumentEdit.external?sp=14 public void activateExternalPage(Object[] parameters, IRequestCycle cycle) { int id = Integer.parseInt( parameters[0].toString()); setDocId( id ); } After that call, if I call the page directly (service=page) http://localhost:8080/Tap03/Docum/DocumentEdit.html The page has remembered the "docId" property which I've previously called with the ExternalLink. I do not understand how it could be possible, because the @Persist("client") could not memorize the property on server-side ... Have you got an idea where I've to look to find my mistake ? Thanks cyrille. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Localized validation messages
Marilen Corciovei a écrit : In fact you don't need to overwrite the ValidationStrings.properties which is supposed to be the default one. You just need to have the ValidationStrings_{locale_code}.properties. In order to add french validation to Tapestry I created a Tapestry-french-validation.jar in the lib with the following content: jar tvf Tapestry-french-validation.jar 0 Sun May 01 14:06:18 EEST 2005 META-INF/ 106 Sun May 01 14:06:16 EEST 2005 META-INF/MANIFEST.MF 0 Sun May 01 14:06:18 EEST 2005 org/ 0 Sun May 01 14:06:18 EEST 2005 org/apache/ 0 Sun May 01 14:06:18 EEST 2005 org/apache/tapestry/ 0 Sun May 01 14:06:18 EEST 2005 org/apache/tapestry/valid/ 902 Sun May 01 14:06:18 EEST 2005 org/apache/tapestry/valid/ValidationStrings_fr.properties Hello, Thank you Len. That is great for default validation messages translation, but not for 'custom' messages, isn't it ? Cyrille. Hope it helps, Len On Mon, 2006-12-18 at 22:27 +0100, Cyrille37 wrote: Hello, I was coming mad when trying to localize my validation messages. After some search I've found a thread in that list which explain that: [quote] That's because Tapestry looks for "username-not-unique" in the properties file bundeled with Tapestry. To override it, your ValidationStrings.properties should have this path {CLASS_PATH_ROOT}/org/apache/tapestry/valid/ValidationStrings.properties. To do that: create the package /org/apache/tapestry/valid/ under your source folder and place your custom ValidationStrings.properties there. [/quote] Here there another way to localize validation messages ? I hope there is a cleanest method. How do you manage that case ? Thanks Cyrille - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Localized validation messages
Norbert Sándor wrote: > > I think you have to use this "dirty" solution. > Ok, I'll use another way : injecting the message into the Validator -- View this message in context: http://www.nabble.com/Localized-validation-messages-tf2842493.html#a7938551 Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Localized validation messages
Hello, I was coming mad when trying to localize my validation messages. After some search I've found a thread in that list which explain that: [quote] That's because Tapestry looks for "username-not-unique" in the properties file bundeled with Tapestry. To override it, your ValidationStrings.properties should have this path {CLASS_PATH_ROOT}/org/apache/tapestry/valid/ValidationStrings.properties. To do that: create the package /org/apache/tapestry/valid/ under your source folder and place your custom ValidationStrings.properties there. [/quote] Here there another way to localize validation messages ? I hope there is a cleanest method. How do you manage that case ? Thanks Cyrille - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: problem with InjectSpring and Field Validator
Cyrille37 a écrit : Hello, Is that @InjectSpring syntax is correct ? import org.apache.tapestry.form.validator.BaseValidator; public class DocumentsUploadFileValidator extends BaseValidator { protected ConfigurationManager configurationManager ; @InjectSpring("configurationManager") public void setConfigurationManager( ConfigurationManager configurationManager ) { this.configurationManager = configurationManager; } This code is in a class which extend org.apache.tapestry.form.validator.BaseValidator. This class is instanciated like a Hivemind bean in the page specification : class="tap03.ui.web.validators.DocumentsUploadFileValidator" /> But when the validator runs, the property this.configurationManager is null. There not other error in the tomcat log. I could not make it works with annotation. Only the page-specification works : class="tap03.ui.web.validators.DocumentsUploadFileValidator" > value="hivemind:spring:configurationManager"/> Why the @InjectSpring does not works ? Cyrille. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: problem with InjectSpring and Field Validator
Cyrille37 a écrit : @InjectSpring("configurationManager") public void setConfigurationManager( ConfigurationManager configurationManager ) In all examples found on the Net, methods are abstract when using InjectSpring annotation. It is a must have ? Because my class could not be abstract. cyrille - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
problem with InjectSpring and Field Validator
Hello, Is that @InjectSpring syntax is correct ? import org.apache.tapestry.form.validator.BaseValidator; public class DocumentsUploadFileValidator extends BaseValidator { protected ConfigurationManager configurationManager ; @InjectSpring("configurationManager") public void setConfigurationManager( ConfigurationManager configurationManager ) { this.configurationManager = configurationManager; } This code is in a class which extend org.apache.tapestry.form.validator.BaseValidator. This class is instanciated like a Hivemind bean in the page specification : class="tap03.ui.web.validators.DocumentsUploadFileValidator" /> But when the validator runs, the property this.configurationManager is null. There not other error in the tomcat log. Any idea ? Thanks cyrille - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Form Validator java.lang.InstantiationException
Ok, I've found my error. my java class was an **abstract** class !! And of course java could not instanciate a abstract class. sorry for the noise. cyrille Cyrille37 a écrit : Shing Hing Man a écrit : Try replacing public DocumentsUploadFileValidator() {} by public DocumentsUploadFileValidator() {super();} Shing Thanks Shing, I did, but it doesn't change. Still have the error. Error initializing validator 'documentsUploadFileValidator' (class tap03.ui.web.validators.DocumentsUploadFileValidator): java.lang.InstantiationException # sun.reflect.InstantiationExceptionConstructorAccessorImpl.newInstance(InstantiationExceptionConstructorAccessorImpl.java:30) # java.lang.reflect.Constructor.newInstance(Constructor.java:494) # java.lang.Class.newInstance0(Class.java:350) # java.lang.Class.newInstance(Class.java:303) # org.apache.tapestry.form.validator.ValidatorFactoryImpl.buildValidator(ValidatorFactoryImpl.java:132) # org.apache.tapestry.form.validator.ValidatorFactoryImpl.constructValidatorList(ValidatorFactoryImpl.java:100) # $ValidatorFactory_10f95fa28f3.constructValidatorList($ValidatorFactory_10f95fa28f3.java) # $ValidatorFactory_10f95fa28f2.constructValidatorList($ValidatorFactory_10f95fa28f2.java) # org.apache.tapestry.form.validator.ValidatorsBindingFactory.createBinding(ValidatorsBindingFactory.java:39) ... Cyrille. --- Cyrille37 <[EMAIL PROTECTED]> wrote: Hello, I'm trying to create a really simple Form field validator but it fails and throw an java.lang.InstantiationException. Since 3 hours I'm looking in TAP's severals examples but I could not find the reason of the exception. Please could you help me to find where is my error ? Thanks Cyrille **The Exception :** org.apache.hivemind.ApplicationRuntimeException Error initializing validator 'documentsUploadFileValidator' (class tap03.ui.web.validators.DocumentsUploadFileValidator): java.lang.InstantiationException java.lang.InstantiationException # sun.reflect.InstantiationExceptionConstructorAccessorImpl.newInstance(InstantiationExceptionConstructorAccessorImpl.java:30) # java.lang.reflect.Constructor.newInstance(Constructor.java:494) # java.lang.Class.newInstance0(Class.java:350) # java.lang.Class.newInstance(Class.java:303) # org.apache.tapestry.form.validator.ValidatorFactoryImpl.buildValidator(ValidatorFactoryImpl.java:132) # org.apache.tapestry.form.validator.ValidatorFactoryImpl.constructValidatorList(ValidatorFactoryImpl.java:100) Here is my files : **in hivemodule.xml :** configuration-id="tapestry.form.validator.Validators"> class="tap03.ui.web.validators.DocumentsUploadFileValidator" name="documentsUploadFileValidator" configurable="false" /> **in the html page :** : validators="validators:documentsUploadFileValidator"/> **the java file :** package tap03.ui.web.validators; import org.apache.tapestry.form.IFormComponent; import org.apache.tapestry.form.ValidationMessages; import org.apache.tapestry.form.validator.BaseValidator; import org.apache.tapestry.valid.ValidatorException; public abstract class DocumentsUploadFileValidator extends BaseValidator { public DocumentsUploadFileValidator() { System.err.println("DocumentsUploadFileValidator.DocumentsUploadFileValidator()"); } public DocumentsUploadFileValidator(String initializer) { super(initializer); System.err.println("DocumentsUploadFileValidator.DocumentsUploadFileValidator(String initializer)"); } public void validate(IFormComponent field, ValidationMessages messages, Object object) throws ValidatorException { System.out.println("DocumentsUploadFileValidator.validate()"); } } - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Form Validator java.lang.InstantiationException
Shing Hing Man a écrit : Try replacing public DocumentsUploadFileValidator() {} by public DocumentsUploadFileValidator() {super();} Shing Thanks Shing, I did, but it doesn't change. Still have the error. Error initializing validator 'documentsUploadFileValidator' (class tap03.ui.web.validators.DocumentsUploadFileValidator): java.lang.InstantiationException # sun.reflect.InstantiationExceptionConstructorAccessorImpl.newInstance(InstantiationExceptionConstructorAccessorImpl.java:30) # java.lang.reflect.Constructor.newInstance(Constructor.java:494) # java.lang.Class.newInstance0(Class.java:350) # java.lang.Class.newInstance(Class.java:303) # org.apache.tapestry.form.validator.ValidatorFactoryImpl.buildValidator(ValidatorFactoryImpl.java:132) # org.apache.tapestry.form.validator.ValidatorFactoryImpl.constructValidatorList(ValidatorFactoryImpl.java:100) # $ValidatorFactory_10f95fa28f3.constructValidatorList($ValidatorFactory_10f95fa28f3.java) # $ValidatorFactory_10f95fa28f2.constructValidatorList($ValidatorFactory_10f95fa28f2.java) # org.apache.tapestry.form.validator.ValidatorsBindingFactory.createBinding(ValidatorsBindingFactory.java:39) ... Cyrille. --- Cyrille37 <[EMAIL PROTECTED]> wrote: Hello, I'm trying to create a really simple Form field validator but it fails and throw an java.lang.InstantiationException. Since 3 hours I'm looking in TAP's severals examples but I could not find the reason of the exception. Please could you help me to find where is my error ? Thanks Cyrille **The Exception :** org.apache.hivemind.ApplicationRuntimeException Error initializing validator 'documentsUploadFileValidator' (class tap03.ui.web.validators.DocumentsUploadFileValidator): java.lang.InstantiationException java.lang.InstantiationException # sun.reflect.InstantiationExceptionConstructorAccessorImpl.newInstance(InstantiationExceptionConstructorAccessorImpl.java:30) # java.lang.reflect.Constructor.newInstance(Constructor.java:494) # java.lang.Class.newInstance0(Class.java:350) # java.lang.Class.newInstance(Class.java:303) # org.apache.tapestry.form.validator.ValidatorFactoryImpl.buildValidator(ValidatorFactoryImpl.java:132) # org.apache.tapestry.form.validator.ValidatorFactoryImpl.constructValidatorList(ValidatorFactoryImpl.java:100) Here is my files : **in hivemodule.xml :** configuration-id="tapestry.form.validator.Validators"> class="tap03.ui.web.validators.DocumentsUploadFileValidator" name="documentsUploadFileValidator" configurable="false" /> **in the html page :** : file="ognl:file" size="30" displayName="File" validators="validators:documentsUploadFileValidator"/> **the java file :** package tap03.ui.web.validators; import org.apache.tapestry.form.IFormComponent; import org.apache.tapestry.form.ValidationMessages; import org.apache.tapestry.form.validator.BaseValidator; import org.apache.tapestry.valid.ValidatorException; public abstract class DocumentsUploadFileValidator extends BaseValidator { public DocumentsUploadFileValidator() { System.err.println("DocumentsUploadFileValidator.DocumentsUploadFileValidator()"); } public DocumentsUploadFileValidator(String initializer) { super(initializer); System.err.println("DocumentsUploadFileValidator.DocumentsUploadFileValidator(String initializer)"); } public void validate(IFormComponent field, ValidationMessages messages, Object object) throws ValidatorException { System.out.println("DocumentsUploadFileValidator.validate()"); } } - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Form Validator java.lang.InstantiationException
Hello, I'm trying to create a really simple Form field validator but it fails and throw an java.lang.InstantiationException. Since 3 hours I'm looking in TAP's severals examples but I could not find the reason of the exception. Please could you help me to find where is my error ? Thanks Cyrille **The Exception :** org.apache.hivemind.ApplicationRuntimeException Error initializing validator 'documentsUploadFileValidator' (class tap03.ui.web.validators.DocumentsUploadFileValidator): java.lang.InstantiationException java.lang.InstantiationException # sun.reflect.InstantiationExceptionConstructorAccessorImpl.newInstance(InstantiationExceptionConstructorAccessorImpl.java:30) # java.lang.reflect.Constructor.newInstance(Constructor.java:494) # java.lang.Class.newInstance0(Class.java:350) # java.lang.Class.newInstance(Class.java:303) # org.apache.tapestry.form.validator.ValidatorFactoryImpl.buildValidator(ValidatorFactoryImpl.java:132) # org.apache.tapestry.form.validator.ValidatorFactoryImpl.constructValidatorList(ValidatorFactoryImpl.java:100) Here is my files : **in hivemodule.xml :** **in the html page :** : displayName="File" validators="validators:documentsUploadFileValidator"/> **the java file :** package tap03.ui.web.validators; import org.apache.tapestry.form.IFormComponent; import org.apache.tapestry.form.ValidationMessages; import org.apache.tapestry.form.validator.BaseValidator; import org.apache.tapestry.valid.ValidatorException; public abstract class DocumentsUploadFileValidator extends BaseValidator { public DocumentsUploadFileValidator() { System.err.println("DocumentsUploadFileValidator.DocumentsUploadFileValidator()"); } public DocumentsUploadFileValidator(String initializer) { super(initializer); System.err.println("DocumentsUploadFileValidator.DocumentsUploadFileValidator(String initializer)"); } public void validate(IFormComponent field, ValidationMessages messages, Object object) throws ValidatorException { System.out.println("DocumentsUploadFileValidator.validate()"); } } - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
about DynamicBlock component
Hello, There is the DynamicBlock component source code at : http://www.behindthesite.com/blog/C1931765677/E1630021481/ and a example at : http://examples.mjhenderson.com/dynamicblock/app Do you know if there is anothers pages which talking about that component ? Thanks Cyrille - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Hivemind and EJB access
James Carman a écrit : Well, I was answering the question of whether HiveMind's EJBProxyFactory supports stateful session beans and it does not (the reason is that the create method requires params). If you want to use a stateless session bean, then check EJBProxyFactory's documentation on how to set it up in your hivemodule.xml file. Basically, you use EJBProxyFactory rather than BuilderFactory to construct your implementation object. Thanks James, but ... I understand that I could not use StateFull Bean with Hivemind. But how to use StateFull Bean from a Tapestry page ? Is something like this possible : ApplicationContext.getBean("TheStateFullOne"); I think the Application Server has to create the SateFullBean, but I've no idea on how it can make the link between the AppServer's session and Tapestry's session... I'm a lost a little .... Cyrille. On 12/13/06, Cyrille37 <[EMAIL PROTECTED]> wrote: James Carman a écrit : > No, because typically with SFSBs, you have to pass in a paramter to > the create method and there's no way to set up the proxy to do that > for you automatically. With SLSBs, there is no parameter to the > create method. Hello James, Thank you for your response, but I'm afraid to do not understand it ;-( Perhaps I have to reformulate my question : When Tapestry runs in an Application Server (Glassfish,JBoss), how to access EJB (Stateless and Statefull) from a Tapestry page ?? Cyrille. > > > On 12/13/06, Cyrille37 <[EMAIL PROTECTED]> wrote: >> Hello, >> >> After had some pratices with Tapestry running on Tomcat with and without >> Spring, I'm looking for running Tapestry under an Application Server >> like Glassfish. >> I've read in Hivemind documentation about the EJBProxyFactory that it >> could only delegates to Stateless session bean. Is it true ? Is there >> another fashion for Hivemind to delegate to other kind of EJB >> (Statefull, Message driven) ? >> >> Thanks for your knowledge sharing, >> Cyrillle >> > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Hivemind and EJB access
James Carman a écrit : No, because typically with SFSBs, you have to pass in a paramter to the create method and there's no way to set up the proxy to do that for you automatically. With SLSBs, there is no parameter to the create method. Hello James, Thank you for your response, but I'm afraid to do not understand it ;-( Perhaps I have to reformulate my question : When Tapestry runs in an Application Server (Glassfish,JBoss), how to access EJB (Stateless and Statefull) from a Tapestry page ?? Cyrille. On 12/13/06, Cyrille37 <[EMAIL PROTECTED]> wrote: Hello, After had some pratices with Tapestry running on Tomcat with and without Spring, I'm looking for running Tapestry under an Application Server like Glassfish. I've read in Hivemind documentation about the EJBProxyFactory that it could only delegates to Stateless session bean. Is it true ? Is there another fashion for Hivemind to delegate to other kind of EJB (Statefull, Message driven) ? Thanks for your knowledge sharing, Cyrillle - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Hivemind and EJB access
Hello, After had some pratices with Tapestry running on Tomcat with and without Spring, I'm looking for running Tapestry under an Application Server like Glassfish. I've read in Hivemind documentation about the EJBProxyFactory that it could only delegates to Stateless session bean. Is it true ? Is there another fashion for Hivemind to delegate to other kind of EJB (Statefull, Message driven) ? Thanks for your knowledge sharing, Cyrillle - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: about Beanform and JPA (persistence)
Hello Sam, Thanks a lot for your long long explanation. It was really wonderfull for me. Now I've understood some architecture's best practices. I've applied your methods to my little project using Spring2. Now I would like to practice the same little project with an Application Server. I've installed Glassfish. I will use Tapestry for the Web UI and make EJBs for services (business layer). So I've had a look at Hivemind's documentation about accessing EJBs from Hivemind to inject theirs references in Tapestry. But the service hivemind.lib.EJBProxyFactory Service seems to handle only Stateless session bean (http://hivemind.apache.org/hivemind-lib/EJBProxyFactory.html). So is it not possible to integrate Tapestry with EJBs services with Hivemind ? Have I to integrate Spring to permit Tapestry / EJBs interaction ? Thanks again to my master ;o) Best regards from your disciple. Cyrille. Sam Gendler a écrit : I'll clarify a little. In general, you want to keep persistence code, ... OK, that was a ton of information, but hopefully you'll find it very useful, since you said you were new to Java web development. --sam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Howto get locales's messages from a database
Andreas Andreou a écrit : Yep, that's the way... There's also the wiki! http://wiki.apache.org/tapestry/UsingCustomResourceSource YEAH ! That's it ! Thank you Andreas. Cyrille. Cyrille37 wrote: Cyrille37 a écrit : I would like to store locales messages in a database. In my application project, some users can translate messages by them self to create new locales or change some messages. It will be better if they can do that online via a web interface. I think it would not be great and dangerous if they directly edit messages files, so I need to store messages in a database. With a ORM like Hibernate and a cache system, performances should be good enough. Do you know where I've to start ? I've found in the hivemodule.xml of tapestry-4.0.2.jar a contribution : ... Used to provide components (including pages) with access to their own localized messages. Should I look that way to implement my need ?? Cyrille Thanks Cyrille - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Howto get locales's messages from a database
Cyrille37 a écrit : I would like to store locales messages in a database. In my application project, some users can translate messages by them self to create new locales or change some messages. It will be better if they can do that online via a web interface. I think it would not be great and dangerous if they directly edit messages files, so I need to store messages in a database. With a ORM like Hibernate and a cache system, performances should be good enough. Do you know where I've to start ? I've found in the hivemodule.xml of tapestry-4.0.2.jar a contribution : object="service:ComponentMessagesSource"/> ... Used to provide components (including pages) with access to their own localized messages. value="infrastructure:componentPropertySource"/> Should I look that way to implement my need ?? Cyrille Thanks Cyrille - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Howto get locales's messages from a database
Hello, I would like to store locales messages in a database. In my application project, some users can translate messages by them self to create new locales or change some messages. It will be better if they can do that online via a web interface. I think it would not be great and dangerous if they directly edit messages files, so I need to store messages in a database. With a ORM like Hibernate and a cache system, performances should be good enough. Do you know where I've to start ? Thanks Cyrille - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: about Beanform and JPA (persistence)
stead of specific classes. This is important because it means you can easily drop different implementations of the same interface into your code via dependency injection, including injecting mock objects during testing in order to simulate production conditions. The one complaint I have about a rigidly layered application such as this is that it can force you into an unreasonable amount of typing to do simple things. If you add a new DAO method to support some action, you've now got to add the method to the dao interface and the dao implementation. There is also a high probability you'll be adding a corresponding method to your service layer, so you've got to add methods to the service interface and the service implementation as well. Then you've got to make sure you've applied the correct transaction semantics to the service method in question. It is a fair amount of cut and paste typing, which can be error prone, although errors are likely to be caught at compile time (unless you screw up your transaction declaration, which you won't detect until runtime), so it isn't a huge problem, other than the time involved and the repetitive stress injuries. I don't use an IDE, so I have some quick scripts which dump all the necessary method and transaction declarations into a file, and I can then just cut and paste the guaranteed correct declarations into the appropriate files (it was easier than trying to parse the files and inserting the code directly and it means I can relax a little on file/class naming conventions). Also, judicious use of base interfaces and base classes with generics means that you can often add a single method to a base class in order to get the functionality added for every single entity type in your application. OK, that was a ton of information, but hopefully you'll find it very useful, since you said you were new to Java web development. --sam On 12/7/06, Cyrille37 <[EMAIL PROTECTED]> wrote: Hello D&J Gredler a écrit : > I haven't used EntityManagers directly, but your code looks fine to me, > especially if it works ;-) > You may want to wrap your flush( ) call in a try/catch block in case > something goes wrong, and roll back the transaction in the catch block. It works, but I've made change because I've got only one EntityManager for all the application. In Toplink's examples I see that the create an EntityManager each time they make a query. So I've change flush() to merge(this_product) because object was "detached" ... Sorry, I'm not very clear ... > Once you get more comfortable with things (and if you're using > Hibernate), > you may want to check out some of the integration packages (Tapernate, > Honeycomb, etc) that handle transaction scoping for you. hmmm... Which scope ? I could not imagine what they do. I'm to beginner with Java & Co. Please, can you explain me a beat what a package like Tapernate or Honeycomb will do. For da moment I'm using JPA (TopLink Essential). > Spring might also > be a good option if you end up splitting your app up into presentation / > service / persistence layers. At the beginning of my exploration, I've try Spring with Tapestry and I did not see what it will bring to me more than Hivemind. Perhaps because I only the the object injection, and not other things that Spring bring to us. Thanks for you support ;o) Cyrille - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: about Beanform and JPA (persistence)
Hello D&J Gredler a écrit : I haven't used EntityManagers directly, but your code looks fine to me, especially if it works ;-) You may want to wrap your flush( ) call in a try/catch block in case something goes wrong, and roll back the transaction in the catch block. It works, but I've made change because I've got only one EntityManager for all the application. In Toplink's examples I see that the create an EntityManager each time they make a query. So I've change flush() to merge(this_product) because object was "detached" ... Sorry, I'm not very clear ... Once you get more comfortable with things (and if you're using Hibernate), you may want to check out some of the integration packages (Tapernate, Honeycomb, etc) that handle transaction scoping for you. hmmm... Which scope ? I could not imagine what they do. I'm to beginner with Java & Co. Please, can you explain me a beat what a package like Tapernate or Honeycomb will do. For da moment I'm using JPA (TopLink Essential). Spring might also be a good option if you end up splitting your app up into presentation / service / persistence layers. At the beginning of my exploration, I've try Spring with Tapestry and I did not see what it will bring to me more than Hivemind. Perhaps because I only the the object injection, and not other things that Spring bring to us. Thanks for you support ;o) Cyrille - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JumpStart v0.7 is now available
Geoff Callender a écrit : Want to build real world applications with Tapestry, but not sure where to start? Try JumpStart - it's free! http://files.doublenegative.com.au/jumpstart OhOhOh... That's looking great for fresh beginner like me. I'll try it today ! Thank you for that initiative. cyrile Cheers, Geoff Callender - 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]
about Beanform and JPA (persistence)
Hello, I'm coming back with a beginner question ;-) After 3 weeks of Java Web App discovering, I'm actually working with Tapestry 4.0.2, Netbeans 5.5 which give me easy data persistence support with JPA Toplink essential, and Tomcat5.5 and Mysql5. So I've finaly got something working with Beanform and JPA and I come to you to get comments and ideas and best practice. For the persistence, the method I've found is to do the following : * To remember with object I'm playing with : @Persist("client") public abstract int getProductId(); public abstract void setProductId(int productId); * To manage the Beanform's bean : private Product _product ; public Product getProduct() { if( this._product==null && this.getProductId()>0 ) { this.setProduct( this.loadProduct( this.getProductId()) ); } return this._product ; } public void setProduct( Product product ) { this._product = product ; } * For initializing the page at the first time : public void activateExternalPage(Object[] parameters, IRequestCycle cycle) { int pid = Integer.parseInt( parameters[0].toString()); setProductId( pid ); this.setProduct( this.loadProduct(pid) ); } * And finally to implement the Beanform 'save' listener : public String save() { System.out.println( "ProductEdit.save()" ); if( this.getDelegate().getHasErrors() ) return null; EntityManager em = getDataManagerFactory().GetEntityManager(); /*** I find that method a beat strange but it works ! ***/ em.getTransaction().begin(); em.flush(); em.getTransaction().commit(); return "Home"; } Thanks to have read my poetry ;-) Cyrille. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
about servlet-mapping
Hello, It is still me with my beginner's questions ... I've activated Friendly URLs and it works fine. The application context is /Tap02 and I would like to give the control to Tomcat or whatever the "normal' server request handler is, for urls like "/Tap02/export". Is it possible ? Or all the context could only be served by Tapestry ? Thank you for your help ... and your patience ;-) Cyrille. Here is my web.xml file : http://java.sun.com/xml/ns/j2ee"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";> Tap02 tap02Servlet org.apache.tapestry.ApplicationServlet 0 30 tap02Servlet *.html tap02Servlet *.direct tap02Servlet *.sdirect tap02Servlet *.svc tap02Servlet *.external tap02Servlet /assets/* Home.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AW: please, some help with Hivemind
Peter Schröder a écrit : you may create an interface with a method 'getEntityManager()' and implement that method like you did before. than register a service in your hivemind.xml like Hi, Just to fill the mailing list archive ... A little presentation of Hivemind and it's service-point is available on the wiki at : http://wiki.apache.org/tapestry/Hivemind4Beginners Cheers Cyrille you can than receive it in your java-class using @InjectObject take a look at the hello-world example app. -Ursprüngliche Nachricht- Von: Cyrille37 [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 5. Dezember 2006 03:10 An: Tapestry users Betreff: please, some help with Hivemind Hello, step by step, I'm learning Tapestry 4.0.2 with Netbeans 5.5 ... With that Netbeans version it's really easy to create persistence stuff. It makes pojo class and persistence unit with a wizard. Great. I've test the persistence in a page property, by a very dirty fashion. But I know that it's working. Here is the ugly code : import org.apache.tapestry.html.BasePage ; import javax.persistence.*; // implemented with TopLink public abstract class DB01 extends BasePage { EntityManagerFactory factory; EntityManager manager; public String getTest01() { factory = Persistence.createEntityManagerFactory("Tap02PU"); manager = factory.createEntityManager(); return "Ok, DB is connected" ; } } So, I come to you because your are so nice, that you will help me to initialize the EntityManager with Hivemind ;-) Please can you tell me how to declare the serive ? There are so many things to learn : Form, Component, ... That I would like to not spend 2 days to find how to instantiate the EntityManager and how to access from pages. Promess, in several days, I will digg into Hivemind documentation (I'll try to not use Spring but only Hivemind). Thanks a lot Cyrille - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: 4.1 Stability (Hi Jesse! :P)
Hi Jesse, You think we have to use the 4.1 vs. 4.0. For example I'm learning Tapestry for a project which will really start in january. Will you tell me to use the 4.1 ? thanks cyrille Jesse Kuhnert a écrit : I think it would reckless of me to recommend anything that may or may not affect anyone's job/career.. That being said - if it were me - yeah I'd totally go for it. It's probably been a mistake to wait so long for 4.1.1 to come out anyways. Probably I'll just fix this validation message issue and release it. On 12/5/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Okay, I know Jesse is probably fed up with these types of questions! And we've gone over it before, about 4.1, 5.0, roadmaps, etc, a couple weeks ago. The 4.1 "snapshot" that's out right now, for a relatively simple app - no custom components, hivemind services, Java 1.4 so no annotations, and maybe a sprinkle of DOJO stuff (hence the reason to switch to 4.1!!) - would moving from 4.0 to 4.1 be a horrible idea? I skimmed over a lot of the open issues on JIRA and none seem too severe, or too widespread to some of the "proven" core of tapestry. Our application is for our internal staff (a dozen or so), and since it's relatively small, is usually decently tested for bugs. So it's not like I'm re-writing Amazon.com or something with Tap4.1 and will lose billions of dollars over a bug.. 4.1 looks really nice, and it would be great to jump in, rather then do it in 4.0 and then re-do it in 4.1 in 6 months. That said, go for it? All comments apprieciated! Thanks, Greg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AW: please, some help with Hivemind
Peter Schröder a écrit : you may create an interface with a method 'getEntityManager()' and implement that method like you did before. than register a service in your hivemind.xml like you can than receive it in your java-class using @InjectObject take a look at the hello-world example app. Hello Peter, Thanks for your help. I had some decoration to your example, is that good, not necessary ? hivemodule.xml : interface="tap02.data.DataManagerFactory"> model="singleton"> initialize-method="initialize"> ... I spent some time to find the right @InjectObject address syntax. I started without the module's id first part address ... But the good syntax is : @InjectObject("service:tap02.DataManagerFactory") Thanks again and have a nice day. Cyrille -Ursprüngliche Nachricht- Von: Cyrille37 [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 5. Dezember 2006 03:10 An: Tapestry users Betreff: please, some help with Hivemind Hello, step by step, I'm learning Tapestry 4.0.2 with Netbeans 5.5 ... With that Netbeans version it's really easy to create persistence stuff. It makes pojo class and persistence unit with a wizard. Great. I've test the persistence in a page property, by a very dirty fashion. But I know that it's working. Here is the ugly code : import org.apache.tapestry.html.BasePage ; import javax.persistence.*; // implemented with TopLink public abstract class DB01 extends BasePage { EntityManagerFactory factory; EntityManager manager; public String getTest01() { factory = Persistence.createEntityManagerFactory("Tap02PU"); manager = factory.createEntityManager(); return "Ok, DB is connected" ; } } So, I come to you because your are so nice, that you will help me to initialize the EntityManager with Hivemind ;-) Please can you tell me how to declare the serive ? There are so many things to learn : Form, Component, ... That I would like to not spend 2 days to find how to instantiate the EntityManager and how to access from pages. Promess, in several days, I will digg into Hivemind documentation (I'll try to not use Spring but only Hivemind). Thanks a lot Cyrille - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
please, some help with Hivemind
Hello, step by step, I'm learning Tapestry 4.0.2 with Netbeans 5.5 ... With that Netbeans version it's really easy to create persistence stuff. It makes pojo class and persistence unit with a wizard. Great. I've test the persistence in a page property, by a very dirty fashion. But I know that it's working. Here is the ugly code : import org.apache.tapestry.html.BasePage ; import javax.persistence.*; // implemented with TopLink public abstract class DB01 extends BasePage { EntityManagerFactory factory; EntityManager manager; public String getTest01() { factory = Persistence.createEntityManagerFactory("Tap02PU"); manager = factory.createEntityManager(); return "Ok, DB is connected" ; } } So, I come to you because your are so nice, that you will help me to initialize the EntityManager with Hivemind ;-) Please can you tell me how to declare the serive ? There are so many things to learn : Form, Component, ... That I would like to not spend 2 days to find how to instantiate the EntityManager and how to access from pages. Promess, in several days, I will digg into Hivemind documentation (I'll try to not use Spring but only Hivemind). Thanks a lot Cyrille - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Number translator message in 4.1
" must be a numeric value." And now is: " must be a numeric value. Format is #." Hello, my 2 cents in that this long long subject is that there are messages for developper and messages for user. I don't know enough Tapestry at the moment, I'm just learning it but my opinion is that : A developper version should be : " must be a numeric value. Format is #." A user version should be : " must be a numeric value." With all its localized versions : " doit être un nombre." " ser um valor numérico." And thanks "again" to all of you for the really great TAPESTRY framework. My learning time on Tapestry is a real pleasure ! Regards, Cyrille - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Is there a searchable mailing list archive ?
Hello, The mailing list at http://mail-archives.apache.org/mod_mbox/tapestry-users/ is not searchable. Is there a searchable archive somewhere ? Thanks cyrille - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: using Tapestry to send mails
Bill Holloway a écrit : I've used JavaMail (http://java.sun.com/products/javamail) successfully in a few projects. One thought is to inject the javax.mail.Session object into an application state object for easier access via Tapestry. Hello, Ok, but how do you render the mail content (page) with Tapestry ? The example I've found use Velocity but I do not want to use another template engine than Tapestry's one. And I want to reuse current user's data to resolve dynamics variables of the mail content template. Cyrille Cheers, Bill On 11/26/06, Cyrille37 <[EMAIL PROTECTED]> wrote: Hello all, I still learning tapestry (Tapestry 4.0.2). I use to read and use peaces of code from samples. In the AppFuse Tapestry sample application it use Velocity template for rendering mail before send. I've found a paper on the net about sending mail with Tapestry: http://www.behindthesite.com/blog/C1931765677/E2094832857/index.html Is that method is the right one, or is there other (better ?) method with Tapestry ? I'm using Tapestry 4.0.2. Thanks, Cyrille - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
a component to set language (setLocale)
Hello, Before trying to write one, I come here to ask if some one has done a component which give the web user the possibility to choice his language (locale) in a list of available language (ex: fr,en,de,pt...). I've had a look at Tassel and google but found only explanation, no ready to use component. If I've to write it, is that page : http://wiki.apache.org/tapestry/UsingCustomResourceSource Is the right way when using Tapestry 4.0.2 ? If you know some other explanation, please tell me. Thanks, cyrille. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
information about trapping exception
Hello, I'm still learning Tapestry, and generally Java Web Application ... Now I can understand a beat about Tapestry and create little working project. Here is the time for me to learn how to manage errors, like trapping an underground exception in the view layer. The following example is from the "Kent Tong 's book" source code: the "shop" example. There is a page to view shop's products details: ProductDetails(.html,.page,.java). In ProductDetails.java there are accessors for a product details like : public String getName() { return lookup().getName(); } public String getDesc() { return lookup().getDesc(); } public double getPrice() { return lookup().getPrice(); } The lookup method to get a Product is : private Product lookup() { return Catalog.getGlobalCatalog().lookup(getProductId()); } In ProductDetails.page there are components like : How can I catch an exception throwed by Catalog.getGlobalCatalog().lookup(getProductId()) when a ProductId is not valid (does not exists) ? I would like to display a nicer page than the default Tapestry's Exception page. The problem is that the exception occurs while parsing the ProductDetails's specification page (ProductDetails.page) where components are binded. Have you got any idea or method on how to manage that kind of problems ? thanks a lot for your experience share. Cyrille. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tapestry 4. Class ExternalService Javadoc mistake
Hi, I think there is a mistake in the Tapestry 4's JavaDoc for org.apache.tapestry.engine.ExternalService. The example: http://localhost/myapp?service=external&context=ViewCustomer&sp=5056&sp=302 is not working. To works I've to replace "context" by "page" like : http://localhost/myapp?service=external&page=ViewCustomer&sp=5056&sp=302 Have a nice Sunday, Cyrille. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: replace @InjectPage by a page specification
Sam Gendler a écrit : I don't know for sure, but I'd try using 'IPage' as the type, which would hopefully tell hivemind to resolve the object as a page name. You might also try looking at the source for the InjectPage annotation, see how it resolves the page, presumably via a hivemind service of some kind, and then inject it via the hivemind binding, if that's possible. There is also a list of bindings at http://tapestry.apache.org/tapestry4/UsersGuide/bindings.html but I have no idea if that is the canonical list. You might try looking at the tapestry.bindings.BindingFactories configuration point. You could always contribute your own 'page' binding which would do the same thing as the InjectPage annotation does in order to load a page instance. When you figure it out, please post it back here. I don't know that I'll ever use it, but I'm sure someone will search for it at some point. Hello Sam, And thanks a lot for your detailed explanation. By the way, I should got another error somewhere else because now the syntax: works fine ! It replace the @InjectPage annotation : @InjectPage("Login") public abstract Login getLoginPage(); I prefer to get page association made into a specification page than in the java source code to avoid to mush specialized code. And it's much easyer and faster to change the page specification than to change and compile the java source. Regards, cyrille. --sam On 12/2/06, Cyrille37 <[EMAIL PROTECTED]> wrote: Hello, It's me again ... I'm searching how to replace an @InjectPage annotation by a page specification like The java code is : @InjectPage("Login") public abstract Login getLoginPage(); And I would like to remove the annotation and replace it by a page specification like : But it does not works. Is it possible ? What is the right syntax ? Thanks Cyrille - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Popup window with parameter
Istvan Szucs a écrit : The question is wrong. The problem is solved. I found this: http://lombok.demon.co.uk/tapestry4Demo/TestPopupSource.html Hi, I don't know it it can help, but there are some components on Tassel : http://equalitylearning.org/Tassel/app?service=external/ViewComponent&sp=SNewWindowLink http://equalitylearning.org/Tassel/app?service=external/ViewComponent&sp=SNewWindowLink_Tap4 Cyrille. Stef Hello! I have a page, with a javascript: function openPopup(startValue){ var win2=window.open("./app/ListValues&startValue="+startValue,"Listed Values","width=600px, height=600px, resizable=yes, center=yes, menubar=no, scrollbars=yes, status=yes, minimize=no, maximize=no, help=no") win2.creator=self } In the page, i tell the javascript: How can I add parameters to the ListValues.page in javascript? I want to add a parameter like this: "app/ListValues&startValue=1" Stef - 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: wysiwyg editor
Karthik N a écrit : http://lombok.demon.co.uk/tapestry4Demo/TestFCKeditor2.html http://lombok.demon.co.uk/tapestry4Demo/TestFCKeditor1.html There is FCKeditorTA on Tassel, which I didn't try yet. http://equalitylearning.org/Tassel/app?service=external/ViewComponent&sp=SFCKeditorTA Cyrille. On 12/1/06, Peter Schröder <[EMAIL PROTECTED]> wrote: http://tapestryjava.blogspot.com/2006/10/ezing-builder-wysiwyg-builder-for.html -Ursprüngliche Nachricht- Von: Cyrille37 [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 1. Dezember 2006 10:51 An: Tapestry users Betreff: wysiwyg editor Hello, Has someone integrated some Wysiwyg editors with Tapestry like FCKEditor (www.fckeditor.net/), xstandard (www.xstandard.com), RTE (www.kevinroth.com/rte/), TinuMCE (tinymce.moxiecode.com/) ? Any experience and comment are wellcome. Have a nice day, cyrille - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]