We are using thymeleaf with Vertx 3.0 in our project. I am a newbie to both vertx and thymeleaf.
In the thymeleaf template I am specify form action as
<form id="myform" th:action="@{/product/list}" method="POST">
and I am getting following error in vertx :
org.thymeleaf.exceptions.TemplateProcessingException: Link base "/product/list" cannot be context relative (/) or page relative unless you implement the org.thymeleaf.context.IWebContext interface
On googling for this error ,found that others have also faced same issue while trying to use thymeleaf template outside the scope of servlet request or in frameworks where servlet context is not available.Reference links:
What is the workaround for this in Vertx? Do we have any WebContext in vertx? Please suggest how to make context-relative-urls work in thymeleaf with Vertx.