| Author |
JSF dynamic image
|
Tim Holloway
Saloon Keeper
Joined: Jun 25, 2001
Posts: 14480
|
|
Could anyone supply an example in JSF of how I'd code an image tage with a complex dynamic URL? I need to reference dynamically generated images and I'm going round and round with it. The resulting URL should look something like: <img src="http://relocated.url.com/mywebapp/image-generator?imagenumber=123"> where the "123" is a JSF property value and the URL as a whole is mapped a la the JSTL c:url tag.
|
Customer surveys are for companies who didn't pay proper attention to begin with.
|
 |
Tim Holloway
Saloon Keeper
Joined: Jun 25, 2001
Posts: 14480
|
|
|
Crud. I posted this in the wrong browser frame. Mark, can you move this to the JSF forum? Thanks!
|
 |
Varun Khanna
Ranch Hand
Joined: May 30, 2002
Posts: 1400
|
|
You can use h:graphicImage tag and map the url or value attribute to the backing bean's property. Tag's specs.
|
- Varun
|
 |
Mark Herschberg
Sheriff
Joined: Dec 04, 2000
Posts: 6037
|
|
|
So moved...
|
 |
Tim Holloway
Saloon Keeper
Joined: Jun 25, 2001
Posts: 14480
|
|
|
OK, That's not as convoluted as what I was thinking, but it works.
|
 |
 |
|
|
subject: JSF dynamic image
|
|
|