This content has been marked as final. Show 3 replies
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?
For a start, you should not convert the id to a string.
Second, make sure that the outjection actually *happens*.
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 getInstance
return (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.