Tapestry Ajax application

As I have been working with Tapestry for more than a few years now it only seemed natural to choose it for this new project I started working on. At it requires a lot of partial rendering and GUI like behaviour I also decided to switch from some custom ajax components to the tacos ones which have an impressing demo. This short article only shows a simple example which has as purpose to use Tapestry 4 and Tacos components for simple task: a page with parts refreshing periodically to update status information....

<span title='2006-11-24 15:31:36 +0000 UTC'>November 24, 2006</span>&nbsp;·&nbsp;len

xmlIndent.py

<pre class="python"><span style="color: #008000;">#!/usr/bin/python </span> <span style="color: #c00000;">import</span> <span style="color: #000000;">sys</span><span style="color: #0000c0;">,</span> <span style="color: #000000;">re</span> <span style="color: #000000;">iE</span> <span style="color: #0000c0;">=</span> <span style="color: #004080;">' '</span> <span style="color: #000000;">pStart</span> <span style="color: #0000c0;">=</span> <span style="color: #000000;">re</span><span style="color: #0000c0;">.</span><span style="color: #000000;">compile</span><span style="color: #0000c0;">(</span><span style="color: #004080;">'<[a-z]+'</span><span style="color: #0000c0;">,</span><span style="color: #000000;">re</span><span style="color: #0000c0;">.</span><span style="color: #000000;">IGNORECASE</span><span style="color: #0000c0;">)</span> <span style="color: #000000;">pEnd</span> <span style="color: #0000c0;">=</span> <span style="color: #000000;">re</span><span style="color: #0000c0;">.</span><span style="color: #000000;">compile</span><span style="color: #0000c0;">(</span><span style="color: #004080;">'(/>)|(</[a-z]+)'</span><span style="color: #0000c0;">,</span> <span style="color: #000000;">re</span><span style="color: #0000c0;">....

<span title='2006-11-23 08:49:03 +0000 UTC'>November 23, 2006</span>&nbsp;·&nbsp;len

Create links with a script

This shows a very simple example on how to create content dynamicaly. The problem: automatically populate a folder with a list of links The solution: 1. create a script object in that folder (using the zope interface) 2. edit this script to create the links using data from a source (in my case I just wrote an external script which generated the array but in your case you might read the list from different other sources...

<span title='2006-11-22 23:15:18 +0000 UTC'>November 22, 2006</span>&nbsp;·&nbsp;len

The novice steps from www.plone.org to mysite running plone

As I start working on my 3’rd plone based site I realize how hard everything was at the beginning and for this reason I will try here to put together some small pointers and links to resources in the order I would have needed them at the beginning thus avoiding the first days of confusion. The sites I have worked on are small sites and maybe plone is not the best solution yet I came to like this handy tool enough to use it even for my personal site....

<span title='2006-11-22 22:28:50 +0000 UTC'>November 22, 2006</span>&nbsp;·&nbsp;len

pinion.py

<pre class="python"> <span style="color: #C00000;">import</span> <span style="color: #000000;">math</span> <span style="color: #C00000;">import</span> <span style="color: #000000;">Blender</span> <span style="color: #C00000;">from</span> <span style="color: #000000;">Blender</span> <span style="color: #C00000;">import</span> <span style="color: #000000;">NMesh</span> <span style="color: #000000;">ni</span> <span style="color: #0000C0;">=</span> <span style="color: #0080C0;">26</span> <span style="color: #000000;">n</span> <span style="color: #0000C0;">=</span> <span style="color: #000000;">float</span><span style="color: #0000C0;">(</span><span style="color: #000000;">ni</span><span style="color: #0000C0;">)</span> <span style="color: #008000;">#teeths</span> <span style="color: #000000;">a</span> <span style="color: #0000C0;">=</span> <span style="color: #0080C0;">0.3</span> <span style="color: #000000;">b</span> <span style="color: #0000C0;">=</span> <span style="color: #0080C0;">0....

<span title='2006-11-22 00:27:04 +0000 UTC'>November 22, 2006</span>&nbsp;·&nbsp;len

Tapestry Hibernate app

Tapestry and Hibernate example application Updated: 24 Nov 2004 Document purpose: to show some simple steps in creating a web application using Tapestry & Hibernate. Application: dummy application containing just two tables (contact, user) Download: download the code (the libraries are missing to have a smaller archive, you need the ones mentioned in the jarlist file). Updates to this version (12 oct 03) Added HibernateGlobal method of using Hibernate Changed login method using callbacks mechanism Changed the ugly green with a more supportable blue Moved Hibernate config to hibernate....

<span title='2006-11-19 04:12:00 +0000 UTC'>November 19, 2006</span>&nbsp;·&nbsp;len

Tapestry Hibernate app (old)

Simple Tapestry Hibernate app (old) Update: this document is deprecated Created: 20 Nov 2003 Document purpose: to create a simple application in order to evaluate how easy is to use the two “things” together. Application: no purpose application containing just one table (contact) Download: download the code (the libraries are missing to have a smaller archive, you need the ones for hibernate and tapestry (including contrib)) Results: this is a promissing approach which I will use for a larger application...

<span title='2006-11-19 03:51:42 +0000 UTC'>November 19, 2006</span>&nbsp;·&nbsp;len

Tapestry template application

Tapestry template application Created: 04-Mar-2004 Tool purpose: an utility to startup projects in a simple way avoiding all the copy-paste operations and initial frustration. This can also be used to begin a project that requires new tehnologies, allowing anyone to start with a working project that only requries modifications instead of trying to put everything together. Basic description: this is a very simple tool, it requires one jar file containing the project template, a property file and...

<span title='2006-11-19 03:34:57 +0000 UTC'>November 19, 2006</span>&nbsp;·&nbsp;len

MDA application approach

A simple Model driven architecture (MDA) approach Created: 04-Mar-2004 Document purpose: to create a simple application wireframe generator starting with an UML model. The approach: The tools: – UML based generator (the Andromda tool): it is a velocity based generator. Based on UML model elements including stereotypes and taggedvalues the result is generated. I had to write a number of templates for the mappings and the tapestry pages. – O/R...

<span title='2006-11-19 03:31:43 +0000 UTC'>November 19, 2006</span>&nbsp;·&nbsp;len

AndroMDA for Hibernate

Created: 09-Ian-2004 Document content: this is a simple, experimental cartridge for Andromda to generate hbm mappings for hibernate 2. It is far from complete but I find it quite usefull. Links: Hibernate(the DB persistence), AndroMDA, Nemesis IT(me) Model tagging: PrimaryKey: stereotype for an attribute tagging it a the primary key SQLType: taggedValue for an attribute generating an optional hibernate sql-type = … NotNull: taggedValue marking an attribute as not null seq: optional per table sequence name....

<span title='2006-11-19 03:27:34 +0000 UTC'>November 19, 2006</span>&nbsp;·&nbsp;len