Thanks for the quick reply,

I have spent some time looking over the JSF examples, including the
sandboxes graphicDynamicImage.  My problem really lies in displaying an
image from outside the deployment directory.  There is no dynamic action
needed in my application so I thought the standard graphicImage would do,
just not sure why my <graphicImage value="C:\images\uniqueId"> wouldn't
work.

I will look into extending the imagerenderer to read images from a directory
on the hard drive, though if anyone knows a simple example of using the
graphicImage and reading from a standard windows folder, the help would be
much appreciated.

Thanks
Michael.





Veit Guna-2 wrote:
> 
> Hi.
> 
> Take a look at the sandbox graphicDynamicImage. There you can write your
> own ImageRenderer and you're free where you read the images from.
> 
> In my webapp uploaded files go to a separate directory outside the
> deployment directory of tomcat. The ImageRenderer reads files from there
> and displays them to the user.
> 
> Perhaps it helps.
> 
> regards,
> Veit
> 
> 
> m1380103 schrieb:
>> Basically I'm building an ecommerce site using MyFaces.  I have over a
>> years
>> experience with it, though I've come across a problem I have never
>> encountered before.
>> 
>> For this site the user can upload images of the item they are selling. 
>> Except I am having some problems with storing this and displaying the
>> info
>> on screen.  I was going to save the image to a location locally
>> ("C:\images\uniqueId") and display this with <h:graphicImage> but it does
>> seem to like reading from this location.  I am running on a windows
>> machine
>> but noticed when supplying the string for the location of an icon saved
>> within the application the directory would be /Deploy Name/image.
>> 
>> How can I use the graphicImage tag to read from outside it's JBoss
>> deployment?  Or would it be better saving somewhere else when a user
>> uploads
>> an image?
>> 
>> Any help would be much appreciated as I have no experience with uploading
>> and saving of images on this form of web application.  I would prefer to
>> save a link in the database and display this way if possible.
>> 
>> Thanks
>> Michael.
> 
> 

-- 
View this message in context: 
http://www.nabble.com/GraphicImage-Question-tf3273198.html#a9101992
Sent from the MyFaces - Users mailing list archive at Nabble.com.

Reply via email to