I found the solution. I forgot the "return orders".
| @Factory(value="orders", scope = SESSION)
| public List findOrder(){
|
| Query query;
|
| query = em.createQuery("select o from Order o where
o.customer=#{currentContact.custome
If I remove the Datamodel annotation, my jsf page is empty because in the page
I use the factory to display the list of order in a datatable.But their no
exception.
So I must Outject my factory, but the exception appears if I do that.
What could I do ?
Yohann
View the original post :
http://
Not with @DataModel, you could just @Factory e.g.
@Stateful
| @Name("ListOrder")
| @Scope(CONVERSATION)
| public class OrderManager implements OrderManagerLocal, Serializable {
|
| @Factory(value="orders", scope = SESSION)
| public void findOrder(){
|
| Query