In one of our current projects, we are using two-tiered web delivery approach:
- Static files (images, js, css, etc) are served by Apache Httpd, a simple web server
- Pages and dynamic component presentations are served by Tomcat
Our technology stack includes Web 8, DD4T 2, Spring MVC and Java 8.
One of the unwritten rules in MVC is that ViewModel classes should be kept very simple. They should basically represent data to be displayed in your views. Then, depending on the concrete implementation and the requirements, the whole mapping and connecting it all together part does not always stay simple.
The usage of ViewModels in DD4T 2.0 can actually be very simple, as the example code will try to show. Anything with a simple basis should be also extendable in an easy way and that is the main goal of the framework.
If you’re using SDL Tridion 2011 GA and you want to use DD4T, here’s how to do it!
One of the deployment scenarios with DD4T 2.0 is to use a REST service. There are many advantages attached to this approach, but you have to be careful about one thing: the number of TCP connections between the web server and the REST server. In this article I will discuss the cause and provide a solution. Continue reading
In the previous article in this series, we had an in-depth look into how the ViewModels mechanism works in DD4T 2 for Java. This part covers the practical aspects and the basics on how to create your own ViewModels as well as having a look at how Tridion field types map to Java Object types.