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]
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:
>>>>>>>
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
>>>>>>>
>>>>>>
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
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]
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
>>>
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
t;>>>>>>
>>>>>>> -Filip
>>>>>>>
>>>>>>> On 2008-05-23 00:45, zack1403 wrote:
>>>>>>>> No. Not using any persist. I really dont have anythin
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
>>> 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]
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
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
;> 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
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.
>>>>
>>>>
>>>
>>
>
&
>>
>>
>>
>>
>> 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.
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
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:/
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
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:
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/
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:
>>
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
>
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
23 matches
Mail list logo