adminfaces / admin-template

JSF responsive admin template based on Bootstrap and AdminLTE
https://adminfaces.github.io/docs/latest/#admin_template
MIT License
209 stars 101 forks source link

Support OWB in Tomcat #178

Closed skybber closed 5 years ago

skybber commented 5 years ago

Our tech stack is based on OWB. OWB doesn't support @Inject in @WebFilter (AdminFilter). But it is possible to use CDI.getCurrent().getBeanManager()... or Omnifaces's Beans.getReference(SomeBean.class); instead of @Inject to support OWB as well.

rmpestano commented 5 years ago

Hi @skybber,

which version of OWB are you using?

We have ft tests that runs on Tomee 1.7 (and 7.x) which uses OWB so Im sure it works but maybe you're using an older version.

If we use CDI.getCurrent() we'll break CDI 1.0 support

skybber commented 5 years ago

We're testing it on Tomcat, pby Tomee is ok.

rmpestano commented 5 years ago

I'll try to make admin-starter-tomcat work with OWB over this weekend.

Thank you for the feedback.

skybber commented 5 years ago

thanks for great product!

rmpestano commented 5 years ago

Hi @skybber,

can you try with admin-template 1.0.1-SNAPSHOT?

You'll need to declare snapshots repository on your pom.xml.

rmpestano commented 5 years ago

Just released v1.0.1, any problem releated with this issue, please reopen.

skybber commented 5 years ago

Thanks. it's working now.