This content has been marked as final.
Show 3 replies
-
1. Re: Managed(Hibernate)Entity usage question
baz Aug 9, 2006 11:31 AM (in response to baz)Hello,
The only difference is that bazProject is used in an html page while bazExperiment is not.
That is the difference.
I accessed bazExperiment in a html page and..
voila it is injected.
If i do not access such a component in a html page it won't be injected.
Gavin can you help?
Ciao,
Carsten -
2. Re: Managed(Hibernate)Entity usage question
gavin.king Aug 9, 2006 5:41 PM (in response to baz)For a start, you should not convert the id to a string.
Second, make sure that the outjection actually *happens*. -
3. Re: Managed(Hibernate)Entity usage question
baz Aug 10, 2006 3:00 AM (in response to baz)Hello,
Thanks for your answer.you should not convert the id to a string.
if i do not convert, i get a class cast exception. This is due to this codefragment from getInstancereturn (Serializable) idConverter.getAsObject( facesContext, facesContext.getViewRoot(), >>>> (String) id <<<<<<<<< );
But i have solved my problem. The component does not exist when i do not use it in an html page. So i have to use create=true :-) when i inject the component.
Ciao,
Carsten