Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add UUIDConverter #5243

Merged
merged 6 commits into from
Jul 22, 2023
Merged

Add UUIDConverter #5243

merged 6 commits into from
Jul 22, 2023

Conversation

BalusC
Copy link
Contributor

@BalusC BalusC commented Jun 18, 2023

@hantsy
Copy link
Contributor

hantsy commented Jun 19, 2023

Add Chinese translation #5244

Chinese tran for UUID Converter
Added French translation, unverified, it was a best guess based on
existing NumberConverter.PERCENT translation.
@pizzi80
Copy link
Contributor

pizzi80 commented Jun 21, 2023

when will be merged?

@BalusC
Copy link
Contributor Author

BalusC commented Jun 24, 2023

when will be merged?

When one reviewer has approved it.

try {
return value.toString();
} catch (Exception e) {
throw new ConverterException(MessageFactory.getMessage(context, STRING_ID, value, MessageFactory.getLabel(context, component)), e);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just out of curiosity - assuming value.toString() throws - what is expected to happen with the message [for ConverterException] preparation? I suppose another value.toString call to be made...

Copy link
Contributor Author

@BalusC BalusC Jul 1, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sharp. This logic was just extracted as a template from existing faces converters. And I believe the majority just wanted to catch a potential ClassCastException, but this is for the UUIDConverter not necessary because it's the first standard converter to be parameterized from the beginning on.

@arjantijms arjantijms added the 5.0 label Jul 6, 2023
@BalusC BalusC added 4.1 and removed 5.0 labels Jul 16, 2023
@BalusC BalusC changed the base branch from master to 4.1 July 16, 2023 16:53
@BalusC BalusC merged commit cd85a78 into 4.1 Jul 22, 2023
2 checks passed
@BalusC BalusC deleted the faces_issue_1819-_add_UUIDConverter branch July 22, 2023 13:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants