Data Grid emptyStateMessage read value from message Bundle

Hi Team ,

Currently Data Grid , doesn’t load value of the emptyStateMessage from message bundle only plain text is valid other wise it is displaying the value that is referring to the message bundle key like msg://key instead of showing the value

Hello,

thank you for reporting a problem! As a workaround, you can set this value from the controller:

@Inject
private DataGrid<Order> dataGrid;
@Inject
private MessageBundle messageBundle;

@Subscribe
public void onInit(InitEvent event) {
    dataGrid.setEmptyStateMessage(messageBundle.getMessage("dataGrid.myEmptyStateMessage"));
}

I have created an issue: cuba-platform/cuba#2958

1 Like