New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem with Template constraints #45
Comments
I need to update the documentation, thanks for bringing this to my attention. In the meantime, this should work
because constraints are now injected into templates (Play 2.6 removed the global state that templates previously relied on). You can see it used in a test here |
Ok, I try but another error,
I think it was because i use @this to inyect.
In the Controller, I use inyector,
And inyect the handler in contructor,
If I delete @this, this error dissapear, but dont work. Thanks. |
I think the problem is this: I think what's happening, without seeing your code, is that you're not injecting your own components into your controllers. Take a look at this guide to see how to do this. |
Yes, this is the problem... I forgot inyect the view. Now work perfect. Thank you so much. |
Thanks - I'll update the docs as soon as I have chance. |
Two items: (I don't see this in the doc) This shows how to have two items, as opposed to just one. From here on (three, four items) it's self-explanatory. Actually, it's interesting how so often documentation shows how to do something with ONE item, or with TWO items, but never both, when really both are needed. But that's just a pet peeve of mine. |
Hello,
Im using play 2.6.5 and deadbolt 2.6.1 java.
Im trying to add @subjectPresentOr() {}{} but dont work.
im add the import
@import be.objectify.deadbolt.java.views.html.di.{subjectPresent, subjectPresentOr}
but all time say me
Compilation error
not found: value subjectPresentOr
https://deadbolt-java.readme.io/docs/template-constraints
What are doing wrong?
Thanks.
The text was updated successfully, but these errors were encountered: