3t-service

Results 3 comments of 3t-service

You can use 'view.defineRoot()' Also there are other mistakes in the documentation such as taskDetailsTemplate .dynamic needs changing to .of or it will throw exception about nested dynamic

I have found a way to replicate You are already in a dynamic block exception. Here I have defined a dynamic block which adds p tags from a HashMap. There...

HtmlView view1 = DynamicHtml.view(Main::taskDetailsTemplate); static void taskDetailsTemplate(DynamicHtml view, HashMap task) { try { .html() .head() .title().text("Task Details").__() .__() //head .body() .dynamic(body -> { for (Map.Entry item : task.entrySet()) { body.p().text(item.getValue()).__();...