Results 1 to 6 of 6

Thread: getting an image from a String field?

  1. #1

    Default 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

  2. #2
    Join Date
    Jun 2010
    Posts
    440

    Default

    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.

  3. #3
    Join Date
    Jul 2011
    Location
    Wokingham UK
    Posts
    35

    Default

    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

  4. #4

    Default

    thanks jD.. thats perfect

  5. #5
    Join Date
    Jun 2010
    Posts
    440

    Default

    @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

  6. #6
    Join Date
    Jun 2010
    Posts
    440

    Default

    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
  •