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 12:46:39 UTC
svn commit: r1516819 -
/isis/site/trunk/content/components/viewers/wicket/customizing-the-viewer.md
Author: danhaywood
Date: Fri Aug 23 10:46:38 2013
New Revision: 1516819
URL: http://svn.apache.org/r1516819
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=1516819&r1=1516818&r2=1516819&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 10:46:38 2013
@@ -159,9 +159,9 @@ Wicket itself has lots of components ava
### Adding a Custom Object View (eg a Dashboard)
-One further use case 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`.
+One further use case in particular is worth highlighting; the rendering of an entire entity. Normally entities this is done using `EntityCombinedPanelFactory`, this being the first `ComponentFactory` for the `ComponentType.ENTITY` that is registered in Isis default `ComponentFactoryRegistrarDefault`.
-You could, though, register your own `ComponentFactory` for entities that is targeted at a particular class of entity - some sort of object representing a dashboard, for example. It can use the `EntityModel` (provided to it) to determine the class of the entity to inspect whether it is of the appropriate type. It should also be registered before the `EntityCombinedPanelFactory` so that it is checked whether it `appliesTo(IModel)` prior to the default `EntityCombinedPanelFactory`:
+You could, though, register your own `ComponentFactory` for entities that is targeted at a particular class of entity - some sort of object representing a dashboard, for example. It can use the `EntityModel` provided to it to determine the class of the entity, checking if it is of the appropriate type. Your custom factory should also be registered before the `EntityCombinedPanelFactory` so that it is checked prior to the default `EntityCombinedPanelFactory`:
@Singleton
public class MyComponentFactoryRegistrar extends ComponentFactoryRegistrarDefault {