[jboss-cvs] jboss-seam/trinidad ...
Peter Muir
peter at bleepbleep.org.uk
Sun Apr 15 13:45:42 EDT 2007
User: pmuir
Date: 07/04/15 13:45:42
Added: trinidad build.xml README
Log:
JBSEAM-757, move Trinidad example to trinidad directory
Revision Changes Path
1.1 date: 2007/04/15 17:45:42; author: pmuir; state: Exp;jboss-seam/trinidad/build.xml
Index: build.xml
===================================================================
<?xml version="1.0"?>
<project name="Seam-Trinidad" default="build" basedir=".">
<property name="build.dir" value="build" />
<property name="trinidadclasses.dir" value="${build.dir}/trinidadclasses" />
<property name="src.trinidad.dir" value="src" />
<property name="src.test.dir" value="src/test/misc" />
<import file="../build.xml" />
<path id="trinidad.build.classpath">
<path refid="build.classpath" />
<fileset dir="${trinidad.lib.dir}">
<include name="trinidad-api-*.jar" />
</fileset>
</path>
<target name="inittrinidad" description="Initialize the build for the Trinidad integration package">
<echo message="Build ${Name} Trinidad integration ${version}" />
<mkdir dir="${trinidadclasses.dir}" />
<copy todir="${trinidadclasses.dir}">
<fileset dir="${src.trinidad.dir}">
<patternset refid="meta.files" />
</fileset>
</copy>
</target>
<target name="compiletrinidad" depends="inittrinidad,select-compiler" description="Compile the Java source code for the Trinidad integration package">
<javac source="1.5" target="1.5" destdir="${trinidadclasses.dir}" debug="${javac.debug}" deprecation="${javac.deprecation}" nowarn="on">
<src path="${src.trinidad.dir}" />
<classpath>
<path refid="trinidad.build.classpath" />
</classpath>
</javac>
</target>
<target name="clean" description="Cleans up the build directory">
<delete dir="${build.dir}" />
</target>
<target name="jartrinidad" depends="compiletrinidad" description="Build the distribution .jar file for the Trinidad integration package">
<jar jarfile="../${name}-trinidad.jar" basedir="${trinidadclasses.dir}">
<include name="**/*.class" />
<patternset refid="meta.files" />
<manifest>
<attribute name="Seam-Version" value="${version}.${patchlevel}" />
<attribute name="Implementation-Version" value="${version}.${patchlevel}" />
</manifest>
</jar>
</target>
<target name="build" description="Build Seam Trinidad integration" depends="jartrinidad"/>
</project>
1.1 date: 2007/04/15 17:45:42; author: pmuir; state: Exp;jboss-seam/trinidad/README
Index: README
===================================================================
This directory contains the Apache Trinidad JSF component set jar's, Ajax4jsf's
Trinidad integration jar (required if you want to use ajax4jsf and Trinidad
together), the optional Seam-Trinidad integration package and the seamdiscs
example which shows correct packaging and configuration for using Seam,
Trinidad, RichFaces, Ajax4jsf, Facelets and EJB3.
The seamdiscs example is a simple example built using seam-gen and the Seam
Application Framework which allows you to record your favourite albums and
artists. It intentionally uses a mix of RichFaces and Trinidad components.
It also uses the "inplace editing" pattern; the same facelets are used for
editing and display of data (login to edit a disc or artist).
The Seam-Trinidad integration jar provides a DataModel which, when backed
by a Seam Application Framework Query, provides lazy loading of data for
paging, sorting in the Persistence Context and strong row keys. You can use it
by adding the jboss-seam-trinidad.jar to your WEB-ING/lib - no need to alter
your facelet. One caveat is that you must ensure the rows property on the
Query is the same as the maxResults property on the Query.
Example
<tr:table value="#{discs.dataModel}" rows="#{discs.maxResults}">
<tr:column>
...
</tr:column
</tr:table>
More information about the jboss-cvs-commits
mailing list