You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by albartell <al...@gmail.com> on 2005/12/28 23:41:59 UTC

Tapestry 4.0 CRUD application

Hi everyone,
 
I am new to Tapestry (jumping over the fence from MyFaces) and am having
trouble with all the different ways to do the same thing.  I was initially
attracted to Tapestry because of it's mission statement "The simplest choice
should be the correct choice."  I think what I am struggling with right now
is half of the documentation at http://jakarta.apache.org/tapestry is for
3.0 and I am going down the 4.0 route (I like the idea of less xml config
files :-)
 
Anyway, what this post boils down to is my need to see just a basic Tapestry
4.0 CRUD (Create, Read, Update, Delete) application (doesn't even need to be
tied to a database, BTW I use Hibernate).  I downloaded the
tapestry-examples-4.0-rc-2.tar.gz file and attempted to install it only to
have it puke (is it available in .war form so I can load it into Tomcat
5.x?).
 
If anybody has a small CRUD app they could share that would be much
appreciated as I am hitting the "new technology frustration stage" being on
my 2nd full day of Tapestry and I only have a small mess of an application
running.
 
Thanks,
Aaron Bartell
http://mowyourlawn.com
 

Re: Tapestry 4.0 CRUD application

Posted by Ron Piterman <rp...@gmx.net>.
There is much buzz lately on Trails, which should be quite a fox on 
creating CRUDs - take a look...

http://today.java.net/pub/a/today/2005/06/23/trails.html
http://today.java.net/pub/a/today/2005/11/04/further-down-the-trail.html

Cheers,
Ron



albartell wrote:
> Hi everyone,
>  
> I am new to Tapestry (jumping over the fence from MyFaces) and am having
> trouble with all the different ways to do the same thing.  I was initially
> attracted to Tapestry because of it's mission statement "The simplest choice
> should be the correct choice."  I think what I am struggling with right now
> is half of the documentation at http://jakarta.apache.org/tapestry is for
> 3.0 and I am going down the 4.0 route (I like the idea of less xml config
> files :-)
>  
> Anyway, what this post boils down to is my need to see just a basic Tapestry
> 4.0 CRUD (Create, Read, Update, Delete) application (doesn't even need to be
> tied to a database, BTW I use Hibernate).  I downloaded the
> tapestry-examples-4.0-rc-2.tar.gz file and attempted to install it only to
> have it puke (is it available in .war form so I can load it into Tomcat
> 5.x?).
>  
> If anybody has a small CRUD app they could share that would be much
> appreciated as I am hitting the "new technology frustration stage" being on
> my 2nd full day of Tapestry and I only have a small mess of an application
> running.
>  
> Thanks,
> Aaron Bartell
> http://mowyourlawn.com
>  
> 


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


Re: Tapestry 4.0 CRUD application

Posted by John Coleman <jo...@ntlworld.com>.
I'm trying to develop a standard approach to CRUD that is made of highly
decoupled HiveMind services, but have not got much together yet, as there
are many technologies to consider. :(

If you use Hibernate and Eclipse, you may find that this
http://www.eclipse.org/jsr220orm/ is helpful for developing the persistence
layer.

Getting the form data into your page classes is very easy with Tapestry 4,
but I suggest you read up a little first, maybe start with these free
chapters http://www.agileskills2.org/EWDT/chapters1-4.pdf of Kent Tongs
book.

John

----- Original Message ----- 
From: "albartell" <al...@gmail.com>
To: <ta...@jakarta.apache.org>
Sent: Wednesday, December 28, 2005 10:41 PM
Subject: Tapestry 4.0 CRUD application


> Hi everyone,
>
> I am new to Tapestry (jumping over the fence from MyFaces) and am having
> trouble with all the different ways to do the same thing.  I was initially
> attracted to Tapestry because of it's mission statement "The simplest
choice
> should be the correct choice."  I think what I am struggling with right
now
> is half of the documentation at http://jakarta.apache.org/tapestry is for
> 3.0 and I am going down the 4.0 route (I like the idea of less xml config
> files :-)
>
> Anyway, what this post boils down to is my need to see just a basic
Tapestry
> 4.0 CRUD (Create, Read, Update, Delete) application (doesn't even need to
be
> tied to a database, BTW I use Hibernate).  I downloaded the
> tapestry-examples-4.0-rc-2.tar.gz file and attempted to install it only to
> have it puke (is it available in .war form so I can load it into Tomcat
> 5.x?).
>
> If anybody has a small CRUD app they could share that would be much
> appreciated as I am hitting the "new technology frustration stage" being
on
> my 2nd full day of Tapestry and I only have a small mess of an application
> running.
>
> Thanks,
> Aaron Bartell
> http://mowyourlawn.com
>
>



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


Re: Tapestry 4.0 CRUD application

Posted by Jesse Kuhnert <jk...@gmail.com>.
You can download a working war from http://tacos.sourceforge.net, but it
doesn't have any crud-ish features, at least not in the hibernate style that
you are talking about.

Give it a try. The hibernate part is easy, I use it as well and don't think
(?) you should have any problems. You just need a good place to initialize
your entity objects on each page load, like by adding a
PageBeginRenderListener interface to your page class and then doing a
Session.load (or Session.lock(object, LockMode.NONE)  on your entity.

On 12/28/05, albartell <al...@gmail.com> wrote:
>
> Hi everyone,
>
> I am new to Tapestry (jumping over the fence from MyFaces) and am having
> trouble with all the different ways to do the same thing.  I was initially
> attracted to Tapestry because of it's mission statement "The simplest
> choice
> should be the correct choice."  I think what I am struggling with right
> now
> is half of the documentation at http://jakarta.apache.org/tapestry is for
> 3.0 and I am going down the 4.0 route (I like the idea of less xml config
> files :-)
>
> Anyway, what this post boils down to is my need to see just a basic
> Tapestry
> 4.0 CRUD (Create, Read, Update, Delete) application (doesn't even need to
> be
> tied to a database, BTW I use Hibernate).  I downloaded the
> tapestry-examples-4.0-rc-2.tar.gz file and attempted to install it only to
> have it puke (is it available in .war form so I can load it into Tomcat
> 5.x?).
>
> If anybody has a small CRUD app they could share that would be much
> appreciated as I am hitting the "new technology frustration stage" being
> on
> my 2nd full day of Tapestry and I only have a small mess of an application
> running.
>
> Thanks,
> Aaron Bartell
> http://mowyourlawn.com
>
>
>

Re: Tapestry 4.0 CRUD application

Posted by Paul Cantrell <ca...@pobox.com>.
I think it's the docs that make it feel complex. They've accumulated  
a lot of cruft from previous versions, and don't quite make clear how  
very simple it is to actually use 4.0.

Having gone to Tapestry from a fair amount of Struts development, and  
prototyped with (and rejected) JSF for my current project, I can say  
that when used properly, Tapestry 4.0 + Java 1.5 takes much less code  
and *far* less configuration than either other option.

Seriously, take a look at the Imre source code I mentioned.... Not  
much there to do a heck of a lot!
http://sourceforge.net/projects/imre

Cheers,

Paul


On Dec 28, 2005, at 10:35 PM, Matt Welch wrote:

> On 12/28/05, Kalle Korhonen <ka...@gmail.com> wrote:
>>
>> (+Tapestry; though it still feels complex - must be the years with
>> Struts/JSF that have cluttered my brain :).
>>
>
> I don't think it's the Struts/JSF clutter that make Tapestry feel  
> complex. I
> never used either of those and I find it complex as well.

_________________________________________________________________
Piano music podcast: http://inthehands.com
Other interesting stuff: http://innig.net



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


Re: Tapestry 4.0 CRUD application

Posted by Matt Welch <mw...@ptc.com>.
On 12/28/05, Kalle Korhonen <ka...@gmail.com> wrote:
>
> (+Tapestry; though it still feels complex - must be the years with
> Struts/JSF that have cluttered my brain :).
>

I don't think it's the Struts/JSF clutter that make Tapestry feel complex. I
never used either of those and I find it complex as well.

Re: Tapestry 4.0 CRUD application

Posted by Kalle Korhonen <ka...@gmail.com>.
Aaron,

I'm sort of on the same path as you. I evaluated a lot of starter
apps, finally settling with Trails. If you can deal with the
latest-not-always-working-have-to-fix-yourself style of development
(and that security framework isn't in place yet - but should be
anytime now they say), must say I've been pretty impressed with Trails
(+Tapestry; though it still feels complex - must be the years with
Struts/JSF that have cluttered my brain :). Also wrote some notes on
my experience of JSF/Tapestry
(http://www.thoughtsabout.net/blog/archives/000052.html) with links to
comparison articles.  Plus got a Maven POM for my Trails based
application running if interested.

Kalle

On 12/28/05, albartell <al...@gmail.com> wrote:
> Hi everyone,
>
> I am new to Tapestry (jumping over the fence from MyFaces) and am having
> trouble with all the different ways to do the same thing.  I was initially
> attracted to Tapestry because of it's mission statement "The simplest choice
> should be the correct choice."  I think what I am struggling with right now
> is half of the documentation at http://jakarta.apache.org/tapestry is for
> 3.0 and I am going down the 4.0 route (I like the idea of less xml config
> files :-)
>
> Anyway, what this post boils down to is my need to see just a basic Tapestry
> 4.0 CRUD (Create, Read, Update, Delete) application (doesn't even need to be
> tied to a database, BTW I use Hibernate).  I downloaded the
> tapestry-examples-4.0-rc-2.tar.gz file and attempted to install it only to
> have it puke (is it available in .war form so I can load it into Tomcat
> 5.x?).
>
> If anybody has a small CRUD app they could share that would be much
> appreciated as I am hitting the "new technology frustration stage" being on
> my 2nd full day of Tapestry and I only have a small mess of an application
> running.
>
> Thanks,
> Aaron Bartell
> http://mowyourlawn.com
>
>
>

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


Re: Tapestry 4.0 CRUD application

Posted by Paul Cantrell <ca...@pobox.com>.
You're welcome to take a look at my latest little side project, which  
does some basic database to and fro stuff using Hibernate. It's  
Tapestry 4.0, and I've tried to use new features to be as concise as  
possible. WARNING: I make no guarantees *whatsoever* that I'm using  
best practices, so don't accept anything you see with blind faith here.

     http://cvs.sourceforge.net/viewcvs.py/imre/imre/

Some helper classes I use:

     http://cvs.sourceforge.net/viewcvs.py/innig-util/innig-framework/ 
src/

Cheers,

Paul

On Dec 28, 2005, at 3:41 PM, albartell wrote:

> Hi everyone,
>
> I am new to Tapestry (jumping over the fence from MyFaces) and am  
> having
> trouble with all the different ways to do the same thing.  I was  
> initially
> attracted to Tapestry because of it's mission statement "The  
> simplest choice
> should be the correct choice."  I think what I am struggling with  
> right now
> is half of the documentation at http://jakarta.apache.org/tapestry  
> is for
> 3.0 and I am going down the 4.0 route (I like the idea of less xml  
> config
> files :-)
>
> Anyway, what this post boils down to is my need to see just a basic  
> Tapestry
> 4.0 CRUD (Create, Read, Update, Delete) application (doesn't even  
> need to be
> tied to a database, BTW I use Hibernate).  I downloaded the
> tapestry-examples-4.0-rc-2.tar.gz file and attempted to install it  
> only to
> have it puke (is it available in .war form so I can load it into  
> Tomcat
> 5.x?).
>
> If anybody has a small CRUD app they could share that would be much
> appreciated as I am hitting the "new technology frustration stage"  
> being on
> my 2nd full day of Tapestry and I only have a small mess of an  
> application
> running.
>
> Thanks,
> Aaron Bartell
> http://mowyourlawn.com
>

_________________________________________________________________
Piano music podcast: http://inthehands.com
Other interesting stuff: http://innig.net



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


Re: Tapestry 4.0 CRUD application

Posted by Shing Hing Man <ma...@yahoo.com>.
I have a simple CRUD application written in Tapestry 4
+ Hibernate + Hivemind. If you are interested, you can
try it out online and download the source via 

http://137.132.68.134/tapestry4Demo/app

Shing

--- albartell <al...@gmail.com> wrote:

> Hi everyone,
>  
> I am new to Tapestry (jumping over the fence from
> MyFaces) and am having
> trouble with all the different ways to do the same
> thing.  I was initially
> attracted to Tapestry because of it's mission
> statement "The simplest choice
> should be the correct choice."  I think what I am
> struggling with right now
> is half of the documentation at
> http://jakarta.apache.org/tapestry is for
> 3.0 and I am going down the 4.0 route (I like the
> idea of less xml config
> files :-)
>  
> Anyway, what this post boils down to is my need to
> see just a basic Tapestry
> 4.0 CRUD (Create, Read, Update, Delete) application
> (doesn't even need to be
> tied to a database, BTW I use Hibernate).  I
> downloaded the
> tapestry-examples-4.0-rc-2.tar.gz file and attempted
> to install it only to
> have it puke (is it available in .war form so I can
> load it into Tomcat
> 5.x?).
>  
> If anybody has a small CRUD app they could share
> that would be much
> appreciated as I am hitting the "new technology
> frustration stage" being on
> my 2nd full day of Tapestry and I only have a small
> mess of an application
> running.
>  
> Thanks,
> Aaron Bartell
> http://mowyourlawn.com
>  
> 


Home page :
  http://uk.geocities.com/matmsh/index.html


		
___________________________________________________________ 
To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. http://uk.security.yahoo.com

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