> Hey guys thanks a lot for you help so far.  Josh, I have tried adding
> @Persist("flash") to many different parts with no apparent luck.

Your original problem was that you are initializing the list when you
declare it. Did you fix that? I provided a link to updated code before
which had a compile error, I've stuck this into a test project and it
works fine, here are the files (the packages are different, and I
changed Layout2 to Layout before I decided to upload the other
files...)

Layout.java: http://pastebin.com/m3ae085a2
Index.java: http://pastebin.com/m116c1dd1
Index.tml: http://pastebin.com/m4e494928
News.java: http://pastebin.com/m265a4f
News.tml: http://pastebin.com/mc71972f

Josh

On Fri, May 23, 2008 at 8:20 AM, zack1403 <[EMAIL PROTECTED]> wrote:
>
> Hey guys thanks a lot for you help so far.  Josh, I have tried adding
> @Persist("flash") to many different parts with no apparent luck.  Filip, is
> there a way I can utilize my list of messages from my template component
> when the list is an attribute of the page?  I obviously get the Could not
> convert 'messages' into a component parameter binding because the message
> display is part of the component tml.  I could see moving my messages into
> my generic page but I get that error. How do you see that working without
> having a list attribute in my component?
>
> Thanks again,
> Zack
>
> Filip S. Adamsen-2 wrote:
>>
>> 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 you can
>> easily pass to your layout. Maybe that will work...
>>
>> -Filip
>>
>> zack1403 skrev:
>>> 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.
>>>
>>> Zack
>>>
>>> Filip S. Adamsen-2 wrote:
>>>> 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 problem is.
>>>> Hopefully someone else will be able to help you, then.
>>>>
>>>> -Filip
>>>>
>>>> On 2008-05-23 01:20, zack1403 wrote:
>>>>> Filip,
>>>>>
>>>>> One of the first things I added was @Persist("flash") to my pages with
>>>>> no
>>>>> luck.  Still the same behavior.  Even with the pages pooled should they
>>>>> share attribute values across sessions?
>>>>>
>>>>>
>>>>> 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]
>>
>>
>>
>
> --
> 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]
>
>



-- 
--
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]

Reply via email to