N
N
Natalia Tsarkevich2014-02-03 23:13:56
Java
Natalia Tsarkevich, 2014-02-03 23:13:56

I'm trying to write an addition to the database in the controller for the entity, but for some reason ejbFacade == null. Why?

I am developing a web application in which I use templates. NetBeans development environment - Following the example of the jsf and classes created by it, I write the application itself. I am trying to write an addition to the database in the controller for the entity, but for some reason ejbFacade == null, and accordingly I cannot do something with it. But the problem is that in the template I did not see that the field was somehow initialized.
PS Perhaps confusedly explained, but I really need help.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
S
spoki, 2014-02-05
@spoki

@EJB
private entity.UsermyFacade ejbFacade;
the ejbFacade variable is initialized with the EJB annotation. In essence, the application server looks for a class that implements the UsermyFacade interface, creates an instance of it, and associates it with ejbFacade through a proxy

E
enixpp, 2015-03-23
@penexe

maybe so

D
Deodatuss, 2015-03-23
@Deodatuss

maybe spaces ?

K
kn1ght_t, 2015-03-23
@kn1ght_t

https://jsfiddle.net/1kk4nhzo/7/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question