Em Fri, 07 Nov 2008 16:38:17 -0300, Keith Bottner <[EMAIL PROTECTED]> escreveu:

Here is the Notification class.

Tapestry 5 uses redirect-after-post by default, so the request that shows a page is not the same request that submitted a form or triggered an action. You should persist your fields value between requests. The flash persistence is perfect for this, as the fields values are cleared from the user session after the second request:

public class Notification {

    @Persist(PersistenceConstants.FLASH)
    @Property
    private String title;

    @Persist(PersistenceConstants.FLASH)        
    @Property
    private String notification;

    ...

}       

--
Thiago H. de Paula Figueiredo
Independent Java consultant, developer, and instructor
http://www.arsmachina.com.br/thiago

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to