Skip to content
New issue

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

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

Already on GitHub? # to your account

Settings do not work for components from fragments #4228

Open
alferink opened this issue Feb 28, 2025 · 0 comments
Open

Settings do not work for components from fragments #4228

alferink opened this issue Feb 28, 2025 · 0 comments
Labels
triage Issue is waiting for triage type: bug Something isn't working

Comments

@alferink
Copy link
Contributor

Environment

Jmix version: 2.4.4

Bug Description

The settings for a dataGrid in a fragement are not saved in the settings.

I have a fragment that containas dataGrid. The fragment is included in a view which has a settings fragment:

    <facets>
        <settings auto="true"/>
    </facets>
    ...
    <fragment class="com.company.settingsdemo.view.ordersfragment.OrdersFragment">
        <properties>
            <property name="customerDc" value="customerDc" type="CONTAINER_REF"/>
        </properties>
     </fragment>

When I save and load the view the settings for the dataGrid in the fragment ist not saved and loaded.
I know that facets are not supported in the fragment itself. I would expect that the settings facet in the view also works for components from a fragment.

Steps To Reproduce

  1. Login
  2. Open customers
  3. Edit customer
  4. Hide the "Price" column in the right tab (under Fragments)
  5. Save the customer
  6. Open the customer

The "Price" column should not be visible.

Current Behavior

The "Price" column is visible and it is not stored in the settings.

Expected Behavior

The "Price" column should not be visible. It should be saved and loaded in settings.

Sample Project

settings-demo.zip

@alferink alferink added triage Issue is waiting for triage type: bug Something isn't working labels Feb 28, 2025
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
triage Issue is waiting for triage type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant