Support custom idAttribute in BaseView#getAttributes()