This project is read-only.

Views can also be created using spring.net. ControllerManager contains a dictionary of views. The listing 1 below shows how to create a view using Spring.net statements.

<?xml version="1.0" encoding="utf-8" ?>
<objects xmlns="http://www.springframework.net">

  <import resource="spring-Koossery.MVCwin.Tuto_SESSIONS.xml"/>

  <object id="LoginView" type="Koossery.MVCwin.Tuto.views.form.LoginView">
    <property name="ViewName">
      <value>Connexion</value>
    </property>
    <property name="Session">
      <ref object="Session"/>
    </property>
  </object>
</objects>


Notes that we include de xml spring file SESSIONS. The Session object is injected in all views. Using this technique we can initialize all other necessary properties.

Last edited Jun 19, 2009 at 6:00 PM by mohamadou, version 5

Comments

No comments yet.