either you parse a text resource on client side (may be time
consuming).
Or you (ab)use i18n. Then you can deliver any simple type.
The most complex approach would be to write an own
ResourceTypeGenerator.
This would be able to take any sources, properties, xml and so on.
Stefan Bachert
http://gwtworld.de
On Jun 25, 9:59 am, Magnus <alpineblas...@googlemail.com> wrote:
> Can I also access XML or property files in this way?
>
> I found TextResource, but this is not parsed.
>
> Magnus
>
> On 25 Jun., 08:13, Magnus <alpineblas...@googlemail.com> wrote:
>
> > Thank you,
>
> > this works fine!
>
> > Magnus
>
> > On 24 Jun., 21:25, roji <rojan...@gmail.com> wrote:
>
> > > Hi Magnus.
>
> > > The GWT way of referencing images (and other static resources) is to
> > > use a ClientBundle. You can see some instructions athttp://code.google.com/webtoolkit/doc/latest/DevGuideClientBundle.html
>
> > > Shay
>
> > > On Jun 24, 2:58 pm, Magnus <alpineblas...@googlemail.com> wrote:
>
> > > > Hi,
>
> > > > I would like to store images near the classes that use them.
>
> > > > However, I cannot find a GWT example which loads an images in the src
> > > > folder (or a sub folder). I found many examples using
> > > > class.getResourceAsStream, but this is not available in GWT client.
>
> > > > How can I load an Image residing in src/.../<MyClass>/subfolder/
> > > > myImage.png?
>
> > > > Thanks
> > > > Magnus- Zitierten Text ausblenden -
>
> > > - Zitierten Text anzeigen -- Zitierten Text ausblenden -
>
> > - Zitierten Text anzeigen -
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
No comments:
Post a Comment