Hi Gerhard, you are right, thanks. The AccessDecisionVoter is also working fine now.
Can i create a issue for the startup issue too? I think it should be possible to nest @Folder. Regards, Thomas 2013/9/30 Gerhard Petracek <[email protected]> > hi thomas, > > if you are trying to migrate a codi-view-config, just remove your usages of > @Folder and it >should< work. > (please file an issue, if it isn't the case.) > > i'll have a look at the name-check. > (please file an issue for it in any case.) > > regards, > gerhard > > > > 2013/9/30 Thomas Andraschko <[email protected]> > > > Hi, > > > > my ViewConfig: > > > > @Folder > > public interface Views extends ViewConfig > > { > > @Folder > > @Secured(value = LoggedInAccessDecisionVoter.class, errorView = > > Views.LoginRequired.class) > > public interface Internal extends Views > > { > > @View class Home implements Internal { } > > } > > > > @View class Login implements Views { } > > > > @View class LoginRequired implements Views { } > > > > @View class Register implements Views { } > > > > @View class Error extends DefaultErrorView implements Views { } > > } > > > > I get following exception on startup: > > > > java.lang.IllegalStateException: Duplicated config for the same folder > > configured. See: xxx.Views$Internal and xxx.Views > > at > > > > > org.apache.deltaspike.jsf.impl.config.view.DefaultViewConfigResolver.initCaches(DefaultViewConfigResolver.java:264) > > at > > > > > org.apache.deltaspike.jsf.impl.config.view.DefaultViewConfigResolver.<init>(DefaultViewConfigResolver.java:140) > > at > > > > > org.apache.deltaspike.jsf.impl.config.view.ViewConfigExtension.transformMetaDataTree(ViewConfigExtension.java:314) > > at > > > > > org.apache.deltaspike.jsf.impl.config.view.ViewConfigExtension.buildViewConfig(ViewConfigExtension.java:279) > > > > > > What's wrong? > > > > Manually adding the folder name solves the startup exception but my > custom > > AccessDecisionVoter won't be called. > > > > @Folder(name = "views") > > public interface Views extends ViewConfig > > { > > @Folder(name = "internal") > > @Secured(value = LoggedInAccessDecisionVoter.class, errorView = > > Views.LoginRequired.class) > > public interface Internal extends Views... > > > > > > Any idea? > > > > Regards, > > Thomas > > >
