My approach is I want to implement normal screen, from and menu widgets and
render them to GWT widget without JavaScript coding. This means I can reuse
any exist screen/from/menu widgets and render them to GWT widget. I want to
implement a custom UI widget with Java language and render to GWT widget. I
don't like to write JavaScript much because it difficult to debug, change
and maintenance. I choose GWT because I don't need to write JavaScript. I
just write Java code and compile to JavaScript which be good optimized. So
that would make a UI very fast. GWT also has development mode to debug UI by
using development console.

For this project we can use the exist concept of OFBiz. We can use service,
event, groovy and screen/form/widget's action to retrieve data to show on a
screen.

The GWT would get data from OFBiz by calling request-map and
GwtScreenViewHandler will render a screen to JSON format, using the exist
request-response cycle. The JSON will tell the GWT how the data and screen
should be render and GWT will convert the JSON data to GWT widget. For
updating the partial screen, we would specify a target screen that would be
updated by setting the target-window attribute of form/menu/link xml tag.

Regards,
Chatree Srichart

On Sat, Oct 23, 2010 at 6:30 AM, James McGill <
[email protected]> wrote:

> On Fri, Oct 22, 2010 at 7:16 AM, Chatree Srichart <
> [email protected]> wrote:
>
> > Hi community, I created the OFBiz-GWT project to render the screen, form
> > and menu widgets as GWT widget.
> >
>
>
I'm really happy to see this project.  How would you compare your approach
> for GWT with the way Opentaps does it?
>
> Does GWT integration require a lot of tightly coupled Java objects?  We
> have
> a project where we introduced some GWT elements, and the way we did it
> required us to create a lot of DTOs, which is really a giant step away from
> the nice abstract Map idea that OFBiz uses to represent entities, parameter
> lists, and pretty much all other data.
>
> I would love to see an example of this OFBiz-GWT project that gets data
> from
> the OFBiz delegator, dispatcher, or both.  The Screen/Form/Menu rendering
> is
> interesting, and it's good that it extends the OFBiz template macros for a
> consistent approach, but it is hard for me to see how you get OFBiz data
> into this presentation.  It's especially hard for me to see how the data
> integration will work considering the inversion of the request-response
> cycle that happens when you use AJAX.
>
> I'm going to experiment with your project and try to answer these questions
> for myself, but if someone else has worked through it, it would be great to
> hear a clear explanation and see some examples.
>
>
> --
> James McGill
> Phoenix AZ
>

Reply via email to