Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within JSF
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Tim Cooke
paul wheaton
Liutauras Vilda
Ron McLeod
Sheriffs:
Jeanne Boyarsky
Devaka Cooray
Paul Clapham
Saloon Keepers:
Scott Selikoff
Tim Holloway
Piet Souris
Mikalai Zaikin
Frits Walraven
Bartenders:
Stephan van Hulst
Carey Brown
Forum:
JSF
Problem using JSF and Tiles
Abiodun Adisa
Ranch Hand
Posts: 495
posted 17 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
In my tiles File I have
<h:graphicImage url="{0}">
<tiles:getAsString name="imageURL"/>
</h:graphicImage>
I am hoping to pass a image url parameter to my tiles file and have the graphicImage display the image, but its not really displaying the image, only outputting the url
string
, please how do i resolve this
Mark Spritzler
ranger
Posts: 17347
11
I like...
posted 17 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
My best suggestions is to get rid of Tiles and go with xhtml templating instead.
But Why not just have
<h:graphicImage url="${imageURL}"/>
In your tiles:insert add a <tiles:put name=imageURL value="someValueHere"/>
Mark
Perfect World Programming, LLC
-
iOS Apps
How to Ask Questions the Smart Way FAQ
Abiodun Adisa
Ranch Hand
Posts: 495
posted 17 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
According to TLD or attribute directive in tag file, attribute url does not accept any expressions
Abiodun Adisa
Ranch Hand
Posts: 495
posted 17 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
I went by your suggestion and i got the following error
"According to TLD or attribute directive in tag file, attribute url does not accept any expressions"
Thus is the code used
<h:graphicImage url="${imageURL}"> </h:graphicImage> <tiles:insertDefinition name="art2"> <tiles:putAttribute name="imageURL" value="../images/HeadOfHausa.gif"> </tiles:putAttribute> </tiles:insertDefinition>
Mark Spritzler
ranger
Posts: 17347
11
I like...
posted 17 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
by any chances are you also working with jstl?
With jstl you could have their core package and use <c:url> to generate the Url and use expressions
Mark
Perfect World Programming, LLC
-
iOS Apps
How to Ask Questions the Smart Way FAQ
He loves you so much! And I'm baking the cake! I'm going to put this tiny ad in the cake:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Wildcard Actions
Any solution for h:graphicImage using rich:toolTip
h:selectOneRadio question
Several folders for JSP in JSF
Not able to use action attribute in JSF graphicImage
More...