20060217 Friday February 17, 2006

Redirect-after-Post in Tapestry 4.0 I just noticed a good Tapestry nugget on Howard's blog. With Tapestry 3.0, one of the things I complained about was the need to throw an exception when redirecting. With 4.0, it looks like you can plug-in this flash component and get exactly the flash message functionality I try to put in all the web frameworks that AppFuse supports. Now I just need to figure out how to do @InjectObject("engine-service:page") without using annotations.

I'm hoping to upgrade AppFuse to WebWork 2.2 and Tapestry 4.0 in the next few days. Posted in Java at Feb 17 2006, 12:44:14 PM MST 8 Comments

Comments:

<inject property="foo" object="engine-service:page"/> (using the 4.0 DTD)

Posted by Howard M. Lewis Ship on February 17, 2006 at 03:31 PM MST #

Why did you killed my posting? Dicided to be like Chinese communists??

Posted by Jason on February 17, 2006 at 03:58 PM MST #

Because it was rude and had nothing to do with this post. Crude comments are often deleted - especially when they come from an anonymous poster. "Jason" is as good as anonymous to me. If you provide a link to your blog in the URL field, I'll be more than happy to leave it.

Posted by Matt Raible on February 17, 2006 at 04:11 PM MST #

Howard - FYI: I had to remove the following from tapestry-flash-0.1.1.pom for this to work.

  <parent>
    <artifactId>common</artifactId>
    <groupId>com.javaforge.tapestry</groupId>
    <version>0.1.1</version>
  </parent>

Posted by Matt Raible on February 17, 2006 at 10:24 PM MST #

Zillow.com uses Tapestry. impressive

Posted by Tom on February 18, 2006 at 10:09 AM MST #

It looks like good functionality. It's one of the first things you want when working with the redirect-after-post pattern, and frankly I am surprised it is presented as both an extension and a new thing. Wicket had the concept of feedback messages from day one, though it took a lot of iterations to get it right.
In general the move to JDK 5 made Tapestry a lot nicer to work with indeed. Congrats HLS.

Posted by Eelco Hillenius on February 22, 2006 at 11:24 AM MST #

Struts has similar functionality for messages starting from version 1.2.6 (Dec 2004). It does not have a specific scope, it just removes messages from the session after they have been accessed.

Posted by Michael Jouravlev on March 24, 2006 at 12:27 PM MST #

Hi , What about the situation of double submit ? Is there something in Tapestry which is similar to STRUTS in terms of keeping a token ?

Posted by bsd_lover on December 19, 2006 at 02:41 AM MST #

Post a Comment:
  • HTML Syntax: Allowed
Click me to subscribe
Matt Raible is a Web Architecture Consultant specializing in open source frameworks.
« May 2012
SunMonTueWedThuFriSat
  
1
2
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
23
24
25
26
27
28
29
30
31
  
       
Today

Recent Entries

Tag Cloud