UserError

Hi.

I have a UserError. It works just fine for plain errors. However, I would like to have a different icon for warning.

How to do this?

bye,ivan

The icon is set using CSS. So to change it, you need to create your own theme which overrides that icon. All error icons in Vaadin apps are set using .v-errorindicator classname.

Or, you can use the Embedded component to display another icon beside the component which has a warning.

Hi,

I need 2 icons, one for error and one for warning?
How to do this?

thx

Use a Label or Embedded component to show the error icon.

Or use a stylename to change the error indicator icon. All error indicators in Vaadin are specified using .v-errorindicator classname.