3,098 questions
0
votes
0
answers
56
views
Keycloak v.26.0.0 causes the error in flt file
With the upgrade of Keycloak from version 25.0.0 to 26.0.0 (26.4.2), the login theme doesn't work and produces the following error:
FTL stack trace ("~" means nesting-related):
Failed at: #...
0
votes
1
answer
64
views
Is there a way I can use different layout for keycloak's forgot password and updatepassword
When we click on 'Forgot Password', an email gets delivered with a reset link. This Reset link redirects to login-update-password.ftl.
The same FTL is called from the account management page when the ...
0
votes
0
answers
30
views
Freemarker science experiment
Is there any support, either built-in or via an external resource, that gives Apache Freemarker templates the ability to fetch resources from the network, much like the Javascript Fetch API?
My ...
2
votes
1
answer
58
views
NetSuite Advanced PDF group items by cust transaction column
In Netsuite, on the invoice PDF, I'm trying to group Items by values in a custom transaction column field which is a Customer pick list where that Invoice Line can be left blank (associating it to the ...
0
votes
1
answer
64
views
How can I specify the local file when calling get message within a free market ftl file?
On a page when using springMacroRequestContext.getMessage text for en-us and it pulls from my messages-en-us.properties file, however in some cases I'd like to for a particular string to pull the text ...
0
votes
0
answers
105
views
Get data from Fragment Specific Tag programmatically in Liferay
In my Liferay fragment I have created an editable tag via Fragment Specific Tags and Freemarker code to make it editable to the page editor. The code looks like this:
<a href="#placeholder&...
0
votes
2
answers
73
views
Convert a Freemarker sequence to a Javascript array
I have a Freemarker sequence that looks like this:
{values:"Joe","Sally","Sue"}
I am trying to turn this into a Javascript array on the HTML page with the following code:
...
0
votes
0
answers
53
views
NetSuite Advanced PDF - logic to apply rule only to items that are serialised
I have an Advanced PDF Template in NetSuite where we are trying to display a serial number list at the bottom of the document.
We have successfully filtered and displayed only serial-numbered items, ...
0
votes
0
answers
60
views
How can I insert blank lines at the beginning of Freemarker template (.ftl) files?
I'm using FreeMarker templates (.ftl) to generate configuration files. I have a line like this:
error-no-telegram-id = \n\n❌ Error: Could not retrieve your Telegram ID.
However, the \n\n is ...
0
votes
1
answer
39
views
Attaching Item Fulfillment Print template data in Purchase order Print Template in Netsuite
I need to replicate the ENTIRE Item Fulfillment Packing Slip appended at the bottom of the Purchase Order, when the createdfrom.type = Drop Ship. We should be able to source all the customer related ...
0
votes
0
answers
270
views
FreeMarker template attributes becomes null! in struts 7.0 customized component
I'm using sturts 7.0.0 custom Anchor class, I got following FreeMarker template error.
The following has evaluated to null or missing:
==> attributes [in template "template/simple/a-close.ftl&...
-1
votes
1
answer
127
views
Freemarker Template not found for name (only in parallelStream)
I have a problem creating templates with freemarker in spring. I am running over a list of entries in parallel:
reports.parallelStream().forEach {
creationProcess.startCreationProcess(it)
}
Inside ...
0
votes
1
answer
29
views
Freemarker: 2 Different checks in one if
I do not succeed in creating one if clause with 2 checks.
To illustrate my problem, here is the code that works:
<#if _responses["getLinks"]["body"].locations??> true
<#...
0
votes
1
answer
79
views
How to omit special characters from a string in Freemaker
I am sending a personalised HTML email for a customer on a ClickDimenions Microsoft Dynamics database and looking to omit special characters from a First Name field, for example if someone had a name ...
2
votes
2
answers
132
views
Is it possible to sort a list in Freemarker on two columns?
We have a list of "items" coming into a Freemarker PDF template. That list has multiple values for each "item". That list is sorted by a default value, but we want to sort by "...
1
vote
1
answer
62
views
Freemarker.core.InvalidReferenceException error when trying to validate user input Apache FreeMarker
There is such ftlh file with registration form:
<!DOCTYPE html>
<html lang="en">
<head>
<title>Rental Property</title>
</head>
<body>
<h2>...
0
votes
1
answer
166
views
Problem adding record to renderer using N/render addRecord
I am working on a Suitelet that shows a check PDF in a new Window. Everything is working as expected except I've now hit a problem with rendering the PDF itself.
const renderPdfTemplate = (...
0
votes
1
answer
88
views
Spring Boot Freemarker will not display html page
I have a Spring Boot application in which I need to use Freemarker to display HTML pages in a browser.
I am new to Freemarker and I am struggling to display even a simple HTML page, and I do not know ...
1
vote
0
answers
87
views
multi level navigation in Liferay
I'm currently using Liferay 7.3 to develop a multi-level navigation menu. My navigation structure includes a mega menu and a dropdown menu. However, I'm encountering an issue where the dropdown menu ...
0
votes
1
answer
33
views
capture all values for a list
I need some help to get all values from a attribute (in a body field) and transform in a list at freemarker to compare each value with possible values in another list.
Below you have the example of ...
0
votes
1
answer
75
views
Ftl file not rendering in Apache Camel+Springboot+Email integration
Apache Camel+Springboot+Email integration.
I am trying to render a ftl template as a reply to an email query send to my backend chatbot. However, my .ftl file fails to render with an error as below. I ...
0
votes
2
answers
93
views
Page Breaks In Nested Free Marker Tables
I am using Free Marker for an Netsuite custom form. I am attempting to iterate through each item in the record object and create a row for the respective entry.
I have separated the entries out by ...
0
votes
1
answer
108
views
Freemarker Fallback Not Working with Multiple Template Loaders in Spring Boot
I'm working on a Spring Boot project where I use Freemarker for templating. I have configured multiple TemplateLoaders in Freemarker's configuration to load templates from two different CDN URLs: a ...
0
votes
1
answer
79
views
I can't select the ADT in the Asset Categories Navigation portlet configuration (Liferay 7.4)
I inform you that the version of Liferay I am working on is: liferay-ce-portal-7.4.3.112-ga112.
The problem is that I cannot select the ADT template because it is not shown in the Asset Categories ...
0
votes
1
answer
40
views
.locale in freemarker template is returning old ISO 639 language codes for Hebrew/Indonesian
.locale in freemarker template is returning old ISO 639 code for Hebrew language i.e."iw_IL" . But I require the latest code "he_IL". can we convert the old ISO to the latest one. ...
0
votes
1
answer
201
views
Unnecessary warnings for Freemarker classes on native image execution
I am developing a command line app with freemarker. I want to build the app as a graalvm native image using the native-maven-plugin. When I start the app on the command line (zsh on MacOS), I get the ...
0
votes
1
answer
63
views
org.xml.sax.SAXParseException for freemarker template in springboot
I am trying to generate document using freemarker in springboot.
Template has:
<tr>
<td style="width: 100%" align='center'>
<div class="logo-...
0
votes
1
answer
36
views
Hot to read big number as String in Freemarker template
I am trying to parse the xml and reading a big number value from the xml . I want to treat the number value as String in parsing but some reason i am getting a different number after parsing the xml . ...
0
votes
1
answer
47
views
Recursive function changes variable value of caller function
This is a POC code on freemarker recursive function call. The actual code is a bit complex.
Here when I call the above template, the function recursively calls itself. I initialize the temp variable ...
0
votes
2
answers
112
views
FreeMarker/NetSuite PDF Template - Double sorting by date, with possible empty values
I need to sort a list of records and render them in a table, but they have to be sorted by a "From Date" column, and then by "To Date" at a second level. I checked the ...
0
votes
1
answer
118
views
TopDesk/ Freemarker ... condition on body not working
I have an action sequence in Topdesk. The first step is delivering a body (or not) ... the second step should only be executed if I have response in the previous step.
That's my response body from the ...
0
votes
1
answer
149
views
Freemarker, formatting date issue
The string is this one:
2024-05-08T09:55:57Z
And with this:
content?matches('[0-9]{4}-[01][0-9]-[0-3][0-9]T[0-2][0-9]:[0-5][0-9]:[0-5][0-9]([+-][0-2][0-9]:[0-5][0-9]d|Z)')
content?datetime?string['...
1
vote
0
answers
333
views
Liferay - Menu navigation - Breadcrumbs
I am working with liferay 7.4, I have created a navigation menu that contains Submenu, I need to group pages without having links.
I have created an ADT template to show that menu, the problem I have ...
0
votes
1
answer
800
views
Build a spring boot based webhook consumer service
I have a requirement to build a spring boot based webhook service which can consume request bodies in either JSON or XML in any format.
For eg: we onboard a customer who already has a fixed JSON ...
0
votes
2
answers
89
views
Why Freemarker Template is not parsing the xml with namespace
my earlier question answered here
How to separate XML tags in freemarker in body function
But my xml is coming with namespace, But when i am trying to add the namespace in template its not parsing my ...
0
votes
1
answer
1k
views
Deploying Keycloak template breaks the server (Migration to Quarkus)
I'm trying to migrate a custom template from pre-Quarkus to Keycloak Quarkus (24.0.1).
It is located at <KEYCLOAK_HOME>/themes/base/login/consent-required-action.ftl.
The template looks as ...
0
votes
1
answer
92
views
in netsuite advanced pdf im looking to put an asterisk next to my date in my customer statement if the date has elapsed
In oracle NetSuite advanced pdf I've being trying to put an asterisk next to a date. With the current free marker I have, the calculation for daysoverdue gt 0 does not work. If I were to take out the ...
0
votes
2
answers
64
views
Boolean expression if false not working with ?? in freemarker
<#function kafkaCacheBackupLoaderProfiles>
<#assign profiles = []>
<#if featureEnabled.createCacheLoader??>
<#assign profiles = profiles + ["kafka-cache-loader"]&...
1
vote
1
answer
115
views
How to separate XML tags in freemarker in body function
I am trying to write a freemarker function to parse xml but i want to avoid the specific XPATH set from the xml.
The below freemarker is working if the xml does not have DOCUMENT_SETS . But my xml ...
0
votes
1
answer
270
views
Iterating Over Object Keys in Freemarker Templates with SuiteScript 2.1 Custom Data Source
In my Suitelet script I add custom data source to renderer. In Freemarker Template I am able to access the data. I am also able to list all the arrays of custom data source. Problem is, I cannot seem ...
0
votes
2
answers
57
views
How to escape Freemarker output of captured assign?
I want to escape the output of a variable, that used the capture syntax of a <#assign> in Example 2.
Example 1:
<#assign test1='{"json": "more"}' />
<div data-test1=&...
2
votes
1
answer
11k
views
Struts 2 to Struts 6 Migration
Struts 2.5.34 to Struts 6.3 Migration
We've our application currently in struts 2.5.3 version.
As Apache announced EOL for this, we are upgrading to Struts 6 (6.3 to be exact) using official ...
1
vote
1
answer
496
views
Why escape in Struts tags doesn't work after upgrade to Struts 6.3.0.2
If I have a Struts 2 tag as below
<s:optiontransferselect
leftTitle="<strong>All system groups</strong>">
</s:optiontransferselect>
The resulted outcome should ...
0
votes
1
answer
673
views
Netsuite Customer Statement (PDF/HTML) - trying to insert posted code to display lines from invoice - but getting errors
Simon G posted this answer to display lines from an invoice showing paid amounts on the customer statement and posted this code below, but when I try to insert it into the customer template at the ...
0
votes
0
answers
347
views
Embed a nextjs - react component into another app using a script
I'm trying to create a microservice in nextjs and react so I can use it in a Hippo-CMS application based on Java and Freemarker.
Is this possible?
I have created a react only project (I have not ...
0
votes
2
answers
811
views
Unable to import a .ftl file inside my .ftl file - freemarker
i am trying to templatise my java class using freemarker.
My config bean is :
@Bean
public FreeMarkerConfigurer freeMarkerConfigurer() {
FreeMarkerConfigurer configurer = new ...
0
votes
2
answers
245
views
Freemarker - disable Syntax validation?
Is there an option to disable the ParseException?
I would have a HTML String which has an issue in the Syntax?
The HTML String is created from my user, therefore there might be cases that the syntax ...
0
votes
1
answer
268
views
Convert string to JSON object using freemarker template
<#assign loanInformation = '{"8":{"loanId":"8","employeeId":"7","loanType":"1","totalAmount":"100000","...
1
vote
1
answer
208
views
Registration template not overriden in Keycloak 21
In my custom registration object i have this code:
@Override
public void buildPage(FormContext context, LoginFormsProvider form) {
logger.info("Starting custom form...");
...
0
votes
1
answer
39
views
how to create a new filtered sequence from another
If I have a sequence like:
<#assign seq = ['a', 'b', 'c', 'd', 'e']>
I'd need to obtain some new sequences that are filtered versions of the original one. For example:
<#assign seq1 = ['a', '...