Re: Layout Attributes Shared

2008-05-23 Thread zack1403
http://www.nabble.com/Layout-Attributes-Shared-tp17414894p17442484.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]

Re: Layout Attributes Shared

2008-05-23 Thread Josh Canfield
gt; >>>>>>> Filip S. Adamsen-2 wrote: >>>>>>>> Working as intended. Tapestry uses a page pool which means that you >>>>>>>> have >>>>>>>> to use some sort of persistence to make this work: >>>>>>>

Re: Layout Attributes Shared

2008-05-23 Thread zack1403
gt;>> Filip S. Adamsen-2 wrote: >>>>>>> Working as intended. Tapestry uses a page pool which means that you >>>>>>> have >>>>>>> to use some sort of persistence to make this work: >>>>>>> http://tapestry.apache.org/tapestry5/tapestry-core/guide/persist.html >>>>>>> >>>>>>

Re: Layout Attributes Shared

2008-05-23 Thread zack1403
gt;>> Filip S. Adamsen-2 wrote: >>>>>>> Working as intended. Tapestry uses a page pool which means that you >>>>>>> have >>>>>>> to use some sort of persistence to make this work: >>>>>>> http://tapestry.apache.org/ta

Re: Layout Attributes Shared

2008-05-23 Thread zack1403
gt; >>>>>>>> Filip S. Adamsen-2 wrote: >>>>>>>>> Working as intended. Tapestry uses a page pool which means that >>>>>>>>> you >>>>>>>>> have >>>>>>>>> to use some sort of persistence to make this work: >>>>>>>>> http://tapestry.apache.org/tapestry5/tapestry-core/guide/persist.html >>>>>>>>> >>>>>>>>> -Filip >>>>>>>>> >>>>>>>>> On 2008-05-23 00:45, zack1403 wrote: >>>>>>>>>> No. Not using any persist. I really dont have anything else >>>>>>>>>> besides >>>>>>>>>> a >>>>>>>>>> title >>>>>>>>>> and this list of messages. When I move from page to page I might >>>>>>>>>> inject >>>>>>>>>> my >>>>>>>>>> layout and add a message to this list for display. They get >>>>>>>>>> persisted >>>>>>>>>> without any sort of persist. >>>>>>>>>> >>>>>>>>>> >>>>>>> - >>>>>>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>>>>>> For additional commands, e-mail: [EMAIL PROTECTED] >>>>>>> >>>>>>> >>>>>>> >>>>> - >>>>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>>>> For additional commands, e-mail: [EMAIL PROTECTED] >>>>> >>>>> >>>>> >>> - >>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>> For additional commands, e-mail: [EMAIL PROTECTED] >>> >>> >>> >> > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Layout-Attributes-Shared-tp17414894p17441345.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]

Re: Layout Attributes Shared

2008-05-23 Thread Josh Canfield
try.apache.org/tapestry5/tapestry-core/guide/persist.html >>>>>> >>>>>> -Filip >>>>>> >>>>>> On 2008-05-23 00:45, zack1403 wrote: >>>>>>> No. Not using any persist. I really dont have anything else besides >>>

Re: Layout Attributes Shared

2008-05-23 Thread Filip S. Adamsen
I think I just misunderstood your question. By now I really think you should consider doing as Thiago suggested and move the whole thing into an Application State Object. It'll take a bit of work - you'll have to keep track of which messages to display on which pages etc. - but it will probabl

Re: Layout Attributes Shared

2008-05-23 Thread zack1403
t;>>>>>> >>>>>>> -Filip >>>>>>> >>>>>>> On 2008-05-23 00:45, zack1403 wrote: >>>>>>>> No. Not using any persist. I really dont have anythin

Re: Layout Attributes Shared

2008-05-23 Thread Filip S. Adamsen
Hi again, You just need to pass it from your page to your layout. Page class: @Property private MessageHolder messages; Page template: ... Layout class: @Property @Parameter private MessageHolder messages; Layout template: ... Etc. etc. -Filip On 2008-05-23 17:20, zack1403 wr

Re: Layout Attributes Shared

2008-05-23 Thread zack1403
>>> inject >>>>>> my >>>>>> layout and add a message to this list for display. They get >>>>>> persisted >>>>>> without any sort of persist. >>>>>> >>>>>> >>> - >>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>> For additional commands, e-mail: [EMAIL PROTECTED] >>> >>> >>> >> > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Layout-Attributes-Shared-tp17414894p17427911.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]

Re: Layout Attributes Shared

2008-05-23 Thread Thiago HP
On 5/22/08, zack1403 <[EMAIL PROTECTED]> wrote: > Yea I've tried multiple different combinations of @Persist to get something > to work on my pages and component with no luck. Thanks anyways for your > help Filip. Why not @ApplicationState, as the information does not belong to a single page

Re: Layout Attributes Shared

2008-05-23 Thread Filip S. Adamsen
No luck? That sucks. =/ I thought occured to me just before I fell asleep last night, though. Perhaps you should store the messages directly in your pages instead and pass them on to your layout? That's how I would do it, anyhow. You could wrap the add functions in a MessageHolder class that

Re: Layout Attributes Shared

2008-05-22 Thread Josh Canfield
;> 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: >>> >>> >>> >>> >>> What you want is >>> >>> >&g

Re: Layout Attributes Shared

2008-05-22 Thread zack1403
lse besides a >>>> title >>>> and this list of messages. When I move from page to page I might >>>> inject >>>> my >>>> layout and add a message to this list for display. They get persisted >>>> without any sort of persist. >>>> >>>> >>> >> > &

Re: Layout Attributes Shared

2008-05-22 Thread Josh Canfield
>> >> >> >> >> 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.

Re: Layout Attributes Shared

2008-05-22 Thread Filip S. Adamsen
You say you added @Persist("flash") to your pages, but the information you're storing doesn't go into the page, but into the component. I think you'll have to put @Persist("flash") on your list of messages in your Layout component. If that doesn't solve it, I'm afraid I don't know what the pro

Re: Layout Attributes Shared

2008-05-22 Thread zack1403
a >> title >> and this list of messages. When I move from page to page I might inject >> my >> layout and add a message to this list for display. They get persisted >> without any sort of persist. >> >> > > -- View this message in context: http:/

Re: Layout Attributes Shared

2008-05-22 Thread zack1403
e this: > > > > > What you want is > > > > > 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-tp17414894p17415

Re: Layout Attributes Shared

2008-05-22 Thread Filip S. Adamsen
in context: http://www.nabble.com/Layout-Attributes-Shared-tp17414894p17414894.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

Re: Layout Attributes Shared

2008-05-22 Thread Josh Canfield
t; end the session. Any ideas why an attribute of the layout class would be > acting like this? Ideally I just want them to flash and then go away but > cant seem to get this to work. > > Thanks in advance, > Zack > -- > View this message in context: > http://www.nabble.com/

Re: Layout Attributes Shared

2008-05-22 Thread zack1403
uld be >> acting like this? Ideally I just want them to flash and then go away but >> cant seem to get this to work. >> >> Thanks in advance, >> Zack >> -- >> View this message in context: >>

Re: Layout Attributes Shared

2008-05-22 Thread Daniel Jue
o flash and then go away but > cant seem to get this to work. > > Thanks in advance, > Zack > -- > View this message in context: > http://www.nabble.com/Layout-Attributes-Shared-tp17414894p17414894.html >

Layout Attributes Shared

2008-05-22 Thread zack1403
would be acting like this? Ideally I just want them to flash and then go away but cant seem to get this to work. Thanks in advance, Zack -- View this message in context: http://www.nabble.com/Layout-Attributes-Shared-tp17414894p17414894.html Sent from the Tapestry - User mailing list archive at