• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Resources in ui:image

 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I would ask for using resources especially images.doesn't work.

The only solution which I know is to store images in package com.my.app.widgets.resources and use
<ui:image field='pic' src='resources/logo.png'/>
which IMO is not very nice way of using images.
I would prefer to use resources= and prefix res set in <iu:with/> like in <g:Image field=.... resource=.../>
Is any way to use ui:images in more smartly way?

edit:
Added next day.
Is this question so hard or so stupid that nobody can answer - "Yes, this is the only way of using resources" or "No, you can use...."?
 
Bartender
Posts: 11497
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Kamil Kuchta wrote:
edit:
Added next day.
Is this question so hard or so stupid that nobody can answer - "Yes, this is the only way of using resources" or "No, you can use...."?



All of us here are volunteers. We drop in here in our spare time. So most probably you did not get any answer because nobody found the time to ponder upon it.

I have never used a resource bundle.
I prefer having an images folder under war. Then I access them using src='images/foo.png'
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic