Different Strokes

The XMLC compiler gives you your template and some convenient access hooks into targeted areas of the template. The presentation logic can now manipulate both the content and the structure as you choose.

In Chapter 2, we discussed the fact that the design of the login page could be handled differently depending on your particular strategy. We chose the route of building a single template with all the possible dynamic sub-templates, including the error message for a failed login. Others might choose to have multiple admin templates, or to simply treat the error message as an HTML element that's created programmatically without the use of a template row identified by an id. Instead, create it on-the-fly, adding the row, and the ...

Get Enhydra XMLC™ Java™ Presentation Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.