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 2015/01/04 11:11:20 UTC

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

Author: buildbot
Date: Sun Jan  4 10:11:19 2015
New Revision: 934991

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 Sun Jan  4 10:11:19 2015
@@ -1 +1 @@
-1649185
+1649307

Propchange: websites/staging/isis/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Sun Jan  4 10:11:19 2015
@@ -1 +1 @@
-1649185
+1649307

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 Sun Jan  4 10:11:19 2015
@@ -497,12 +497,18 @@ public class MyComponentFactoryRegistrar
     @Override
     public void addComponentFactories(ComponentFactoryList componentFactories) {
         super.addComponentFactories(componentFactories);
-        componentFactories.replace(new MyBookmarkedPagesPanelFactory());
+        componentFactories.add(new MyBookmarkedPagesPanelFactory());
     }
 }
 </code></pre>
 
-<p>This will take the place of Isis' default implementation.</p>
+<p>This will result in the new component being used instead of (that is, discovered prior to) Isis' default implementation.</p>
+
+<p>></p>
+
+<blockquote>
+  <p>Previously this page suggested using "replace" rather than "add"; however this has unclear semantics for some component types; see <a href="https://issues.apache.org/jira/browse/ISIS-996">ISIS-996</a>.</p>
+</blockquote>
 
 <p>Finally (as for other customizations), you need to adjust the Guice bindings in your custom subclass of <code>IsisWicketApplication</code>:</p>