but, be aware, that you'll loose compile time checking in this case What would be the use case for this anyway? Can the user select an image and you store it in the database?
On Aug 24, 6:36 am, 李静 <[email protected]> wrote: > hi, > maybe you can use Reflection ; > just like: > > Class target = ICONS.getClass(); > Method m = target.getMethod(methodName, String.class); > m.invoke(ICONS, parameters...); > 2009/8/23 barclay allen <[email protected]> > > > > > I have an image bundle setup. > > > public static final MyIcons ICONS = GWT.create(MyIcons.class); > > > I can get the image with this. > > ICONS.smiley_face().createImage() > > > How can I dynamically get the smiley_face image by passing a string > > "smiley_face"? > > -- > 李静 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~----------~----~----~----~------~----~------~--~---
