Hi Jonathon, What I need is like the struts2 integrate with dojo, when you want to use the AJAX function just add " theme='ajax' " in the form elements. and then the form have the AJAX function like submit it without refresh all page, auto validation the input, make the table pages AJAXed and so on.
I will create JIRA for this, and waiting for your contribute:) Thank you! Jack Guo 2007/9/12, Jonathon -- Improov <[EMAIL PROTECTED]>: > > Hi Jack, > > I integrated the AJAX aspects of Dojo into the Widget Engine. Haven't done > much with the Dojo widgets. > > Check out the Form Widget elements like <field> and attributes like > "action", the ideas are there. > At the simplest level, my integration merely makes it unnecessary for you > to write any javascript > codes to do AJAX, that's all. > > There are also several extensions that have more to do with javascript > than with Dojo. As we get > more and more common javascript chunks showing up, we can also abstract > those into the Widget Engine. > > Hope you understand my rough illustration of my integration strategy. No > rocket science, as you > can see. > > Rather than have me dump to you my assorted toolsets, why don't you > specify on JIRA exactly what > you need to get done with Dojo and Widget Engine? I'll submit small and > self-contained patches to > address specific needs. Cleaner that way, and easier to merge into OFBiz > SVN. > > So is Dojo to chosen toolkit? I'd vote for it, since it already is in > OFBiz SVN. > > Jonathon > > guo weizhan wrote: > > Hi Jonathon, > > > > How do you built dojo into the Widget Engine? Is there any code I can > reuse? > > > > And I think Dojo it's powerfull, I like dojo to deal js as the div. > > > > Thanks, > > > > Jack Guo > > > > > > 2007/9/12, Jonathon -- Improov <[EMAIL PROTECTED]>: > >> Al, > >> > >> I had built Dojo into the Widget Engine already, in one of my own > private > >> implementations. (Beyond > >> that, I had also done several nifty AJAX stuff in Widget Engine, like > >> making the next/prev buttons > >> AJAXed). > >> > >> The exercise has told me that integrating any other javascript toolkit > >> into the Widget Engine will > >> follow similar lines. I have the distinct feeling that the Widget > Engine > >> can be built to support > >> more than 1 toolkit! > >> > >> Let me know which toolkit wins your votes, and I'll see if I can kick > >> start the integration exercise. > >> > >> Jonathon > >> > >> Al Byers wrote: > >>> Where did we leave the javascript toolkit debate? Googling does not > show > >> any > >>> clear cut direction. > >>> > >>> I have a question about Prototype. Does it have layout widgets like > Dojo > >>> (eg. TabContainer, SplitContainer, AccordianContainer)? I don't see > them > >> in > >>> the API for Prototype. > >>> > >>> I think we need to make a choice primarily because it will be possible > >> to > >>> integrate a toolkit with the screen widget technology and it won't be > >>> practical to do more than one. Right now I feel comfortable with Dojo > as > >> the > >>> primary js toolkit, but that could be because I am not familiar with > >> others. > >>> I like the strong layout widgets that Dojo has and it seems to have > >>> everything else, too, and I don't think that is a bad thing. I am able > >> to do > >>> a file upload within Dojo and get a JSON response and I think that is > an > >>> important consideration. I have read that Dojo is more Java, workman > >> like > >>> and Prototype is more Ruby and elegant. If that is the case, I would > opt > >> for > >>> Dojo. > >>> > >>> If nothing else, it might be useful to use this thread to measure > where > >> the > >>> community's interest lies. So respond with nothing more than a vote if > >> you > >>> care to. > >>> > >>> -Al > >>> > >>> > >>> > >>> > ------------------------------------------------------------------------ > >>> > >>> No virus found in this incoming message. > >>> Checked by AVG Free Edition. > >>> Version: 7.5.485 / Virus Database: 269.13.14/999 - Release Date: > >> 9/10/2007 5:43 PM > >> > >> > > > > > > ------------------------------------------------------------------------ > > > > No virus found in this incoming message. > > Checked by AVG Free Edition. > > Version: 7.5.485 / Virus Database: 269.13.15/1002 - Release Date: > 9/11/2007 5:46 PM > >