You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@isis.apache.org by da...@apache.org on 2013/08/23 10:13:37 UTC
svn commit: r1516734 -
/isis/site/trunk/content/components/viewers/wicket/customizing-the-viewer.md
Author: danhaywood
Date: Fri Aug 23 08:13:37 2013
New Revision: 1516734
URL: http://svn.apache.org/r1516734
Log:
customizing the viewer page
Modified:
isis/site/trunk/content/components/viewers/wicket/customizing-the-viewer.md
Modified: isis/site/trunk/content/components/viewers/wicket/customizing-the-viewer.md
URL: http://svn.apache.org/viewvc/isis/site/trunk/content/components/viewers/wicket/customizing-the-viewer.md?rev=1516734&r1=1516733&r2=1516734&view=diff
==============================================================================
--- isis/site/trunk/content/components/viewers/wicket/customizing-the-viewer.md (original)
+++ isis/site/trunk/content/components/viewers/wicket/customizing-the-viewer.md Fri Aug 23 08:13:37 2013
@@ -81,7 +81,7 @@ In some cases there are several factorie
Thus, the `BooleanPanelFactory` checks that the `ScalarModel` holds a boolean, while the `JodaLocalDatePanelFactory` checks to see if it holds `org.joda.time.LocalDate`.
-There will typically be only one `ComponentFactory` capable of rendering a particular `ComponentType`/`ScalarModel` combination; at any rate, the framework stops as soon as one is found. (*There is one exception to this design, discussed in the next section*).
+There will typically be only one `ComponentFactory` capable of rendering a particular `ComponentType`/`ScalarModel` combination; at any rate, the framework stops as soon as one is found. (*There is one exception to this design, discussed below in the next section "Additional Views of Collections"*).
##### How to replace a component
This design (the [chain of responsibility](http://en.wikipedia.org/wiki/Chain-of-responsibility_pattern) design pattern) makes it quite straightforward to change the rendering of any element of the page. For example, you might switch out Isis' sliding bookmark panel and replace it with one that presents the bookmarks in some different fashion.
@@ -136,7 +136,7 @@ Finally (as for other customizations), y
bind(ComponentFactoryRegistrar.class)
.to(MyComponentFactoryRegistrar.class);
-#### Replacing an Object View (eg a Dashboard)
+##### Replacing an Object View (eg a Dashboard)
One replacement in particular is worth highlighting; the rendering of an entire entity. Normally this is done using `EntityCombinedPanelFactory`, this being the first `ComponentFactory` for the `ComponentType.ENTITY` that is registered in Isis default `ComponentFactoryRegistrarDefault`.