Hi,

is there any way to dynamically call a java function within GWT? For
an example, I need to dynamically call a specific Resource Bundle
method depending on a DataResource. The function should be called from
java code, but should use something like javascript eval(). See pseudo
code:

/* Usage */
getDisabledImageUrl(ResourceBundle.save());  /* Points to a
DataResource for image save.jpg */

/* Method that makes dynamic call */
public void getDisbledImageUrl(DataResource image)
{
    return eval( "ResourceBundle." + image.getName() +
"Disabled()" ); // Should call ResourceBundle.saveDisabled() that
points to a DataResource for image save.disabled.jpg
}

TIA
Harry

-- 
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.

Reply via email to