[ 
https://issues.apache.org/jira/browse/TAPESTRY-2014?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Howard M. Lewis Ship closed TAPESTRY-2014.
------------------------------------------

       Resolution: Fixed
    Fix Version/s: 5.0.8

> ComponentResources should expose the page's lifecycle to interested listeners
> -----------------------------------------------------------------------------
>
>                 Key: TAPESTRY-2014
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-2014
>             Project: Tapestry
>          Issue Type: Improvement
>    Affects Versions: 5.0.7
>            Reporter: Davor Hrg
>            Assignee: Howard M. Lewis Ship
>             Fix For: 5.0.8
>
>
> binding should be aware of at least pageAtached and pageDetached events
> to initialize, or clear contents.
> I've made a binding prefix for zebra effect
>       <t:grid source="vessels" rowsPerPage="15" t:id="results" 
> rowClass="cycle:line1,line2">
>       </t:grid>
> the problem was that for every reload the first line would alternate. This is 
> because binding is
> attached to a page instance and is not aware of page's lifecycle.
> I've made a workarround by having a static WeakHashmap tracking pages with 
> this binding,
> and by adding:
> ${cycle:reset}
> at the begining of each page that uses this binding.
> some other bindings may also need to clean resources...

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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

Reply via email to