Dear Wiki user, You have subscribed to a wiki page or wiki category on "Tapestry Wiki" for change notification.
The following page has been changed by SergeyDidenko: http://wiki.apache.org/tapestry/Tapestry5HowToVisualizeComponentHierarchy ------------------------------------------------------------------------------ See [http://www.mail-archive.com/[email protected]/msg36561.html "Where did all the components come from?"] and [http://issues.apache.org/jira/browse/TAP5-742 "TAP5-742: Add optional component tracing comments to rendered output"] for discussion. - Here is a temporary hackish solution that can help you until TAP-742 is implemented. It automatically puts ShowComponentName mixin into every component from "myapp.components" package. + Here is a temporary hackish solution that can help you until TAP-742 is implemented. It automatically puts !ShowComponentName mixin into every component from "myapp.components" package. - It does not look well around floated divs, but for that case you can inspect elements in FireBug. + It does not look well around floated divs, but for that case you can inspect elements in !FireBug. So, let's create the mixin that shows parent component name: @@ -59, +59 @@ Note comments in getComponentName() function. - Now let's create a ShowComponentWorker that puts this mixin into every component of your choice: + Now let's create a !ShowComponentWorker that puts this mixin into every component of your choice: {{{ package myapp.services; @@ -96, +96 @@ Note comments in transform(). - Now let's activate this worker in AppModule.java: + Now let's activate this worker in !AppModule.java: {{{ ... --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
