Oh, and since you are setting the messages in the action phase and using them in your render phase you'll need to pass them through probably using @Persist("flash") on your arraylist...
http://pastebin.com/m65d79b54 (nice tool...) Josh On Thu, May 22, 2008 at 4:38 PM, Josh Canfield <[EMAIL PROTECTED]> wrote: > Ok, here is your problem: > > private List<Message> messages = new ArrayList<Message>(); > > This is how you set up a default value for this page instance. When > the page goes in or out of the page cache the values are reset to > their initial state. > > You need to create the list of messages during the request. One method > would be to create the List<Message> on demand. Modify the > addMessage/addAllMessages methods to create the list if it's null, and > expect null when you are rendering it. > > On a side note, the List interface has an addAll method, so you don't > have to reimplement it... > > > Josh > > > > On Thu, May 22, 2008 at 4:17 PM, zack1403 <[EMAIL PROTECTED]> wrote: >> >> Hi Josh, >> >> Always cautious not to include code that would just confuse things :P >> >> My Layout component is here: http://pastebin.com/m4fd5d6a >> >> In my tml I am using the same line in all places (sans actual literal): <div >> t:type="layout" t:title="literal:A title"> >> >> A page of mine might look like this: http://pastebin.com/m415466a >> Each of my pages extends a base page which has layout as a component. >> >> Thanks for your help. >> >> Zack >> >> I dont have this List<Message> >> >> joshcanfield wrote: >>> >>> Hey Zack, >>> >>> It's generally a good idea to post some code for us to look at when >>> asking a question. >>> >>> You might be doing something like this: >>> >>> <html t:type="layout" t:yourProperty="${myprop}"> >>> </html> >>> >>> What you want is >>> >>> <html t:type="layout" t:yourProperty="myprop"> >>> </html> >>> >>> If that's not the case then show us some code from your template and java. >>> >>> Josh >>> >>> >> >> -- >> View this message in context: >> http://www.nabble.com/Layout-Attributes-Shared-tp17414894p17415541.html >> Sent from the Tapestry - User mailing list archive at Nabble.com. >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > > > -- > -- > TheDailyTube.com. Sign up and get the best new videos on the internet > delivered fresh to your inbox. > -- -- TheDailyTube.com. Sign up and get the best new videos on the internet delivered fresh to your inbox. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]