[
https://issues.apache.org/jira/browse/CAUSEWAY-4005?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Andi Huber updated CAUSEWAY-4005:
---------------------------------
Summary: [Metamodel] Qualified ValueSemantics is not found when provided
via Bean providing Method (was: [Metamodel] Qualified ValueSemantics is not
found when used on a Property of type long)
> [Metamodel] Qualified ValueSemantics is not found when provided via Bean
> providing Method
> -----------------------------------------------------------------------------------------
>
> Key: CAUSEWAY-4005
> URL: https://issues.apache.org/jira/browse/CAUSEWAY-4005
> Project: Causeway
> Issue Type: Improvement
> Components: Core
> Reporter: Andi Huber
> Assignee: Andi Huber
> Priority: Major
> Fix For: 4.0.0
>
>
> As the override is not found, the metamodel falls back to displaying a the
> 'not found' message. Root cause is, that we don't properly detect qualifiers
> on bean providing methods.
> {code:java}
> @Bean
> @Qualifier("noThousandsSeparator")
> LongValueSemantics longValueSemantics() {
> return new LongValueSemantics() {
> @Override
> protected void configureDecimalFormat(final Context context,
> final DecimalFormat format, final FormatUsageFor usedFor) {
> super.configureDecimalFormat(context, format, usedFor);
> format.setGroupingUsed(false);
> }
> };
> }
> {code}
> Used like:
> {code:java}
> @Property(editing=Editing.DISABLED)
> @ValueSemantics(provider = "noThousandsSeparator")
> @Getter @Setter
> private long token;
> }
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)