-
Notifications
You must be signed in to change notification settings - Fork 117
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
Add UUIDConverter #5243
Conversation
Add UUIDConverter
Register UUIDConverter
Add message translations for de/en/es/pt
Add Chinese translation #5244 |
Chinese tran for UUID Converter
Added French translation, unverified, it was a best guess based on existing NumberConverter.PERCENT translation.
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); |
There was a problem hiding this comment.
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...
There was a problem hiding this comment.
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.
jakartaee/faces#1819