Is it possible to use Property Files with HTML tags in Tapestry 5.0
I am using example.properties file in which, the following property is using Property1=phi this is demo property file.. please refer t:pagelink t:page=aboutHome/t:pagelink/p In example.tml file when i print it as ${Property1} It will print the phi this is demo property file.. please refer t:pagelink t:page=aboutHome/t:pagelink/p. --- As whole String with HTML tags HTML parsing is not done Please suggest me Thanks, Hemen -- View this message in context: http://www.nabble.com/Is-it-possible-to-use-Property-Files-with-HTML-tags-in-Tapestry-5.0-tp21308001p21308001.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: Is it possible to use Property Files with HTML tags in Tapestry 5.0
Thanks Armand... :jumping: Its working very fine... With : t:outputraw t:value = ${Property1}/ Hemen.. Francois Armand wrote: hemen wrote: It will print the phi this is demo property file.. please refer t:pagelink t:page=aboutHome/t:pagelink/p. --- As whole String with HTML tags HTML parsing is not done In fact, Tapestry escaped the armful characters to avoid any damaging side effects. If you actually want to output your string as it is, you will to use the outputraw component: http://tapestry.apache.org/tapestry5/tapestry-core/ref/org/apache/tapestry5/corelib/components/OutputRaw.html -- Francois Armand Etudes Développements J2EE Groupe Linagora - http://www.linagora.com Tél.: +33 (0)1 58 18 68 28 --- http://fanf42.blogspot.com InterLDAP - http://interldap.org FederID - http://www.federid.org/ Open Source identities management and federation - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org -- View this message in context: http://www.nabble.com/Is-it-possible-to-use-Property-Files-with-HTML-tags-in-Tapestry-5.0-tp21308001p21308555.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
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
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