views:

277

answers:

1

Hi,

I would like to display an image on my web page and provide the user the ability to click it and upload another image to replace it.

Either myfaces or Richfaces works.. (I know tomahawk has some solution but i'm wondering if that's the only solution. The least libraries I use the better..)

Thanks!

A: 

You can use something like rich:fileUpload (MyFaces has also got a component for that). Handle file upload on the server side and replace the target file. A more sofisticaded solution would be with saving images as blobs in a database.

lexicore
Thanks. I'm looking for a method that would not have to go through a file.I'm trying to work with a4j:mediaOutput and see how that goes..
Ben