aspose file tools*
The moose likes GWT and the fly likes Resources in ui:image Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » GWT
Bookmark "Resources in ui:image" Watch "Resources in ui:image" New topic
Author

Resources in ui:image

Kamil Kuchta
Greenhorn

Joined: Mar 09, 2009
Posts: 17
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

Joined: Jul 26, 2007
Posts: 10343
    
    8

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'


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Resources in ui:image