cdi icon indicating copy to clipboard operation
cdi copied to clipboard

Lack of @Root

Open AdamBien opened this issue 11 years ago • 1 comments

The @Root annotation was removed. It means: any @CDIUI annotation with an empty value marks a root. With that you can very efficiently declare a single root (it actually happens only once), but we are loosing Convention over Configuration capabiltities: previously the URI was automatically derived from the CDIUI#getClass().getSimpleName().

Now you will have to declare the URI for all UIs. The behavior is actually not consistent with the JavaEE 6 API (EJBs, CDI, JPA).

Proposal: revival of the @Root annotation.

AdamBien avatar Apr 29 '13 11:04 AdamBien

I agree to this opinion. Without the @Root annotation every other UI will have to specify an own URL. It is a lot more convenient to just use the lowercase of the class name as default URL.

ManuelB avatar Apr 30 '13 08:04 ManuelB