You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@isis.apache.org by bu...@apache.org on 2013/08/23 12:46:44 UTC

svn commit: r875843 - in /websites/staging/isis/trunk: cgi-bin/ content/ content/components/viewers/wicket/customizing-the-viewer.html

Author: buildbot
Date: Fri Aug 23 10:46:43 2013
New Revision: 875843

Log:
Staging update by buildbot for isis

Modified:
    websites/staging/isis/trunk/cgi-bin/   (props changed)
    websites/staging/isis/trunk/content/   (props changed)
    websites/staging/isis/trunk/content/components/viewers/wicket/customizing-the-viewer.html

Propchange: websites/staging/isis/trunk/cgi-bin/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Fri Aug 23 10:46:43 2013
@@ -1 +1 @@
-1516738
+1516819

Propchange: websites/staging/isis/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Fri Aug 23 10:46:43 2013
@@ -1 +1 @@
-1516738
+1516819

Modified: websites/staging/isis/trunk/content/components/viewers/wicket/customizing-the-viewer.html
==============================================================================
--- websites/staging/isis/trunk/content/components/viewers/wicket/customizing-the-viewer.html (original)
+++ websites/staging/isis/trunk/content/components/viewers/wicket/customizing-the-viewer.html Fri Aug 23 10:46:43 2013
@@ -423,9 +423,9 @@ public class MyComponentFactoryRegistrar
 
 <h3>Adding a Custom Object View (eg a Dashboard)</h3>
 
-<p>One further use case in particular is worth highlighting; the rendering of an entire entity.  Normally this is done using <code>EntityCombinedPanelFactory</code>, this being the first <code>ComponentFactory</code> for the <code>ComponentType.ENTITY</code> that is registered in Isis default <code>ComponentFactoryRegistrarDefault</code>.</p>
+<p>One further use case in particular is worth highlighting; the rendering of an entire entity.  Normally entities this is done using <code>EntityCombinedPanelFactory</code>, this being the first <code>ComponentFactory</code> for the <code>ComponentType.ENTITY</code> that is registered in Isis default <code>ComponentFactoryRegistrarDefault</code>.</p>
 
-<p>You could, though, register your own <code>ComponentFactory</code> for entities that is targeted at a particular class of entity - some sort of object representing a dashboard, for example.  It can use the <code>EntityModel</code> (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 <code>EntityCombinedPanelFactory</code> so that it is checked whether it <code>appliesTo(IModel)</code> prior to the default <code>EntityCombinedPanelFactory</code>:</p>
+<p>You could, though, register your own <code>ComponentFactory</code> for entities that is targeted at a particular class of entity - some sort of object representing a dashboard, for example.  It can use the <code>EntityModel</code> 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 <code>EntityCombinedPanelFactory</code> so that it is checked prior to the default <code>EntityCombinedPanelFactory</code>:</p>
 
 <pre><code>@Singleton
 public class MyComponentFactoryRegistrar extends ComponentFactoryRegistrarDefault {