Has it been removed then?
Image image = Seam.Component.newInstance("image");
Just doesn't compile...
There is no newInstance in Component.
Doesn't *compile*?? there is no "compile" in js.
SLAPs Self... Sorry.
Had I RTFM or even read your responses better I would have seen that!
I was doing it in code...
Image image = (Image)Component.getInstance("image", true); image.setName(fileName); image.setType(contentType); image.setThumbnail(inputFileAsBytes); image.setImage(inputFileAsBytes); image.setVersion(0);
As an aside... I managed to get JBoss to take over 15 minutes to run up yesterday !
I included a Seam component as a class instance as apposed to injecting it.
I did this (thinking I will need an image object to put my image into!!)
Image image = new Image();
Now I am using:
Image image = (Image)Component.getInstance("image", true);
and JBoss runs up in only 1 minute again.