adding custom attributes

I’ve seen the setDebugId() however is there an easy way to add our own attributes?

i.e. I’d like to add a concept of “vaadin_path” which works sorta liked wicket’s “wicket_path”.

The idea being here that it is a unique identifer to a specific component using the components heirarchy in the page.

i…e parent_child_grandChild

The is really helpful when ui designers and/or new developers are looking at html and want to know what component is responsible for output.
Also, I think it is helpful for doing json or css selectors.

If there is no way to add custom attributes, and I have to use the setDebugId, is there any thing I should consider? It doesn’t seem to get disabled in production mode. I checked for that…


Why don’t you use