freemarker Questions
5
Solved
Having a problem with freemarker output...
[#assign optionsHTML = ""]
[#list data as item]
[#assign optionsHTML = optionsHTML + '<option value="' + item.value +'>'+ item.label + '</op...
Isley asked 9/6, 2014 at 15:20
5
About FreeMarker, is it possible to instruct it to treat all numbers as "computer" ones by default?
I tried to apply
cfg.setSetting(Configurable.NUMBER_FORMAT_KEY, "computer");
or
cfg.setNumb...
Argile asked 30/1, 2013 at 16:30
2
how can I have few different #nested elements in macros?
Unformed asked 29/10, 2012 at 11:25
2
is there a way how to dump whole object and write it somewhere?
Like:
var_dump() in php
console.log in JS
I found something like list, so I try something like this below:
<#list calculation a...
Obsequent asked 29/2, 2016 at 14:49
6
Solved
I am currently migrating a Spring MVC Webapp (xml-config to java-config, tomcat to embedded tomcat via spring-boot).
The webapp uses freemarker as templating engine and JSP Taglibs. Now when I cal...
Indiaindiaman asked 17/11, 2015 at 11:37
5
Solved
I am upgrading Keycloak from 9.x to 12.x in a development environment. I initially copied some custom themes forward, and found that the styling was badly broken (no surprise). I reviewed my FTL fi...
Schnapp asked 21/12, 2020 at 16:35
5
Solved
I want to convert a string to number in freemarker. I want to put some conditional check based on the value of the number. ?number doesn't seems to work.
Any suggestions?
Marlinemarlinespike asked 7/6, 2012 at 8:5
2
Solved
i am trying to templatise my java class using freemarker.
My config bean is :
@Bean
public FreeMarkerConfigurer freeMarkerConfigurer() {
FreeMarkerConfigurer configurer = new FreeMarkerConfigure...
Crushing asked 27/2, 2024 at 20:58
6
We are trying to build a system in freemarker where extension files can be optionally added to replace blocks of the standard template.
We have gotten to this point
<#attempt>
<#inclu...
Vennieveno asked 13/4, 2010 at 15:38
6
Solved
I've got an internationalised app that uses spring and freemarker. I'm getting content from localised property files using.
${rc.getMessage("help.headings.frequently_asked_questions")}
For some ...
Dyewood asked 17/6, 2011 at 5:46
6
Solved
I am using freemarker and trying to display numbers in this format: $3,343,434.00 for example. This was easily taken care of by using ${total?string.currency} (assuming "total" is some number).
H...
Ordovician asked 6/1, 2014 at 21:59
4
Solved
<select name="showYears">
<#list payrollYears as year>
<option value="${year.year}">${year.yeardesc}</option>
</#list>
</select>
i am getting payrollyea...
Clamant asked 4/5, 2011 at 6:37
4
Solved
I used ModelAttribute to bind object in Spring web application.
Once I notice that, in case an object has an boolean value A is true, its value will not be updated if we uncheck A's checkbox.
For...
Foliated asked 4/1, 2012 at 8:7
4
Solved
I'm trying to get a substring from a string in FreeMarker.
However there are 2 thigns to consider:
The string can be null
The string can be shorter then the maximum string length
I do the follo...
Hanuman asked 3/8, 2010 at 8:41
3
Solved
Freemaker templates render variables with the following syntax: ${name}
Javascript ES6 template strings have a similar syntax ${name}
The problem is that when freemarker runs on the server, it wi...
Generative asked 11/5, 2017 at 5:29
3
Solved
We are building a restful api using Spring MVC and freemarker as the templating language. We have chosen to build json responses in the freemarker
Example freemarker.ftl:
{
"field1" : "${response...
Haulage asked 17/6, 2011 at 8:59
4
Does anybody know of any plans to support the new java.time api in FreeMarker? Or has anybody code laying around for supporting classes like ZonedDateTime, LocalDateTime and Instant?
Its not hard ...
Cholecalciferol asked 18/8, 2015 at 3:55
2
Solved
I would like to check if a sequence is empty in a freemarker template.
This snippet works to check if a sequence contains a value:
<#if node.attachments?seq_contains("blue")>
<pre>he...
Cultrate asked 16/1, 2015 at 20:5
2
Solved
In Freemarker, how can I create a template that inherits from a template that itself inherits?
Single inheritance works fine with the <#nested> tag:
File base.ftl:
<#macro layout>
<h...
Malediction asked 19/5, 2021 at 7:46
2
I have a custom login-update-password.ftl file. I want to show the user's firstname and lastname. In the template file of the base example I see ${username} which lets me show the username. But whe...
Gelatinate asked 30/6, 2021 at 12:36
7
I'm looking for enabling hot refresh of ftl files on spring boot framework, so that changes on ftl files need not require application restart.
I had tried following settings through application.pro...
Interjacent asked 28/3, 2015 at 6:35
4
Solved
I am using free marker and i am returning response from application as string i need to compare the response with static some string . Here is the way of doing.
${users.isValid} it is returning "tr...
Almaalmaata asked 17/12, 2013 at 12:49
2
Solved
Is it possible to replace multiple values in a FreeMarker template?
For example, if I want to replace "a" and "b" with "c", I have to do this:
${event.EventTitle?replace('a','c')?replace('b','c')}...
Cominform asked 9/7, 2013 at 0:29
2
we are using Freemarker for generating the HTML code for the emails our application is going to be sending.
Our usage and configuration is based off of https://github.com/hdineth/SpringBoot-freema...
Smtih asked 6/12, 2019 at 20:54
6
Solved
How to handle null values in Freemarker? I get some exceptions in the template when null values are present in data.
Commove asked 19/12, 2012 at 10:29
1 Next >
© 2022 - 2025 — McMap. All rights reserved.