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.
Continue reading
Category Archives: Tridion
DD4T 2.0 is released
Yesterday, the long-awaited version 2 of DD4T was released after a 3 month beta period. Compared to the beta version, the release contains some bug fixes as well as various small enhancements.
If you’re interested, check out the DD4T website.
Continue reading
ViewModels in DD4T – Number and date fields
This post is part of a series. In the previous article I explained how you can create your own ViewModels in a few minutes.
In this post we will look at number and date fields. We will also learn how to model multiple value fields and metadata fields.
How to create your own ViewModels in DD4T 2.0
This post is part of a series. In the previous article I explained what ViewModels are and why they are useful. I imagine you are all excited about this, so let’s see how you can create your own ViewModels in a few minutes!
ViewModels in DD4T 2.0
One of the most useful novelties in DD4T 2.0 are the ViewModels. A ViewModel is a simple class, normally consisting only of properties, which is handed over to a view for rendering.
In this small series – published daily until Christmas – I will explain what view models are, how you create them and how you can use them.