Hi Charlie
Okay, I see the problem. Actually the way Applet Parameters work, they
could be used dynamically. But with the annotation based solution in
GwtAI this does not work. In GwtAI the Applet tag with the parameters
is constructed at compile time, thus you have to know the parameter
values at compile time.
Now there are different solutions to the problem.
If you rely on dynamic Applet Parameters the straight forward
workaround is to construct your own Applet Proxy. Instead of creating
an interface for your Applet and adding annotations to this interface,
write an Applet Proxy class. The class has to extend
'com.google.gwt.gwtai.applet.client.AppletAccomplice' and implement
'com.google.gwt.gwtai.applet.client.Applet'. Of course you have to
implement all your dynamic parameter logic and all required methods in
this class, but that should be self explanatory. You can then pass
your new class to the 'createAppletWidget(..)' method of the
'com.google.gwt.gwtai.applet.client.AppletJSUtil' class...
Another way is to just add some kind of setter method to your Applet.
Something like 'myApplet.setHostPageBaseURL(String url)'. See how the
TrayIcon demo handles 'addTextItem(String caption)' for example.
The other option is, you could help to improve GwtAI and think of a
good way to handle dynamic Applet Parameters. I would probably add a
method 'createAppletWidget(Applet applet, HashMap parameter)' or
something like that to the
'com.google.gwt.gwtai.applet.client.AppletJSUtil' class...
Hope that helps!
Adrian