MVC 1.0 (Java EE 8) + Thymeleaf

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

MVC 1.0 (Java EE 8) + Thymeleaf

ginccc
Hi everyone,

we are going to have a hackathon at our company tomorrow. We have had the idea of re-engineering one of our content delivery engines from scratch.

Here are the technologies we want to use for that:

* Ozark m1 (MVC 1.0)
* Resteasy 3 (JAX-RS 2)
* Thymeleaf (2 / 3 ? )

We do know this would be highly experimental, but we see great potential in that combination.

Long story short - since we don't have experience with Thymeleaf as a framework, we wanted to seek some advice before we start.

Ozark comes with rendering implementations for JSP and Facelets. This looks fairly simple to implement.
Have a look: https://github.com/spericas/ozark/blob/master/ozark/src/main/java/com/oracle/ozark/engine/JspViewEngine.java

We'd be thankful if you could point us to potential pitfalls we might be facing here. Any other experiences or advices that could be helpful would be great too.

Also, should we rather go with v2 or v3 ? (Not from a production-ready point of view, but difficulty to implement)

Thanks a lot in advance!

- Gregor
Reply | Threaded
Open this post in threaded view
|

Re: MVC 1.0 (Java EE 8) + Thymeleaf

Zemi
Administrator
Hello,

OZarc already comes with an Thymeleaf implementation
  https://github.com/spericas/ozark/tree/master/ext/thymeleaf/src/main/java/com/oracle/ozark/ext/thymeleaf

so you won't have to worry about that.

Version 2 and version 3, at this moment, don't have differences from the syntax point of view. The main focus of version 3 is on performance. Unless you want to do some performance testing, use version 2.1 (current stable version).

Apart from that, we have a lot of documentation at
  http://www.thymeleaf.org/documentation.html

You can start with this article
  http://www.thymeleaf.org/doc/articles/thvsjsp.html
or try the examples at the Interactive Tutorial at
  http://itutorial.thymeleaf.org/

Regards,
  Zemi

Reply | Threaded
Open this post in threaded view
|

Re: MVC 1.0 (Java EE 8) + Thymeleaf

ginccc
Alright, great!

Thanks - we'll look into it.

- Gregor