Issue Details (XML | Word | Printable)

Key: TAP5-51
Type: Bug Bug
Status: Closed Closed
Resolution: Invalid
Priority: Major Major
Assignee: Howard M. Lewis Ship
Reporter: Fritz Pröbstle
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Tapestry 5

"Parents before Child" concept for Component Rendering does not allow different rendering in subclasses

Created: 28/Mar/08 12:11 PM   Updated: 30/Oct/08 09:45 PM
Return to search
Component/s: None
Affects Version/s: None
Fix Version/s: None

Time Tracking:
Not Specified

Resolution Date: 30/Oct/08 09:45 PM


 Description  « Hide
I subclassed GridPager ( public class MyGridPager extends GridPager) to implement another pager visualisation.
After creating a MyGrid (public class MyGrid extends Grid) which uses MyGridPager and copying Grid,tml to MyGrig.tml ist was ready to test.

Start.tml:
        <t:mygrid source="tl" row="treffer" rowsPerPage="5">
               <t:parameter name="regnrcell">
                 <t:pagelink page="marke2" > ${treffer.regnr}</t:pagelink>
            </t:parameter>
        </t:mygrid>

It runs fine - but I got the "old" ,default Visualiation *AND* the new one. It is a result of the "Parents before Child" concept .
First the Parent creates its visualisatrion the my Child createy its new visualisation.

Subclasses can not decide of they want to call the implemetation of their parent or not.

Why is this implemented like this?
Why call parent implemtation at all, the child could do this explicit by calling super.XXX.( I know Annotations may make this more complex)


Can you help ?






 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
No work has yet been logged on this issue.