-
Sep 28th, 2011, 09:32 AM
#1
getting an image from a String field?
How do i retrieve an image from a string field in my project?
what i am trying to achieve is i have two fields named firstImage and secondImage these contain the address to each file and i would like to display these images in my project, nothing i can find will allow me to do it
-
Sep 28th, 2011, 09:45 AM
#2
Review my article at http://viralpatel.net/blogs/2011/02/...-tutorial.html. It explains much more that you are asking but definitely would answer your question.
B. Roogards
jD
Last edited by delgad9; Sep 28th, 2011 at 09:50 AM.
-
Sep 28th, 2011, 07:10 PM
#3
Many thanks to jD for that GREAT article. Lots of good code in that example (it taught me alot) BUT I do feel jD's method of displaying an image in a form is a little over the top.
Using a Frame is Very showy but, OTT. 
After studing jD's GREAT working example you should be able to see how to write your own .tagx file that will display an image on a form. The key is working out (seeing) how to use one of the exsting .tagx files as a basis for your own. The tagx just generates the html from parameters you supply in the ".jspx" view.
The reason why you can't find how to do this in Roo is that Roo is it just (by default) using a standard technology (faces?) to do all the display generation. So you need to go and look at how that display technology does this sort of thing. Using jD's example is good start but getting to understand the .tagx .jspx functionality is even better.
--
Roger
-
Sep 28th, 2011, 08:32 PM
#4
thanks jD.. thats perfect
-
Sep 28th, 2011, 10:43 PM
#5
@adam2510
You are very welcome...
@RogerPf
It is not over. It is not under. It is the right way...
You get out-of-the-box a modular library that lacks of a component for rendering images. What you would do?
I believe adding a new component for this purpose is the right way to go.
B. Roogards to both
jD
-
Sep 29th, 2011, 07:42 AM
#6
Who do you think you are? To score other forum members work...
I thought we are in the helping other member business not in the scoring one.
Well since this the way you understand things: I score you 0/10 in oop concepts and 100/10 in making trivial useless points.
B. Roogards
Jd
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules