Yup, the figure is right. The page is "rendered" (all of the HTML is created by the underlying page), and then SiteMesh parses that generated page and the decorators kick in.
It might seem inefficient/inelegant, but in practice it's perfectly reasonable for this kind of page-centric web application development. The parser that Sitemesh uses is optimized to break the HTML up in to the relevant chunks v. quickly (it's not building a full DOM tree or anything). |