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

Date from JSON is not printed when formatter is specified for the corresponding field #43 #106

Merged
merged 2 commits into from
Jun 11, 2019

Conversation

NikitaShchienko
Copy link
Contributor

Added support for Groovy-script in formatters

…responding field #43

Added support for Groovy-script in formatters
@@ -120,7 +118,10 @@ protected String formatValue(Object value, String parameterName, String fullPara
String valueString;
String formatString = getFormatString(parameterName, fullParameterName);
if (formatString != null) {
if (formatString.startsWith("class:")) {
if (Boolean.TRUE.equals(isGroovyScript(parameterName, fullParameterName))) {
DefaultScriptingImpl defaultScripting = new DefaultScriptingImpl();
Copy link
Contributor

Choose a reason for hiding this comment

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

Work with com.haulmont.yarg.util.groovy.Scripting interface instead of implementations. Add separate property for scripting

@NikitaShchienko NikitaShchienko merged commit 6d77f6f into master Jun 11, 2019
@NikitaShchienko NikitaShchienko deleted the Feature/groovy-value-formats-43 branch August 7, 2019 16:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants