• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Resources in ui:image

 
Kamil Kuchta
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • 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...."?
 
Maneesh Godbole
Saloon Keeper
Posts: 11164
14
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • 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'
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic