Extending components

Hi,

I am using jmix 2.2 and I want to extend TextField component.
Idea is that component will listen on value changes and if value does change it will show little button that will allow user to save changes instantly to DB. It is business requirement.

Anyway I am strugeling to simply extend TextField component. I cannot make it appear on screen visible. I can see component in HTML, I can see my save button when I choose to display it, but no input.

Sample project is here:
extend-text-field-demo.zip (111.3 KB)

I believe its some basic mistake, but I cant get pass this for too long now.

Thank you,
Jakub

Hi,

You need to remove @Tag("saving-text-field") because you don’t have a Web Component implementing this tag.

Also, errorMessage is shown if isInvalid is set to true.

Regards,
Gleb

1 Like

Yep,
that works, thank you.