Hi,
My applications have GUI forms with controls dynamically generated and
placed on the panels. The controls are defined in a database - JType,
size, name, default etc.
They are also dynamically bound to a model using DocumentListeners et
al.
I would also like to provide end user administrators the ability to
define their own custom client side logic that is triggered by events.
For instance controls are made visible/invisible/disabled/default text,
check values across multiple controls etc.
How do I do this? A couple of thoughts come to mind
a) Some kind of javascript which can reference controls by name. I'd
have to research more to see if there is even a scripting language that
could do that.
b) Provide interfaces to the controls and have the client write and
compile java code against those interfaces.
Not sure if a) would provide compile time checking - perhaps only run
time. It is advantageous that the client can potentially just write a
quick script in a reference utility and then they are ready to go.
b) is a bit of a pain in that the client needs to compile and create a
jar file, deploy so that it is picked up etc. However upgrades would
easily identify issues on compilation so perhaps the runtime would be
more stable.
Any ideas?
thanks
Tim
opalpa@gmail.com opalinski from opalpaweb - 23 Feb 2006 02:28 GMT
Makes me think of Jython.
Opalinski
opalpa@gmail.com
http://www.geocities.com/opalpaweb/
timasmith@hotmail.com - 23 Feb 2006 03:55 GMT
Looking at a few options it appears Rhino is a good choice for
scripting.