ecforms-commit Mailing List for ECForms
Brought to you by:
fcastrillo
You can subscribe to this list here.
2005 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(29) |
Dec
(1) |
---|
From: Gerardo H. <ma...@us...> - 2005-12-13 20:07:24
|
Update of /cvsroot/ecforms/ECF-Servlet/src/com/nexus/ecf In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9612/src/com/nexus/ecf Modified Files: ECFLiteServlet.java Log Message: Added missing copyright notice. Index: ECFLiteServlet.java =================================================================== RCS file: /cvsroot/ecforms/ECF-Servlet/src/com/nexus/ecf/ECFLiteServlet.java,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** ECFLiteServlet.java 15 Nov 2005 05:13:19 -0000 1.1.1.1 --- ECFLiteServlet.java 13 Dec 2005 20:07:11 -0000 1.2 *************** *** 1,2 **** --- 1,21 ---- + /* + ECFLiteServlet.java + Copyright (C) 2005 Gerardo Horvilleur Martinez + + This program is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public License + as published by the Free Software Foundation; either version 2 + of the License, or (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + */ + package com.nexus.ecf; |
From: Francisco C. <fca...@us...> - 2005-11-23 19:09:32
|
Update of /cvsroot/ecforms/ECF-Servlet In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27610 Modified Files: README.txt Log Message: Added compilation descriptions Index: README.txt =================================================================== RCS file: /cvsroot/ecforms/ECF-Servlet/README.txt,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** README.txt 22 Nov 2005 14:47:41 -0000 1.1 --- README.txt 23 Nov 2005 19:09:22 -0000 1.2 *************** *** 37,41 **** ! 3. Requirements: ---------------- (1) You need to define an environment variable named TOMCAT_HOME, which points --- 37,66 ---- ! 3. Execute: ! ----------- ! ! To build a new project "from scrath", execute the following commands: ! ! (1) "ant" (or "ant create-project"). ! You will be prompted for the following properties: ! * Base directory (from now on <basedir>) ! * Name of project (from now on <project.name>) ! ! (2) Change to the new directory: cd <basedir>/<project.name> ! ! (3) Make the desired changes to the following files: ! a) Initialization: ipl/init.ipl ! b) Database logic: ipl/db.ipl ! c) Scripts: resources/*.* ! c) Property files (internationalization messages) and Java source files: src/*.* ! ! (4) If you want to deploy an expanded webapp on Tomcat, use "ant"; ! if you prefer to create the war file use "ant package" ! ! (5) Point your browser to http://localhost:8080/<project.name> ! ! ! ! 4. Requirements: ---------------- (1) You need to define an environment variable named TOMCAT_HOME, which points *************** *** 50,51 **** --- 75,78 ---- If you want to contribute, go to http://sourceforge.net/projects/ecforms/ + For documentation and tutorials, go to http://www.ecforms.net + |
From: Francisco C. <fca...@us...> - 2005-11-23 19:09:02
|
Update of /cvsroot/ecforms/ECF-Servlet/config In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27345/config Modified Files: web.xml Log Message: Deleted JDBC datasource Index: web.xml =================================================================== RCS file: /cvsroot/ecforms/ECF-Servlet/config/web.xml,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** web.xml 15 Nov 2005 05:13:18 -0000 1.1.1.1 --- web.xml 23 Nov 2005 19:08:51 -0000 1.2 *************** *** 15,19 **** <context-param> <param-name>ecf.dbpath</param-name> ! <param-value>/tmp/ECFDB</param-value> </context-param> --- 15,19 ---- <context-param> <param-name>ecf.dbpath</param-name> ! <param-value>/tmp/ECFDB/@app.name@</param-value> </context-param> *************** *** 29,38 **** </servlet-mapping> - <resource-ref> - <description>SQL DB Connection</description> - <res-ref-name>jdbc/ECFDB</res-ref-name> - <res-type>javax.sql.DataSource</res-type> - <res-auth>Container</res-auth> - </resource-ref> - </web-app> --- 29,31 ---- |
From: Francisco C. <fca...@us...> - 2005-11-23 19:07:34
|
Update of /cvsroot/ecforms/ECF-Servlet In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26873 Modified Files: build.xml Log Message: Added task descriptions Index: build.xml =================================================================== RCS file: /cvsroot/ecforms/ECF-Servlet/build.xml,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** build.xml 23 Nov 2005 19:04:19 -0000 1.2 --- build.xml 23 Nov 2005 19:07:25 -0000 1.3 *************** *** 14,18 **** <property name="build.dir" value="build"/> ! <target name="prepare"> <mkdir dir="${deploy.home}"/> <mkdir dir="${deploy.home}/WEB-INF"/> --- 14,18 ---- <property name="build.dir" value="build"/> ! <target name="prepare" description="Create working directories"> <mkdir dir="${deploy.home}"/> <mkdir dir="${deploy.home}/WEB-INF"/> *************** *** 43,47 **** </target> ! <target name="clean"> <delete dir="${deploy.home}"/> <delete dir="${doc.dir}"/> --- 43,47 ---- </target> ! <target name="clean" description="Clean working directories"> <delete dir="${deploy.home}"/> <delete dir="${doc.dir}"/> *************** *** 59,63 **** </path> ! <target name="compile" depends="prepare"> <javac srcdir="src" destdir="${deploy.home}/WEB-INF/classes" debug="on" optimize="off" deprecation="on" source="1.4"> --- 59,63 ---- </path> ! <target name="compile" depends="prepare" description="Compile Java source files"> <javac srcdir="src" destdir="${deploy.home}/WEB-INF/classes" debug="on" optimize="off" deprecation="on" source="1.4"> *************** *** 66,76 **** </target> ! <target name="javadoc" depends="prepare"> <javadoc sourcepath="src" destdir="${doc.dir}" ! packagenames="com.nexus.*" ! source="1.4" classpathref="project.class.path"/> </target> ! <target name="ecflite-jar" depends="compile"> <jar jarfile="${dist}.jar" basedir="${deploy.home}/WEB-INF/classes"/> </target> --- 66,76 ---- </target> ! <target name="javadoc" depends="prepare" description="Generate JavaDoc"> <javadoc sourcepath="src" destdir="${doc.dir}" ! packagenames="com.nexus.*" ! source="1.4" classpathref="project.class.path"/> </target> ! <target name="ecflite-jar" depends="compile" description="Bundle Java classes in a jar file"> <jar jarfile="${dist}.jar" basedir="${deploy.home}/WEB-INF/classes"/> </target> *************** *** 109,119 **** </target> ! <target name="run-ipl"> ! <java classpathref="project.class.path" jar="lib/ipl.jar" fork="true" /> </target> ! <target name="run-idb"> ! <java classpathref="project.class.path" ! classname="com.ienjinia.db.DBUI" fork="true"> <arg line="-g /tmp/ECFDB"/> </java> --- 109,118 ---- </target> ! <target name="run-ipl" description="Run interactive IPL console"> ! <java classpathref="project.class.path" jar="lib/ipl.jar" fork="true"/> </target> ! <target name="run-idb" description="Run interactive IPL console, with IDB built-in functions"> ! <java classpathref="project.class.path" classname="com.ienjinia.db.DBUI" fork="true"> <arg line="-g /tmp/ECFDB"/> </java> |
From: Francisco C. <fca...@us...> - 2005-11-23 19:04:27
|
Update of /cvsroot/ecforms/ECF-Servlet In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25612 Modified Files: build.xml Log Message: Added task to generate release files Index: build.xml =================================================================== RCS file: /cvsroot/ecforms/ECF-Servlet/build.xml,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** build.xml 15 Nov 2005 05:13:18 -0000 1.1.1.1 --- build.xml 23 Nov 2005 19:04:19 -0000 1.2 *************** *** 1,4 **** --- 1,5 ---- <project name="ECFLite" default="compile" basedir="."> + <property file="build.properties"/> <property environment="env"/> <property name="tomcat.home" value="${env.TOMCAT_HOME}"/> *************** *** 9,13 **** <property name="dist.src" value="${app.name}.jar"/> <property name="dist.war" value="${app.name}.war"/> ! <property name="doc.dir" value="doc"/> <property name="dist.dir" value="dist"/> <property name="build.dir" value="build"/> --- 10,14 ---- <property name="dist.src" value="${app.name}.jar"/> <property name="dist.war" value="${app.name}.war"/> ! <property name="doc.dir" value="docs"/> <property name="dist.dir" value="dist"/> <property name="build.dir" value="build"/> *************** *** 47,51 **** <delete dir="build.tests"/> <delete dir="${dist.dir}"/> ! <delete file="ecflite.jar"/> </target> --- 48,52 ---- <delete dir="build.tests"/> <delete dir="${dist.dir}"/> ! <delete file="${dist}.jar"/> </target> *************** *** 72,83 **** <target name="ecflite-jar" depends="compile"> ! <jar jarfile="ecflite.jar" basedir="${deploy.home}/WEB-INF/classes"/> </target> <target name="all" depends="clean,prepare,compile,javadoc,ecflite-jar"/> ! <target name="dist" depends="prepare,compile"> ! <jar jarfile="${dist.dir}/${dist.war}" ! basedir="${deploy.home}"/> </target> --- 73,110 ---- <target name="ecflite-jar" depends="compile"> ! <jar jarfile="${dist}.jar" basedir="${deploy.home}/WEB-INF/classes"/> </target> <target name="all" depends="clean,prepare,compile,javadoc,ecflite-jar"/> ! <target name="package" depends="prepare,compile" description="Generate WAR file"> ! <jar jarfile="${dist.dir}/${dist.war}" basedir="${deploy.home}"/> ! </target> ! ! <target name="generate-dist" depends="ecflite-jar" description="Create compressed files for distribution"> ! <mkdir dir="${dist}"/> ! <copy file="build_projects.xml" tofile="${dist}/build.xml"/> ! <move file="${dist}.jar" todir="${dist}"/> ! <copy todir="${dist}"> ! <fileset dir="."> ! <include name="README.txt"/> ! <include name="License.txt"/> ! <include name="lib/*.jar"/> ! </fileset> ! </copy> ! <mkdir dir="${dist}/sample_app"/> ! <mkdir dir="${dist}/sample_app/src"/> ! <copy file="build_baseapp.xml" tofile="${dist}/sample_app/build.xml"/> ! <copy todir="${dist}/sample_app"> ! <fileset dir="."> ! <include name="config/*.*"/> ! <include name="ipl/*.*"/> ! <include name="resources/*"/> ! </fileset> ! </copy> ! ! <zip destfile="${dist.dir}/${dist}.zip" basedir="${dist}"/> ! <tar destfile="${dist.dir}/${dist}.tar.gz" basedir="${dist}" compression="gzip"/> ! <delete dir="${dist}"/> </target> |
From: Francisco C. <fca...@us...> - 2005-11-23 19:03:41
|
Update of /cvsroot/ecforms/ECF-Servlet In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25319 Added Files: build_baseapp.xml build_projects.xml Log Message: Ant scripts to create and delete sample projects --- NEW FILE: build_projects.xml --- <project name="ECFLite" default="create-project" basedir="."> <target name="create-project"> <input message="Base directory: " addproperty="newproject.basedir"></input> <input message="Project name: " addproperty="app.name"></input> <antcall target="update-project"/> </target> <target name="update-project"> <mkdir dir="${newproject.basedir}/${app.name}"/> <mkdir dir="${newproject.basedir}/${app.name}/src"/> <copy file="sample_app/build.xml" tofile="${newproject.basedir}/${app.name}/build.xml"> <filterset> <filter token="app.name" value="${app.name}"/> </filterset> </copy> <copy todir="${newproject.basedir}/${app.name}" overwrite="true"> <fileset dir="sample_app"> <include name="config/*.xml"/> <include name="ipl/*.ipl"/> <include name="resources/*"/> </fileset> </copy> <mkdir dir="${newproject.basedir}/${app.name}/lib"/> <copy todir="${newproject.basedir}/${app.name}/lib"> <fileset dir="."> <include name="*.jar"/> </fileset> <fileset dir="lib"> <include name="*.jar"/> </fileset> </copy> </target> <target name="delete-project"> <input message="Base directory: " addproperty="newproject.basedir"/> <input message="Project name: " addproperty="newproject.name"/> <delete dir="${newproject.basedir}/${newproject.name}"/> </target> </project> --- NEW FILE: build_baseapp.xml --- <project name="@app.name@" default="compile"> <dirname property="project.root" file="build.xml"/> <property environment="env"/> <property name="tomcat.home" value="${env.TOMCAT_HOME}"/> <property name="app.name" value="@app.name@"/> <property name="deploy.home" value="${tomcat.home}/webapps/${app.name}"/> <property name="dist.war" value="${app.name}.war"/> <property name="dist.dir" value="dist"/> <property name="lib.dir" value="lib"/> <path id="project.class.path"> <fileset dir="${lib.dir}"> <include name="**/*.jar"/> </fileset> <pathelement path="${deploy.home}/WEB-INF/classes"/> <pathelement path="build.tests"/> </path> <filterset id="filters"> <filter token="project.root" value="${project.root}"/> <filter token="app.name" value="${app.name}"/> </filterset> <target name="prepare" description="Create working directories"> <mkdir dir="${deploy.home}"/> <mkdir dir="${deploy.home}/WEB-INF"/> <mkdir dir="${deploy.home}/WEB-INF/ipl"/> <copy todir="${deploy.home}/WEB-INF"> <fileset dir="config"/> <filterset refid="filters"/> </copy> <copy todir="${deploy.home}"> <fileset dir="resources"/> </copy> <copy todir="${deploy.home}/WEB-INF/ipl"> <fileset dir="ipl" includes="**/*.ipl"/> <filterset refid="filters"/> </copy> <mkdir dir="${deploy.home}/WEB-INF/classes"/> <mkdir dir="${deploy.home}/WEB-INF/lib"/> <copy todir="${deploy.home}/WEB-INF/lib"> <fileset dir="${lib.dir}"> <exclude name="**/servlet-api.jar"/> <exclude name="**/jsp-2.0.jar"/> <include name="**/*.jar"/> </fileset> </copy> <mkdir dir="${dist.dir}"/> </target> <target name="clean" description="Clean working directories"> <delete dir="${deploy.home}"/> <delete dir="${dist.dir}"/> </target> <target name="compile" depends="prepare" description="Compile Java source files"> <javac srcdir="src" destdir="${deploy.home}/WEB-INF/classes" debug="on" optimize="off" deprecation="on" source="1.4"> <classpath refid="project.class.path"/> </javac> </target> <target name="all" depends="clean,prepare,compile"/> <target name="package" depends="prepare,compile" description="Generate WAR file"> <jar jarfile="${dist.dir}/${dist.war}" basedir="${deploy.home}"/> </target> </project> |
From: Francisco C. <fca...@us...> - 2005-11-23 19:01:41
|
Update of /cvsroot/ecforms/ECF-Servlet In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24500 Added Files: build.properties Log Message: Release name --- NEW FILE: build.properties --- dist = ECF-Servlet-0_2 |
From: Francisco C. <fca...@us...> - 2005-11-23 18:56:53
|
Update of /cvsroot/ecforms/ECF-JSF In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23161 Modified Files: README.txt Log Message: Added more descriptions Index: README.txt =================================================================== RCS file: /cvsroot/ecforms/ECF-JSF/README.txt,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** README.txt 22 Nov 2005 14:57:45 -0000 1.1 --- README.txt 23 Nov 2005 18:56:41 -0000 1.2 *************** *** 49,53 **** and working demos, <blank> if you really prefer to start "from scratch") ! (2) cd <basedir>/<project.name> (3) Make the desired changes to the following files: --- 49,53 ---- and working demos, <blank> if you really prefer to start "from scratch") ! (2) Change to the new directory: cd <basedir>/<project.name> (3) Make the desired changes to the following files: *************** *** 136,137 **** --- 136,139 ---- If you want to contribute, go to http://sourceforge.net/projects/ecforms/ + For documentation and tutorials, go to http://www.ecforms.net + |
From: Francisco C. <fca...@us...> - 2005-11-23 18:54:22
|
Update of /cvsroot/ecforms/ECF-JSF/ipl In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22594/ipl Modified Files: blank_db.ipl Log Message: Empty file Index: blank_db.ipl =================================================================== RCS file: /cvsroot/ecforms/ECF-JSF/ipl/blank_db.ipl,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** blank_db.ipl 22 Nov 2005 14:56:54 -0000 1.1 --- blank_db.ipl 23 Nov 2005 18:54:13 -0000 1.2 *************** *** 1,80 **** - IDGenerator() { - var nextId = 1; - - getNextId() { - return nextId++; - } - - return {getNextId: getNextId}; - } - - Table() { - var rows = new array[100]; - - var count = 0; - - var idGenerator = IDGenerator(); - - addRow(row) { - if (isReadOnly()) - error("can't addRow in query"); - var n = length(rows); - if (count == n) { - var tmp = new array[n * 2]; - arrayCopy(rows, 0, tmp, 0, n); - rows = tmp; - } - row.id = idGenerator.getNextId(); - rows[count++] = row; - } - - getIndexForId(id) { - for (var i = 0; i < count; i++) - if (rows[i].id == id) - return i; - return -1; - } - - getRowWithId(id) { - var index = getIndexForId(id); - return index != -1 ? rows[index] : null; - } - - deleteRowWithId(id) { - if (isReadOnly()) - error("can't deleteRowWithId in query"); - var index = getIndexForId(id); - if (index == -1) - return; - arrayCopy(rows, index + 1, rows, index, count - index - 1); - count--; - } - - updateRowWithId(id, row) { - if (isReadOnly()) - error("can't updateRowWithId in query"); - var index = getIndexForId(id); - if (index == -1) - return; - var names = getNames(row); - var n = length(names); - for (var i = 0; i < n; i++) - rows[index][names[i]] = row[names[i]]; - } - - getRows() { - var result = new array[count]; - arrayCopy(rows, 0, result, 0, count); - return result; - } - - return { - addRow: addRow, - getRowWithId: getRowWithId, - deleteRowWithId: deleteRowWithId, - updateRowWithId: updateRowWithId, - getRows: getRows - }; - } - - var persons = Table(); --- 0 ---- |
From: Francisco C. <fca...@us...> - 2005-11-23 18:54:02
|
Update of /cvsroot/ecforms/ECF-JSF In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22495 Modified Files: build.xml Log Message: Remove basedir attribute Index: build.xml =================================================================== RCS file: /cvsroot/ecforms/ECF-JSF/build.xml,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** build.xml 22 Nov 2005 21:39:18 -0000 1.5 --- build.xml 23 Nov 2005 18:53:54 -0000 1.6 *************** *** 1,3 **** ! <project name="ECF" default="test" basedir="."> <property file="build.properties"/> --- 1,3 ---- ! <project name="ECF" default="test"> <property file="build.properties"/> |
From: Francisco C. <fca...@us...> - 2005-11-23 18:50:41
|
Update of /cvsroot/ecforms/ECF-JSF In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21768 Modified Files: build.properties Log Message: Fixed release name (module name) Index: build.properties =================================================================== RCS file: /cvsroot/ecforms/ECF-JSF/build.properties,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** build.properties 22 Nov 2005 21:39:18 -0000 1.2 --- build.properties 23 Nov 2005 18:50:31 -0000 1.3 *************** *** 1 **** ! dist = ecforms-0.2 \ No newline at end of file --- 1 ---- ! dist = ECF-JSF-0_2 \ No newline at end of file |
From: Francisco C. <fca...@us...> - 2005-11-22 21:39:27
|
Update of /cvsroot/ecforms/ECF-JSF In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8238 Modified Files: build.properties build.xml Log Message: Fixed release name details Index: build.xml =================================================================== RCS file: /cvsroot/ecforms/ECF-JSF/build.xml,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** build.xml 22 Nov 2005 14:53:01 -0000 1.4 --- build.xml 22 Nov 2005 21:39:18 -0000 1.5 *************** *** 148,152 **** <zip destfile="${dist.dir}/${dist}.zip" basedir="${dist}"/> ! <tar destfile="${dist.dir}/${dist}.tgz" basedir="${dist}" compression="gzip"/> <delete dir="${dist}"/> </target> --- 148,152 ---- <zip destfile="${dist.dir}/${dist}.zip" basedir="${dist}"/> ! <tar destfile="${dist.dir}/${dist}.tar.gz" basedir="${dist}" compression="gzip"/> <delete dir="${dist}"/> </target> Index: build.properties =================================================================== RCS file: /cvsroot/ecforms/ECF-JSF/build.properties,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** build.properties 18 Nov 2005 01:24:09 -0000 1.1 --- build.properties 22 Nov 2005 21:39:18 -0000 1.2 *************** *** 1 **** ! dist = ecforms-0_2 \ No newline at end of file --- 1 ---- ! dist = ecforms-0.2 \ No newline at end of file |
From: Francisco C. <fca...@us...> - 2005-11-22 14:57:52
|
Update of /cvsroot/ecforms/ECF-JSF In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2579 Added Files: README.txt Log Message: ReadMe file --- NEW FILE: README.txt --- ECForms - version 0.2, November 2005 ==================================== Framework to build Java Server Faces web applications using a simple scripting language (IENJINIA Programming Language). This framework is built on top of Java Server Faces and the IENJINIA PROGRAMMING LANGUAGE (http://sourceforge.net/projects/ienjinia) to provide an easy-to-learn environment to develop Java Web applications. It benefits from the flexibility provided by the Java Server Faces architecture, providing a unified syntax to code the different type of components (navigation, logic, pages, etc). 1. Status: ---------- We have now two modules: - This module (ECF-JSF), the full ECF version. - The ECF-Servlet module, which is a light version of ECF without the JSF built-in functions. 2. Source Code: --------------- You can see what we are working on by checking out the "ECF-JSF" module from the CVS repository To check out the ECF-JSF module: cvs -d :pserver:ano...@cv...:/cvsroot/ecforms login cvs -z3 -d :pserver:ano...@cv...:/cvsroot/ecforms co ECF-JSF Or you can browse the CVS repository at: http://cvs.sourceforge.net/viewcvs.py/ecforms/ECF-JSF 3. Execute: ----------- To build a new project "from scrath", execute the following commands: (1) "ant" (or "ant create-project"). You will be prompted for the following properties: * Base directory (from now on <basedir>) * Name of project (from now on <project.name>) * Sample or blank project (<sample> if you want to see some template code and working demos, <blank> if you really prefer to start "from scratch") (2) cd <basedir>/<project.name> (3) Make the desired changes to the following files: a) Webapp screenflows: ipl/ecf.ipl b) Database logic: ipl/db.ipl c) Static content: resources/*.* c) Property files (internationalization messages) and Java source files: src/*.* (4) If you want to deploy an expanded webapp on Tomcat, use "ant"; if you prefer to create the war file use "ant package" (5) Point your browser to http://localhost:8080/<project.name> 4. Requirements: ---------------- (1) You need to define an environment variable named TOMCAT_HOME, which points to the installation directory of Tomcat. Steps 2 and 3 are optional for blank projects: (2) For configuring the application security, you need to add a user with role "tomcat"; you can do this by editing the tomcat-users.xml file (under TOMCAT_HOME/conf), such as: <role rolename="tomcat"/> <user username="guest" password="tomcat" roles="tomcat"/> (3) To enable JDBC support from ECF: (a) Configuring the jdbc/ECFDB datasource in Tomcat, add the following lines at the end of the hosts section in the server.xml file (under TOMCAT_HOME/conf), such as: <Context path="/ECF" docBase="ECF" debug="5" reloadable="true" crossContext="true"> <Resource name="jdbc/ECFDB" auth="Container" type="javax.sql.DataSource"/> <ResourceParams name="jdbc/ECFDB"> <parameter> <name>factory</name> <value>org.apache.commons.dbcp.BasicDataSourceFactory</value> </parameter> <parameter> <name>maxActive</name> <value>10</value> </parameter> <parameter> <name>maxIdle</name> <value>3</value> </parameter> <parameter> <name>maxWait</name> <value>5000</value> </parameter> <parameter> <name>username</name> <value>username</value> </parameter> <parameter> <name>password</name> <value>password</value> </parameter> <parameter> <name>driverClassName</name> <value>org.gjt.mm.mysql.Driver</value> </parameter> <parameter> <name>url</name> <value>jdbc:mysql://localhost:3306/ecftest?autoReconnect=true</value> </parameter> </ResourceParams> </Context> (b) Add the JDBC driver for mysql under TOMCAT_HOME/common/lib (c) Execute the following script in MySQL: create database ecftest; use ecftest; create table persons(name varchar(30), age integer); Other Stuff ----------- This software is distributed under the terms of the GNU General Public License (see License.txt). If you want to contribute, go to http://sourceforge.net/projects/ecforms/ |
From: Francisco C. <fca...@us...> - 2005-11-22 14:57:05
|
Update of /cvsroot/ecforms/ECF-JSF/ipl In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2331/ipl Added Files: blank_db.ipl blank_ecf.ipl Log Message: File for blank application --- NEW FILE: blank_db.ipl --- IDGenerator() { var nextId = 1; getNextId() { return nextId++; } return {getNextId: getNextId}; } Table() { var rows = new array[100]; var count = 0; var idGenerator = IDGenerator(); addRow(row) { if (isReadOnly()) error("can't addRow in query"); var n = length(rows); if (count == n) { var tmp = new array[n * 2]; arrayCopy(rows, 0, tmp, 0, n); rows = tmp; } row.id = idGenerator.getNextId(); rows[count++] = row; } getIndexForId(id) { for (var i = 0; i < count; i++) if (rows[i].id == id) return i; return -1; } getRowWithId(id) { var index = getIndexForId(id); return index != -1 ? rows[index] : null; } deleteRowWithId(id) { if (isReadOnly()) error("can't deleteRowWithId in query"); var index = getIndexForId(id); if (index == -1) return; arrayCopy(rows, index + 1, rows, index, count - index - 1); count--; } updateRowWithId(id, row) { if (isReadOnly()) error("can't updateRowWithId in query"); var index = getIndexForId(id); if (index == -1) return; var names = getNames(row); var n = length(names); for (var i = 0; i < n; i++) rows[index][names[i]] = row[names[i]]; } getRows() { var result = new array[count]; arrayCopy(rows, 0, result, 0, count); return result; } return { addRow: addRow, getRowWithId: getRowWithId, deleteRowWithId: deleteRowWithId, updateRowWithId: updateRowWithId, getRows: getRows }; } var persons = Table(); --- NEW FILE: blank_ecf.ipl --- HEADER ` ` FOOTER ` ` USER { } START_SCREEN_FLOW SCREEN_FLOW main { START_VIEW JSF_VIEW main {} [ ]; } |
From: Francisco C. <fca...@us...> - 2005-11-22 14:57:03
|
Update of /cvsroot/ecforms/ECF-JSF/config In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2331/config Added Files: blank_web.xml Log Message: File for blank application --- NEW FILE: blank_web.xml --- <?xml version='1.0' encoding='UTF-8'?> <!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>Nexus ECF</display-name> <description> Nexus ECF </description> <context-param> <param-name>javax.faces.STATE_SAVING_METHOD</param-name> <param-value>server</param-value> </context-param> <context-param> <param-name>ecf.dbpath</param-name> <param-value>/tmp/ECFDB/@app.name@</param-value> </context-param> <context-param> <param-name>default.locale</param-name> <param-value>es</param-value> </context-param> <context-param> <param-name>supported.locales</param-name> <param-value>en,fr</param-value> </context-param> <context-param> <param-name>uploadDir</param-name> <param-value>/tmp</param-value> </context-param> <servlet> <servlet-name>ECF Servlet</servlet-name> <servlet-class>com.nexus.ecf.jsf.ECFServlet</servlet-class> <load-on-startup>1</load-on-startup> </servlet> <servlet> <servlet-name>ECF Download Servlet</servlet-name> <servlet-class>com.nexus.ecf.jsf.DownloadServlet</servlet-class> <load-on-startup>1</load-on-startup> </servlet> <servlet> <servlet-name>ECF Print Servlet</servlet-name> <servlet-class>com.nexus.ecf.jsf.PrintServlet</servlet-class> <load-on-startup>2</load-on-startup> </servlet> <servlet-mapping> <servlet-name>ECF Servlet</servlet-name> <url-pattern>/faces/*</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>ECF Download Servlet</servlet-name> <url-pattern>/download/*</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>ECF Print Servlet</servlet-name> <url-pattern>/print/*</url-pattern> </servlet-mapping> <welcome-file-list> <welcome-file>index.html</welcome-file> </welcome-file-list> </web-app> |
From: Francisco C. <fca...@us...> - 2005-11-22 14:55:01
|
Update of /cvsroot/ecforms/ECF-JSF In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1720 Modified Files: build_projects.xml Log Message: Added an option to select blank or sample application Index: build_projects.xml =================================================================== RCS file: /cvsroot/ecforms/ECF-JSF/build_projects.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** build_projects.xml 18 Nov 2005 01:26:09 -0000 1.1 --- build_projects.xml 22 Nov 2005 14:54:53 -0000 1.2 *************** *** 1,18 **** <project name="ecf" default="create-project" basedir="."> - <property name="baseapp.dir" value="base_app"/> - <target name="create-project"> <input message="Base directory: " addproperty="newproject.basedir"></input> <input message="Project name: " addproperty="app.name"></input> <mkdir dir="${newproject.basedir}/${app.name}"/> <mkdir dir="${newproject.basedir}/${app.name}/src"/> ! <copy file="base_app/build.xml" tofile="${newproject.basedir}/${app.name}/build.xml"> <filterset> <filter token="app.name" value="${app.name}"/> </filterset> </copy> ! <copy todir="${newproject.basedir}/${app.name}"> ! <fileset dir="${baseapp.dir}"> <include name="config/*.xml"/> <include name="ipl/*.ipl"/> --- 1,24 ---- <project name="ecf" default="create-project" basedir="."> <target name="create-project"> <input message="Base directory: " addproperty="newproject.basedir"></input> <input message="Project name: " addproperty="app.name"></input> + <input message="Sample or blank project?" validargs="sample,blank" addproperty="newproject.type"/> + + <antcall target="update-project"/> + </target> + + + <target name="update-project"> + <echo message="Creating ${newproject.type} project"/> <mkdir dir="${newproject.basedir}/${app.name}"/> <mkdir dir="${newproject.basedir}/${app.name}/src"/> ! <copy file="${newproject.type}_app/build.xml" tofile="${newproject.basedir}/${app.name}/build.xml"> <filterset> <filter token="app.name" value="${app.name}"/> </filterset> </copy> ! <copy todir="${newproject.basedir}/${app.name}" overwrite="true"> ! <fileset dir="${newproject.type}_app"> <include name="config/*.xml"/> <include name="ipl/*.ipl"/> |
From: Francisco C. <fca...@us...> - 2005-11-22 14:53:10
|
Update of /cvsroot/ecforms/ECF-JSF In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1308 Modified Files: build.xml Log Message: Added blank application Index: build.xml =================================================================== RCS file: /cvsroot/ecforms/ECF-JSF/build.xml,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** build.xml 18 Nov 2005 18:47:48 -0000 1.3 --- build.xml 22 Nov 2005 14:53:01 -0000 1.4 *************** *** 123,142 **** <copy todir="${dist}"> <fileset dir="."> ! <include name="README.TXT"/> <include name="License.txt"/> <include name="lib/*.jar"/> </fileset> </copy> ! <mkdir dir="${dist}/base_app"/> ! <mkdir dir="${dist}/base_app/src"/> ! <copy file="build_baseapp.xml" tofile="${dist}/base_app/build.xml"/> ! <copy todir="${dist}/base_app"> ! <fileset dir="."> ! <include name="config/*.xml"/> <include name="resources/*.*"/> - <include name="ipl/*.ipl"/> <include name="tests/**/*.java"/> </fileset> </copy> <zip destfile="${dist.dir}/${dist}.zip" basedir="${dist}"/> <tar destfile="${dist.dir}/${dist}.tgz" basedir="${dist}" compression="gzip"/> --- 123,150 ---- <copy todir="${dist}"> <fileset dir="."> ! <include name="README.txt"/> <include name="License.txt"/> <include name="lib/*.jar"/> </fileset> </copy> ! <mkdir dir="${dist}/sample_app"/> ! <mkdir dir="${dist}/sample_app/src"/> ! <copy file="build_baseapp.xml" tofile="${dist}/sample_app/build.xml"/> ! <copy todir="${dist}/sample_app"> ! <fileset dir="." excludes="**/blank*"> ! <include name="config/*.*"/> ! <include name="ipl/*.*"/> <include name="resources/*.*"/> <include name="tests/**/*.java"/> </fileset> </copy> + + <copy todir="${dist}/blank_app"> + <fileset dir="${dist}/sample_app"/> + </copy> + <copy file="config/blank_web.xml" tofile="${dist}/blank_app/config/web.xml" overwrite="true"/> + <copy file="ipl/blank_ecf.ipl" tofile="${dist}/blank_app/ipl/ecf.ipl" overwrite="true"/> + <copy file="ipl/blank_db.ipl" tofile="${dist}/blank_app/ipl/db.ipl" overwrite="true"/> + <zip destfile="${dist.dir}/${dist}.zip" basedir="${dist}"/> <tar destfile="${dist.dir}/${dist}.tgz" basedir="${dist}" compression="gzip"/> |
From: Francisco C. <fca...@us...> - 2005-11-22 14:47:48
|
Update of /cvsroot/ecforms/ECF-Servlet In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32198 Added Files: README.txt Log Message: Readme file --- NEW FILE: README.txt --- ECForms - version 0.2, November 2005 ==================================== Framework to build Java Server Faces web applications using a simple scripting language (IENJINIA Programming Language). This framework is built on top of Java Server Faces and the IENJINIA PROGRAMMING LANGUAGE (http://sourceforge.net/projects/ienjinia) to provide an easy-to-learn environment to develop Java Web applications. It benefits from the flexibility provided by the Java Server Faces architecture, providing a unified syntax to code the different type of components (navigation, logic, pages, etc). 1. Status: ---------- We have now two modules: - This module (ECF-Servlet) module, which is a light version of ECF without the JSF built-in functions. - The ECF-JSF module, which is the full ECF version. 2. Source Code: --------------- You can see what we are working on by checking out the "ECF-Servlet" module from the CVS repository To check out the ECF-Servlet module: cvs -d :pserver:ano...@cv...:/cvsroot/ecforms login cvs -z3 -d :pserver:ano...@cv...:/cvsroot/ecforms co ECF-Servlet Or you can browse the CVS repository at: http://cvs.sourceforge.net/viewcvs.py/ecforms/ECF-Servlet 3. Requirements: ---------------- (1) You need to define an environment variable named TOMCAT_HOME, which points to the installation directory of Tomcat. Other Stuff ----------- This software is distributed under the terms of the GNU General Public License (see License.txt). If you want to contribute, go to http://sourceforge.net/projects/ecforms/ |
From: Francisco C. <fca...@us...> - 2005-11-21 23:17:22
|
Update of /cvsroot/ecforms/ECF-JSF/ipl In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13672/ipl Modified Files: db.ipl Log Message: Fixed capitalization in arrayCopy method Index: db.ipl =================================================================== RCS file: /cvsroot/ecforms/ECF-JSF/ipl/db.ipl,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** db.ipl 15 Nov 2005 05:20:59 -0000 1.1.1.1 --- db.ipl 21 Nov 2005 23:17:11 -0000 1.2 *************** *** 22,26 **** if (count == n) { var tmp = new array[n * 2]; ! arraycopy(rows, 0, tmp, 0, n); rows = tmp; } --- 22,26 ---- if (count == n) { var tmp = new array[n * 2]; ! arrayCopy(rows, 0, tmp, 0, n); rows = tmp; } |
From: Francisco C. <fca...@us...> - 2005-11-18 19:34:59
|
Update of /cvsroot/ecforms/ECF-JSF/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2393/src Modified Files: ECFMessages.properties ECFMessages_en.properties ECFMessages_es.properties Log Message: Added localization messages Index: ECFMessages_en.properties =================================================================== RCS file: /cvsroot/ecforms/ECF-JSF/src/ECFMessages_en.properties,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** ECFMessages_en.properties 15 Nov 2005 05:21:00 -0000 1.1.1.1 --- ECFMessages_en.properties 18 Nov 2005 19:34:48 -0000 1.2 *************** *** 16,18 **** White=White Black=Black ! select_locale=Select Locale \ No newline at end of file --- 16,43 ---- White=White Black=Black ! select_locale=Select Locale ! name=Name ! lastName=Last name ! age=Age ! experience=Experience ! sex=Sex ! colors=Colors ! phones=Phones ! addPhone=Add Phone ! comments=Comments ! showPdf=Show PDF ! rows=Rows ! add=Add ! edit=Edit ! delete=Delete ! addPerson=Add Person ! ok=OK ! cancel=Cancel ! update=Update ! user=User ! newItem=New item ! locale=Locale ! setLocale=Set Locale ! bye=Bye! Click ! here=here ! toLogin=to login again Index: ECFMessages.properties =================================================================== RCS file: /cvsroot/ecforms/ECF-JSF/src/ECFMessages.properties,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** ECFMessages.properties 15 Nov 2005 05:21:00 -0000 1.1.1.1 --- ECFMessages.properties 18 Nov 2005 19:34:48 -0000 1.2 *************** *** 16,18 **** White=Blanco Black=Negro ! select_locale=Seleccionar Locale --- 16,44 ---- White=Blanco Black=Negro ! select_locale=Seleccionar Idioma ! name=Nombre ! lastName=Apellido ! age=Edad ! experience=Experiencia ! sex=Sexo ! colors=Colores ! phones=Teléfonos ! addPhone=Agregar ! comments=Comentarios ! showPdf=Muestra PDF ! rows=Renglones ! add=Agregar ! edit=Editar ! delete=Eliminar ! addPerson=Agregar Persona ! ok=Aceptar ! cancel=Cancelar ! update=Actualizar ! user=Usuario ! newItem=Nuevo pendiente ! locale=Idioma ! setLocale=Establecer Idioma ! bye=Adiós! Presione ! here=aquí ! toLogin=para ingresar de nuevo ! Index: ECFMessages_es.properties =================================================================== RCS file: /cvsroot/ecforms/ECF-JSF/src/ECFMessages_es.properties,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** ECFMessages_es.properties 15 Nov 2005 05:21:00 -0000 1.1.1.1 --- ECFMessages_es.properties 18 Nov 2005 19:34:48 -0000 1.2 *************** *** 16,18 **** White=Blanco Black=Negro ! select_locale=Seleccionar Locale --- 16,43 ---- White=Blanco Black=Negro ! select_locale=Seleccionar Idioma ! name=Nombre ! lastName=Apellido ! age=Edad ! experience=Experiencia ! sex=Sexo ! colors=Colores ! phones=Teléfonos ! addPhone=Agregar ! comments=Comentarios ! showPdf=Muestra PDF ! rows=Renglones ! add=Agregar ! edit=Editar ! delete=Eliminar ! addPerson=Agregar Persona ! ok=Aceptar ! cancel=Cancelar ! update=Actualizar ! user=Usuario ! newItem=Nuevo pendiente ! locale=Idioma ! setLocale=Establecer Idioma ! bye=Adiós! Presione ! here=aquí ! toLogin=para ingresar de nuevo |
From: Francisco C. <fca...@us...> - 2005-11-18 19:34:56
|
Update of /cvsroot/ecforms/ECF-JSF/ipl In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2393/ipl Modified Files: ecf.ipl Log Message: Added localization messages Index: ecf.ipl =================================================================== RCS file: /cvsroot/ecforms/ECF-JSF/ipl/ecf.ipl,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** ecf.ipl 15 Nov 2005 05:21:00 -0000 1.1.1.1 --- ecf.ipl 18 Nov 2005 19:34:48 -0000 1.2 *************** *** 3,7 **** <head><title>${title}</title></head> <body bgcolor="white"> ! <b>User:</b> ${getUserId()} <p> ` --- 3,7 ---- <head><title>${title}</title></head> <body bgcolor="white"> ! <b>${msgs.user}:</b> ${getUserId()} <p> ` *************** *** 19,23 **** pdfLogo = "/javaLogo.gif"; pdfHeaderSuperior = "Empresa Pato, S.A. de C.V."; ! pdfFooter = "Pgina "; pdfHeader1 = "Empresa Pato, S.A. de C.V."; pdfHeader2 = "Calle desconocida num 0 int 0"; --- 19,23 ---- pdfLogo = "/javaLogo.gif"; pdfHeaderSuperior = "Empresa Pato, S.A. de C.V."; ! pdfFooter = "Pagina "; pdfHeader1 = "Empresa Pato, S.A. de C.V."; pdfHeader2 = "Calle desconocida num 0 int 0"; *************** *** 46,55 **** JSF_OUTPUT {value: SEPARATOR, escape: false} ], ! JSF_BUTTON {value: "Print view", ! actionListener: DO printView(this["/" + getViewName()]);}, ! JSF_OUTPUT {value: SEPARATOR, escape: false}, ! JSF_SHOW_LINK {value: "/ECF/print/report"} [ ! JSF_OUTPUT {value: "Show PDF"} ! ], JSF_OUTPUT {value: SEPARATOR, escape: false}, JSF_LINK {action: "Logout", --- 46,52 ---- JSF_OUTPUT {value: SEPARATOR, escape: false} ], ! JSF_SHOW_LINK {value: IS "/@app.name@/print/report"} [ ! JSF_OUTPUT {value: IS msgs.showPdf} ! ], JSF_OUTPUT {value: SEPARATOR, escape: false}, JSF_LINK {action: "Logout", *************** *** 204,208 **** var personDataFields = JSF_GRID {columns: 2} [ ! JSF_OUTPUT {value: "Name: "}, JSF_GROUP {} [ JSF_INPUT {value: IS name, id: "name", required: true, --- 201,205 ---- var personDataFields = JSF_GRID {columns: 2} [ ! JSF_OUTPUT {value: IS msgs.name + ": "}, JSF_GROUP {} [ JSF_INPUT {value: IS name, id: "name", required: true, *************** *** 210,214 **** JSF_MESSAGE {forId: "name", style: "color: red;"} ], ! JSF_OUTPUT {value: "Last name: "}, JSF_GROUP {} [ JSF_INPUT {value: IS lastName, id: "lastName", --- 207,211 ---- JSF_MESSAGE {forId: "name", style: "color: red;"} ], ! JSF_OUTPUT {value: IS msgs.lastName + ": "}, JSF_GROUP {} [ JSF_INPUT {value: IS lastName, id: "lastName", *************** *** 216,220 **** JSF_MESSAGE {forId: "lastName", style: "color: red;"} ], ! JSF_OUTPUT {value: "Age: "}, JSF_GROUP {} [ JSF_INPUT {value: IS age, id: "age", --- 213,217 ---- JSF_MESSAGE {forId: "lastName", style: "color: red;"} ], ! JSF_OUTPUT {value: IS msgs.age +": "}, JSF_GROUP {} [ JSF_INPUT {value: IS age, id: "age", *************** *** 224,228 **** JSF_MESSAGE {forId: "age", style: "color: red;"} ], ! JSF_OUTPUT {value: "Experience: "}, JSF_GROUP {} [ JSF_INPUT {value: IS experience, id: "experience"}, --- 221,225 ---- JSF_MESSAGE {forId: "age", style: "color: red;"} ], ! JSF_OUTPUT {value: IS msgs.experience + ": "}, JSF_GROUP {} [ JSF_INPUT {value: IS experience, id: "experience"}, *************** *** 234,247 **** }} ], ! JSF_OUTPUT {value: "Sex: "}, JSF_SELECT_ONE_MENU {value: IS sex, pdfShowAll: "true"} [ JSF_SELECT_ITEMS IS SEXES ], ! JSF_OUTPUT {value: "Colors: "}, JSF_SELECT_MANY_CHECKBOX {many: IS (java.lang.Integer) chosenColors} [ JSF_SELECT_ITEMS IS COLORS ], ! JSF_OUTPUT {value: "Phones: "}, JSF_GROUP {} [ JSF_TABLE {value: IS phones, row: "phone", --- 231,244 ---- }} ], ! JSF_OUTPUT {value: IS msgs.sex + ": "}, JSF_SELECT_ONE_MENU {value: IS sex, pdfShowAll: "true"} [ JSF_SELECT_ITEMS IS SEXES ], ! JSF_OUTPUT {value: IS msgs.colors + ": "}, JSF_SELECT_MANY_CHECKBOX {many: IS (java.lang.Integer) chosenColors} [ JSF_SELECT_ITEMS IS COLORS ], ! JSF_OUTPUT {value: IS msgs.phones + ": ", escape: false}, JSF_GROUP {} [ JSF_TABLE {value: IS phones, row: "phone", *************** *** 255,262 **** ] ], ! JSF_BUTTON {value: "Add phone", pdfPrintable: "false", actionListener: DO addPhone();} ], ! JSF_OUTPUT {value: "Comments: "}, JSF_TEXT_AREA {value: IS comments, cols: 40, rows: 10} ]; --- 252,259 ---- ] ], ! JSF_BUTTON {value: IS msgs.addPhone, pdfPrintable: "false", escape: false, actionListener: DO addPhone();} ], ! JSF_OUTPUT {value: IS msgs.comments + ": "}, JSF_TEXT_AREA {value: IS comments, cols: 40, rows: 10} ]; *************** *** 272,284 **** pdfTitle: "Personas" } [ JSF_COLUMN { ! header: JSF_OUTPUT {value: "NAME"}, ! footer: JSF_OUTPUT {value: "ROWS"} } [ JSF_OUTPUT {value: IS person.name} ], JSF_COLUMN { ! header: JSF_OUTPUT {value: "LAST NAME"}, footer: JSF_OUTPUT {value: IS length(getPersons())} } [ JSF_OUTPUT {value: IS person.lastName} ], JSF_COLUMN { ! header: JSF_OUTPUT {value: "SEX"} } [ JSF_OUTPUT {value: IS LABEL_FOR person.sex IN SEXES} --- 269,281 ---- pdfTitle: "Personas" } [ JSF_COLUMN { ! header: JSF_OUTPUT {value: IS msgs.name}, ! footer: JSF_OUTPUT {value: IS msgs.rows} } [ JSF_OUTPUT {value: IS person.name} ], JSF_COLUMN { ! header: JSF_OUTPUT {value: IS msgs.lastName}, footer: JSF_OUTPUT {value: IS length(getPersons())} } [ JSF_OUTPUT {value: IS person.lastName} ], JSF_COLUMN { ! header: JSF_OUTPUT {value: IS msgs.sex} } [ JSF_OUTPUT {value: IS LABEL_FOR person.sex IN SEXES} *************** *** 288,292 **** pdfPrintable: "false", actionListener: DO selectPerson();} [ ! JSF_OUTPUT {value: "Edit"} ] ], --- 285,289 ---- pdfPrintable: "false", actionListener: DO selectPerson();} [ ! JSF_OUTPUT {value: IS msgs.edit} ] ], *************** *** 294,307 **** JSF_LINK {actionListener: DO deletePerson();, pdfPrintable: "false"} [ ! JSF_OUTPUT {value: "Delete"} ] ] ], ! JSF_BUTTON {value: "Add Person", pdfPrintable: "false", action: "addPerson"} ] ]; ! JSF_VIEW addPerson {onEnter: DO {title = "Add Person"; clearPerson(); }, pdfTitle: "Editar persona" } --- 291,304 ---- JSF_LINK {actionListener: DO deletePerson();, pdfPrintable: "false"} [ ! JSF_OUTPUT {value: IS msgs.delete} ] ] ], ! JSF_BUTTON {value: IS msgs.addPerson, pdfPrintable: "false", action: "addPerson"} ] ]; ! JSF_VIEW addPerson {onEnter: DO {title = "${msgs.addPerson}"; clearPerson(); }, pdfTitle: "Editar persona" } *************** *** 310,316 **** JSF_FORM {pdfTitle: "Persona", pdfSubtitle: "Agregar"} [ personDataFields, ! JSF_BUTTON {value: "OK", pdfPrintable: "false", action: "main", actionListener: DO addPerson();}, ! JSF_BUTTON {value: "Cancel", pdfPrintable: "false", action: "main", immediate: true} ] --- 307,313 ---- JSF_FORM {pdfTitle: "Persona", pdfSubtitle: "Agregar"} [ personDataFields, ! JSF_BUTTON {value: IS msgs.ok, pdfPrintable: "false", action: "main", actionListener: DO addPerson();}, ! JSF_BUTTON {value: IS msgs.cancel, pdfPrintable: "false", action: "main", immediate: true} ] *************** *** 322,328 **** JSF_FORM {pdfTitle: "Persona", pdfSubtitle: "Editar"} [ personDataFields, ! JSF_BUTTON {value: "OK", pdfPrintable: "false", action: "main", actionListener: DO updatePerson();}, ! JSF_BUTTON {value: "Cancel", pdfPrintable: "false", action: "main", immediate: true} ] --- 319,325 ---- JSF_FORM {pdfTitle: "Persona", pdfSubtitle: "Editar"} [ personDataFields, ! JSF_BUTTON {value: IS msgs.ok, pdfPrintable: "false", action: "main", actionListener: DO updatePerson();}, ! JSF_BUTTON {value: IS msgs.cancel, pdfPrintable: "false", action: "main", immediate: true} ] *************** *** 456,474 **** actionListener: DO currentItem = getRowData(todoItemsUIData);} [ ! JSF_OUTPUT {value: "Edit"} ] ], JSF_COLUMN {} [ JSF_LINK {actionListener: DO deleteItem();} [ ! JSF_OUTPUT {value: "Delete"} ] ] ], ! JSF_BUTTON {value: "Update", pdfPrintable: "false"} ], JSF_FORM {pdfPrintable: "false"} [ ! JSF_OUTPUT {value: "New item: "}, JSF_INPUT {value: IS newItemName}, ! JSF_BUTTON {value: "Add", actionListener: DO addItem();} ], linkReturn --- 453,471 ---- actionListener: DO currentItem = getRowData(todoItemsUIData);} [ ! JSF_OUTPUT {value: IS msgs.edit} ] ], JSF_COLUMN {} [ JSF_LINK {actionListener: DO deleteItem();} [ ! JSF_OUTPUT {value: IS msgs.delete} ] ] ], ! JSF_BUTTON {value: IS msgs.update, pdfPrintable: "false"} ], JSF_FORM {pdfPrintable: "false"} [ ! JSF_OUTPUT {value: IS msgs.newItem + ": "}, JSF_INPUT {value: IS newItemName}, ! JSF_BUTTON {value: IS msgs.add, actionListener: DO addItem();} ], linkReturn *************** *** 481,487 **** JSF_FORM {} [ JSF_INPUT {value: IS editedItemName}, ! JSF_BUTTON {value: "OK", action: "back", actionListener: DO currentItem.name = editedItemName;}, ! JSF_BUTTON {value: "Cancel", action: "back"} ], linkReturn --- 478,484 ---- JSF_FORM {} [ JSF_INPUT {value: IS editedItemName}, ! JSF_BUTTON {value: IS msgs.ok, action: "back", actionListener: DO currentItem.name = editedItemName;}, ! JSF_BUTTON {value: IS msgs.cancel, action: "back"} ], linkReturn *************** *** 532,541 **** JSF_FORM {} [ JSF_GRID {columns: 2} [ ! JSF_OUTPUT {value: "Locale: "}, JSF_SELECT_ONE_MENU {value: IS locale} [ JSF_SELECT_ITEMS IS locales ] ], ! JSF_BUTTON {value: "Set Locale", actionListener: DO setLocale(); } ], linkReturn --- 529,538 ---- JSF_FORM {} [ JSF_GRID {columns: 2} [ ! JSF_OUTPUT {value: IS msgs.locale + ": "}, JSF_SELECT_ONE_MENU {value: IS locale} [ JSF_SELECT_ITEMS IS locales ] ], ! JSF_BUTTON {value: IS msgs.setLocale, actionListener: DO setLocale(); } ], linkReturn *************** *** 546,554 **** SCREEN_FLOW bye { START_VIEW JSF_VIEW bye {onEnter: DO title = "Bye!";} [ ! JSF_OUTPUT {value: "Bye! Click "}, ! JSF_SHOW_LINK {value: "/ECF"} [ ! JSF_OUTPUT {value: "here"} ], ! JSF_OUTPUT {value: " to login again."} ]; } --- 543,551 ---- SCREEN_FLOW bye { START_VIEW JSF_VIEW bye {onEnter: DO title = "Bye!";} [ ! JSF_OUTPUT {value: IS msgs.bye + " ", escape: false}, ! JSF_SHOW_LINK {value: "/@app.name@"} [ ! JSF_OUTPUT {value: IS msgs.here, escape: false} ], ! JSF_OUTPUT {value: IS " " + msgs.toLogin + ".", escape: false} ]; } *************** *** 712,720 **** rendered: IS fdGetContentType(file) != null}, JSF_OUTPUT {value: " "}, ! JSF_SHOW_LINK {value: IS "/ECF/download/" + fdGetName(file)} [ JSF_OUTPUT {value: "download"} ] ], ! JSF_BUTTON {value: "OK", actionListener: DO setDownload(file); } ] --- 709,717 ---- rendered: IS fdGetContentType(file) != null}, JSF_OUTPUT {value: " "}, ! JSF_SHOW_LINK {value: IS "/@app.name@/download/" + fdGetName(file)} [ JSF_OUTPUT {value: "download"} ] ], ! JSF_BUTTON {value: IS msgs.ok, actionListener: DO setDownload(file); } ] |
From: Francisco C. <fca...@us...> - 2005-11-18 19:22:42
|
Update of /cvsroot/ecforms/ECF-JSF/config In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31360/config Modified Files: web.xml Log Message: Added application name to database path Index: web.xml =================================================================== RCS file: /cvsroot/ecforms/ECF-JSF/config/web.xml,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** web.xml 15 Nov 2005 05:20:59 -0000 1.1.1.1 --- web.xml 18 Nov 2005 19:22:35 -0000 1.2 *************** *** 20,24 **** <context-param> <param-name>ecf.dbpath</param-name> ! <param-value>/tmp/ECFDB</param-value> </context-param> --- 20,24 ---- <context-param> <param-name>ecf.dbpath</param-name> ! <param-value>/tmp/ECFDB/@app.name@</param-value> </context-param> *************** *** 71,75 **** </servlet-mapping> - <!-- Welcome File List --> <welcome-file-list> <welcome-file>index.html</welcome-file> --- 71,74 ---- |
From: Francisco C. <fca...@us...> - 2005-11-18 19:11:07
|
Update of /cvsroot/ecforms/ECF-JSF In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27508 Modified Files: build_baseapp.xml Log Message: Added description tasks, filters for appname property Index: build_baseapp.xml =================================================================== RCS file: /cvsroot/ecforms/ECF-JSF/build_baseapp.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** build_baseapp.xml 18 Nov 2005 01:25:44 -0000 1.1 --- build_baseapp.xml 18 Nov 2005 19:10:55 -0000 1.2 *************** *** 24,28 **** </filterset> ! <target name="prepare"> <mkdir dir="build.tests"/> <mkdir dir="${deploy.home}"/> --- 24,28 ---- </filterset> ! <target name="prepare" description="Create working directories"> <mkdir dir="build.tests"/> <mkdir dir="${deploy.home}"/> *************** *** 31,34 **** --- 31,35 ---- <copy todir="${deploy.home}/WEB-INF"> <fileset dir="config"/> + <filterset refid="filters"/> </copy> <copy todir="${deploy.home}"> *************** *** 54,58 **** </target> ! <target name="clean"> <delete dir="${deploy.home}"/> <delete dir="${dist.dir}"/> --- 55,59 ---- </target> ! <target name="clean" description="Clean working directories"> <delete dir="${deploy.home}"/> <delete dir="${dist.dir}"/> *************** *** 61,65 **** </target> ! <target name="compile" depends="prepare"> <javac srcdir="src" destdir="${deploy.home}/WEB-INF/classes" debug="on" optimize="off" deprecation="on" source="1.4"> --- 62,66 ---- </target> ! <target name="compile" depends="prepare" description="Compile Java source files"> <javac srcdir="src" destdir="${deploy.home}/WEB-INF/classes" debug="on" optimize="off" deprecation="on" source="1.4"> *************** *** 68,72 **** </target> ! <target name="compiletests" depends="compile"> <javac srcdir="tests" destdir="build.tests" debug="on" optimize="off" deprecation="on" source="1.4"> --- 69,73 ---- </target> ! <target name="compiletests" depends="compile" description="Compile JUnit test files"> <javac srcdir="tests" destdir="build.tests" debug="on" optimize="off" deprecation="on" source="1.4"> *************** *** 75,82 **** <copy todir="build.tests/WEB-INF/ipl"> <fileset dir="ipl" includes="**/*.ipl"/> </copy> </target> ! <target name="test" depends="compiletests"> <junit printsummary="no" haltonfailure="yes" showoutput="yes"> <formatter type="plain"/> --- 76,84 ---- <copy todir="build.tests/WEB-INF/ipl"> <fileset dir="ipl" includes="**/*.ipl"/> + <filterset refid="filters"/> </copy> </target> ! <target name="test" depends="compiletests" description="Run JUnit tests"> <junit printsummary="no" haltonfailure="yes" showoutput="yes"> <formatter type="plain"/> *************** *** 88,92 **** <target name="all" depends="clean,prepare,compile,test"/> ! <target name="package" depends="prepare,compile"> <jar jarfile="${dist.dir}/${dist.war}" basedir="${deploy.home}"/> </target> --- 90,94 ---- <target name="all" depends="clean,prepare,compile,test"/> ! <target name="package" depends="prepare,compile" description="Generate WAR file"> <jar jarfile="${dist.dir}/${dist.war}" basedir="${deploy.home}"/> </target> |
From: Francisco C. <fca...@us...> - 2005-11-18 18:47:55
|
Update of /cvsroot/ecforms/ECF-JSF In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19546 Modified Files: build.xml Log Message: Added task descriptions, filters for appbase property, zip and tgz release files Index: build.xml =================================================================== RCS file: /cvsroot/ecforms/ECF-JSF/build.xml,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** build.xml 18 Nov 2005 01:22:55 -0000 1.2 --- build.xml 18 Nov 2005 18:47:48 -0000 1.3 *************** *** 8,20 **** <property name="webapps" value="${tomcat.home}/webapps"/> <property name="dist.war" value="${app.name}.war"/> ! <property name="doc.dir" value="doc"/> <property name="dist.dir" value="dist"/> <property name="build.dir" value="build"/> ! <target name="components"> <ant dir="components"/> </target> ! <target name="prepare" depends="components"> <mkdir dir="${deploy.home}"/> <mkdir dir="${deploy.home}/WEB-INF"/> --- 8,24 ---- <property name="webapps" value="${tomcat.home}/webapps"/> <property name="dist.war" value="${app.name}.war"/> ! <property name="doc.dir" value="docs"/> <property name="dist.dir" value="dist"/> <property name="build.dir" value="build"/> ! <target name="components" description="Build JSF components"> <ant dir="components"/> </target> ! <filterset id="filters"> ! <filter token="app.name" value="${app.name}"/> ! </filterset> ! ! <target name="prepare" depends="components" description="Create working directories"> <mkdir dir="${deploy.home}"/> <mkdir dir="${deploy.home}/WEB-INF"/> *************** *** 23,26 **** --- 27,31 ---- <copy todir="${deploy.home}/WEB-INF"> <fileset dir="config"/> + <filterset refid="filters"/> </copy> <copy todir="${deploy.home}"> *************** *** 29,32 **** --- 34,38 ---- <copy todir="${deploy.home}/WEB-INF/ipl"> <fileset dir="ipl" includes="**/*.ipl"/> + <filterset refid="filters"/> </copy> <mkdir dir="${deploy.home}/WEB-INF/classes"/> *************** *** 34,37 **** --- 40,44 ---- <fileset dir="src" includes="**/*.ipl"/> <fileset dir="src" includes="**/*.properties"/> + <filterset refid="filters"/> </copy> <mkdir dir="${deploy.home}/WEB-INF/lib"/> *************** *** 50,54 **** </target> ! <target name="clean"> <ant dir="components" target="clean"/> <delete dir="${deploy.home}"/> --- 57,61 ---- </target> ! <target name="clean" description="Clean working directories"> <ant dir="components" target="clean"/> <delete dir="${deploy.home}"/> *************** *** 68,72 **** </path> ! <target name="compile" depends="prepare"> <javac srcdir="src" destdir="${deploy.home}/WEB-INF/classes" debug="on" optimize="off" deprecation="on" source="1.4"> --- 75,79 ---- </path> ! <target name="compile" depends="prepare" description="Compile Java source files"> <javac srcdir="src" destdir="${deploy.home}/WEB-INF/classes" debug="on" optimize="off" deprecation="on" source="1.4"> *************** *** 75,79 **** </target> ! <target name="compiletests" depends="compile"> <javac srcdir="tests" destdir="build.tests" debug="on" optimize="off" deprecation="on" source="1.4"> --- 82,86 ---- </target> ! <target name="compiletests" depends="compile" description="Compile JUnit test files"> <javac srcdir="tests" destdir="build.tests" debug="on" optimize="off" deprecation="on" source="1.4"> *************** *** 82,89 **** <copy todir="build.tests/WEB-INF/ipl"> <fileset dir="ipl" includes="**/*.ipl"/> </copy> </target> ! <target name="test" depends="compiletests"> <junit printsummary="no" haltonfailure="yes" showoutput="yes"> <formatter type="plain"/> --- 89,97 ---- <copy todir="build.tests/WEB-INF/ipl"> <fileset dir="ipl" includes="**/*.ipl"/> + <filterset refid="filters"/> </copy> </target> ! <target name="test" depends="compiletests" description="Run JUnit tests"> <junit printsummary="no" haltonfailure="yes" showoutput="yes"> <formatter type="plain"/> *************** *** 93,102 **** </target> ! <target name="javadoc" depends="prepare"> <javadoc sourcepath="src" destdir="${doc.dir}" packagenames="com.nexus.*" source="1.4" classpathref="project.class.path"/> </target> ! <target name="ecf-jar" depends="compile,test"> <jar jarfile="${dist}.jar" basedir="${deploy.home}/WEB-INF/classes"/> </target> --- 101,110 ---- </target> ! <target name="javadoc" depends="prepare" description="Generate JavaDoc"> <javadoc sourcepath="src" destdir="${doc.dir}" packagenames="com.nexus.*" source="1.4" classpathref="project.class.path"/> </target> ! <target name="ecf-jar" depends="compile,test" description="Bundle Java classes and IPL files in a jar file"> <jar jarfile="${dist}.jar" basedir="${deploy.home}/WEB-INF/classes"/> </target> *************** *** 104,112 **** <target name="all" depends="clean,prepare,compile,javadoc,ecf-jar"/> ! <target name="package" depends="prepare,compile,test"> <jar jarfile="${dist.dir}/${dist.war}" basedir="${deploy.home}"/> </target> ! <target name="generate-dist" depends="ecf-jar"> <mkdir dir="${dist}"/> <copy file="build_projects.xml" tofile="${dist}/build.xml"/> --- 112,120 ---- <target name="all" depends="clean,prepare,compile,javadoc,ecf-jar"/> ! <target name="package" depends="prepare,compile,test" description="Generate WAR file"> <jar jarfile="${dist.dir}/${dist.war}" basedir="${deploy.home}"/> </target> ! <target name="generate-dist" depends="ecf-jar" description="Create compressed files for distribution"> <mkdir dir="${dist}"/> <copy file="build_projects.xml" tofile="${dist}/build.xml"/> *************** *** 131,141 **** </fileset> </copy> </target> ! <target name="run-ipl"> <java classpathref="project.class.path" jar="lib/ipl.jar" fork="true"/> </target> ! <target name="run-idb"> <java classpathref="project.class.path" classname="com.ienjinia.db.DBUI" fork="true"> <arg line="-g /tmp/ECFDB"/> --- 139,152 ---- </fileset> </copy> + <zip destfile="${dist.dir}/${dist}.zip" basedir="${dist}"/> + <tar destfile="${dist.dir}/${dist}.tgz" basedir="${dist}" compression="gzip"/> + <delete dir="${dist}"/> </target> ! <target name="run-ipl" description="Run interactive IPL console"> <java classpathref="project.class.path" jar="lib/ipl.jar" fork="true"/> </target> ! <target name="run-idb" description="Run interactive IPL console, with IDB built-in functions"> <java classpathref="project.class.path" classname="com.ienjinia.db.DBUI" fork="true"> <arg line="-g /tmp/ECFDB"/> |
From: Francisco C. <fca...@us...> - 2005-11-18 01:26:55
|
Update of /cvsroot/ecforms/ECF-JSF In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31188 Added Files: build_projects.xml Log Message: Ant script to create and delete sample projects --- NEW FILE: build_projects.xml --- <project name="ecf" default="create-project" basedir="."> <property name="baseapp.dir" value="base_app"/> <target name="create-project"> <input message="Base directory: " addproperty="newproject.basedir"></input> <input message="Project name: " addproperty="app.name"></input> <mkdir dir="${newproject.basedir}/${app.name}"/> <mkdir dir="${newproject.basedir}/${app.name}/src"/> <copy file="base_app/build.xml" tofile="${newproject.basedir}/${app.name}/build.xml"> <filterset> <filter token="app.name" value="${app.name}"/> </filterset> </copy> <copy todir="${newproject.basedir}/${app.name}"> <fileset dir="${baseapp.dir}"> <include name="config/*.xml"/> <include name="ipl/*.ipl"/> <include name="resources/*.*"/> <include name="tests/**/*.java"/> </fileset> </copy> <mkdir dir="${newproject.basedir}/${app.name}/lib"/> <copy todir="${newproject.basedir}/${app.name}/lib"> <fileset dir="."> <include name="*.jar"/> </fileset> <fileset dir="lib"> <include name="*.jar"/> </fileset> </copy> </target> <target name="delete-project"> <input message="Base directory: " addproperty="newproject.basedir"/> <input message="Project name: " addproperty="newproject.name"/> <delete dir="${newproject.basedir}/${newproject.name}"/> </target> </project> |