Develop Screen as Google Web Toolkit

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
25 messages Options
12
Reply | Threaded
Open this post in threaded view
|

Develop Screen as Google Web Toolkit

Chatree Srichart
Hi community, I created the OFBiz-GWT
<http://code.google.com/p/ofbiz-gwt/>project to render the screen,
form and menu widgets as GWT widget.
You can try with
GettingStarted<http://code.google.com/p/ofbiz-gwt/wiki/GettingStarted>
page and
see how it work.

The benefits of this project are:

   - Partial screen updated
   - Developers do not need to know any
JavaScript?<http://code.google.com/p/ofbiz-gwt/w/edit/JavaScript>
    language
   - Client side validation
   - Create custom widget with Java language
   - Easy to debug a screen with GWT development mode

I hope you enjoy this project.

Regards,
Chatree Srichart
Reply | Threaded
Open this post in threaded view
|

Re: Develop Screen as Google Web Toolkit

Bruno Busco
I Chatree,
it seems that application.patch and specialpurpose.patch are empty.
Is this correct?

-Bruno

2010/10/22 Chatree Srichart <[hidden email]>

> Hi community, I created the OFBiz-GWT
> <http://code.google.com/p/ofbiz-gwt/>project to render the screen,
> form and menu widgets as GWT widget.
> You can try with
> GettingStarted<http://code.google.com/p/ofbiz-gwt/wiki/GettingStarted>
> page and
> see how it work.
>
> The benefits of this project are:
>
>   - Partial screen updated
>   - Developers do not need to know any
> JavaScript?<http://code.google.com/p/ofbiz-gwt/w/edit/JavaScript>
>    language
>   - Client side validation
>   - Create custom widget with Java language
>   - Easy to debug a screen with GWT development mode
>
> I hope you enjoy this project.
>
> Regards,
> Chatree Srichart
>
Reply | Threaded
Open this post in threaded view
|

Re: Develop Screen as Google Web Toolkit

Bruno Busco
...also running ant while in the hot-deploy/gwt directory does not work
becouse ant batch is located into /ofbiz.

-Bruno

2010/10/22 Bruno Busco <[hidden email]>

> I Chatree,
> it seems that application.patch and specialpurpose.patch are empty.
> Is this correct?
>
> -Bruno
>
> 2010/10/22 Chatree Srichart <[hidden email]>
>
> Hi community, I created the OFBiz-GWT
>> <http://code.google.com/p/ofbiz-gwt/>project to render the screen,
>> form and menu widgets as GWT widget.
>> You can try with
>> GettingStarted<http://code.google.com/p/ofbiz-gwt/wiki/GettingStarted>
>> page and
>> see how it work.
>>
>> The benefits of this project are:
>>
>>   - Partial screen updated
>>   - Developers do not need to know any
>> JavaScript?<http://code.google.com/p/ofbiz-gwt/w/edit/JavaScript>
>>    language
>>   - Client side validation
>>   - Create custom widget with Java language
>>   - Easy to debug a screen with GWT development mode
>>
>> I hope you enjoy this project.
>>
>> Regards,
>> Chatree Srichart
>>
>
>
Reply | Threaded
Open this post in threaded view
|

Re: Develop Screen as Google Web Toolkit

Chatree Srichart
The application.patch and specialpurpose.patch are empty is correct because
I didn't change anything in applications and specialpurpose directories. I
only changed the framework directory.

in the hot-deploy/gwt directory you need to put ../../ant and in
the hot-deploy/gwt/webapp/gwt directory you need to put ../../../../ant to
run ant batch.

Regards,
Chatree Srichart

On Sat, Oct 23, 2010 at 12:17 AM, Bruno Busco <[hidden email]> wrote:

> ...also running ant while in the hot-deploy/gwt directory does not work
> becouse ant batch is located into /ofbiz.
>
> -Bruno
>
> 2010/10/22 Bruno Busco <[hidden email]>
>
> > I Chatree,
> > it seems that application.patch and specialpurpose.patch are empty.
> > Is this correct?
> >
> > -Bruno
> >
> > 2010/10/22 Chatree Srichart <[hidden email]>
> >
> > Hi community, I created the OFBiz-GWT
> >> <http://code.google.com/p/ofbiz-gwt/>project to render the screen,
> >> form and menu widgets as GWT widget.
> >> You can try with
> >> GettingStarted<http://code.google.com/p/ofbiz-gwt/wiki/GettingStarted>
> >> page and
> >> see how it work.
> >>
> >> The benefits of this project are:
> >>
> >>   - Partial screen updated
> >>   - Developers do not need to know any
> >> JavaScript?<http://code.google.com/p/ofbiz-gwt/w/edit/JavaScript>
> >>    language
> >>   - Client side validation
> >>   - Create custom widget with Java language
> >>   - Easy to debug a screen with GWT development mode
> >>
> >> I hope you enjoy this project.
> >>
> >> Regards,
> >> Chatree Srichart
> >>
> >
> >
>
Reply | Threaded
Open this post in threaded view
|

Re: Develop Screen as Google Web Toolkit

Bruno Busco
Hi Chatree,
the hot-deploy is automatically compiled when I run ant in the \ofbiz
folder.
Unfortunately the hot-deploy/gwt/webapp/gwt is not automatically compiled
(maybe some gwt build.xml hack could do the job).
The command you suggest returns this error (I use Windows)

C:\ofbiz\ofbiz_gwt\hot-deploy\gwt\webapp\gwt>"C:\Programmi\Java\jdk1.6.0_14\bin\java"
-jar framework/base/lib/ant-launcher-1.7.1.jar -lib framework/base/lib/ant
Unable to access jarfile framework/base/lib/ant-launcher-1.7.1.jar


Thank you,
Bruno

2010/10/22 Chatree Srichart <[hidden email]>

> The application.patch and specialpurpose.patch are empty is correct because
> I didn't change anything in applications and specialpurpose directories. I
> only changed the framework directory.
>
> in the hot-deploy/gwt directory you need to put ../../ant and in
> the hot-deploy/gwt/webapp/gwt directory you need to put ../../../../ant to
> run ant batch.
>
> Regards,
> Chatree Srichart
>
> On Sat, Oct 23, 2010 at 12:17 AM, Bruno Busco <[hidden email]>
> wrote:
>
> > ...also running ant while in the hot-deploy/gwt directory does not work
> > becouse ant batch is located into /ofbiz.
> >
> > -Bruno
> >
> > 2010/10/22 Bruno Busco <[hidden email]>
> >
> > > I Chatree,
> > > it seems that application.patch and specialpurpose.patch are empty.
> > > Is this correct?
> > >
> > > -Bruno
> > >
> > > 2010/10/22 Chatree Srichart <[hidden email]>
> > >
> > > Hi community, I created the OFBiz-GWT
> > >> <http://code.google.com/p/ofbiz-gwt/>project to render the screen,
> > >> form and menu widgets as GWT widget.
> > >> You can try with
> > >> GettingStarted<http://code.google.com/p/ofbiz-gwt/wiki/GettingStarted
> >
> > >> page and
> > >> see how it work.
> > >>
> > >> The benefits of this project are:
> > >>
> > >>   - Partial screen updated
> > >>   - Developers do not need to know any
> > >> JavaScript?<http://code.google.com/p/ofbiz-gwt/w/edit/JavaScript>
> > >>    language
> > >>   - Client side validation
> > >>   - Create custom widget with Java language
> > >>   - Easy to debug a screen with GWT development mode
> > >>
> > >> I hope you enjoy this project.
> > >>
> > >> Regards,
> > >> Chatree Srichart
> > >>
> > >
> > >
> >
>
Reply | Threaded
Open this post in threaded view
|

Re: Develop Screen as Google Web Toolkit

Chatree Srichart
I suggest you install separate Apache Ant and set it to global PATH then you
can use "ant" command in every directory. I think this solution would solve
the problem. Download <http://ant.apache.org/bindownload.cgi>

Regards,
Chatree Srichart

On Sat, Oct 23, 2010 at 1:15 AM, Bruno Busco <[hidden email]> wrote:

> Hi Chatree,
> the hot-deploy is automatically compiled when I run ant in the \ofbiz
> folder.
> Unfortunately the hot-deploy/gwt/webapp/gwt is not automatically compiled
> (maybe some gwt build.xml hack could do the job).
> The command you suggest returns this error (I use Windows)
>
>
> C:\ofbiz\ofbiz_gwt\hot-deploy\gwt\webapp\gwt>"C:\Programmi\Java\jdk1.6.0_14\bin\java"
> -jar framework/base/lib/ant-launcher-1.7.1.jar -lib framework/base/lib/ant
> Unable to access jarfile framework/base/lib/ant-launcher-1.7.1.jar
>
>
> Thank you,
> Bruno
>
> 2010/10/22 Chatree Srichart <[hidden email]>
>
> > The application.patch and specialpurpose.patch are empty is correct
> because
> > I didn't change anything in applications and specialpurpose directories.
> I
> > only changed the framework directory.
> >
> > in the hot-deploy/gwt directory you need to put ../../ant and in
> > the hot-deploy/gwt/webapp/gwt directory you need to put ../../../../ant
> to
> > run ant batch.
> >
> > Regards,
> > Chatree Srichart
> >
> > On Sat, Oct 23, 2010 at 12:17 AM, Bruno Busco <[hidden email]>
> > wrote:
> >
> > > ...also running ant while in the hot-deploy/gwt directory does not work
> > > becouse ant batch is located into /ofbiz.
> > >
> > > -Bruno
> > >
> > > 2010/10/22 Bruno Busco <[hidden email]>
> > >
> > > > I Chatree,
> > > > it seems that application.patch and specialpurpose.patch are empty.
> > > > Is this correct?
> > > >
> > > > -Bruno
> > > >
> > > > 2010/10/22 Chatree Srichart <[hidden email]>
> > > >
> > > > Hi community, I created the OFBiz-GWT
> > > >> <http://code.google.com/p/ofbiz-gwt/>project to render the screen,
> > > >> form and menu widgets as GWT widget.
> > > >> You can try with
> > > >> GettingStarted<
> http://code.google.com/p/ofbiz-gwt/wiki/GettingStarted
> > >
> > > >> page and
> > > >> see how it work.
> > > >>
> > > >> The benefits of this project are:
> > > >>
> > > >>   - Partial screen updated
> > > >>   - Developers do not need to know any
> > > >> JavaScript?<http://code.google.com/p/ofbiz-gwt/w/edit/JavaScript>
> > > >>    language
> > > >>   - Client side validation
> > > >>   - Create custom widget with Java language
> > > >>   - Easy to debug a screen with GWT development mode
> > > >>
> > > >> I hope you enjoy this project.
> > > >>
> > > >> Regards,
> > > >> Chatree Srichart
> > > >>
> > > >
> > > >
> > >
> >
>
Reply | Threaded
Open this post in threaded view
|

Re: Develop Screen as Google Web Toolkit

Bruno Busco
Chatree,
I suggest to configure the build.xml file in the gtw component to do all the
work when invoked by the root ofbiz build system.
This is the standard way to build components in the hot-deploy.

Thank you,
Bruno

2010/10/22 Chatree Srichart <[hidden email]>

> I suggest you install separate Apache Ant and set it to global PATH then
> you
> can use "ant" command in every directory. I think this solution would solve
> the problem. Download <http://ant.apache.org/bindownload.cgi>
>
> Regards,
> Chatree Srichart
>
> On Sat, Oct 23, 2010 at 1:15 AM, Bruno Busco <[hidden email]>
> wrote:
>
> > Hi Chatree,
> > the hot-deploy is automatically compiled when I run ant in the \ofbiz
> > folder.
> > Unfortunately the hot-deploy/gwt/webapp/gwt is not automatically compiled
> > (maybe some gwt build.xml hack could do the job).
> > The command you suggest returns this error (I use Windows)
> >
> >
> >
> C:\ofbiz\ofbiz_gwt\hot-deploy\gwt\webapp\gwt>"C:\Programmi\Java\jdk1.6.0_14\bin\java"
> > -jar framework/base/lib/ant-launcher-1.7.1.jar -lib
> framework/base/lib/ant
> > Unable to access jarfile framework/base/lib/ant-launcher-1.7.1.jar
> >
> >
> > Thank you,
> > Bruno
> >
> > 2010/10/22 Chatree Srichart <[hidden email]>
> >
> > > The application.patch and specialpurpose.patch are empty is correct
> > because
> > > I didn't change anything in applications and specialpurpose
> directories.
> > I
> > > only changed the framework directory.
> > >
> > > in the hot-deploy/gwt directory you need to put ../../ant and in
> > > the hot-deploy/gwt/webapp/gwt directory you need to put ../../../../ant
> > to
> > > run ant batch.
> > >
> > > Regards,
> > > Chatree Srichart
> > >
> > > On Sat, Oct 23, 2010 at 12:17 AM, Bruno Busco <[hidden email]>
> > > wrote:
> > >
> > > > ...also running ant while in the hot-deploy/gwt directory does not
> work
> > > > becouse ant batch is located into /ofbiz.
> > > >
> > > > -Bruno
> > > >
> > > > 2010/10/22 Bruno Busco <[hidden email]>
> > > >
> > > > > I Chatree,
> > > > > it seems that application.patch and specialpurpose.patch are empty.
> > > > > Is this correct?
> > > > >
> > > > > -Bruno
> > > > >
> > > > > 2010/10/22 Chatree Srichart <[hidden email]>
> > > > >
> > > > > Hi community, I created the OFBiz-GWT
> > > > >> <http://code.google.com/p/ofbiz-gwt/>project to render the
> screen,
> > > > >> form and menu widgets as GWT widget.
> > > > >> You can try with
> > > > >> GettingStarted<
> > http://code.google.com/p/ofbiz-gwt/wiki/GettingStarted
> > > >
> > > > >> page and
> > > > >> see how it work.
> > > > >>
> > > > >> The benefits of this project are:
> > > > >>
> > > > >>   - Partial screen updated
> > > > >>   - Developers do not need to know any
> > > > >> JavaScript?<http://code.google.com/p/ofbiz-gwt/w/edit/JavaScript>
> > > > >>    language
> > > > >>   - Client side validation
> > > > >>   - Create custom widget with Java language
> > > > >>   - Easy to debug a screen with GWT development mode
> > > > >>
> > > > >> I hope you enjoy this project.
> > > > >>
> > > > >> Regards,
> > > > >> Chatree Srichart
> > > > >>
> > > > >
> > > > >
> > > >
> > >
> >
>
Reply | Threaded
Open this post in threaded view
|

Re: Develop Screen as Google Web Toolkit

BJ Freeman
+1

=========================
BJ Freeman
Strategic Power Office with Supplier Automation  <http://www.businessesnetwork.com/automation/viewforum.php?f=52>
Specialtymarket.com  <http://www.specialtymarket.com/>
Systems Integrator-- Glad to Assist

Chat  Y! messenger: bjfr33man


Bruno Busco sent the following on 10/22/2010 12:24 PM:

> Chatree,
> I suggest to configure the build.xml file in the gtw component to do all the
> work when invoked by the root ofbiz build system.
> This is the standard way to build components in the hot-deploy.
>
> Thank you,
> Bruno
>
> 2010/10/22 Chatree Srichart<[hidden email]>
>
>> I suggest you install separate Apache Ant and set it to global PATH then
>> you
>> can use "ant" command in every directory. I think this solution would solve
>> the problem. Download<http://ant.apache.org/bindownload.cgi>
>>
>> Regards,
>> Chatree Srichart
>>
>> On Sat, Oct 23, 2010 at 1:15 AM, Bruno Busco<[hidden email]>
>> wrote:
>>
>>> Hi Chatree,
>>> the hot-deploy is automatically compiled when I run ant in the \ofbiz
>>> folder.
>>> Unfortunately the hot-deploy/gwt/webapp/gwt is not automatically compiled
>>> (maybe some gwt build.xml hack could do the job).
>>> The command you suggest returns this error (I use Windows)
>>>
>>>
>>>
>> C:\ofbiz\ofbiz_gwt\hot-deploy\gwt\webapp\gwt>"C:\Programmi\Java\jdk1.6.0_14\bin\java"
>>> -jar framework/base/lib/ant-launcher-1.7.1.jar -lib
>> framework/base/lib/ant
>>> Unable to access jarfile framework/base/lib/ant-launcher-1.7.1.jar
>>>
>>>
>>> Thank you,
>>> Bruno
>>>
>>> 2010/10/22 Chatree Srichart<[hidden email]>
>>>
>>>> The application.patch and specialpurpose.patch are empty is correct
>>> because
>>>> I didn't change anything in applications and specialpurpose
>> directories.
>>> I
>>>> only changed the framework directory.
>>>>
>>>> in the hot-deploy/gwt directory you need to put ../../ant and in
>>>> the hot-deploy/gwt/webapp/gwt directory you need to put ../../../../ant
>>> to
>>>> run ant batch.
>>>>
>>>> Regards,
>>>> Chatree Srichart
>>>>
>>>> On Sat, Oct 23, 2010 at 12:17 AM, Bruno Busco<[hidden email]>
>>>> wrote:
>>>>
>>>>> ...also running ant while in the hot-deploy/gwt directory does not
>> work
>>>>> becouse ant batch is located into /ofbiz.
>>>>>
>>>>> -Bruno
>>>>>
>>>>> 2010/10/22 Bruno Busco<[hidden email]>
>>>>>
>>>>>> I Chatree,
>>>>>> it seems that application.patch and specialpurpose.patch are empty.
>>>>>> Is this correct?
>>>>>>
>>>>>> -Bruno
>>>>>>
>>>>>> 2010/10/22 Chatree Srichart<[hidden email]>
>>>>>>
>>>>>> Hi community, I created the OFBiz-GWT
>>>>>>> <http://code.google.com/p/ofbiz-gwt/>project to render the
>> screen,
>>>>>>> form and menu widgets as GWT widget.
>>>>>>> You can try with
>>>>>>> GettingStarted<
>>> http://code.google.com/p/ofbiz-gwt/wiki/GettingStarted
>>>>>
>>>>>>> page and
>>>>>>> see how it work.
>>>>>>>
>>>>>>> The benefits of this project are:
>>>>>>>
>>>>>>>    - Partial screen updated
>>>>>>>    - Developers do not need to know any
>>>>>>> JavaScript?<http://code.google.com/p/ofbiz-gwt/w/edit/JavaScript>
>>>>>>>     language
>>>>>>>    - Client side validation
>>>>>>>    - Create custom widget with Java language
>>>>>>>    - Easy to debug a screen with GWT development mode
>>>>>>>
>>>>>>> I hope you enjoy this project.
>>>>>>>
>>>>>>> Regards,
>>>>>>> Chatree Srichart
>>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>
>>>
>>
>

Reply | Threaded
Open this post in threaded view
|

Re: Develop Screen as Google Web Toolkit

James McGill-5
In reply to this post by Chatree Srichart
On Fri, Oct 22, 2010 at 7:16 AM, Chatree Srichart <
[hidden email]> 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 | Threaded
Open this post in threaded view
|

Re: Develop Screen as Google Web Toolkit

Chatree Srichart
In reply to this post by Bruno Busco
Bruno,
To compile the gwt webapp is compiling Java code to JavaScript and that will
spend for a long time. I don't want this to disturb if you only want to
compile normal Java code.

On Sat, Oct 23, 2010 at 2:24 AM, Bruno Busco <[hidden email]> wrote:

> Chatree,
> I suggest to configure the build.xml file in the gtw component to do all
> the
> work when invoked by the root ofbiz build system.
> This is the standard way to build components in the hot-deploy.
>
> Thank you,
> Bruno
>
> 2010/10/22 Chatree Srichart <[hidden email]>
>
> > I suggest you install separate Apache Ant and set it to global PATH then
> > you
> > can use "ant" command in every directory. I think this solution would
> solve
> > the problem. Download <http://ant.apache.org/bindownload.cgi>
> >
> > Regards,
> > Chatree Srichart
> >
> > On Sat, Oct 23, 2010 at 1:15 AM, Bruno Busco <[hidden email]>
> > wrote:
> >
> > > Hi Chatree,
> > > the hot-deploy is automatically compiled when I run ant in the \ofbiz
> > > folder.
> > > Unfortunately the hot-deploy/gwt/webapp/gwt is not automatically
> compiled
> > > (maybe some gwt build.xml hack could do the job).
> > > The command you suggest returns this error (I use Windows)
> > >
> > >
> > >
> >
> C:\ofbiz\ofbiz_gwt\hot-deploy\gwt\webapp\gwt>"C:\Programmi\Java\jdk1.6.0_14\bin\java"
> > > -jar framework/base/lib/ant-launcher-1.7.1.jar -lib
> > framework/base/lib/ant
> > > Unable to access jarfile framework/base/lib/ant-launcher-1.7.1.jar
> > >
> > >
> > > Thank you,
> > > Bruno
> > >
> > > 2010/10/22 Chatree Srichart <[hidden email]>
> > >
> > > > The application.patch and specialpurpose.patch are empty is correct
> > > because
> > > > I didn't change anything in applications and specialpurpose
> > directories.
> > > I
> > > > only changed the framework directory.
> > > >
> > > > in the hot-deploy/gwt directory you need to put ../../ant and in
> > > > the hot-deploy/gwt/webapp/gwt directory you need to put
> ../../../../ant
> > > to
> > > > run ant batch.
> > > >
> > > > Regards,
> > > > Chatree Srichart
> > > >
> > > > On Sat, Oct 23, 2010 at 12:17 AM, Bruno Busco <[hidden email]
> >
> > > > wrote:
> > > >
> > > > > ...also running ant while in the hot-deploy/gwt directory does not
> > work
> > > > > becouse ant batch is located into /ofbiz.
> > > > >
> > > > > -Bruno
> > > > >
> > > > > 2010/10/22 Bruno Busco <[hidden email]>
> > > > >
> > > > > > I Chatree,
> > > > > > it seems that application.patch and specialpurpose.patch are
> empty.
> > > > > > Is this correct?
> > > > > >
> > > > > > -Bruno
> > > > > >
> > > > > > 2010/10/22 Chatree Srichart <[hidden email]>
> > > > > >
> > > > > > Hi community, I created the OFBiz-GWT
> > > > > >> <http://code.google.com/p/ofbiz-gwt/>project to render the
> > screen,
> > > > > >> form and menu widgets as GWT widget.
> > > > > >> You can try with
> > > > > >> GettingStarted<
> > > http://code.google.com/p/ofbiz-gwt/wiki/GettingStarted
> > > > >
> > > > > >> page and
> > > > > >> see how it work.
> > > > > >>
> > > > > >> The benefits of this project are:
> > > > > >>
> > > > > >>   - Partial screen updated
> > > > > >>   - Developers do not need to know any
> > > > > >> JavaScript?<
> http://code.google.com/p/ofbiz-gwt/w/edit/JavaScript>
> > > > > >>    language
> > > > > >>   - Client side validation
> > > > > >>   - Create custom widget with Java language
> > > > > >>   - Easy to debug a screen with GWT development mode
> > > > > >>
> > > > > >> I hope you enjoy this project.
> > > > > >>
> > > > > >> Regards,
> > > > > >> Chatree Srichart
> > > > > >>
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
Reply | Threaded
Open this post in threaded view
|

Re: Develop Screen as Google Web Toolkit

Bruno Busco
Well,
ant should be smart enough to compile only what is needed.
I suggest this in order to have easier life for people that wants (like me)
try your work.

-Bruno


2010/10/23 Chatree Srichart <[hidden email]>

> Bruno,
> To compile the gwt webapp is compiling Java code to JavaScript and that
> will
> spend for a long time. I don't want this to disturb if you only want to
> compile normal Java code.
>
> On Sat, Oct 23, 2010 at 2:24 AM, Bruno Busco <[hidden email]>
> wrote:
>
> > Chatree,
> > I suggest to configure the build.xml file in the gtw component to do all
> > the
> > work when invoked by the root ofbiz build system.
> > This is the standard way to build components in the hot-deploy.
> >
> > Thank you,
> > Bruno
> >
> > 2010/10/22 Chatree Srichart <[hidden email]>
> >
> > > I suggest you install separate Apache Ant and set it to global PATH
> then
> > > you
> > > can use "ant" command in every directory. I think this solution would
> > solve
> > > the problem. Download <http://ant.apache.org/bindownload.cgi>
> > >
> > > Regards,
> > > Chatree Srichart
> > >
> > > On Sat, Oct 23, 2010 at 1:15 AM, Bruno Busco <[hidden email]>
> > > wrote:
> > >
> > > > Hi Chatree,
> > > > the hot-deploy is automatically compiled when I run ant in the \ofbiz
> > > > folder.
> > > > Unfortunately the hot-deploy/gwt/webapp/gwt is not automatically
> > compiled
> > > > (maybe some gwt build.xml hack could do the job).
> > > > The command you suggest returns this error (I use Windows)
> > > >
> > > >
> > > >
> > >
> >
> C:\ofbiz\ofbiz_gwt\hot-deploy\gwt\webapp\gwt>"C:\Programmi\Java\jdk1.6.0_14\bin\java"
> > > > -jar framework/base/lib/ant-launcher-1.7.1.jar -lib
> > > framework/base/lib/ant
> > > > Unable to access jarfile framework/base/lib/ant-launcher-1.7.1.jar
> > > >
> > > >
> > > > Thank you,
> > > > Bruno
> > > >
> > > > 2010/10/22 Chatree Srichart <[hidden email]>
> > > >
> > > > > The application.patch and specialpurpose.patch are empty is correct
> > > > because
> > > > > I didn't change anything in applications and specialpurpose
> > > directories.
> > > > I
> > > > > only changed the framework directory.
> > > > >
> > > > > in the hot-deploy/gwt directory you need to put ../../ant and in
> > > > > the hot-deploy/gwt/webapp/gwt directory you need to put
> > ../../../../ant
> > > > to
> > > > > run ant batch.
> > > > >
> > > > > Regards,
> > > > > Chatree Srichart
> > > > >
> > > > > On Sat, Oct 23, 2010 at 12:17 AM, Bruno Busco <
> [hidden email]
> > >
> > > > > wrote:
> > > > >
> > > > > > ...also running ant while in the hot-deploy/gwt directory does
> not
> > > work
> > > > > > becouse ant batch is located into /ofbiz.
> > > > > >
> > > > > > -Bruno
> > > > > >
> > > > > > 2010/10/22 Bruno Busco <[hidden email]>
> > > > > >
> > > > > > > I Chatree,
> > > > > > > it seems that application.patch and specialpurpose.patch are
> > empty.
> > > > > > > Is this correct?
> > > > > > >
> > > > > > > -Bruno
> > > > > > >
> > > > > > > 2010/10/22 Chatree Srichart <[hidden email]>
> > > > > > >
> > > > > > > Hi community, I created the OFBiz-GWT
> > > > > > >> <http://code.google.com/p/ofbiz-gwt/>project to render the
> > > screen,
> > > > > > >> form and menu widgets as GWT widget.
> > > > > > >> You can try with
> > > > > > >> GettingStarted<
> > > > http://code.google.com/p/ofbiz-gwt/wiki/GettingStarted
> > > > > >
> > > > > > >> page and
> > > > > > >> see how it work.
> > > > > > >>
> > > > > > >> The benefits of this project are:
> > > > > > >>
> > > > > > >>   - Partial screen updated
> > > > > > >>   - Developers do not need to know any
> > > > > > >> JavaScript?<
> > http://code.google.com/p/ofbiz-gwt/w/edit/JavaScript>
> > > > > > >>    language
> > > > > > >>   - Client side validation
> > > > > > >>   - Create custom widget with Java language
> > > > > > >>   - Easy to debug a screen with GWT development mode
> > > > > > >>
> > > > > > >> I hope you enjoy this project.
> > > > > > >>
> > > > > > >> Regards,
> > > > > > >> Chatree Srichart
> > > > > > >>
> > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
Reply | Threaded
Open this post in threaded view
|

Re: Develop Screen as Google Web Toolkit

Chatree Srichart
In reply to this post by James McGill-5
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 <
[hidden email]> wrote:

> On Fri, Oct 22, 2010 at 7:16 AM, Chatree Srichart <
> [hidden email]> 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 | Threaded
Open this post in threaded view
|

Re: Develop Screen as Google Web Toolkit

Erwan de FERRIERES
In reply to this post by Bruno Busco
Le 23/10/2010 09:29, Bruno Busco a écrit :
> Well,
> ant should be smart enough to compile only what is needed.
> I suggest this in order to have easier life for people that wants (like me)
> try your work.
>

You may add an ant target, like run-install-gwt, which will compile the
gwt code, and also make the standard run-install task.
the gwt task will just be dependent from the run-install one.

cheers,

--
Erwan de FERRIERES
www.nereide.biz
Reply | Threaded
Open this post in threaded view
|

Re: Develop Screen as Google Web Toolkit

Chatree Srichart
I added the changing language feature to the
OFBiz-GWT<http://code.google.com/p/ofbiz-gwt/>project. It would get
different languages from exist UI label files. To try
this please apply ofbiz-patches and re-compile again.

Regards,
Chatree Srichart
Reply | Threaded
Open this post in threaded view
|

Re: Develop Screen as Google Web Toolkit

Michael Xu (xudong)
As I know, we have a jquery branch already and now GWT is another direction,
which looks amazing. I think committee  should really and seriously consider
the overall UI approach. A concrete plan is even better.

--
Regards,
Michael Xu (xudong)



On Mon, Oct 25, 2010 at 11:16 AM, Chatree Srichart <
[hidden email]> wrote:

> I added the changing language feature to the
> OFBiz-GWT<http://code.google.com/p/ofbiz-gwt/>project. It would get
> different languages from exist UI label files. To try
> this please apply ofbiz-patches and re-compile again.
>
> Regards,
> Chatree Srichart
>
Reply | Threaded
Open this post in threaded view
|

Re: Develop Screen as Google Web Toolkit

Jacques Le Roux
Administrator
Yes, I was thinking at that too this weekend. There is a subtle difference though.

The jQuery branch has been discussed before on the dev ML and based on lazy consensy we decided to create this branch to replace
completly Dojo/Prototype by jQuery (mostly motivated by plugins possibilities)

OFBiz-GWT is Chatree's initiative. I have not looked at it yet. If I did well understood the idea is to replace (or side by side?)
form-widget by GWT-widget. I wonder though how it will handle all Ajax and plugins we use already in jQuery. This does not mean that
I'm against the idea. I'd love to forget about javascript ;o) but I really wonder if it's possible without loosing flexibility. Also
GWT means compilation, and it's one major strengths of OFBiz to not rely much on it (without speaking about reloading)

My 2cts

Jacques

From: "Michael Xu (xudong)" <[hidden email]>

> As I know, we have a jquery branch already and now GWT is another direction,
> which looks amazing. I think committee  should really and seriously consider
> the overall UI approach. A concrete plan is even better.
>
> --
> Regards,
> Michael Xu (xudong)
>
>
>
> On Mon, Oct 25, 2010 at 11:16 AM, Chatree Srichart <
> [hidden email]> wrote:
>
>> I added the changing language feature to the
>> OFBiz-GWT<http://code.google.com/p/ofbiz-gwt/>project. It would get
>> different languages from exist UI label files. To try
>> this please apply ofbiz-patches and re-compile again.
>>
>> Regards,
>> Chatree Srichart
>>
>


Reply | Threaded
Open this post in threaded view
|

Re: Develop Screen as Google Web Toolkit

BJ Freeman
In reply to this post by Michael Xu (xudong)
That all UI are controlled by the entity, so that a change in the Entity
will be shown in the UI with no further support.
the basic layer is defined as a presentation layer supported by Event
and View handlers as defined in
framework\common\webcommon\WEB-INF\common-controller.xml
of those, the Screens is the format for defining data layout.
the sub level is those widgets that are used in the Screens.


my 2 cents.

=========================
BJ Freeman
Strategic Power Office with Supplier Automation  <http://www.businessesnetwork.com/automation/viewforum.php?f=52>
Specialtymarket.com  <http://www.specialtymarket.com/>
Systems Integrator-- Glad to Assist

Chat  Y! messenger: bjfr33man
Michael Xu (xudong) sent the following on 10/24/2010 8:24 PM:

> As I know, we have a jquery branch already and now GWT is another direction,
> which looks amazing. I think committee  should really and seriously consider
> the overall UI approach. A concrete plan is even better.
>
> --
> Regards,
> Michael Xu (xudong)
>
>
>
> On Mon, Oct 25, 2010 at 11:16 AM, Chatree Srichart<
> [hidden email]>  wrote:
>
>> I added the changing language feature to the
>> OFBiz-GWT<http://code.google.com/p/ofbiz-gwt/>project. It would get
>> different languages from exist UI label files. To try
>> this please apply ofbiz-patches and re-compile again.
>>
>> Regards,
>> Chatree Srichart
>>
>
Reply | Threaded
Open this post in threaded view
|

Re: Develop Screen as Google Web Toolkit

Chatree Srichart
I have added the history function to OFBiz-GWT project. The GWT would handle
screen when you click on the "Back" or "Forward" buttons of a web browser.

Regards,
Chatree Srichart
Reply | Threaded
Open this post in threaded view
|

Re: Develop Screen as Google Web Toolkit

Michael Xu (xudong)
Cool!

May I suggest that you put gwt codes as a branch and have some documents in
ofbiz wiki?

--
Regards,
Michael Xu (xudong)


On Sun, Oct 31, 2010 at 5:11 PM, Chatree Srichart <
[hidden email]> wrote:

> I have added the history function to OFBiz-GWT project. The GWT would
> handle
> screen when you click on the "Back" or "Forward" buttons of a web browser.
>
> Regards,
> Chatree Srichart
>
Reply | Threaded
Open this post in threaded view
|

Re: Develop Screen as Google Web Toolkit

Jacques Le Roux
Administrator
In reply to this post by Chatree Srichart
BTW, there is also http://code.google.com/p/ofbizify/

Maybe http://code.google.com/p/ofbiz-gwt/ and http://code.google.com/p/ofbizify/ could work together?

My 2 cts

Jacques

From: "Chatree Srichart" <[hidden email]>
>I added the changing language feature to the
> OFBiz-GWT<http://code.google.com/p/ofbiz-gwt/>project. It would get
> different languages from exist UI label files. To try
> this please apply ofbiz-patches and re-compile again.
>
> Regards,
> Chatree Srichart
>

12