re-bind - the faces of your domain objects
re-bind is the face of your domain object and every object that implements the
- Data binding
- Generate your pages from your domain source code
Each data type has its favorable control. Think of a domain object Person. A person has a name, birthday, height, etc. Repectively, the first and last name would be entered in a text box, the birthday in a date time picker, etc.
Data is loaded from the domain objects with re-store. The loaded data is displayed in the controls. Once you have changed the data and clicked on save, the data is commited to the database.
All this implementation details
- mapping from domain objects and their properties to user controls for display
- mapping from the controls' user input to the corresponding updates of properties
will be done by re-bind.
- date -> date picker
- number -> text entry field with a check if the entered string can be parsed as a number
- boolean -> check box
- enumeration -> drop box
You are not bound to this controls. Depending on your configuration, re-bind could display a
Boolean property as radio buttons, drop box or checkbox, for example.
re-bind queries the implementation of the
IBusinessObject interface of the object to be displayed. Depending on the class attributes and the markup configuration in your markup files (ascx and aspx), the content of the web page will be rendered.
So re-bind is not restricted to domain objects that will be persisted with re-store. Every object that implements the
IBusinessObject interface are eligible for rendering in a browser by re-bind. Good examples for non domain objects are "search objects", which will never be stored in a database, but must be displayed.