Questions tagged [quarkus-qute]
27 questions
3
votes
2 answers
Images into Qute Template
Does anyone know how to insert images into qute template?
I tried to write something in my HTML like:
but always got exception:
java.lang.RuntimeException:…


Егор Уханов
- 31
- 1
3
votes
1 answer
java.lang.UnsatisfiedLinkError when using Qute TypeSafe Templates with Kotlin
When trying to use Quarkus Qute Typesafe Templates with Kotlin (converting the static class into an object as per the code below), I run into an UnsatisfiedLinkError at runtime.
The code at…

avanwyk
- 700
- 6
- 13
2
votes
2 answers
Quarkus use both Authorization and Cookie for jwt authorization
I would like to write an app that allows for both RESTful forms of interacting with the data; regular REST CRUD endpoints and a web-ui.
In the past, I have gone the route of implementing much of the functionality of the UI in JS, which would call…

Snappawapa
- 1,697
- 3
- 20
- 42
2
votes
2 answers
Quarkus Qute template location from another maven module
Having a maven module that declares a Qute template and REST endpoint to render it, I wanted to include this module on another maven project. The problem is, at it seems, the destination module does not compile since it does not have / find the…

Sérgio Sousa
- 83
- 1
- 9
2
votes
1 answer
Quarkus Qute Double with 2 decimal
All is say in the title. I want to transform double in String with 2 decimals.
I tried with the example of quarkus :
@TemplateExtension(namespace = "str")
class StringExtensions {
static String format(String fmt, Object... args) {
return…

Dorian Maliszewski
- 821
- 1
- 10
- 14
2
votes
1 answer
Passing an enum value to a template extension method in Quarkus-Qute
I have following template extension:
package com.company;
import io.quarkus.qute.RawString;
import io.quarkus.qute.TemplateExtension;
@TemplateExtension
public class TemplateExtensions {
static RawString myMethod(Input input, String…

Jmini
- 9,189
- 2
- 55
- 77
2
votes
3 answers
Insert a java string constant in a quarkus qute template?
I am working on a small quarkus project serving HTML pages created with the qute templating engine.
I was wondering if it possible to access some String constant values to the template, without having to pass them as .data("key", value) to the…

Jmini
- 9,189
- 2
- 55
- 77
1
vote
2 answers
quarkus qute: iteration metadata count, hasNext, ... not working
When making the tutorial
https://kubebyexample.com/en/learning-paths/developing-quarkus-kubernetes/templating-qute-templating-engine/rendering-periodic
the following error appears
quarkus.qute.TemplateException: Entry "count" not found in the data…

tom
- 21
- 2
1
vote
0 answers
Quarkus JMapper error in mapper constructor
We are creating new Rest Api using Quarkus, postgresql, JMapper and lombok. Jmapper throwing below error while calling api not sure why. Added lombok, jmapper-core details of the pom.xml and added detail error message. please let me know if any more…

Sajan Soosaimicheal
- 13
- 5
1
vote
1 answer
How to load quarkus qute template dynamic without inject?
I had the following problem: I have a service where I want to dynamically render templates using qute. Whose names I don't currently know (because they are passed via the endpoint).
Unfortunately Quarkus itself doesn't give the possibility to say…

weisser.dev
- 61
- 5
1
vote
0 answers
Quarkus 400/Bad_Request shows raw html on browser
I am building a simple Quarkus project.
I have a greeting resource class
public class GreetingResource {
String htmlString = "\n" +
"\n" +
"\n" +
"

CrazySports101
- 163
- 1
- 3
1
vote
1 answer
Qute Dynamically created template not able to understand object data
I am using below code to create a dynamic template -
Engine engine = Engine.builder().addDefaults().build();
Template t = engine.parse(" Dear:Your {obj.name}", null, "something");
Body obj = new Body();
obj.name =…

Hhhh Hhhh
- 23
- 4
0
votes
1 answer
Quarkus + Qute + MessageBundle: java.nio.charset.MalformedInputException: Input length = 1
I want to have all the messages on my system in a msg.properties file that follows the key=value pattern, where can I find an example?
I tried like below:
resources/messages/msg.properties
invalid-data=the message comes…

Luciano Borges
- 817
- 3
- 12
- 31
0
votes
1 answer
Render first element of set using quarkus qute template engine
While trying to render first element of set using quarkus qute template engine it is throwing the below xception.
io.quarkus.qute.TemplateException: Rendering error in template
[index.html] line 93: Property "0" not found on the base…

pvrforpranavvr
- 2,708
- 2
- 24
- 34
0
votes
1 answer
Can I read template instance attributes in Qute template?
If I set an attribute in a template instance, i.e.
index.setAttribute("locale", Locale.CANADA_FRENCH);
Then how can I read the attribute locale in the template?
{attributes['locale']}, {attribute['locale']}, {attributes.get('locale'} don't work.

Dario Scoppelletti
- 479
- 3
- 16