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

[EAK-518] Usage of scripting in nested fieldsets #518

Closed
mhoroshko opened this issue Mar 27, 2024 · 1 comment · Fixed by #529
Closed

[EAK-518] Usage of scripting in nested fieldsets #518

mhoroshko opened this issue Mar 27, 2024 · 1 comment · Fixed by #529
Assignees
Labels
enhancement New feature or request

Comments

@mhoroshko
Copy link
Contributor

In case when we have double or triple nesting of fieldsets scripting doesn't work.
For example:

AemComponent(
    path = "default",
    title = "Scripted Component"
)
public class ScriptedComponent {
    
    @FieldSet
    @Setting(name = "isChecked", value = "true")
    private CtaFieldset ctaFieldset;
}

public class CtaFieldset {

    @FieldSet
    private CtaSettingsFieldset ctaSettings;
}

public class CtaSettingsFieldset {

    @DialogField(label = "Open in a new window?")
    @Checkbox
    @Property(name = "./checked", value = "${@isChecked ? true : false}")
    private boolean ctaNewWindow;
}
@mhoroshko mhoroshko added enhancement New feature or request Java labels Mar 27, 2024
@smiakchilo smiakchilo self-assigned this May 31, 2024
@smiakchilo smiakchilo changed the title [EAK-518] Usage of scripting in nested in each other fieldsets [EAK-518] Usage of scripting in nested fieldsets Jun 1, 2024
@smiakchilo
Copy link
Collaborator

Implemented in v. 2.5.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
2 participants