You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by "Robert A. Decker" <rd...@pgp.com> on 2007/09/20 23:24:14 UTC

[T5] more tutorials or sample projects?

I'm just about done with the tapestry 5 tutorial - working on the  
Form Fields section now. When I'm done with that I was wondering if I  
should start going through the tapestry 4 tutorials, or is 4  
different enough from 5 where it doesn't make sense?

What I'd like to do next is write a simple login application that  
uses a session. Any samples out there? Even better, any Cayenne/ 
Tapestry5 login application examples?

R

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: A Sample Application In Tapestry 5.0.5 with Hibernate 3.2.2 ga Spring 2.0

Posted by Francois Armand <fa...@linagora.com>.
Francois Armand wrote:
> Wow ! I think this great mail should be put into the HowTo page : 
> http://wiki.apache.org/tapestry/Tapestry5HowTos.
>
> Thank you for the contribution :)
OK, I should check before writting : it *is* on HowTos : 
http://wiki.apache.org/tapestry/OnSubmit
Sorry for the noise;

-- 
Francois Armand
Etudes & Développements J2EE
Groupe Linagora - http://www.linagora.com
Tél.: +33 (0)1 58 18 68 28
-----------
InterLDAP - http://interldap.org 
FederID - http://www.federid.org/
Open Source identities management and federation


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: A Sample Application In Tapestry 5.0.5 with Hibernate 3.2.2 ga Spring 2.0

Posted by Francois Armand <fa...@linagora.com>.
Sadhana Reddy wrote:
> This is a sample Apllication of Tapestry 5.0.5
> [....]
>   
Wow ! I think this great mail should be put into the HowTo page : 
http://wiki.apache.org/tapestry/Tapestry5HowTos.

Thank you for the contribution :)

-- 
Francois Armand
Etudes & Développements J2EE
Groupe Linagora - http://www.linagora.com
Tél.: +33 (0)1 58 18 68 28
-----------
InterLDAP - http://interldap.org 
FederID - http://www.federid.org/
Open Source identities management and federation


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


A Sample Application In Tapestry 5.0.5 with Hibernate 3.2.2 ga Spring 2.0

Posted by Sadhana Reddy <sa...@yahoo.co.in>.
This is a sample Apllication of Tapestry 5.0.5

Create Vehicle

VehicleId:___________
Vehicle Name:___________
       Login

When ever we click on the login button data will be inserted on the Table
VECHILE_MASTER

Project Structure:
    
 src
     |
      _  com.btp.vms
              |
               _  dao
                       FMGDatabase.Java
                       FMGService.Java
               _  data
                       Vehicle.java(BO Business Object)

               _ Pages 
                      AddVehicle.Java
               _ resources
                     hibernate.cfg.xml
               _ services
                     VehicleModule.java

Context
   |
    _Web-Inf
          |
           _ classes
           _ lib
           _AddVehicle.html
           _web.xml
           _springContext.xml


we will start with AddVehicle.html form(Simple Html form with
TextFeild,TextArea Tags)

<html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd">
    <h1>Create New Vehicle</h1>
    <style>
      DIV.t-beaneditor LABEL { 
        width: 200px;
      }
    </style>
		<t:form t:id="addVehicle">
			<div class="t-beaneditor">
		      <t:label for="modelName">Model</t:label>
		      <input t:type="TextField" t:id="modelName" size="20"/>
		      <br/>
		      <t:label for="vehicleId">Vehicle Id</t:label>
		      <input t:type="TextField" t:id="vehicleId" size="20"/>
		      <br/>
		      <br/>
		      <input type="submit" value="AddVehicle"/>
		    </div>
	    </t:form>
</html>


AddVehicle.Java

package com.btp.vms.pages;

import java.sql.Date;

import org.apache.tapestry.annotations.Component;
import org.apache.tapestry.annotations.Inject;
import org.apache.tapestry.annotations.OnEvent;
import org.apache.tapestry.annotations.Persist;
import org.apache.tapestry.annotations.Service;
import org.apache.tapestry.corelib.components.Form;

import com.btp.vms.dao.FMGDatabase;
import com.btp.vms.data.Vehicle;

/**
 * 
 * @author sadhana
 *
 */
public class AddVehicle{
	
	 @Inject
	 @Service("FMGDatabase")
	 private FMGDatabase  _database;
	 
	@Component(id = "addVehicle")
    private Form form;
	
	@Persist
    private String _modelName;

    private String _vehicleId;
    
    private Date _year;
    
  
    /**
	 * @return Returns the _modelName.
	 */
    public String getModelName()
    {
        return _modelName;
    }

    public void setModelName(String modelName)
    {
    	_modelName = modelName;
    }
    
    /**
	 * @return Returns the _vehicleId.
	 */
    public String getVehicleId()
    {
        return _vehicleId;
    }

    public void setVehicleId(String vehicleId)
    {
    	_vehicleId = vehicleId;
    }

	/**
	 * @return Returns the _year.
	 */
	public Date getYear() {
		return _year;
	}

	/**
	 * @param _year The _year to set.
	 */
	public void setYear(Date year) {
		_year = year;
	}
   
	@OnEvent(value = "submit",component="addVehicle")
          void  addVehicle(){
                 System.out.println("-----------here:: "+_vehicleId);
                 System.out.println("-----------here:: "+_modelName);
                 Vehicle vehicle = new Vehicle();
                 vehicle.setVehicleId(_vehicleId);
                 vehicle.setModelName(_modelName);
                _database.add(vehicle);    
          }


}

Hear we are Using FMGDataBase is the Interface and FMGservice is the service
which extends HibernateDaoSupport implements FMGDatabase

// Copyright 2007 The Apache Software Foundation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

FMGDatabase.java

package com.btp.vms.dao;

import com.btp.vms.data.Vehicle;
/**
 * 
 * @author sadhana
 *
 */
public interface FMGDatabase
{
    /** Adds an item to the database, first assigning a unique id to the
item. */
    void add(Vehicle item);

}

FMGService.java

package com.btp.vms.dao;

import org.hibernate.Session;
import org.springframework.orm.hibernate3.HibernateCallback;
import org.springframework.orm.hibernate3.support.HibernateDaoSupport;
import org.springframework.transaction.PlatformTransactionManager;

import com.btp.vms.data.Vehicle;

/**
 * 
 * @author sadhana
 *
 */

public class FMGService extends HibernateDaoSupport implements FMGDatabase {	

	private PlatformTransactionManager transactionManager;
	   
	    public FMGService()
	    {
	       
	    }

	    public void add(final Vehicle vehicle)
	    {
	    	getHibernateTemplate().execute(new HibernateCallback() {
	    		public Object doInHibernate(Session session) 
	    		throws org.hibernate.HibernateException ,java.sql.SQLException {
	    			
	    			session.saveOrUpdate(vehicle);
	    			return vehicle;
	    		};
	    	});
	    	
	    }



		/**
		 * @return Returns the transactionManager.
		 */
		public PlatformTransactionManager getTransactionManager() {
			return transactionManager;
		}



		/**
		 * @param transactionManager The transactionManager to set.
		 */
		public void setTransactionManager(PlatformTransactionManager
transactionManager) {
			this.transactionManager = transactionManager;
		}		
}


SpringContext.xml
SpringContext.xml  tells about datasource specification,configLocation,Bean
services 

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">
	
	
	
	<!-- ========================= RESOURCE DEFINITIONS
========================= -->
     <bean id="TCMJndiTemplate"
class="org.springframework.jndi.JndiTemplate">
      
    </bean>
    <!-- DATASOURCE:BEGIN -->

    <bean id="dataSource"
      class="org.springframework.jndi.JndiObjectFactoryBean">
      <!-- use "java:comp/env/jdbc/TCMPCDS" in case of tomcat -->
      <property name="jndiName" value="java:comp/env/jdbc/TCMPCDS"/>
      <property name="resourceRef" value="false"/>
      <property name="jndiTemplate">
        <ref local="TCMJndiTemplate"/>
      </property>
    </bean>
	<!-- DATASOURCE:END -->
	<bean id="sessionFactory"
class="org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean">
        <property name="dataSource" ref="dataSource"/>
        <property name="configLocation">
       
<value>classpath:/com/btp/vms/resources/hibernate.cfg.xml</value></property>
		<property
name="configurationClass"><value>org.hibernate.cfg.AnnotationConfiguration</value></property>        
    </bean>
    <bean id="transactionManager"
class="org.springframework.orm.hibernate3.HibernateTransactionManager">
        <property name="sessionFactory" ref="sessionFactory"/>
    </bean>
    
    <bean id="FMGDatabase" class="com.btp.vms.dao.FMGService">
       <property name="sessionFactory"><ref
local="sessionFactory"/></property>
       <property name="transactionManager"><ref
local="transactionManager"/></property>
    </bean>

</beans>

Hear hibernate.cfg.xml tells about mapping resources


<!DOCTYPE hibernate-configuration PUBLIC
                "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
               
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
    <hibernate-configuration>
        <session-factory>
		<property name="show_sql">true</property>
		<property
name="hibernate.dialect">org.hibernate.dialect.Oracle9Dialect</property>
		 <mapping resource="/com/btp/vms/data/Vehicle.hbm.xml"/>
        </session-factory>
    </hibernate-configuration>

web.Xml
which tells about SpringContext Integration

<?xml version="1.0" encoding="UTF-8"?>
<!-- 
   Copyright 2007 The Apache Software Foundation

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.
-->

<!DOCTYPE web-app
      PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
      "http://java.sun.com/dtd/web-app_2_3.dtd">
      <web-app>
          <display-name>Tapestry 5 Tutorial #1</display-name>
          <context-param>
              <!-- The only significant configuration for Tapestry 5, this
informs Tapestry
                   of where to look for pages, components and mixins. -->
              <param-name>tapestry.app-package</param-name>
              <param-value>com.btp.vms</param-value>
          </context-param>
          <filter>
              <filter-name>vehicle</filter-name>
             
<filter-class>org.apache.tapestry.spring.TapestrySpringFilter</filter-class>
          </filter>
          <filter-mapping>
              <filter-name>vehicle</filter-name>
              <url-pattern>/*</url-pattern>
          </filter-mapping>
        <context-param>
	        <param-name>contextConfigLocation</param-name>
	        <param-value> /WEB-INF/springContext.xml
	        </param-value>
       </context-param>
       
        <!-- Listeners -->
	    <listener>
	      
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
	    </listener>
	    
      </web-app>
      
Vehicle.java(BO) here Iam using Xdoclate mappings in BO


package com.btp.vms.data;

import java.io.Serializable;
import java.util.Date;
/**
 * @hibernate.class table = "VECHILE_MASTER" lazy = "false"
 *
 */

public class Vehicle implements Serializable {
	
	private String vehicleId;
	
	private String modelName;
	
	private Date year;

	/**
	 * @hibernate.property column = "VECHILE_MODEL"
	 */
	public String getModelName() {
		return modelName;
	}

	/**
	 * @param model The model to set.
	 */
	public void setModelName(String modelName) {
		this.modelName = modelName;
	}

	 /**
	 * @hibernate.id column = "VECHILE_ID"
	 * 
	 */
	public String getVehicleId() {
		return vehicleId;
	}

	/**
	 * @param vehicleId The vehicleId to set.
	 */
	public void setVehicleId(String vehicleId) {
		this.vehicleId = vehicleId;
	}

	

}

If u want you can write ant build script to hbm.build.xml

<?xml version="1.0"?>
<project name="fmg" default="build-mappings">

	<property name="context" value="${basedir}/context" />
	<property name="webinf" value="${context}/WEB-INF" />
	<property name="webinf.lib" value="${webinf}/lib" />
	<property name="src.dir" value="${basedir}/src" />
    <!-- called proj.* to avoid conflict when called from pepsibuild.xml -->
	<property name="proj.lib.dir" value="${basedir}/lib" />

	<path id="class.path">
		<fileset dir="${proj.lib.dir}">
		</fileset>
		<fileset dir="${tomcat.home}/common/lib">
		</fileset>
		<fileset dir="${tomcat.home}/server/lib" />
		<fileset dir="${java.home}/../lib" includes="tools.jar"/>
	</path>

	<target name="build-mappings" >
        <echo message="basedir is ${basedir}"/>
        <echo message="libdir is ${proj.lib.dir}"/>
		<path id="allcontextjars">
					<fileset dir="${webinf.lib}">
						<include name="*.jar"/>
					</fileset>
                    <fileset dir="${proj.lib.dir}">
						<include name="*.jar"/>
					</fileset>
				</path>
		<taskdef name="hibernatedoclet"
		            classname="xdoclet.modules.hibernate.HibernateDocletTask"
					classpathref="allcontextjars"
		            />
		<hibernatedoclet
		            destdir="${webinf}/classes"
		            verbose="true">

		            <fileset dir="${src.dir}">
		            	<include name="**/*.java"/>
		            	<exclude name="**/VehicleModule.java"/>
		            	
		            </fileset>

		            <hibernate version="3.0"/>
		        </hibernatedoclet>
	</target>

</project>


You can write your own project.build.xml

Jars You can add in lib folder

All tapestry5 jars(Tapestry.org) site
hibernate-annotations.jar
hibernate-commans-annotations.jar
jta.jar
persistence.jar
All Xdoclate.jar(If u are using xdoclate mapping) or ejb3-persistence.jar
for (If U r using Entity bean mappings)
spring.jar
sping-hibernate3.jar
All commans. ---- jars

If u fallow all these rules its easy way to Tapestry5 with hibernate3.2.2 ga
and spring 2.o
If people intrested to run with maven you can install maven plug in eclipse
then proceed
springContext.xml,hibernate.cfg.xml,web.xml
these 3 files are importent to Integrate The application

I hope every one can feel easy to use tapestry5 with hibernate.3.2.2ga and
spring 2.0

Thanks 
Sadhana





-- 
View this message in context: http://www.nabble.com/-T5--more-tutorials-or-sample-projects--tf4490294.html#a13154546
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: [T5] more tutorials or sample projects?

Posted by Josh Penza <jo...@gmail.com>.
When I try to run the app1 example in tomcat, I get the following exception:

Component Countdown does not contain an embedded component with id 'count'.

Can anyone tell me what I'm doing wrong?





On 9/26/07, Davor Hrg <hr...@gmail.com> wrote:
>
> you can avoid test casses hassle by calling:
>
> mvn -Dmaven.test.skip install
>
> Davor Hrg
>
> On 9/22/07, Robert A. Decker <rd...@pgp.com> wrote:
> >
> > Ok, so I checked out the tapestry trunk with subversion, then cd'd
> > into the directory and ran 'mvn install'. It seems to be stuck on the
> > "Running Integration Tests" step (after opening a browser with the
> > link http://localhost:9999/selenium-server/core/SeleneseRunner.html?
> > sessionId=1190418451552 and containing a blank page)
> >
> > Do I then use the instructions here:
> > http://wiki.apache.org/tapestry/
> > Tapestry5HowToCreateYourQuickstartWithMaven206
> > to instead point the repository toward my local hard drive?
> >
> > If I can get this working it'd be great - just sync up tapestry and
> > build with subversion each evening, and do the same with my local
> > project to be working against the latest version.
> >
> > If you've done this, am I on the right track?
> >
> > Thanks,
> > Robert A. Decker
> >
> >
> >
> > On Sep 21, 2007, at 12:48 AM, Davor Hrg wrote:
> >
> > > you can run "mvn install" from downloaded tapestry source
> > > and use 5.0.6-SNAPSHOT in your pom
> > >
> > > On 9/21/07, Francois Armand <fa...@linagora.com> wrote:
> > >>
> > >> Robert A. Decker wrote:
> > >>> [...]
> > >>> It looks like those annotation classes exist in the latest version
> > >>> (the svn export) but not in version 5.0.5. What's the old way
> > >>> (version
> > >>> 5.0.5) way of doing:
> > >>>     @OrderAfter("lastName")
> > >>> and
> > >>>     @OrderBefore("citizen")
> > >> There wasn't annotation to do this before 5.0.6 (svn), so if you are
> > >> using 5.0.5, you have to set the order of properties thanks to the
> > >> beanModel and methods like beanModel.get("propoertyName").order
> > >> (10), see
> > >> http://tapestry.apache.org/tapestry5/tapestry-core/guide/
> > >> beaneditform.html
> > >> to have more explanations.
> > >>
> > >> --
> > >> Francois Armand
> > >> Etudes & Développements J2EE
> > >> Groupe Linagora - http://www.linagora.com
> > >> Tél.: +33 (0)1 58 18 68 28
> > >> -----------
> > >> InterLDAP - http://interldap.org
> > >> FederID - http://www.federid.org/
> > >> Open Source identities management and federation
> > >>
> > >>
> > >> ---------------------------------------------------------------------
> > >> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > >> For additional commands, e-mail: users-help@tapestry.apache.org
> > >>
> > >>
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
> >
> >
>

Re: [T5] more tutorials or sample projects?

Posted by Davor Hrg <hr...@gmail.com>.
you can avoid test casses hassle by calling:

mvn -Dmaven.test.skip install

Davor Hrg

On 9/22/07, Robert A. Decker <rd...@pgp.com> wrote:
>
> Ok, so I checked out the tapestry trunk with subversion, then cd'd
> into the directory and ran 'mvn install'. It seems to be stuck on the
> "Running Integration Tests" step (after opening a browser with the
> link http://localhost:9999/selenium-server/core/SeleneseRunner.html?
> sessionId=1190418451552 and containing a blank page)
>
> Do I then use the instructions here:
> http://wiki.apache.org/tapestry/
> Tapestry5HowToCreateYourQuickstartWithMaven206
> to instead point the repository toward my local hard drive?
>
> If I can get this working it'd be great - just sync up tapestry and
> build with subversion each evening, and do the same with my local
> project to be working against the latest version.
>
> If you've done this, am I on the right track?
>
> Thanks,
> Robert A. Decker
>
>
>
> On Sep 21, 2007, at 12:48 AM, Davor Hrg wrote:
>
> > you can run "mvn install" from downloaded tapestry source
> > and use 5.0.6-SNAPSHOT in your pom
> >
> > On 9/21/07, Francois Armand <fa...@linagora.com> wrote:
> >>
> >> Robert A. Decker wrote:
> >>> [...]
> >>> It looks like those annotation classes exist in the latest version
> >>> (the svn export) but not in version 5.0.5. What's the old way
> >>> (version
> >>> 5.0.5) way of doing:
> >>>     @OrderAfter("lastName")
> >>> and
> >>>     @OrderBefore("citizen")
> >> There wasn't annotation to do this before 5.0.6 (svn), so if you are
> >> using 5.0.5, you have to set the order of properties thanks to the
> >> beanModel and methods like beanModel.get("propoertyName").order
> >> (10), see
> >> http://tapestry.apache.org/tapestry5/tapestry-core/guide/
> >> beaneditform.html
> >> to have more explanations.
> >>
> >> --
> >> Francois Armand
> >> Etudes & Développements J2EE
> >> Groupe Linagora - http://www.linagora.com
> >> Tél.: +33 (0)1 58 18 68 28
> >> -----------
> >> InterLDAP - http://interldap.org
> >> FederID - http://www.federid.org/
> >> Open Source identities management and federation
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> >> For additional commands, e-mail: users-help@tapestry.apache.org
> >>
> >>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>

Re: [T5] more tutorials or sample projects?

Posted by "Robert A. Decker" <rd...@pgp.com>.
Ok, so I checked out the tapestry trunk with subversion, then cd'd  
into the directory and ran 'mvn install'. It seems to be stuck on the  
"Running Integration Tests" step (after opening a browser with the  
link http://localhost:9999/selenium-server/core/SeleneseRunner.html? 
sessionId=1190418451552 and containing a blank page)

Do I then use the instructions here:
http://wiki.apache.org/tapestry/ 
Tapestry5HowToCreateYourQuickstartWithMaven206
to instead point the repository toward my local hard drive?

If I can get this working it'd be great - just sync up tapestry and  
build with subversion each evening, and do the same with my local  
project to be working against the latest version.

If you've done this, am I on the right track?

Thanks,
Robert A. Decker



On Sep 21, 2007, at 12:48 AM, Davor Hrg wrote:

> you can run "mvn install" from downloaded tapestry source
> and use 5.0.6-SNAPSHOT in your pom
>
> On 9/21/07, Francois Armand <fa...@linagora.com> wrote:
>>
>> Robert A. Decker wrote:
>>> [...]
>>> It looks like those annotation classes exist in the latest version
>>> (the svn export) but not in version 5.0.5. What's the old way  
>>> (version
>>> 5.0.5) way of doing:
>>>     @OrderAfter("lastName")
>>> and
>>>     @OrderBefore("citizen")
>> There wasn't annotation to do this before 5.0.6 (svn), so if you are
>> using 5.0.5, you have to set the order of properties thanks to the
>> beanModel and methods like beanModel.get("propoertyName").order 
>> (10), see
>> http://tapestry.apache.org/tapestry5/tapestry-core/guide/ 
>> beaneditform.html
>> to have more explanations.
>>
>> --
>> Francois Armand
>> Etudes & Développements J2EE
>> Groupe Linagora - http://www.linagora.com
>> Tél.: +33 (0)1 58 18 68 28
>> -----------
>> InterLDAP - http://interldap.org
>> FederID - http://www.federid.org/
>> Open Source identities management and federation
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: [T5] more tutorials or sample projects?

Posted by Davor Hrg <hr...@gmail.com>.
you can run "mvn install" from downloaded tapestry source
and use 5.0.6-SNAPSHOT in your pom

On 9/21/07, Francois Armand <fa...@linagora.com> wrote:
>
> Robert A. Decker wrote:
> > [...]
> > It looks like those annotation classes exist in the latest version
> > (the svn export) but not in version 5.0.5. What's the old way (version
> > 5.0.5) way of doing:
> >     @OrderAfter("lastName")
> > and
> >     @OrderBefore("citizen")
> There wasn't annotation to do this before 5.0.6 (svn), so if you are
> using 5.0.5, you have to set the order of properties thanks to the
> beanModel and methods like beanModel.get("propoertyName").order(10), see
> http://tapestry.apache.org/tapestry5/tapestry-core/guide/beaneditform.html
> to have more explanations.
>
> --
> Francois Armand
> Etudes & Développements J2EE
> Groupe Linagora - http://www.linagora.com
> Tél.: +33 (0)1 58 18 68 28
> -----------
> InterLDAP - http://interldap.org
> FederID - http://www.federid.org/
> Open Source identities management and federation
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>

Re: [T5] more tutorials or sample projects?

Posted by Francois Armand <fa...@linagora.com>.
Robert A. Decker wrote:
> [...]
> It looks like those annotation classes exist in the latest version 
> (the svn export) but not in version 5.0.5. What's the old way (version 
> 5.0.5) way of doing:
>     @OrderAfter("lastName")
> and
>     @OrderBefore("citizen")
There wasn't annotation to do this before 5.0.6 (svn), so if you are 
using 5.0.5, you have to set the order of properties thanks to the 
beanModel and methods like beanModel.get("propoertyName").order(10), see 
http://tapestry.apache.org/tapestry5/tapestry-core/guide/beaneditform.html 
to have more explanations.

-- 
Francois Armand
Etudes & Développements J2EE
Groupe Linagora - http://www.linagora.com
Tél.: +33 (0)1 58 18 68 28
-----------
InterLDAP - http://interldap.org 
FederID - http://www.federid.org/
Open Source identities management and federation


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: [T5] more tutorials or sample projects?

Posted by "Robert A. Decker" <rd...@pgp.com>.
Thanks for the responses.

One problem I'm having now - I svn exported the tapestry trunk and  
started putting the app1 tests into my tutorial project. Everything  
compiles except two classes that reference:
import org.apache.tapestry.beaneditor.OrderAfter;
import org.apache.tapestry.beaneditor.OrderBefore;

It looks like those annotation classes exist in the latest version  
(the svn export) but not in version 5.0.5. What's the old way  
(version 5.0.5) way of doing:
     @OrderAfter("lastName")
and
     @OrderBefore("citizen")

Thanks,
Robert A. Decker


On Sep 20, 2007, at 2:47 PM, Alex Shneyderman wrote:

> I have just finished one today :-) I gotta say I am impressed
> with tapestry.
>
> Do not miss the app1 in tests. It has a ton of samples that
> I found extremely useful.
>
> http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/ 
> src/test/
>
>
> On 9/20/07, Robert A. Decker <rd...@pgp.com> wrote:
>> I'm just about done with the tapestry 5 tutorial - working on the
>> Form Fields section now. When I'm done with that I was wondering if I
>> should start going through the tapestry 4 tutorials, or is 4
>> different enough from 5 where it doesn't make sense?
>>
>> What I'd like to do next is write a simple login application that
>> uses a session. Any samples out there? Even better, any Cayenne/
>> Tapestry5 login application examples?
>>
>> R
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>>
>
>
> -- 
> Thanks,
> Alex.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: [T5] more tutorials or sample projects?

Posted by Alex Shneyderman <a....@gmail.com>.
I have just finished one today :-) I gotta say I am impressed
with tapestry.

Do not miss the app1 in tests. It has a ton of samples that
I found extremely useful.

http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/test/


On 9/20/07, Robert A. Decker <rd...@pgp.com> wrote:
> I'm just about done with the tapestry 5 tutorial - working on the
> Form Fields section now. When I'm done with that I was wondering if I
> should start going through the tapestry 4 tutorials, or is 4
> different enough from 5 where it doesn't make sense?
>
> What I'd like to do next is write a simple login application that
> uses a session. Any samples out there? Even better, any Cayenne/
> Tapestry5 login application examples?
>
> R
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>


-- 
Thanks,
Alex.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: [T5] more tutorials or sample projects?

Posted by Davor Hrg <hr...@gmail.com>.
If not yet ...
check this wiki:
http://wiki.apache.org/tapestry/Tapestry5HowTos

Davor Hrg

On 9/20/07, Robert A. Decker <rd...@pgp.com> wrote:
>
> I'm just about done with the tapestry 5 tutorial - working on the
> Form Fields section now. When I'm done with that I was wondering if I
> should start going through the tapestry 4 tutorials, or is 4
> different enough from 5 where it doesn't make sense?
>
> What I'd like to do next is write a simple login application that
> uses a session. Any samples out there? Even better, any Cayenne/
> Tapestry5 login application examples?
>
> R
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>

Re: [T5] more tutorials or sample projects?

Posted by Josh Canfield <jo...@thedailytube.com>.
>
> When I'm done with that I was wondering if I
> should start going through the tapestry 4 tutorials, or is 4

different enough from 5 where it doesn't make sense?
>
T5 is a new creation, so T4 tutorials would be irrelevant, unless you want
to know where we've been.

Josh

-- 
--
TheDailyTube.com. Sign up and get the best new videos on the internet
delivered fresh to your inbox.