BeanEditForm Screencast
Hi, I am new to Tapestry. I have made two or more demo application for tapestry5. in Tomcat5.5 and eclipse plugin splindle and the greatest help of the ScreenCast of Howard (http://tapestry.apache.org/tapestry5/screencast.html)... But in the 4th screencast for the beaneditForm it will not display any thing on the page.. i.e. there is no component display on the form page... as i have written form t:type=beaneditform Object=registration / in Home.html actually i cant found, what is missing ? CODE: Home.html html xmlns:t=http://tapestry.apache.org/schema/tapestry_5_0_0.xsd; xmlns:p=tapestry:parameter head /head body form t:type=beaneditform Object=registration / /body /html CODE:Home.java package com.hemen.page; import org.apache.tapestry.html.BasePage; import org.apache.tapestry5.annotations.ApplicationState; import com.semaphore.data.Registration; public abstract class Home extends BasePage { @ApplicationState private Registration registration; public Registration getRegistration(){ return registration; } public void setRegistration(Registration registration) { this.registration = registration; } } CODE Home.page ?xml version=1.0 encoding=UTF-8? !DOCTYPE page-specification PUBLIC -//Apache Software Foundation//Tapestry Specification 3.0//EN http://jakarta.apache.org/tapestry/dtd/Tapestry_3_0.dtd; !-- generated by Spindle, http://spindle.sourceforge.net -- page-specification class=com.hemen.page.Home /page-specification So suggest me... And also suggest about some useful tutorial with example As all the books are paid (No Free ebooks are available for tapestry though its opensource) -- View this message in context: http://www.nabble.com/BeanEditForm-Screencast-tp21156843p21156843.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: BeanEditForm Screencast
Hi, You are mixing Tapestry 5 and Tapestry 4. From the snippet below, here are a few problems: - The templates in T5 have a .tml as extension - There is no spec file. - Your packages are incorrect (should be .pages) - Pages are not abstract - The BasePage you are extending doesn't exist in T5 BTW, Spindle doesn't work for T5. I would suggest you go through the tapestry 5 notes first and tutorial #1. Then, focus on the BeanEditForm component. For Tapestry 5, There is a dedicated guide here: http://tapestry.apache.org/tapestry5/guide/beaneditform.html And there is an example in the component reference: http://tapestry.apache.org/tapestry5/tapestry-core/ref/org/apache/tapestry5/corelib/components/BeanEditForm.html /Serge hemen wrote: Hi, I am new to Tapestry. I have made two or more demo application for tapestry5. in Tomcat5.5 and eclipse plugin splindle and the greatest help of the ScreenCast of Howard (http://tapestry.apache.org/tapestry5/screencast.html)... But in the 4th screencast for the beaneditForm it will not display any thing on the page.. i.e. there is no component display on the form page... as i have written form t:type=beaneditform Object=registration / in Home.html actually i cant found, what is missing ? CODE: Home.html html xmlns:t=http://tapestry.apache.org/schema/tapestry_5_0_0.xsd; xmlns:p=tapestry:parameter head /head body form t:type=beaneditform Object=registration / /body /html CODE:Home.java package com.hemen.page; import org.apache.tapestry.html.BasePage; import org.apache.tapestry5.annotations.ApplicationState; import com.hemen.data.Registration; public abstract class Home extends BasePage { @ApplicationState private Registration registration; public Registration getRegistration(){ return registration; } public void setRegistration(Registration registration) { this.registration = registration; } } CODE Home.page ?xml version=1.0 encoding=UTF-8? !DOCTYPE page-specification PUBLIC -//Apache Software Foundation//Tapestry Specification 3.0//EN http://jakarta.apache.org/tapestry/dtd/Tapestry_3_0.dtd; !-- generated by Spindle, http://spindle.sourceforge.net -- page-specification class=com.hemen.page.Home /page-specification So suggest me... And also suggest about some useful tutorial with example As all the books are paid (No Free ebooks are available for tapestry though its opensource) -- View this message in context: http://www.nabble.com/BeanEditForm-Screencast-tp21156843p21156850.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: BeanEditForm Screencast
Thanks SergeEby, Please suggest me the eclipse plugins for the tapestry-5. Actually right now i m using context... for run the project in tomcat -5... And Any other tutorial which will guide from the begining for tapestry-5. Hemen. SergeEby wrote: Hi, You are mixing Tapestry 5 and Tapestry 4. From the snippet below, here are a few problems: - The templates in T5 have a .tml as extension - There is no spec file. - Your packages are incorrect (should be .pages) - Pages are not abstract - The BasePage you are extending doesn't exist in T5 BTW, Spindle doesn't work for T5. I would suggest you go through the tapestry 5 notes first and tutorial #1. Then, focus on the BeanEditForm component. For Tapestry 5, There is a dedicated guide here: http://tapestry.apache.org/tapestry5/guide/beaneditform.html And there is an example in the component reference: http://tapestry.apache.org/tapestry5/tapestry-core/ref/org/apache/tapestry5/corelib/components/BeanEditForm.html /Serge hemen wrote: Hi, I am new to Tapestry. I have made two or more demo application for tapestry5. in Tomcat5.5 and eclipse plugin splindle and the greatest help of the ScreenCast of Howard (http://tapestry.apache.org/tapestry5/screencast.html)... But in the 4th screencast for the beaneditForm it will not display any thing on the page.. i.e. there is no component display on the form page... as i have written form t:type=beaneditform Object=registration / in Home.html actually i cant found, what is missing ? CODE: Home.html html xmlns:t=http://tapestry.apache.org/schema/tapestry_5_0_0.xsd; xmlns:p=tapestry:parameter head /head body form t:type=beaneditform Object=registration / /body /html CODE:Home.java package com.hemen.page; import org.apache.tapestry.html.BasePage; import org.apache.tapestry5.annotations.ApplicationState; import com.hemen.data.Registration; public abstract class Home extends BasePage { @ApplicationState private Registration registration; public Registration getRegistration(){ return registration; } public void setRegistration(Registration registration) { this.registration = registration; } } CODE Home.page ?xml version=1.0 encoding=UTF-8? !DOCTYPE page-specification PUBLIC -//Apache Software Foundation//Tapestry Specification 3.0//EN http://jakarta.apache.org/tapestry/dtd/Tapestry_3_0.dtd; !-- generated by Spindle, http://spindle.sourceforge.net -- page-specification class=com.hemen.page.Home /page-specification So suggest me... And also suggest about some useful tutorial with example As all the books are paid (No Free ebooks are available for tapestry though its opensource) -- View this message in context: http://www.nabble.com/BeanEditForm-Screencast-tp21156843p21156853.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: BeanEditForm Screencast
The only eclipse plugin for T5 is http://code.google.com/p/loom-t5/ Check this blog http://bbwebcraft.blogspot.com/ for first steps. -bob 2008/12/24 hemen hemen.punj...@googlemail.com Thanks SergeEby, Please suggest me the eclipse plugins for the tapestry-5. Actually right now i m using context... for run the project in tomcat -5... And Any other tutorial which will guide from the begining for tapestry-5. Hemen. SergeEby wrote: Hi, You are mixing Tapestry 5 and Tapestry 4. From the snippet below, here are a few problems: - The templates in T5 have a .tml as extension - There is no spec file. - Your packages are incorrect (should be .pages) - Pages are not abstract - The BasePage you are extending doesn't exist in T5 BTW, Spindle doesn't work for T5. I would suggest you go through the tapestry 5 notes first and tutorial #1. Then, focus on the BeanEditForm component. For Tapestry 5, There is a dedicated guide here: http://tapestry.apache.org/tapestry5/guide/beaneditform.html And there is an example in the component reference: http://tapestry.apache.org/tapestry5/tapestry-core/ref/org/apache/tapestry5/corelib/components/BeanEditForm.html /Serge hemen wrote: Hi, I am new to Tapestry. I have made two or more demo application for tapestry5. in Tomcat5.5 and eclipse plugin splindle and the greatest help of the ScreenCast of Howard (http://tapestry.apache.org/tapestry5/screencast.html).http://tapestry.apache.org/tapestry5/screencast.html%29. .. But in the 4th screencast for the beaneditForm it will not display any thing on the page.. i.e. there is no component display on the form page... as i have written form t:type=beaneditform Object=registration / in Home.html actually i cant found, what is missing ? CODE: Home.html html xmlns:t=http://tapestry.apache.org/schema/tapestry_5_0_0.xsd; xmlns:p=tapestry:parameter head /head body form t:type=beaneditform Object=registration / /body /html CODE:Home.java package com.hemen.page; import org.apache.tapestry.html.BasePage; import org.apache.tapestry5.annotations.ApplicationState; import com.hemen.data.Registration; public abstract class Home extends BasePage { @ApplicationState private Registration registration; public Registration getRegistration(){ return registration; } public void setRegistration(Registration registration) { this.registration = registration; } } CODE Home.page ?xml version=1.0 encoding=UTF-8? !DOCTYPE page-specification PUBLIC -//Apache Software Foundation//Tapestry Specification 3.0//EN http://jakarta.apache.org/tapestry/dtd/Tapestry_3_0.dtd; !-- generated by Spindle, http://spindle.sourceforge.net -- page-specification class=com.hemen.page.Home /page-specification So suggest me... And also suggest about some useful tutorial with example As all the books are paid (No Free ebooks are available for tapestry though its opensource) -- View this message in context: http://www.nabble.com/BeanEditForm-Screencast-tp21156843p21156853.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: T5 BeanEditForm screencast
I think good design is sometimes about knowing what you DO know, and knowing what you DON'T know, and negotiating between the two. On 2/21/07, Jiri Mares [EMAIL PROTECTED] wrote: Very good design ... Howard Lewis Ship napsal(a): The code that builds up the field validation is pluggable; originally I was thinking in terms of Hibernate/EJB3 annotations, but it should be reasonble to handle all kinds of approaches. This part of the code and design is still very alpha (in flux). On 2/21/07, Jiri Mares [EMAIL PROTECTED] wrote: Hi Howard, T5 looks very good. I would like to ask about the screencast #4 where you presented BeanEditForm component. For validation there is the annotation, which causes me problems. I don't want to annotade my business objects with tapestry annotation (they start to depend on tapestry). At the moment we are using OVal (oval.sf.net) for the Design by Contract and the oval annotations carry the same information as the tapestry validate annotation. So will it be easy to use for validation these annotations (instead of the tapestry one)? Meaning if you are thinking about some kind of pluggable validation framework ... or at least pluggable validation definition framework. Thanks -- Jiří Mareš (mailto:[EMAIL PROTECTED]) ČSAD SVT Praha, s.r.o. (http://www.svt.cz) Czech Republic - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Jiří Mareš (mailto:[EMAIL PROTECTED]) ČSAD SVT Praha, s.r.o. (http://www.svt.cz) Czech Republic - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Howard M. Lewis Ship TWD Consulting, Inc. Independent J2EE / Open-Source Java Consultant Creator and PMC Chair, Apache Tapestry Creator, Apache HiveMind Professional Tapestry training, mentoring, support and project work. http://howardlewisship.com
T5 BeanEditForm screencast
Hi Howard, T5 looks very good. I would like to ask about the screencast #4 where you presented BeanEditForm component. For validation there is the annotation, which causes me problems. I don't want to annotade my business objects with tapestry annotation (they start to depend on tapestry). At the moment we are using OVal (oval.sf.net) for the Design by Contract and the oval annotations carry the same information as the tapestry validate annotation. So will it be easy to use for validation these annotations (instead of the tapestry one)? Meaning if you are thinking about some kind of pluggable validation framework ... or at least pluggable validation definition framework. Thanks -- Jiří Mareš (mailto:[EMAIL PROTECTED]) ČSAD SVT Praha, s.r.o. (http://www.svt.cz) Czech Republic - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: T5 BeanEditForm screencast
The code that builds up the field validation is pluggable; originally I was thinking in terms of Hibernate/EJB3 annotations, but it should be reasonble to handle all kinds of approaches. This part of the code and design is still very alpha (in flux). On 2/21/07, Jiri Mares [EMAIL PROTECTED] wrote: Hi Howard, T5 looks very good. I would like to ask about the screencast #4 where you presented BeanEditForm component. For validation there is the annotation, which causes me problems. I don't want to annotade my business objects with tapestry annotation (they start to depend on tapestry). At the moment we are using OVal (oval.sf.net) for the Design by Contract and the oval annotations carry the same information as the tapestry validate annotation. So will it be easy to use for validation these annotations (instead of the tapestry one)? Meaning if you are thinking about some kind of pluggable validation framework ... or at least pluggable validation definition framework. Thanks -- Jiří Mareš (mailto:[EMAIL PROTECTED]) ČSAD SVT Praha, s.r.o. (http://www.svt.cz) Czech Republic - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Howard M. Lewis Ship TWD Consulting, Inc. Independent J2EE / Open-Source Java Consultant Creator and PMC Chair, Apache Tapestry Creator, Apache HiveMind Professional Tapestry training, mentoring, support and project work. http://howardlewisship.com