Changes

Jump to: navigation, search

View architecture and control flow

24 bytes added, 22:19, 6 February 2008
no edit summary
Part of [Umlaut Technical Overview]
=Accessing response data=
So the main interesting thing your View code wants to do is access data from ServiceResponses. There are some convenience methods to deal with the somewhat complicated data structures easily. There are also some abstractions in place to try to preserve encapsulation and loose coupling between views, data, and the Service adaptor code responsible for creating the data and dealing with any idiosyncracies.
For example:
<pre>
<%=
service_type_obj
view_data = service_type_obj.view_data
<%= link_to (view_data[:display_text], {:controller=>'link_router', :id=>service_type_obj.id}, 'target'=>"_blank" ) %>
</pre>

Navigation menu