The dropwizard-views-mustache & dropwizard-views-freemarker modules provides you with simple, fast HTML views using either FreeMarker or Mustache.
Questions tagged [dropwizard-templates]
7 questions
3
votes
2 answers
How to set Dropwizard's ViewBundle root URL
I tried a lot, but I couldn't find how to choose the root URL for all Dropwizard's ViewBundle resources.
I have my REST endpoints served from /rest, because I have set it with environment.jersey().setUrlPattern('/rest/*'...).
I have my static assets…

Vic Seedoubleyew
- 9,888
- 6
- 55
- 76
2
votes
2 answers
Freemarker: access public field with no getter in template
I'm setting up views in a Dropwizard app and ran into a curious issue with Freemarker.
Following the docs here I set up a very simple example as follows
public class ExampleFreemarkerView extends View {
private Foo foo;
public…

davnicwil
- 28,487
- 16
- 107
- 123
2
votes
1 answer
Dropwizard configuration not working with a Shaded jar
I am facing the following issue when trying to run a shaded jar with properties in the configuration.yaml file. (not occurred when directly ran the main class)
run command: java -jar target/mlsdata-1.0.jar server…

sudarshan kakumanu
- 308
- 1
- 4
- 15
1
vote
1 answer
How to call a method with a button in Freemarker DropWizard
I'm trying to call a delete method with a button in a Freemarker template. I thought it would be as simple as defining a path for that method in my resource class, and then pointing the action of the form to that path; however, nothing happens when…

SVill
- 331
- 5
- 22
- 55
0
votes
1 answer
Minimum version of Maven, JAVA SE and Docker
I would like to know the minimum version of Maven and Java SE required to build a microservice using Dropwizard v1.3.20 (latest release as on 06-March-2020) ?
If I know the minimum version of Docker also, it would be great.
Thanks

akg
- 43
- 1
- 5
0
votes
0 answers
Freemarker Template Not Found in Dropwizard Intellij
I'm trying to set up a freemarker template to show the results of a SQL query. I'm running into an issue where Intellij is reporting that the template cannot be found:
DEBUG [2018-02-27 18:52:31,623] freemarker.cache: Couldn't find template in cache…

SVill
- 331
- 5
- 22
- 55
0
votes
1 answer
Dropwizard update View from POST method
I am trying to validate a form in my POST method which registers new users. In the case that errors arise such as a username that is already used, I want my View, which is retrieved from my GET method to be updated with the error. I am using…

TM00
- 1,330
- 1
- 14
- 26