Skip to content

Cannot using 2 classes with Qute @MessageBundle with different namespace #32355

@angelozerr

Description

@angelozerr

Describe the bug

I have 2 classes which manages Qute messages:

@MessageBundle
public interface AppMessages {

    @Message("Hello {name ?: 'Qute'}")
    String hello_name(String name);
}

and the second which definesthe msg2 namespace:

@MessageBundle("msg2")
public interface App2Messages {

    @Message("HELLO")
    String hello();

}

When I'm trying to use [msg2:hello} in my template I have teh following error:

#1 page.qute.html:32:1 - {msg2:hello}: Message bundle [name=msg, interface=org.acme.AppMessages] does not define a method for key: hello

image

Expected behavior

No response

Actual behavior

No response

How to Reproduce?

No response

Output of uname -a or ver

No response

Output of java -version

No response

GraalVM version (if different from Java)

No response

Quarkus version or git rev

No response

Build tool (ie. output of mvnw --version or gradlew --version)

No response

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/quteThe template enginekind/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions