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:11:48 UTC
svn commit: r1516733 -
/isis/site/trunk/content/components/viewers/wicket/customizing-the-viewer.md
Author: danhaywood
Date: Fri Aug 23 08:11:47 2013
New Revision: 1516733
URL: http://svn.apache.org/r1516733
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=1516733&r1=1516732&r2=1516733&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:11:47 2013
@@ -73,9 +73,7 @@ from fine-grained widgets for property/p
##### How the Wicket viewer selects components
Components are created using Isis' `ComponentFactory` interface, which are registered in turn through the `ComponentFactoryRegistrar` interface. Every
-component is categorizes by type (the `ComponentType` enum). Isis uses this to determine which `ComponentFactory` to use. For example, the `ComponentType.BOOKMARKED_PAGES` is used to locate the `ComponentFactory` that will build the bookmarked pages panel.
-
-In many cases, though, additional information is needed. For example, is the type to render a scalar property or parameter. But there are many different `ComponentFactory` implementations; one for a string, one for a boolean, one for a date etc.
+component is categorizes by type (the `ComponentType` enum), and Isis uses this to determine which `ComponentFactory` to use. For example, the `ComponentType.BOOKMARKED_PAGES` is used to locate the `ComponentFactory` that will build the bookmarked pages panel.
Each factory is also handed a model (an implementation of `org.apache.wicket.IModel`) appropriate to its `ComponentType`; this holds the data to be rendered. For example, `ComponentType.BOOKMARKED_PAGES` is given a `BookmarkedPagesModel`, while `ComponentType.SCALAR_NAME_AND_VALUE` factories are provided a model of type of type `ScalarModel` .