Hi,

I had a similar requirement.  Essentially I was trying to create a web
app, that had a number of default forms where users would enter data,
but I wanted the ability to add new forms on the fly (typically from a
third-party source).

The simplest approach I found was to define my forms with XML.  When
the app loads, it gets the XML from the server side and builds the
list of forms.
When a user actually loads a form, a parser goes through the XML and
constructs the appropriate widgets.

e.g.

<form>
  <grid col=2 row=1>
    <Label Name="test name" rowPos=0 colPos=0>Default Value</Label>
    <TextBox Name="mybox" rowPos=0 colPos=1>Default Value</TextBox>
  </grid>
</form>

The is obviously a simple version, but the above would construct a new
form and add a 1x2 grid to it hopefully looking something like:

______________________
|                                     |
| test name __________   |
|                |__________|  |
|_____________________|


To add a new file on the fly a third-party just needs to submit the
forms xml to the server side DB.  When a client refreshes their
browser the latest list of forms will be brought over.



On Sep 29, 4:45 am, Matt <[email protected]> wrote:
> Hi,
>
> I was wondering if it's possible at all, or if anyone has suggestions
> on best practices for plugging additional widgets into a GWT app after
> compile?
>
> We have a fat client app that has a pretty large set of functionality
> that we're porting to GWT, but occasionally clients needs some
> specific additional functionality, currently we support the ability to
> do this by a COM interface in our C++ app.
>
> I'm looking to replicate a similar ability in a GWT app, from what I
> can tell there is no way to do this other than providing a javascript
> interface that gets wrapped by a handler frame that has a JSNI
> interface. Is this really the only way to handle this case?
--~--~---------~--~----~------------~-------~--~----~
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