Is this an action component, or a DTO component?
it is a DTO component. The class extends EntityHome. The remote function used returns a JavaBean containing several Strings.
That all works fine when I only have one instance per page.
They should be interchangeable then, just import the JS stub for one of the types (e.g. compA) and use it wherever you would use the other type (i.e. compB).