Guo,

I agree that having ScreenWidgets easily use ajax is a good goal and I don't
see any problem with moving ahead on that front. But I think there is much
more that can be done with the DHTML capabilities of Dojo, but I am not sure
I know what they all are. I would like to ask for help from the community in
suggesting ways in which a rich client could improve OFBiz. I will start a
list.

1. Type ahead.
2. Show detail data upon rollover.
3. Popups that don't get hidden.
4. Rich text editor.
5. Tab, accordian and other containers.
6. Better drill down techniques using embedded containers and/or trees.
7.???

These are the kind of things that I think need to be automated with a widget
system.

Also, here is a snippet of code that I used to upload a file via Dojo. It
would not be needed to send standard form types, but I am not sure that it
would hurt or not be a good idea to use this iframe method for all postings.

             function sendImage(){
                     var formId = "editimageForm";
                     dojo.io.iframe.send({
                             form: dojo.byId(formId),
                             handleAs: "json",
                             content: {
                                     increment: callCount++,
                                     fileFields: "uploadedFile"
                             },
                             load: function(response, ioArgs){
                               var contentDataControl = dijit.byId
('contentdatadetail');
                                contentDataControl.setContent("<img
src='/content/control/ViewSimpleContent?dataResourceId=" +
response.dataResourceId + "'/>");
                               var dialogObj = dijit.byId
("editimageDialog");
                                dialogObj.hide();

                             },
                             handle: function(response, ioArgs){
                             }
                     });
              }

Also, see the DojoJSONServiceEventHandler class that I wrote to work with
form of Dojo ajax.

-Al

On 9/15/07, guo weizhan <[EMAIL PROTECTED]> wrote:
>
> That's greate, I would love to finish this with you, and what's your
> progress now? I just figure out how to start with this, and try to extend
> some screenWidget classes, like the HtmlFormRenderer, but it's just the
> begining. My purpose it's to make the ScreenWidget can use the ajax
> easily.It'll be greate if there is any design that we could implement
> together.
>
>
> 2007/9/16, Al Byers <[EMAIL PROTECTED]>:
> >
> > Guo,
> >
> > I have been using Dojo for 3 weeks and am also impressed. If you are
> > thinking about integrating it with screen widgets, then we should
> > collaborate, as I was also thinking of doing the same thing. I work on
> the
> > original screen widget code so I have a pretty good feel on how things
> > work.
> >
> > I think we will want to extend the ScreenWidget classes and the XML
> > schema.
> > We should look at more than just forms - the dojo layout dijits are also
> > very useful. Some thought has to be given to how we return screens built
> > with widgets using AJAX and JSON.
> >
> > I think I will be in better position to talk about the design in a few
> > days,
> > but it won't hurt to discuss it here now.
> >
> > -Al
> >
> > On 9/15/07, guo weizhan <[EMAIL PROTECTED]> wrote:
> > >
> > > I'm doing this for comple days, it's perfect to use dojo with Ofbiz.
> one
> > > of
> > > the screen capture url: http://www.open-agile.com/dojo.bmp
> > >
> > > I want to make all the widget form element use the dojo type, and have
> > > ajax
> > > function and look good:)
> > >
> > > But it just the begining now, it's  long term to finish.
> > >
> > >
> > >
> > > 2007/9/15, [EMAIL PROTECTED] <[EMAIL PROTECTED]>:
> > > >
> > > > Anyone have any comments on using Dojo with Ofbiz, especially the .9
> > > > release?
> > > >
> > > > I see that the .9 release is like half the size of the .4 release
> > > >
> > > > Skip
> > > >
> > > >
> > >
> >
>

Reply via email to