This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of Real-World Software Development: A Project-Driven Guide to Fundamentals in Java and have Dr. Raoul-Gabriel Urma & Richard Warburton on-line!
See this thread for details.
Win a copy of Real-World Software Development: A Project-Driven Guide to Fundamentals in Java this week in the Agile and Other Processes forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Liutauras Vilda
  • Knute Snortum
  • Bear Bibeault
master stewards:
  • Devaka Cooray
  • Jeanne Boyarsky
  • Junilu Lacar
garden masters:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • salvin francis
gardeners:
  • Tim Holloway
  • Piet Souris
  • Frits Walraven

Resources in ui:image

 
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...."?
 
Bartender
Posts: 11445
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • 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'
 
no wonder he is so sad, he hasn't seen this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!