You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by Si Chen <si...@opensourcestrategies.com> on 2006/12/12 17:05:48 UTC
json + prototype + ajax?
Hi Andy -
Just saw your commits last night. What are you planning to implement
with JSON and Ajax?
We were thinking about doing an auto-complete for the form widget
lookup with prototype.js this week, by the way.
Best Regards,
Si
sichen@opensourcestrategies.com
Re: json + prototype + ajax?
Posted by Tim Ruppert <ti...@hotwaxmedia.com>.
We're actually using JSON on the backend and Dojo on the front end of
an application that we're building right now. We've done research
into GWT and a full JSON solution (front end included) as well.
Dojo seems quite simple - prototype.js is just about the same - as is
Yahoo. Seems to me that the JSON backend is something we can
standardize on - and everyone can just pick the front of their choice.
Cheers,
Tim
--
Tim Ruppert
HotWax Media
http://www.hotwaxmedia.com
o:801.649.6594
f:801.649.6594
On Dec 12, 2006, at 10:16 AM, Anil Patel wrote:
> Has anybody tried Dojo toolkit for Ajax?
> If it was then What are the its cons over prototype.js.
> If we know more on this will help us to make better decisions in
> future on,
> How to pick third party library that can be proposed to Ofbiz
> community.
>
> Regards
> Anil Patel
>
>
>
> On 12/12/06, Si Chen <si...@opensourcestrategies.com> wrote:
>>
>> Hi Andy -
>>
>> Just saw your commits last night. What are you planning to implement
>> with JSON and Ajax?
>>
>> We were thinking about doing an auto-complete for the form widget
>> lookup with prototype.js this week, by the way.
>>
>> Best Regards,
>>
>> Si
>> sichen@opensourcestrategies.com
>>
>>
>>
>>
>>
Re: json + prototype + ajax?
Posted by Ean Schuessler <ea...@brainfood.com>.
On Tuesday 12 December 2006 13:27, Al Byers wrote:
> subsumed? I had never heard that word before. Thanks for the vocabulary
> lesson.
>
> Main Entry: sub·sume
> Pronunciation: s&b-'süm
> Function: transitive verb
> Inflected Form(s): sub·sumed; sub·sum·ing
> Etymology: New Latin subsumere, from Latin sub- + sumere to take up --
> more at CONSUME
>
> : to include or place within something larger or more comprehensive :
>
> encompass as a subordinate or component element <red, green, and
> yellow are subsumed under the term "color">
Just so: http://jruby.sourceforge.net/
;-)
--
Ean Schuessler, CTO
ean@brainfood.com
214-720-0700 x 315
Brainfood, Inc.
http://www.brainfood.com
Re: json + prototype + ajax?
Posted by Jacques Le Roux <ja...@les7arts.com>.
We use(d?) it a lot in AI (at least here in Europe?). I thought it came from English (like most computer words) never searched ;o)
BTW not really surprised that it's derived from Latin.
Jacques
----- Original Message -----
From: "Al Byers" <by...@automationgroups.com>
To: <of...@incubator.apache.org>
Sent: Tuesday, December 12, 2006 8:27 PM
Subject: Re: json + prototype + ajax?
> subsumed? I had never heard that word before. Thanks for the vocabulary lesson.
>
> Main Entry: sub·sume
> Pronunciation: s&b-'süm
> Function: transitive verb
> Inflected Form(s): sub·sumed; sub·sum·ing
> Etymology: New Latin subsumere, from Latin sub- + sumere to take up --
> more at CONSUME
> : to include or place within something larger or more comprehensive :
> encompass as a subordinate or component element <red, green, and
> yellow are subsumed under the term "color">
>
> -Al
>
> On 12/12/06, Ean Schuessler <ea...@brainfood.com> wrote:
> > On Tuesday 12 December 2006 12:08, Yoav Shapira wrote:
> > > Hi,
> > > Talking about JavaScript toolkits is becoming like talking about
> > > programming languages: it's an endless debate about religious
> > > zealotry, really ;)
> > >
> > > Dojo is good, it works. Prototype is good, it works. Dojo is being
> > > adopted as a standard by some Java libraries, like Struts 2 IIRC.
> > > Prototype is a de-facto standard in the Ruby on Rails world. Hence my
> > > first sentence above.
> > >
> > > As long as you're considering options for OFBiz, I'd throw another
> > > candidate in the ring: jQuery (http://jquery.com/). It's a fantastic
> > > little library that also works well, but importantly for me, solves my
> > > biggest complaints about Dojo and prototype: size. Both Dojo and
> > > prototype end up adding hundreds of KBs to the size of your web page.
> > > Sure they might get cached on the client or elsewhere along the way,
> > > but still, the software engineer in me hates the thought of all that
> > > baggage.
> >
> > <trolling>
> > We need something thin, like OFBiz! ;-)
> >
> > From a strategic point of view I think that Dojo has a lot of inertia
> > developing in the Java community and that is going to pay off for us.
> > Everyone with any sense knows that Ruby is doomed to be subsumed by the
> > unstoppable Linux+Java stack since no one seriously believes that Linux+Ruby
> > is a viable adversary against Windows+.NET.
> > </trolling>
> >
> > Actually, this JQuery stuff looks intruiging.
> >
> > --
> > Ean Schuessler, CTO
> > ean@brainfood.com
> > 214-720-0700 x 315
> > Brainfood, Inc.
> > http://www.brainfood.com
> >
Re: json + prototype + ajax?
Posted by Al Byers <by...@automationgroups.com>.
subsumed? I had never heard that word before. Thanks for the vocabulary lesson.
Main Entry: sub·sume
Pronunciation: s&b-'süm
Function: transitive verb
Inflected Form(s): sub·sumed; sub·sum·ing
Etymology: New Latin subsumere, from Latin sub- + sumere to take up --
more at CONSUME
: to include or place within something larger or more comprehensive :
encompass as a subordinate or component element <red, green, and
yellow are subsumed under the term "color">
-Al
On 12/12/06, Ean Schuessler <ea...@brainfood.com> wrote:
> On Tuesday 12 December 2006 12:08, Yoav Shapira wrote:
> > Hi,
> > Talking about JavaScript toolkits is becoming like talking about
> > programming languages: it's an endless debate about religious
> > zealotry, really ;)
> >
> > Dojo is good, it works. Prototype is good, it works. Dojo is being
> > adopted as a standard by some Java libraries, like Struts 2 IIRC.
> > Prototype is a de-facto standard in the Ruby on Rails world. Hence my
> > first sentence above.
> >
> > As long as you're considering options for OFBiz, I'd throw another
> > candidate in the ring: jQuery (http://jquery.com/). It's a fantastic
> > little library that also works well, but importantly for me, solves my
> > biggest complaints about Dojo and prototype: size. Both Dojo and
> > prototype end up adding hundreds of KBs to the size of your web page.
> > Sure they might get cached on the client or elsewhere along the way,
> > but still, the software engineer in me hates the thought of all that
> > baggage.
>
> <trolling>
> We need something thin, like OFBiz! ;-)
>
> From a strategic point of view I think that Dojo has a lot of inertia
> developing in the Java community and that is going to pay off for us.
> Everyone with any sense knows that Ruby is doomed to be subsumed by the
> unstoppable Linux+Java stack since no one seriously believes that Linux+Ruby
> is a viable adversary against Windows+.NET.
> </trolling>
>
> Actually, this JQuery stuff looks intruiging.
>
> --
> Ean Schuessler, CTO
> ean@brainfood.com
> 214-720-0700 x 315
> Brainfood, Inc.
> http://www.brainfood.com
>
Re: json + prototype + ajax?
Posted by Ean Schuessler <ea...@brainfood.com>.
On Tuesday 12 December 2006 12:08, Yoav Shapira wrote:
> Hi,
> Talking about JavaScript toolkits is becoming like talking about
> programming languages: it's an endless debate about religious
> zealotry, really ;)
>
> Dojo is good, it works. Prototype is good, it works. Dojo is being
> adopted as a standard by some Java libraries, like Struts 2 IIRC.
> Prototype is a de-facto standard in the Ruby on Rails world. Hence my
> first sentence above.
>
> As long as you're considering options for OFBiz, I'd throw another
> candidate in the ring: jQuery (http://jquery.com/). It's a fantastic
> little library that also works well, but importantly for me, solves my
> biggest complaints about Dojo and prototype: size. Both Dojo and
> prototype end up adding hundreds of KBs to the size of your web page.
> Sure they might get cached on the client or elsewhere along the way,
> but still, the software engineer in me hates the thought of all that
> baggage.
<trolling>
We need something thin, like OFBiz! ;-)
From a strategic point of view I think that Dojo has a lot of inertia
developing in the Java community and that is going to pay off for us.
Everyone with any sense knows that Ruby is doomed to be subsumed by the
unstoppable Linux+Java stack since no one seriously believes that Linux+Ruby
is a viable adversary against Windows+.NET.
</trolling>
Actually, this JQuery stuff looks intruiging.
--
Ean Schuessler, CTO
ean@brainfood.com
214-720-0700 x 315
Brainfood, Inc.
http://www.brainfood.com
Re: json + prototype + ajax?
Posted by Leon Torres <le...@oss.minimetria.com>.
Hi all, two thoughts about all this:
It's better that we implement something independent of toolkit. I just finished
the ajax autocomplete stuff Si mentioned and I think that a toolkit-agnostic
approach is quite feasible. If not, then we can write an interface and let
people write the binding libraries for their favorite kit.
I think this can be accomplished by comparing several approaches to the same
problem. With such data, we can better see how a toolkit agnostic solution
would work and start taking steps to implement it. So without further ado, I
propose we implement autocomplete in the form widget using our favorite toolkits
and submit the patches and code examples to Jira.
With that in mind, I'd like to introduce our implementation of autocomplete
using form widget, prototype and the CRMSFA application. It took me awhile to
perfect the search and validation features, and they work quite well.
Hopefully, this can be used as a basis for other toolkit implementations.
Unfortunately, my day is over, so please keep an eye on Jira tomorrow and we'll
have the patches, code and demo sites to play with.
Cheers,
- Leon
My implementation is a little bit rough, but it should provide an interesting
Tim Ruppert wrote:
> Here's an interesting conclusion from this article -
> http://www.informit.com/guides/content.asp?g=webdesign&seqNum=281&rl=1:
>
> Conclusion
>
> All three scripts have their pros and cons that make them compete quite
> directly with each other. In the end, what script is best for you truly
> depends on your needs and preferences. If you’re looking for a massive
> feature set, go with Dojo. If you’re looking for optimizing your
> JavaScript writing techniques and cutting down on development time, try
> out Prototype. And lastly, if you want to have the best of both worlds
> and aren’t afraid to write a decent amount of functionality yourself,
> jQuery is worth a look.
>
> Cheers,
> Tim
>
> --
> Tim Ruppert
> HotWax Media
> http://www.hotwaxmedia.com
>
> o:801.649.6594
> f:801.649.6594
>
>
> On Dec 12, 2006, at 11:08 AM, Yoav Shapira wrote:
>
>> Hi,
>> Talking about JavaScript toolkits is becoming like talking about
>> programming languages: it's an endless debate about religious
>> zealotry, really ;)
>>
>> Dojo is good, it works. Prototype is good, it works. Dojo is being
>> adopted as a standard by some Java libraries, like Struts 2 IIRC.
>> Prototype is a de-facto standard in the Ruby on Rails world. Hence my
>> first sentence above.
>>
>> As long as you're considering options for OFBiz, I'd throw another
>> candidate in the ring: jQuery (http://jquery.com/). It's a fantastic
>> little library that also works well, but importantly for me, solves my
>> biggest complaints about Dojo and prototype: size. Both Dojo and
>> prototype end up adding hundreds of KBs to the size of your web page.
>> Sure they might get cached on the client or elsewhere along the way,
>> but still, the software engineer in me hates the thought of all that
>> baggage.
>>
>> Yoav
>>
>> On 12/12/06, Anil Patel <to...@gmail.com> wrote:
>>> Has anybody tried Dojo toolkit for Ajax?
>>> If it was then What are the its cons over prototype.js.
>>> If we know more on this will help us to make better decisions in
>>> future on,
>>> How to pick third party library that can be proposed to Ofbiz
>>> community.
>>>
>>> Regards
>>> Anil Patel
>>>
>>>
>>>
>>> On 12/12/06, Si Chen <si...@opensourcestrategies.com> wrote:
>>> >
>>> > Hi Andy -
>>> >
>>> > Just saw your commits last night. What are you planning to implement
>>> > with JSON and Ajax?
>>> >
>>> > We were thinking about doing an auto-complete for the form widget
>>> > lookup with prototype.js this week, by the way.
>>> >
>>> > Best Regards,
>>> >
>>> > Si
>>> > sichen@opensourcestrategies.com
>>> >
>>> >
>>> >
>>> >
>>> >
>>>
>>>
>
>
Re: json + prototype + ajax?
Posted by Tim Ruppert <ti...@hotwaxmedia.com>.
Here's an interesting conclusion from this article - http://
www.informit.com/guides/content.asp?g=webdesign&seqNum=281&rl=1:
Conclusion
All three scripts have their pros and cons that make them compete
quite directly with each other. In the end, what script is best for
you truly depends on your needs and preferences. If you’re looking
for a massive feature set, go with Dojo. If you’re looking for
optimizing your JavaScript writing techniques and cutting down on
development time, try out Prototype. And lastly, if you want to have
the best of both worlds and aren’t afraid to write a decent amount of
functionality yourself, jQuery is worth a look.
Cheers,
Tim
--
Tim Ruppert
HotWax Media
http://www.hotwaxmedia.com
o:801.649.6594
f:801.649.6594
On Dec 12, 2006, at 11:08 AM, Yoav Shapira wrote:
> Hi,
> Talking about JavaScript toolkits is becoming like talking about
> programming languages: it's an endless debate about religious
> zealotry, really ;)
>
> Dojo is good, it works. Prototype is good, it works. Dojo is being
> adopted as a standard by some Java libraries, like Struts 2 IIRC.
> Prototype is a de-facto standard in the Ruby on Rails world. Hence my
> first sentence above.
>
> As long as you're considering options for OFBiz, I'd throw another
> candidate in the ring: jQuery (http://jquery.com/). It's a fantastic
> little library that also works well, but importantly for me, solves my
> biggest complaints about Dojo and prototype: size. Both Dojo and
> prototype end up adding hundreds of KBs to the size of your web page.
> Sure they might get cached on the client or elsewhere along the way,
> but still, the software engineer in me hates the thought of all that
> baggage.
>
> Yoav
>
> On 12/12/06, Anil Patel <to...@gmail.com> wrote:
>> Has anybody tried Dojo toolkit for Ajax?
>> If it was then What are the its cons over prototype.js.
>> If we know more on this will help us to make better decisions in
>> future on,
>> How to pick third party library that can be proposed to Ofbiz
>> community.
>>
>> Regards
>> Anil Patel
>>
>>
>>
>> On 12/12/06, Si Chen <si...@opensourcestrategies.com> wrote:
>> >
>> > Hi Andy -
>> >
>> > Just saw your commits last night. What are you planning to
>> implement
>> > with JSON and Ajax?
>> >
>> > We were thinking about doing an auto-complete for the form widget
>> > lookup with prototype.js this week, by the way.
>> >
>> > Best Regards,
>> >
>> > Si
>> > sichen@opensourcestrategies.com
>> >
>> >
>> >
>> >
>> >
>>
>>
Re: json + prototype + ajax?
Posted by Yoav Shapira <yo...@apache.org>.
Hi,
Talking about JavaScript toolkits is becoming like talking about
programming languages: it's an endless debate about religious
zealotry, really ;)
Dojo is good, it works. Prototype is good, it works. Dojo is being
adopted as a standard by some Java libraries, like Struts 2 IIRC.
Prototype is a de-facto standard in the Ruby on Rails world. Hence my
first sentence above.
As long as you're considering options for OFBiz, I'd throw another
candidate in the ring: jQuery (http://jquery.com/). It's a fantastic
little library that also works well, but importantly for me, solves my
biggest complaints about Dojo and prototype: size. Both Dojo and
prototype end up adding hundreds of KBs to the size of your web page.
Sure they might get cached on the client or elsewhere along the way,
but still, the software engineer in me hates the thought of all that
baggage.
Yoav
On 12/12/06, Anil Patel <to...@gmail.com> wrote:
> Has anybody tried Dojo toolkit for Ajax?
> If it was then What are the its cons over prototype.js.
> If we know more on this will help us to make better decisions in future on,
> How to pick third party library that can be proposed to Ofbiz community.
>
> Regards
> Anil Patel
>
>
>
> On 12/12/06, Si Chen <si...@opensourcestrategies.com> wrote:
> >
> > Hi Andy -
> >
> > Just saw your commits last night. What are you planning to implement
> > with JSON and Ajax?
> >
> > We were thinking about doing an auto-complete for the form widget
> > lookup with prototype.js this week, by the way.
> >
> > Best Regards,
> >
> > Si
> > sichen@opensourcestrategies.com
> >
> >
> >
> >
> >
>
>
Re: json + prototype + ajax?
Posted by Anil Patel <to...@gmail.com>.
Has anybody tried Dojo toolkit for Ajax?
If it was then What are the its cons over prototype.js.
If we know more on this will help us to make better decisions in future on,
How to pick third party library that can be proposed to Ofbiz community.
Regards
Anil Patel
On 12/12/06, Si Chen <si...@opensourcestrategies.com> wrote:
>
> Hi Andy -
>
> Just saw your commits last night. What are you planning to implement
> with JSON and Ajax?
>
> We were thinking about doing an auto-complete for the form widget
> lookup with prototype.js this week, by the way.
>
> Best Regards,
>
> Si
> sichen@opensourcestrategies.com
>
>
>
>
>
Re: json + prototype + ajax?
Posted by Anil Patel <to...@gmail.com>.
We're using Dojo with Ofbiz. I like it.
Regards
Anil Patel
On 12/13/06, A. Zeneski <ja...@ofbiz.org> wrote:
>
> Si (& all),
>
> I am in process of doing a lot of custom AJAX stuff for a new client. I
> intended on using prototype.js but based on conversations with other
> people decided to go with dojo instead.
>
> The main part of what I did was a JSON wrapper around the service event
> handler. What this does is allows you to define (controller) requests
> for ajax calls and have the results return in a lightweight (JSON) format.
>
> This will work with any front end toolkit (Yahoo, Prototype, Dojo, etc).
> The main point is to define a standard pattern for AJAX requests in OFBiz.
>
> Deciding on a toolkit for the javascript is very important and based on
> what I have researched and discussed with other people, Dojo seems to be
> the way to go.
>
> Of course, I am open for discussion with this, but we really should
> decide on a standard for contributions back to OFBiz. The last thing I
> want to see is several different ways of communication and different
> toolkits being used.
>
> Prototype.js has been removed from SVN for the time being. As soon as
> there is code which uses one of the toolkits it can be added back in.
>
> Let's start a community vote for the default AJAX toolkit to use in
> OFBiz. Based on the work I did, I have already setup the back end
> pattern, services using JSON for the return. Now let's decide on a front
> end toolkit.
>
> First lets, define the candidates:
>
> 1) Dojo
> 2) Prototype
>
> Andy
>
> Si Chen wrote:
> > Hi Andy -
> >
> > Just saw your commits last night. What are you planning to implement
> > with JSON and Ajax?
> >
> > We were thinking about doing an auto-complete for the form widget lookup
> > with prototype.js this week, by the way.
> >
> > Best Regards,
> >
> > Si
> > sichen@opensourcestrategies.com
> >
> >
> >
> >
>
>
>
Re: json + prototype + ajax?
Posted by Ashish Vijaywargiya <as...@adititechlabs.com>.
Interesting read to develop ajax based application components using Dojo +
JSON.
http://today.java.net/pub/a/today/2006/04/27/building-ajax-with-dojo-and-json.html
On 12/15/06, Tim Ruppert <ti...@hotwaxmedia.com> wrote:
>
> And btw, the old cart, used JavaScript all the time. Why is this
> just coming up now? Why don't we figure out a parallel solution for
> other people who want to turn of JavaScript - instead of holding
> everyone back?
>
> My 2cents
>
>
>
--
Regards
Ashish Vijaywargiya
Aditisoft Technology Laboratory
Re: json + prototype + ajax?
Posted by Chris Howe <cj...@yahoo.com>.
--- David E Jones <jo...@undersunconsulting.com>
wrote:
>
> Some ideas like a sandbox that is somehow maintained
> and yet never
> considered by anyone as a "supported" part of OFBiz
> and having lots
> of parallel code and such are interesting, but
> require a level of
> resources that I would shocked near to death to see.
> Realistically it
> just hasn't happened before, ever.
>
These efforts have largely failed in the past because
of several reasons, with two in particular.
1) Scope of implementation was too large.
If you're referring to the "specialized" components,
they were entire applications that didn't really
appeal to many deployments. A sandbox is meant to
show off a particular feature or approach. Very
similar to a JIRA issue except allowed to benefit from
an SVN and some structure. When the demonstrated
functionality has matured it should be ported back
into the main components and removed from the sandbox.
Sandbox applications should have a shelf life.
2) There wasn't a critical mass involved in the
community that felt they could manipulate OFBiz at
will as there are today.
I'd be happy to maintain this outside of OFBiz (and
will if it won't be maintained in OFBiz), but I think
it would have a greater chance of success inside OFBiz
being able to benefit from JIRA and the mailing lists.
Re: json + prototype + ajax?
Posted by David E Jones <jo...@undersunconsulting.com>.
On Dec 15, 2006, at 12:21 PM, Ean Schuessler wrote:
> On Friday 15 December 2006 09:32, Tim Ruppert wrote:
>> And btw, the old cart, used JavaScript all the time. Why is this
>> just coming up now? Why don't we figure out a parallel solution for
>> other people who want to turn of JavaScript - instead of holding
>> everyone back?
>
> I tend to agree with you here. Trying to get parity on
> Javascript/Non-javascript interface implementations is going to get
> very,
> very daunting as the libraries keep getting more and more
> sophisticated.
> Eventually, trying to write a server side widget component that
> matches what
> you can do in the browser is going to be a ridiculous joke.
>
> Still, its nice to have a simple interface that demonstrates how to
> handle
> situations like a cell phone interface. Maybe what we need is a next
> generation shopping application. In my opinion the one that rolls
> out with
> OFBiz borders on being unusable for a customer deployment without
> extensive
> modification.
BTW, I'm replying to Ean's message because it is the latest in this
thread, not necessarily because of anything said here, and these
thoughts are also based on previous messages not completely
represented here...
What Ean is mentioning here is the real problem. The ecommerce
component has seen a pretty anemic level of contributions over the
years and in recent history as well. There are really lots of
problems in the current stuff that have been there for years and have
never been fixed.
Some ideas like a sandbox that is somehow maintained and yet never
considered by anyone as a "supported" part of OFBiz and having lots
of parallel code and such are interesting, but require a level of
resources that I would shocked near to death to see. Realistically it
just hasn't happened before, ever.
In general the ecommerce webapp is meant to be a good starting point
and contributions should be meant to make it a better starting point.
If someone wants to use ecommerce OOTB then that should be possible,
but if there is a decision between making it easier to customize for
what people want to do, and easier to use OOTB, the first one wins
(easier to customize).
So, in my opinion this checkout stuff should go in somehow. I haven't
reviewed it but in its current state it may not be a good generic
replacement for the current anonymous, quick, or multi-step checkout
processes as many sites will want to use something more similar to
one of those. However, it is a nice example of an alternative and can
go in along with others. This is yet another example of something
that is a little ugly OOTB, but easy to remove and that makes it
easier to customize it to the "ultimate" checkout process according
to whatever your current client is imagining.
I have no problem with effort going into making things downgrade
elegantly to not require JS and other stuff, but so far I've seen
approximately 0 resources invested in action in that, and nothing
happens in OFBiz through discussion: it happens through action.
-David
Re: json + prototype + ajax?
Posted by Ean Schuessler <ea...@brainfood.com>.
On Friday 15 December 2006 09:32, Tim Ruppert wrote:
> And btw, the old cart, used JavaScript all the time. Why is this
> just coming up now? Why don't we figure out a parallel solution for
> other people who want to turn of JavaScript - instead of holding
> everyone back?
I tend to agree with you here. Trying to get parity on
Javascript/Non-javascript interface implementations is going to get very,
very daunting as the libraries keep getting more and more sophisticated.
Eventually, trying to write a server side widget component that matches what
you can do in the browser is going to be a ridiculous joke.
Still, its nice to have a simple interface that demonstrates how to handle
situations like a cell phone interface. Maybe what we need is a next
generation shopping application. In my opinion the one that rolls out with
OFBiz borders on being unusable for a customer deployment without extensive
modification.
--
Ean Schuessler, CTO
ean@brainfood.com
214-720-0700 x 315
Brainfood, Inc.
http://www.brainfood.com
Re: json + prototype + ajax?
Posted by Jacques Le Roux <ja...@les7arts.com>.
In theory I should agree with Chris, in practise I agree with Tim !
Indeed there are much more places where JS is used than cart, isn'it ?
On the other hand we should be aware that using JS everywhere and often should not be a best practice to adopt (OK it's already done
:(
Perhaps using it *only* thru an Ajax Framework maybe a solution in future ?
Jacques
----- Original Message -----
From: "Tim Ruppert" <ti...@hotwaxmedia.com>
To: <of...@incubator.apache.org>
Sent: Friday, December 15, 2006 4:32 PM
Subject: Re: json + prototype + ajax?
> And btw, the old cart, used JavaScript all the time. Why is this
> just coming up now? Why don't we figure out a parallel solution for
> other people who want to turn of JavaScript - instead of holding
> everyone back?
>
> My 2cents
>
> On Dec 15, 2006, at 8:27 AM, Tim Ruppert wrote:
>
> > Chris, JavaScript is ingrained in just about anything that submits
> > forms anymore. I could understand saying something like this about
> > Flash - however my mind is changing on that as well - but saying
> > that you have to be able to manage something as complicated as the
> > feature set that OFBiz employs without JavaScript is almost like
> > saying - not everyone is off of Netscape 4.x and we need to set the
> > bar _that_ low for our CSS/HTML standardization.
> >
> > My vote for this is to move forward, not hang back. JavaScript, as
> > much as I'm not a huge fan, is a reality in todays world - and the
> > use of of DOES NOT make the code bug filled.
> >
> > Cheers,
> > Tim
> > --
> > Tim Ruppert
> > HotWax Media
> > http://www.hotwaxmedia.com
> >
> > o:801.649.6594
> > f:801.649.6594
> >
> >
> > On Dec 15, 2006, at 8:07 AM, Chris Howe wrote:
> >
> >> Tim,
> >>
> >> To your post
> >> http://issues.apache.org/jira/browse/OFBIZ-510#action_12458496
> >>
> >> I would want to see it degrade. The fact that SVN
> >> OFBiz does not degrade should not be support to
> >> introduce more code that follows a poor pattern. The
> >> current state of OFBiz not being able to add to cart
> >> when JS is turned off needs to be reported as a bug
> >> and fixed.
> >>
> >> Wanting to see this degrade should especially be true
> >> for a functionality of "Anonymous" checkout. This
> >> means you're wanting to sell product to random people.
> >> So, if you're wanting to sell to random people, you
> >> would want to lower the barriers as far as possible
> >> for them to use your site. Good web surfing practice
> >> is to white list JS for sites that you trust. This is
> >> especially true in corporate environments.
> >>
> >> So to summarize, my two cents would be to report the
> >> add to cart bug to JIRA, fix OFBiz's SVN of this
> >> pattern and degrade the JS in the anonymous checkout
> >> patch. But to quickly see this kind of functionality
> >> into OFBiz, I would prefer to see it added to a
> >> sandbox so that others could help work out these
> >> peculiarities.
> >>
> >>
> >> --- Tim Ruppert <ti...@hotwaxmedia.com> wrote:
> >>
> >>> I would certainly love to see the highly useful
> >>> Anonymous Checkout
> >>> Process example used in OFBiz - at least until
> >>> someone else comes up
> >>> with a good reason to remove Dojo and go to a
> >>> different front end
> >>> framewok. Does anyone have any real objections to
> >>> doing this in
> >>> light of the fact that no one has another example
> >>> _and_ that the
> >>> checkout process is unnecessarily tedious?
> >>>
> >>> Cheers,
> >>> Tim
> >>> --
> >>> Tim Ruppert
> >>> HotWax Media
> >>> http://www.hotwaxmedia.com
> >>>
> >>> o:801.649.6594
> >>> f:801.649.6594
> >>>
> >>>
> >>> On Dec 15, 2006, at 12:07 AM, Jacopo Cappellato
> >>> wrote:
> >>>
> >>>> Here are my two cents about this interesting
> >>> thread:
> >>>>
> >>>> 1) the Ajax toolkit's license must be fully
> >>> compatible with the
> >>>> OFBiz license
> >>>> 2) even if it's a good thing to try to find one
> >>> official Ajax
> >>>> toolkit for OFBiz now and finally get this ball
> >>> running, I think we
> >>>> should do this but also review the decision (and
> >>> the results we'll
> >>>> get with the adopted framework) in 2-4 months from
> >>> now and possibly
> >>>> return on it; I mean that we should keep an
> >>> open-minded approach
> >>>> and also consider new solutions (or criticism to
> >>> the adopted
> >>>> toolkit) since I think that in the Ajax world the
> >>> effects of the
> >>>> 'software darwinism'
> >>> (http://www.apache.org/foundation/
> >>>> glossary.html#SoftwareDarwinism) still are not
> >>> mature
> >>>>
> >>>> Jacopo
> >>>>
> >>>> A. Zeneski wrote:
> >>>>> I'll let this thread run a little while longer
> >>> before we say to
> >>>>> have a
> >>>>> full official vote. As of right now, it appears
> >>> most people are
> >>>>> looking
> >>>>> at Dojo, and that is fine with me.
> >>>>> It seems that most of these toolkits do the same
> >>> thing, so to me its
> >>>>> just a matter of making a decision so I can push
> >>> forward with my
> >>>>> work.
> >>>>> As for being more active on the lists, sorry I
> >>> have been MIA for so
> >>>>> long. I've been involved in a lot of custom (non
> >>> open source) work
> >>>>> as of
> >>>>> late and apologize for not being around. I will
> >>> do my best to be
> >>>>> here as
> >>>>> much as possible. Thanks!
> >>>>> Andrew
> >>>
> >>>
> >
>
>
Re: json + prototype + ajax?
Posted by Chris Howe <cj...@yahoo.com>.
Tim,
Please don't construe my concerns as personal
criticisms. I very much want to see your ajax
contribution available in the code base, thus my
suggestion of the sandbox. Using a sandbox alongside
the approach in FAQ 21 on the old wiki allows the core
business application to remain stable (and improve
stability where needed) and allow those who wish to
benefit from the added functionality.
The NoScript firefox extension is the 5th most popular
extension for Firefox. Having websites that work with
Javascript turned off is not an approach to appease
Luddites. I think this is a fairly normal demand
throughout the ecommerce world or else you would see
many more sites using Echo2 style frameworks (Echo2 is
simply beautiful, hugely functional and easy to
relatively easy to develop with and would be even more
so with a widget esque style approach, however it
renders only an html and body tag, no other html).
You don't see Echo2 style sites in abundance because
most companies want to be able to reach an audience
regardless of their Javascript security preference.
This is just coming up now because it would seem no
one in the community develops with JS turned off. The
same answer applies when you consider that only
recently pages in ecommerce have been fixed to render
correctly in IE. Just because it's just now being
discovered, does not mean we should ignore it.
--- Tim Ruppert <ti...@hotwaxmedia.com> wrote:
> And btw, the old cart, used JavaScript all the time.
> Why is this
> just coming up now? Why don't we figure out a
> parallel solution for
> other people who want to turn of JavaScript -
> instead of holding
> everyone back?
>
> My 2cents
>
> On Dec 15, 2006, at 8:27 AM, Tim Ruppert wrote:
>
> > Chris, JavaScript is ingrained in just about
> anything that submits
> > forms anymore. I could understand saying
> something like this about
> > Flash - however my mind is changing on that as
> well - but saying
> > that you have to be able to manage something as
> complicated as the
> > feature set that OFBiz employs without JavaScript
> is almost like
> > saying - not everyone is off of Netscape 4.x and
> we need to set the
> > bar _that_ low for our CSS/HTML standardization.
> >
> > My vote for this is to move forward, not hang
> back. JavaScript, as
> > much as I'm not a huge fan, is a reality in todays
> world - and the
> > use of of DOES NOT make the code bug filled.
> >
> > Cheers,
> > Tim
> > --
> > Tim Ruppert
> > HotWax Media
> > http://www.hotwaxmedia.com
> >
> > o:801.649.6594
> > f:801.649.6594
> >
> >
> > On Dec 15, 2006, at 8:07 AM, Chris Howe wrote:
> >
> >> Tim,
> >>
> >> To your post
> >>
>
http://issues.apache.org/jira/browse/OFBIZ-510#action_12458496
> >>
> >> I would want to see it degrade. The fact that
> SVN
> >> OFBiz does not degrade should not be support to
> >> introduce more code that follows a poor pattern.
> The
> >> current state of OFBiz not being able to add to
> cart
> >> when JS is turned off needs to be reported as a
> bug
> >> and fixed.
> >>
> >> Wanting to see this degrade should especially be
> true
> >> for a functionality of "Anonymous" checkout.
> This
> >> means you're wanting to sell product to random
> people.
> >> So, if you're wanting to sell to random people,
> you
> >> would want to lower the barriers as far as
> possible
> >> for them to use your site. Good web surfing
> practice
> >> is to white list JS for sites that you trust.
> This is
> >> especially true in corporate environments.
> >>
> >> So to summarize, my two cents would be to report
> the
> >> add to cart bug to JIRA, fix OFBiz's SVN of this
> >> pattern and degrade the JS in the anonymous
> checkout
> >> patch. But to quickly see this kind of
> functionality
> >> into OFBiz, I would prefer to see it added to a
> >> sandbox so that others could help work out these
> >> peculiarities.
> >>
> >>
> >> --- Tim Ruppert <ti...@hotwaxmedia.com>
> wrote:
> >>
> >>> I would certainly love to see the highly useful
> >>> Anonymous Checkout
> >>> Process example used in OFBiz - at least until
> >>> someone else comes up
> >>> with a good reason to remove Dojo and go to a
> >>> different front end
> >>> framewok. Does anyone have any real objections
> to
> >>> doing this in
> >>> light of the fact that no one has another
> example
> >>> _and_ that the
> >>> checkout process is unnecessarily tedious?
> >>>
> >>> Cheers,
> >>> Tim
> >>> --
> >>> Tim Ruppert
> >>> HotWax Media
> >>> http://www.hotwaxmedia.com
> >>>
> >>> o:801.649.6594
> >>> f:801.649.6594
> >>>
> >>>
> >>> On Dec 15, 2006, at 12:07 AM, Jacopo Cappellato
> >>> wrote:
> >>>
> >>>> Here are my two cents about this interesting
> >>> thread:
> >>>>
> >>>> 1) the Ajax toolkit's license must be fully
> >>> compatible with the
> >>>> OFBiz license
> >>>> 2) even if it's a good thing to try to find one
> >>> official Ajax
> >>>> toolkit for OFBiz now and finally get this ball
> >>> running, I think we
> >>>> should do this but also review the decision
> (and
> >>> the results we'll
> >>>> get with the adopted framework) in 2-4 months
> from
> >>> now and possibly
> >>>> return on it; I mean that we should keep an
> >>> open-minded approach
> >>>> and also consider new solutions (or criticism
> to
> >>> the adopted
> >>>> toolkit) since I think that in the Ajax world
> the
> >>> effects of the
> >>>> 'software darwinism'
> >>> (http://www.apache.org/foundation/
> >>>> glossary.html#SoftwareDarwinism) still are not
> >>> mature
> >>>>
> >>>> Jacopo
> >>>>
> >>>> A. Zeneski wrote:
> >>>>> I'll let this thread run a little while longer
> >>> before we say to
> >>>>> have a
> >>>>> full official vote. As of right now, it
> appears
> >>> most people are
> >>>>> looking
> >>>>> at Dojo, and that is fine with me.
> >>>>> It seems that most of these toolkits do the
> same
> >>> thing, so to me its
> >>>>> just a matter of making a decision so I can
> push
> >>> forward with my
> >>>>> work.
> >>>>> As for being more active on the lists, sorry I
> >>> have been MIA for so
> >>>>> long. I've been involved in a lot of custom
> (non
> >>> open source) work
> >>>>> as of
> >>>>> late and apologize for not being around. I
> will
> >>> do my best to be
> >>>>> here as
> >>>>> much as possible. Thanks!
> >>>>> Andrew
> >>>
> >>>
> >
>
>
Re: json + prototype + ajax?
Posted by Tim Ruppert <ti...@hotwaxmedia.com>.
And btw, the old cart, used JavaScript all the time. Why is this
just coming up now? Why don't we figure out a parallel solution for
other people who want to turn of JavaScript - instead of holding
everyone back?
My 2cents
On Dec 15, 2006, at 8:27 AM, Tim Ruppert wrote:
> Chris, JavaScript is ingrained in just about anything that submits
> forms anymore. I could understand saying something like this about
> Flash - however my mind is changing on that as well - but saying
> that you have to be able to manage something as complicated as the
> feature set that OFBiz employs without JavaScript is almost like
> saying - not everyone is off of Netscape 4.x and we need to set the
> bar _that_ low for our CSS/HTML standardization.
>
> My vote for this is to move forward, not hang back. JavaScript, as
> much as I'm not a huge fan, is a reality in todays world - and the
> use of of DOES NOT make the code bug filled.
>
> Cheers,
> Tim
> --
> Tim Ruppert
> HotWax Media
> http://www.hotwaxmedia.com
>
> o:801.649.6594
> f:801.649.6594
>
>
> On Dec 15, 2006, at 8:07 AM, Chris Howe wrote:
>
>> Tim,
>>
>> To your post
>> http://issues.apache.org/jira/browse/OFBIZ-510#action_12458496
>>
>> I would want to see it degrade. The fact that SVN
>> OFBiz does not degrade should not be support to
>> introduce more code that follows a poor pattern. The
>> current state of OFBiz not being able to add to cart
>> when JS is turned off needs to be reported as a bug
>> and fixed.
>>
>> Wanting to see this degrade should especially be true
>> for a functionality of "Anonymous" checkout. This
>> means you're wanting to sell product to random people.
>> So, if you're wanting to sell to random people, you
>> would want to lower the barriers as far as possible
>> for them to use your site. Good web surfing practice
>> is to white list JS for sites that you trust. This is
>> especially true in corporate environments.
>>
>> So to summarize, my two cents would be to report the
>> add to cart bug to JIRA, fix OFBiz's SVN of this
>> pattern and degrade the JS in the anonymous checkout
>> patch. But to quickly see this kind of functionality
>> into OFBiz, I would prefer to see it added to a
>> sandbox so that others could help work out these
>> peculiarities.
>>
>>
>> --- Tim Ruppert <ti...@hotwaxmedia.com> wrote:
>>
>>> I would certainly love to see the highly useful
>>> Anonymous Checkout
>>> Process example used in OFBiz - at least until
>>> someone else comes up
>>> with a good reason to remove Dojo and go to a
>>> different front end
>>> framewok. Does anyone have any real objections to
>>> doing this in
>>> light of the fact that no one has another example
>>> _and_ that the
>>> checkout process is unnecessarily tedious?
>>>
>>> Cheers,
>>> Tim
>>> --
>>> Tim Ruppert
>>> HotWax Media
>>> http://www.hotwaxmedia.com
>>>
>>> o:801.649.6594
>>> f:801.649.6594
>>>
>>>
>>> On Dec 15, 2006, at 12:07 AM, Jacopo Cappellato
>>> wrote:
>>>
>>>> Here are my two cents about this interesting
>>> thread:
>>>>
>>>> 1) the Ajax toolkit's license must be fully
>>> compatible with the
>>>> OFBiz license
>>>> 2) even if it's a good thing to try to find one
>>> official Ajax
>>>> toolkit for OFBiz now and finally get this ball
>>> running, I think we
>>>> should do this but also review the decision (and
>>> the results we'll
>>>> get with the adopted framework) in 2-4 months from
>>> now and possibly
>>>> return on it; I mean that we should keep an
>>> open-minded approach
>>>> and also consider new solutions (or criticism to
>>> the adopted
>>>> toolkit) since I think that in the Ajax world the
>>> effects of the
>>>> 'software darwinism'
>>> (http://www.apache.org/foundation/
>>>> glossary.html#SoftwareDarwinism) still are not
>>> mature
>>>>
>>>> Jacopo
>>>>
>>>> A. Zeneski wrote:
>>>>> I'll let this thread run a little while longer
>>> before we say to
>>>>> have a
>>>>> full official vote. As of right now, it appears
>>> most people are
>>>>> looking
>>>>> at Dojo, and that is fine with me.
>>>>> It seems that most of these toolkits do the same
>>> thing, so to me its
>>>>> just a matter of making a decision so I can push
>>> forward with my
>>>>> work.
>>>>> As for being more active on the lists, sorry I
>>> have been MIA for so
>>>>> long. I've been involved in a lot of custom (non
>>> open source) work
>>>>> as of
>>>>> late and apologize for not being around. I will
>>> do my best to be
>>>>> here as
>>>>> much as possible. Thanks!
>>>>> Andrew
>>>
>>>
>
Re: json + prototype + ajax?
Posted by Tim Ruppert <ti...@hotwaxmedia.com>.
Chris, JavaScript is ingrained in just about anything that submits
forms anymore. I could understand saying something like this about
Flash - however my mind is changing on that as well - but saying that
you have to be able to manage something as complicated as the feature
set that OFBiz employs without JavaScript is almost like saying - not
everyone is off of Netscape 4.x and we need to set the bar _that_ low
for our CSS/HTML standardization.
My vote for this is to move forward, not hang back. JavaScript, as
much as I'm not a huge fan, is a reality in todays world - and the
use of of DOES NOT make the code bug filled.
Cheers,
Tim
--
Tim Ruppert
HotWax Media
http://www.hotwaxmedia.com
o:801.649.6594
f:801.649.6594
On Dec 15, 2006, at 8:07 AM, Chris Howe wrote:
> Tim,
>
> To your post
> http://issues.apache.org/jira/browse/OFBIZ-510#action_12458496
>
> I would want to see it degrade. The fact that SVN
> OFBiz does not degrade should not be support to
> introduce more code that follows a poor pattern. The
> current state of OFBiz not being able to add to cart
> when JS is turned off needs to be reported as a bug
> and fixed.
>
> Wanting to see this degrade should especially be true
> for a functionality of "Anonymous" checkout. This
> means you're wanting to sell product to random people.
> So, if you're wanting to sell to random people, you
> would want to lower the barriers as far as possible
> for them to use your site. Good web surfing practice
> is to white list JS for sites that you trust. This is
> especially true in corporate environments.
>
> So to summarize, my two cents would be to report the
> add to cart bug to JIRA, fix OFBiz's SVN of this
> pattern and degrade the JS in the anonymous checkout
> patch. But to quickly see this kind of functionality
> into OFBiz, I would prefer to see it added to a
> sandbox so that others could help work out these
> peculiarities.
>
>
> --- Tim Ruppert <ti...@hotwaxmedia.com> wrote:
>
>> I would certainly love to see the highly useful
>> Anonymous Checkout
>> Process example used in OFBiz - at least until
>> someone else comes up
>> with a good reason to remove Dojo and go to a
>> different front end
>> framewok. Does anyone have any real objections to
>> doing this in
>> light of the fact that no one has another example
>> _and_ that the
>> checkout process is unnecessarily tedious?
>>
>> Cheers,
>> Tim
>> --
>> Tim Ruppert
>> HotWax Media
>> http://www.hotwaxmedia.com
>>
>> o:801.649.6594
>> f:801.649.6594
>>
>>
>> On Dec 15, 2006, at 12:07 AM, Jacopo Cappellato
>> wrote:
>>
>>> Here are my two cents about this interesting
>> thread:
>>>
>>> 1) the Ajax toolkit's license must be fully
>> compatible with the
>>> OFBiz license
>>> 2) even if it's a good thing to try to find one
>> official Ajax
>>> toolkit for OFBiz now and finally get this ball
>> running, I think we
>>> should do this but also review the decision (and
>> the results we'll
>>> get with the adopted framework) in 2-4 months from
>> now and possibly
>>> return on it; I mean that we should keep an
>> open-minded approach
>>> and also consider new solutions (or criticism to
>> the adopted
>>> toolkit) since I think that in the Ajax world the
>> effects of the
>>> 'software darwinism'
>> (http://www.apache.org/foundation/
>>> glossary.html#SoftwareDarwinism) still are not
>> mature
>>>
>>> Jacopo
>>>
>>> A. Zeneski wrote:
>>>> I'll let this thread run a little while longer
>> before we say to
>>>> have a
>>>> full official vote. As of right now, it appears
>> most people are
>>>> looking
>>>> at Dojo, and that is fine with me.
>>>> It seems that most of these toolkits do the same
>> thing, so to me its
>>>> just a matter of making a decision so I can push
>> forward with my
>>>> work.
>>>> As for being more active on the lists, sorry I
>> have been MIA for so
>>>> long. I've been involved in a lot of custom (non
>> open source) work
>>>> as of
>>>> late and apologize for not being around. I will
>> do my best to be
>>>> here as
>>>> much as possible. Thanks!
>>>> Andrew
>>
>>
Re: json + prototype + ajax?
Posted by Chris Howe <cj...@yahoo.com>.
Tim,
To your post
http://issues.apache.org/jira/browse/OFBIZ-510#action_12458496
I would want to see it degrade. The fact that SVN
OFBiz does not degrade should not be support to
introduce more code that follows a poor pattern. The
current state of OFBiz not being able to add to cart
when JS is turned off needs to be reported as a bug
and fixed.
Wanting to see this degrade should especially be true
for a functionality of "Anonymous" checkout. This
means you're wanting to sell product to random people.
So, if you're wanting to sell to random people, you
would want to lower the barriers as far as possible
for them to use your site. Good web surfing practice
is to white list JS for sites that you trust. This is
especially true in corporate environments.
So to summarize, my two cents would be to report the
add to cart bug to JIRA, fix OFBiz's SVN of this
pattern and degrade the JS in the anonymous checkout
patch. But to quickly see this kind of functionality
into OFBiz, I would prefer to see it added to a
sandbox so that others could help work out these
peculiarities.
--- Tim Ruppert <ti...@hotwaxmedia.com> wrote:
> I would certainly love to see the highly useful
> Anonymous Checkout
> Process example used in OFBiz - at least until
> someone else comes up
> with a good reason to remove Dojo and go to a
> different front end
> framewok. Does anyone have any real objections to
> doing this in
> light of the fact that no one has another example
> _and_ that the
> checkout process is unnecessarily tedious?
>
> Cheers,
> Tim
> --
> Tim Ruppert
> HotWax Media
> http://www.hotwaxmedia.com
>
> o:801.649.6594
> f:801.649.6594
>
>
> On Dec 15, 2006, at 12:07 AM, Jacopo Cappellato
> wrote:
>
> > Here are my two cents about this interesting
> thread:
> >
> > 1) the Ajax toolkit's license must be fully
> compatible with the
> > OFBiz license
> > 2) even if it's a good thing to try to find one
> official Ajax
> > toolkit for OFBiz now and finally get this ball
> running, I think we
> > should do this but also review the decision (and
> the results we'll
> > get with the adopted framework) in 2-4 months from
> now and possibly
> > return on it; I mean that we should keep an
> open-minded approach
> > and also consider new solutions (or criticism to
> the adopted
> > toolkit) since I think that in the Ajax world the
> effects of the
> > 'software darwinism'
> (http://www.apache.org/foundation/
> > glossary.html#SoftwareDarwinism) still are not
> mature
> >
> > Jacopo
> >
> > A. Zeneski wrote:
> >> I'll let this thread run a little while longer
> before we say to
> >> have a
> >> full official vote. As of right now, it appears
> most people are
> >> looking
> >> at Dojo, and that is fine with me.
> >> It seems that most of these toolkits do the same
> thing, so to me its
> >> just a matter of making a decision so I can push
> forward with my
> >> work.
> >> As for being more active on the lists, sorry I
> have been MIA for so
> >> long. I've been involved in a lot of custom (non
> open source) work
> >> as of
> >> late and apologize for not being around. I will
> do my best to be
> >> here as
> >> much as possible. Thanks!
> >> Andrew
>
>
Re: json + prototype + ajax?
Posted by Tim Ruppert <ti...@hotwaxmedia.com>.
I would certainly love to see the highly useful Anonymous Checkout
Process example used in OFBiz - at least until someone else comes up
with a good reason to remove Dojo and go to a different front end
framewok. Does anyone have any real objections to doing this in
light of the fact that no one has another example _and_ that the
checkout process is unnecessarily tedious?
Cheers,
Tim
--
Tim Ruppert
HotWax Media
http://www.hotwaxmedia.com
o:801.649.6594
f:801.649.6594
On Dec 15, 2006, at 12:07 AM, Jacopo Cappellato wrote:
> Here are my two cents about this interesting thread:
>
> 1) the Ajax toolkit's license must be fully compatible with the
> OFBiz license
> 2) even if it's a good thing to try to find one official Ajax
> toolkit for OFBiz now and finally get this ball running, I think we
> should do this but also review the decision (and the results we'll
> get with the adopted framework) in 2-4 months from now and possibly
> return on it; I mean that we should keep an open-minded approach
> and also consider new solutions (or criticism to the adopted
> toolkit) since I think that in the Ajax world the effects of the
> 'software darwinism' (http://www.apache.org/foundation/
> glossary.html#SoftwareDarwinism) still are not mature
>
> Jacopo
>
> A. Zeneski wrote:
>> I'll let this thread run a little while longer before we say to
>> have a
>> full official vote. As of right now, it appears most people are
>> looking
>> at Dojo, and that is fine with me.
>> It seems that most of these toolkits do the same thing, so to me its
>> just a matter of making a decision so I can push forward with my
>> work.
>> As for being more active on the lists, sorry I have been MIA for so
>> long. I've been involved in a lot of custom (non open source) work
>> as of
>> late and apologize for not being around. I will do my best to be
>> here as
>> much as possible. Thanks!
>> Andrew
Re: json + prototype + ajax?
Posted by Jacques Le Roux <ja...@les7arts.com>.
I totally agree with these POV !
Jacques
----- Original Message -----
From: "Jacopo Cappellato" <ti...@sastau.it>
To: <of...@incubator.apache.org>
Sent: Friday, December 15, 2006 8:07 AM
Subject: Re: json + prototype + ajax?
> Here are my two cents about this interesting thread:
>
> 1) the Ajax toolkit's license must be fully compatible with the OFBiz
> license
> 2) even if it's a good thing to try to find one official Ajax toolkit
> for OFBiz now and finally get this ball running, I think we should do
> this but also review the decision (and the results we'll get with the
> adopted framework) in 2-4 months from now and possibly return on it; I
> mean that we should keep an open-minded approach and also consider new
> solutions (or criticism to the adopted toolkit) since I think that in
> the Ajax world the effects of the 'software darwinism'
> (http://www.apache.org/foundation/glossary.html#SoftwareDarwinism) still
> are not mature
>
> Jacopo
>
> A. Zeneski wrote:
> > I'll let this thread run a little while longer before we say to have a
> > full official vote. As of right now, it appears most people are looking
> > at Dojo, and that is fine with me.
> >
> > It seems that most of these toolkits do the same thing, so to me its
> > just a matter of making a decision so I can push forward with my work.
> >
> > As for being more active on the lists, sorry I have been MIA for so
> > long. I've been involved in a lot of custom (non open source) work as of
> > late and apologize for not being around. I will do my best to be here as
> > much as possible. Thanks!
> >
> > Andrew
> >
Re: json + prototype + ajax?
Posted by Jacopo Cappellato <ti...@sastau.it>.
Here are my two cents about this interesting thread:
1) the Ajax toolkit's license must be fully compatible with the OFBiz
license
2) even if it's a good thing to try to find one official Ajax toolkit
for OFBiz now and finally get this ball running, I think we should do
this but also review the decision (and the results we'll get with the
adopted framework) in 2-4 months from now and possibly return on it; I
mean that we should keep an open-minded approach and also consider new
solutions (or criticism to the adopted toolkit) since I think that in
the Ajax world the effects of the 'software darwinism'
(http://www.apache.org/foundation/glossary.html#SoftwareDarwinism) still
are not mature
Jacopo
A. Zeneski wrote:
> I'll let this thread run a little while longer before we say to have a
> full official vote. As of right now, it appears most people are looking
> at Dojo, and that is fine with me.
>
> It seems that most of these toolkits do the same thing, so to me its
> just a matter of making a decision so I can push forward with my work.
>
> As for being more active on the lists, sorry I have been MIA for so
> long. I've been involved in a lot of custom (non open source) work as of
> late and apologize for not being around. I will do my best to be here as
> much as possible. Thanks!
>
> Andrew
>
Re: json + prototype + ajax?
Posted by Jean-Sébastien Hederer <he...@free.fr>.
I may think that OFBiz widgets compatibility is a very important point.
That's I think that declarative ajax framework would be of simplier
integration
"Jacques Le Roux" a écrit le 14/12/2006 10:18 :
> I don't know much about Ajax and Dojo and such. But IMHO this is a very important point.
> Chris (or anybody aware ;o) do you know how exactly this is achieved ?
>
> Thanks
>
> Jacques
>
> From: "Chris Howe" <cj...@yahoo.com>
>
>> I'm not sure about the other toolkits, but when I
>> looked around for some implementation ideas, I like
>> the fact that one of Dojo's precepts is to degrade
>> when not JS is turned off. This may be true of other
>> toolkits as well, but Dojo states it specifically.
>>
>
>
Re: json + prototype + ajax?
Posted by Jacques Le Roux <ja...@les7arts.com>.
Thanks Chris,
This is really clear to me now :o)
Jacques
----- Original Message -----
From: "Chris Howe" <cj...@yahoo.com>
To: <of...@incubator.apache.org>; "Jacques Le Roux" <ja...@les7arts.com>
Sent: Thursday, December 14, 2006 3:56 PM
Subject: Re: json + prototype + ajax?
> Also in regards to the comments in OFBIZ-510 :
>
> The ability to degrade doesn't solve itself simply
> because you're using Dojo or any other toolkit that is
> designed to degrade. You still need to have the
> functionality on your page.
>
> Degrading essentially means that the javascript simply
> increases functionality, the javascript isn't
> replacing functionality. Dojo does this because the
> javascript actions are identified either by css
> classes or by additional attributes in the tag that
> mean nothing to the browser that hasn't received any
> instruction from javascript.
>
> There are a lot of places that utilize javascript in
> OFBiz. For instance the calendar popups. The JS
> degrades here because you can still enter date/time
> information without the popup. On the JIRA page, the
> functionality of adding a comment doesn't degrade and
> I'm sure the people at Atlassian would like to know
> that. This appears to be based on their custom JS
> additions, not on the parts of OFBiz they are using.
>
> In a checkout process you would degrade the JS by
> having form submits that actually go to the next step,
> but have the JS disable that submit button. By doing
> that if there is JS, the form doesn't get submitted in
> the traditional manner but instead the JS handles the
> next sequence. If JS is disabled, then there is
> nothing there to disable the submit button and the
> form information gets sent for processing like it
> always has.
>
> This is a great place for an AJAX type solution
> because the checkout logic is based only on updating
> the ShoppingCart object and not on entering
> information in the database.
>
>
>
> --- Jacques Le Roux <ja...@les7arts.com>
> wrote:
>
> > I don't know much about Ajax and Dojo and such. But
> > IMHO this is a very important point.
> > Chris (or anybody aware ;o) do you know how exactly
> > this is achieved ?
> >
> > Thanks
> >
> > Jacques
> >
> > From: "Chris Howe" <cj...@yahoo.com>
> > > I'm not sure about the other toolkits, but when I
> > > looked around for some implementation ideas, I
> > like
> > > the fact that one of Dojo's precepts is to degrade
> > > when not JS is turned off. This may be true of
> > other
> > > toolkits as well, but Dojo states it specifically.
> >
Re: json + prototype + ajax?
Posted by Chris Howe <cj...@yahoo.com>.
Also in regards to the comments in OFBIZ-510 :
The ability to degrade doesn't solve itself simply
because you're using Dojo or any other toolkit that is
designed to degrade. You still need to have the
functionality on your page.
Degrading essentially means that the javascript simply
increases functionality, the javascript isn't
replacing functionality. Dojo does this because the
javascript actions are identified either by css
classes or by additional attributes in the tag that
mean nothing to the browser that hasn't received any
instruction from javascript.
There are a lot of places that utilize javascript in
OFBiz. For instance the calendar popups. The JS
degrades here because you can still enter date/time
information without the popup. On the JIRA page, the
functionality of adding a comment doesn't degrade and
I'm sure the people at Atlassian would like to know
that. This appears to be based on their custom JS
additions, not on the parts of OFBiz they are using.
In a checkout process you would degrade the JS by
having form submits that actually go to the next step,
but have the JS disable that submit button. By doing
that if there is JS, the form doesn't get submitted in
the traditional manner but instead the JS handles the
next sequence. If JS is disabled, then there is
nothing there to disable the submit button and the
form information gets sent for processing like it
always has.
This is a great place for an AJAX type solution
because the checkout logic is based only on updating
the ShoppingCart object and not on entering
information in the database.
--- Jacques Le Roux <ja...@les7arts.com>
wrote:
> I don't know much about Ajax and Dojo and such. But
> IMHO this is a very important point.
> Chris (or anybody aware ;o) do you know how exactly
> this is achieved ?
>
> Thanks
>
> Jacques
>
> From: "Chris Howe" <cj...@yahoo.com>
> > I'm not sure about the other toolkits, but when I
> > looked around for some implementation ideas, I
> like
> > the fact that one of Dojo's precepts is to degrade
> > when not JS is turned off. This may be true of
> other
> > toolkits as well, but Dojo states it specifically.
>
Re: json + prototype + ajax?
Posted by Jacques Le Roux <ja...@les7arts.com>.
I don't know much about Ajax and Dojo and such. But IMHO this is a very important point.
Chris (or anybody aware ;o) do you know how exactly this is achieved ?
Thanks
Jacques
From: "Chris Howe" <cj...@yahoo.com>
> I'm not sure about the other toolkits, but when I
> looked around for some implementation ideas, I like
> the fact that one of Dojo's precepts is to degrade
> when not JS is turned off. This may be true of other
> toolkits as well, but Dojo states it specifically.
Re: json + prototype + ajax?
Posted by Chris Howe <cj...@yahoo.com>.
I'm not sure about the other toolkits, but when I
looked around for some implementation ideas, I like
the fact that one of Dojo's precepts is to degrade
when not JS is turned off. This may be true of other
toolkits as well, but Dojo states it specifically.
Re: json + prototype + ajax?
Posted by "A. Zeneski" <ja...@ofbiz.org>.
I'll let this thread run a little while longer before we say to have a
full official vote. As of right now, it appears most people are looking
at Dojo, and that is fine with me.
It seems that most of these toolkits do the same thing, so to me its
just a matter of making a decision so I can push forward with my work.
As for being more active on the lists, sorry I have been MIA for so
long. I've been involved in a lot of custom (non open source) work as of
late and apologize for not being around. I will do my best to be here as
much as possible. Thanks!
Andrew
Alex D. Fleming wrote:
> Andy,
>
>>> Should we just say DOJO is the way to go for future Ajax based tools in
>>> OFBiz or do we need a formal vote?
>
> Yeah I will like to go with DOJO.
> Voting on this is a good idea :-)
>
> Now a days your active participation on mailing list makes me Happy :-).
> Thanks for it.
>
>
> On 12/14/06, A. Zeneski <ja...@ofbiz.org> wrote:
>>
>> I used prototype for my initial test and found it very easy to work
>> with. Dojo on the other hand seemed to have a much broader learning
>> curve. It too me a while to get everything working, but I think it is
>> due to the ajax part being more verbose.
>>
>> The extra features such as DND and other widgets is very nice as well.
>>
>> The fact that DOJO is available under the BSD license is a plus as well.
>> I think there should be no license issues with this library.
>>
>> Should we just say DOJO is the way to go for future Ajax based tools in
>> OFBiz or do we need a formal vote?
>>
>> Andrew
>>
>> Alex D. Fleming wrote:
>> > Hi,
>> >
>> > Ooops Dojo is supported by IBM & AOL ....so I will prefer Dojo.
>> >
>> > http://dojotoolkit.org/foundation/
>> >
>> >
>> > On 12/14/06, A. Zeneski <ja...@ofbiz.org> wrote:
>> >>
>> >> Si (& all),
>> >>
>> >> I am in process of doing a lot of custom AJAX stuff for a new
>> client. I
>> >> intended on using prototype.js but based on conversations with other
>> >> people decided to go with dojo instead.
>> >>
>> >> The main part of what I did was a JSON wrapper around the service
>> event
>> >> handler. What this does is allows you to define (controller) requests
>> >> for ajax calls and have the results return in a lightweight (JSON)
>> >> format.
>> >>
>> >> This will work with any front end toolkit (Yahoo, Prototype, Dojo,
>> etc).
>> >> The main point is to define a standard pattern for AJAX requests in
>> >> OFBiz.
>> >>
>> >> Deciding on a toolkit for the javascript is very important and
>> based on
>> >> what I have researched and discussed with other people, Dojo seems to
>> be
>> >> the way to go.
>> >>
>> >> Of course, I am open for discussion with this, but we really should
>> >> decide on a standard for contributions back to OFBiz. The last thing I
>> >> want to see is several different ways of communication and different
>> >> toolkits being used.
>> >>
>> >> Prototype.js has been removed from SVN for the time being. As soon as
>> >> there is code which uses one of the toolkits it can be added back in.
>> >>
>> >> Let's start a community vote for the default AJAX toolkit to use in
>> >> OFBiz. Based on the work I did, I have already setup the back end
>> >> pattern, services using JSON for the return. Now let's decide on a
>> front
>> >> end toolkit.
>> >>
>> >> First lets, define the candidates:
>> >>
>> >> 1) Dojo
>> >> 2) Prototype
>> >>
>> >> Andy
>> >>
>>
>>
>>
>
>
Re: json + prototype + ajax?
Posted by "Alex D. Fleming" <al...@gmail.com>.
Andy,
>> Should we just say DOJO is the way to go for future Ajax based tools in
>> OFBiz or do we need a formal vote?
Yeah I will like to go with DOJO.
Voting on this is a good idea :-)
Now a days your active participation on mailing list makes me Happy :-).
Thanks for it.
On 12/14/06, A. Zeneski <ja...@ofbiz.org> wrote:
>
> I used prototype for my initial test and found it very easy to work
> with. Dojo on the other hand seemed to have a much broader learning
> curve. It too me a while to get everything working, but I think it is
> due to the ajax part being more verbose.
>
> The extra features such as DND and other widgets is very nice as well.
>
> The fact that DOJO is available under the BSD license is a plus as well.
> I think there should be no license issues with this library.
>
> Should we just say DOJO is the way to go for future Ajax based tools in
> OFBiz or do we need a formal vote?
>
> Andrew
>
> Alex D. Fleming wrote:
> > Hi,
> >
> > Ooops Dojo is supported by IBM & AOL ....so I will prefer Dojo.
> >
> > http://dojotoolkit.org/foundation/
> >
> >
> > On 12/14/06, A. Zeneski <ja...@ofbiz.org> wrote:
> >>
> >> Si (& all),
> >>
> >> I am in process of doing a lot of custom AJAX stuff for a new client. I
> >> intended on using prototype.js but based on conversations with other
> >> people decided to go with dojo instead.
> >>
> >> The main part of what I did was a JSON wrapper around the service event
> >> handler. What this does is allows you to define (controller) requests
> >> for ajax calls and have the results return in a lightweight (JSON)
> >> format.
> >>
> >> This will work with any front end toolkit (Yahoo, Prototype, Dojo,
> etc).
> >> The main point is to define a standard pattern for AJAX requests in
> >> OFBiz.
> >>
> >> Deciding on a toolkit for the javascript is very important and based on
> >> what I have researched and discussed with other people, Dojo seems to
> be
> >> the way to go.
> >>
> >> Of course, I am open for discussion with this, but we really should
> >> decide on a standard for contributions back to OFBiz. The last thing I
> >> want to see is several different ways of communication and different
> >> toolkits being used.
> >>
> >> Prototype.js has been removed from SVN for the time being. As soon as
> >> there is code which uses one of the toolkits it can be added back in.
> >>
> >> Let's start a community vote for the default AJAX toolkit to use in
> >> OFBiz. Based on the work I did, I have already setup the back end
> >> pattern, services using JSON for the return. Now let's decide on a
> front
> >> end toolkit.
> >>
> >> First lets, define the candidates:
> >>
> >> 1) Dojo
> >> 2) Prototype
> >>
> >> Andy
> >>
>
>
>
--
Regards
Alex D. Fleming
Re: json + prototype + ajax?
Posted by Tim Ruppert <ti...@hotwaxmedia.com>.
Leon, check out https://issues.apache.org/jira/browse/OFBIZ-510 -
there's a VERY useful implementation up there and ready for review.
This piece makes the anonymous checkout process usable - in my opinion.
We don't actually need this piece for what we're doing at the moment
since our customer only accepts credit cards for payment, but since
I'm not in habit of just breaking other people's stuff and I don't
really want to maintain tons of mods (other than straight custom
work) outside of the OFBiz trunk, we took the time to do this.
Please everyone take a look at this and let's get this initial AJAX
direction decided upon sometime soon. We are building tons of apps
based on a JSON / Dojo approach right now and would love for this to
be adopted or know a good reason to change direction to something
else. We're happy to do that if that's what we all decide.
Cheers,
Tim
--
Tim Ruppert
HotWax Media
http://www.hotwaxmedia.com
o:801.649.6594
f:801.649.6594
On Dec 13, 2006, at 8:39 PM, Leon Torres wrote:
> I'd like to request before any votes go out that we see an actual
> implementation of something useful in JSON and Dojo. I'm concerned
> that this approach is not lightweight enough for certain needs.
>
> First, it needs to support functionality that have a high rate of
> requests, such as autocomplete. This is critical.
>
> Second, the OFBiz AJAX system needs to be shallow and malleable.
> By shallow, I mean it should not have too many layers of
> complexity, abstraction or indirection. By malleable, I mean it
> should be easy to customize and build new effects or features for.
> Without these traits, it becomes difficult to develop and debug
> custom Ajax features.
>
> The reason I went with prototype was because of how easy it was to
> implement autocomplete in the form widget: It takes just two dozen
> lines of Javascript, some standard HTML form elements, and a
> standard Servlet method to process the autocomplete. And the
> requests are very fast, using the "ftl" handler. No special magic
> was required, just to load the required .js libraries.
>
> But this talk about having to write a JSON service event handler
> concerns me. If someone could demonstrate that it will be just as
> simple and straightforward, that would be great.
>
> - Leon
>
>
>
> A. Zeneski wrote:
>> Ean,
>> When I implemented a test case using the new JSON service event
>> handler
>> I found that the requests behaved just like any other HTTP
>> request. The
>> security part is transparent, you require auth (but not HTTPS) for
>> events which will be Ajax-Enabled. This uses the user login object
>> found
>> in the session (due to the fact that the url for the Ajax request is
>> wrapped around <@ofbizUrl> tags) and the service engine handles the
>> security.
>> For screen based (non-JSON) responses, I think the security handling
>> should be up to the page returned, just like any other page in OFBiz.
>> Thoughts?
>> Andrew
>> Ean Schuessler wrote:
>>> On Wednesday 13 December 2006 19:21, David E Jones wrote:
>>>> BTW, as to how I see AJAX stuff fitting into OFBiz there are 2 big
>>>> parts:
>>>>
>>>> 1. adding dynamic client side features to the form and screen (and
>>>> other) widgets for things like dynamic lookups, expanding tree-
>>>> browsers, movable screen-lets, etc.
>>>>
>>>> 2. special purpose pages that are meant to optimize a certain task,
>>>> like the checkout stuff Tim mentioned, but probably even moreso for
>>>> fancy back-end stuff
>>>>
>>>> For #1 replacing an AJAX framework is easy, but doesn't make as
>>>> big a
>>>> different in coding efficiency or anything, whereas for #2
>>>> something
>>>> better would make coding easier, but require more rewriting...
>>> We've had a few discussions going on over here about how to
>>> handle AJAX integration while still keeping security in mind. It
>>> seems like providing a limited dispatcher that only allows
>>> certain groups of services to be invoked is a good thing. Lots of
>>> services are already userLogin and Role protected, which is a
>>> good headstart. Maybe a specific AJAX dispatcher that has only
>>> services which are already vetted exposed through it?
>>>
>>> It would also be nice to have a high level facility for invoking
>>> those services and then triggering their results to something
>>> like the Dojo event framework when they return. With something
>>> like Comet these events could even be initiated by the server as
>>> if you had made a call on the client and then the delivery events
>>> occured.
>>>
Re: json + prototype + ajax?
Posted by "A. Zeneski" <ja...@ofbiz.org>.
Leon,
The JSON wrapper is for one purpose, to return service results in a
lightweight compressed format for use by the Ajax javascript toolkit.
This rather than XML is faster and more efficient as well as supported
by all the toolkits I have see so far.
This is only useful when you are looking to get specific values from a
service call; and allows you to call existing services in your Ajax
front end.
One really nice way to use this would be for a simple upload widget.
Call the service directly through a request event and have the results
returned in an object ready for javascript to work with.
This also uses the internal service security methods for authentication
and validation. I think its a real clean way to integrate.
I will try to put together a simple example and check it into one of the
components, I will let you know when it is there.
The other side is pulling in pre-formatted HTML. When doing this the
HTML fragments should be configurable at least as much as the current
templates are configurable. I like the idea of using screen definitions
and FTL to generate this.
Actually, this can be used for most things; but why when all you need to
get back is an ID or some raw data. I think using a combination of these
two methods (with any Ajax toolkit) is a great start.
Andrew
Leon Torres wrote:
> I'd like to request before any votes go out that we see an actual
> implementation of something useful in JSON and Dojo. I'm concerned that
> this approach is not lightweight enough for certain needs.
>
> First, it needs to support functionality that have a high rate of
> requests, such as autocomplete. This is critical.
>
> Second, the OFBiz AJAX system needs to be shallow and malleable. By
> shallow, I mean it should not have too many layers of complexity,
> abstraction or indirection. By malleable, I mean it should be easy to
> customize and build new effects or features for. Without these traits,
> it becomes difficult to develop and debug custom Ajax features.
>
> The reason I went with prototype was because of how easy it was to
> implement autocomplete in the form widget: It takes just two dozen
> lines of Javascript, some standard HTML form elements, and a standard
> Servlet method to process the autocomplete. And the requests are very
> fast, using the "ftl" handler. No special magic was required, just to
> load the required .js libraries.
>
> But this talk about having to write a JSON service event handler
> concerns me. If someone could demonstrate that it will be just as simple
> and straightforward, that would be great.
>
> - Leon
>
>
>
> A. Zeneski wrote:
>> Ean,
>>
>> When I implemented a test case using the new JSON service event handler
>> I found that the requests behaved just like any other HTTP request. The
>> security part is transparent, you require auth (but not HTTPS) for
>> events which will be Ajax-Enabled. This uses the user login object found
>> in the session (due to the fact that the url for the Ajax request is
>> wrapped around <@ofbizUrl> tags) and the service engine handles the
>> security.
>>
>> For screen based (non-JSON) responses, I think the security handling
>> should be up to the page returned, just like any other page in OFBiz.
>>
>> Thoughts?
>>
>> Andrew
>>
>> Ean Schuessler wrote:
>>> On Wednesday 13 December 2006 19:21, David E Jones wrote:
>>>> BTW, as to how I see AJAX stuff fitting into OFBiz there are 2 big
>>>> parts:
>>>>
>>>> 1. adding dynamic client side features to the form and screen (and
>>>> other) widgets for things like dynamic lookups, expanding tree-
>>>> browsers, movable screen-lets, etc.
>>>>
>>>> 2. special purpose pages that are meant to optimize a certain task,
>>>> like the checkout stuff Tim mentioned, but probably even moreso for
>>>> fancy back-end stuff
>>>>
>>>> For #1 replacing an AJAX framework is easy, but doesn't make as big a
>>>> different in coding efficiency or anything, whereas for #2 something
>>>> better would make coding easier, but require more rewriting...
>>> We've had a few discussions going on over here about how to handle
>>> AJAX integration while still keeping security in mind. It seems like
>>> providing a limited dispatcher that only allows certain groups of
>>> services to be invoked is a good thing. Lots of services are already
>>> userLogin and Role protected, which is a good headstart. Maybe a
>>> specific AJAX dispatcher that has only services which are already
>>> vetted exposed through it?
>>>
>>> It would also be nice to have a high level facility for invoking
>>> those services and then triggering their results to something like
>>> the Dojo event framework when they return. With something like Comet
>>> these events could even be initiated by the server as if you had made
>>> a call on the client and then the delivery events occured.
>>>
Re: json + prototype + ajax?
Posted by Leon Torres <le...@oss.minimetria.com>.
I'd like to request before any votes go out that we see an actual implementation
of something useful in JSON and Dojo. I'm concerned that this approach is not
lightweight enough for certain needs.
First, it needs to support functionality that have a high rate of requests, such
as autocomplete. This is critical.
Second, the OFBiz AJAX system needs to be shallow and malleable. By shallow, I
mean it should not have too many layers of complexity, abstraction or
indirection. By malleable, I mean it should be easy to customize and build new
effects or features for. Without these traits, it becomes difficult to develop
and debug custom Ajax features.
The reason I went with prototype was because of how easy it was to implement
autocomplete in the form widget: It takes just two dozen lines of Javascript,
some standard HTML form elements, and a standard Servlet method to process the
autocomplete. And the requests are very fast, using the "ftl" handler. No
special magic was required, just to load the required .js libraries.
But this talk about having to write a JSON service event handler concerns me.
If someone could demonstrate that it will be just as simple and straightforward,
that would be great.
- Leon
A. Zeneski wrote:
> Ean,
>
> When I implemented a test case using the new JSON service event handler
> I found that the requests behaved just like any other HTTP request. The
> security part is transparent, you require auth (but not HTTPS) for
> events which will be Ajax-Enabled. This uses the user login object found
> in the session (due to the fact that the url for the Ajax request is
> wrapped around <@ofbizUrl> tags) and the service engine handles the
> security.
>
> For screen based (non-JSON) responses, I think the security handling
> should be up to the page returned, just like any other page in OFBiz.
>
> Thoughts?
>
> Andrew
>
> Ean Schuessler wrote:
>> On Wednesday 13 December 2006 19:21, David E Jones wrote:
>>> BTW, as to how I see AJAX stuff fitting into OFBiz there are 2 big
>>> parts:
>>>
>>> 1. adding dynamic client side features to the form and screen (and
>>> other) widgets for things like dynamic lookups, expanding tree-
>>> browsers, movable screen-lets, etc.
>>>
>>> 2. special purpose pages that are meant to optimize a certain task,
>>> like the checkout stuff Tim mentioned, but probably even moreso for
>>> fancy back-end stuff
>>>
>>> For #1 replacing an AJAX framework is easy, but doesn't make as big a
>>> different in coding efficiency or anything, whereas for #2 something
>>> better would make coding easier, but require more rewriting...
>> We've had a few discussions going on over here about how to handle AJAX
>> integration while still keeping security in mind. It seems like providing a
>> limited dispatcher that only allows certain groups of services to be invoked
>> is a good thing. Lots of services are already userLogin and Role protected,
>> which is a good headstart. Maybe a specific AJAX dispatcher that has only
>> services which are already vetted exposed through it?
>>
>> It would also be nice to have a high level facility for invoking those
>> services and then triggering their results to something like the Dojo event
>> framework when they return. With something like Comet these events could even
>> be initiated by the server as if you had made a call on the client and then
>> the delivery events occured.
>>
Re: json + prototype + ajax?
Posted by "A. Zeneski" <ja...@ofbiz.org>.
Ean,
When I implemented a test case using the new JSON service event handler
I found that the requests behaved just like any other HTTP request. The
security part is transparent, you require auth (but not HTTPS) for
events which will be Ajax-Enabled. This uses the user login object found
in the session (due to the fact that the url for the Ajax request is
wrapped around <@ofbizUrl> tags) and the service engine handles the
security.
For screen based (non-JSON) responses, I think the security handling
should be up to the page returned, just like any other page in OFBiz.
Thoughts?
Andrew
Ean Schuessler wrote:
> On Wednesday 13 December 2006 19:21, David E Jones wrote:
>> BTW, as to how I see AJAX stuff fitting into OFBiz there are 2 big
>> parts:
>>
>> 1. adding dynamic client side features to the form and screen (and
>> other) widgets for things like dynamic lookups, expanding tree-
>> browsers, movable screen-lets, etc.
>>
>> 2. special purpose pages that are meant to optimize a certain task,
>> like the checkout stuff Tim mentioned, but probably even moreso for
>> fancy back-end stuff
>>
>> For #1 replacing an AJAX framework is easy, but doesn't make as big a
>> different in coding efficiency or anything, whereas for #2 something
>> better would make coding easier, but require more rewriting...
>
> We've had a few discussions going on over here about how to handle AJAX
> integration while still keeping security in mind. It seems like providing a
> limited dispatcher that only allows certain groups of services to be invoked
> is a good thing. Lots of services are already userLogin and Role protected,
> which is a good headstart. Maybe a specific AJAX dispatcher that has only
> services which are already vetted exposed through it?
>
> It would also be nice to have a high level facility for invoking those
> services and then triggering their results to something like the Dojo event
> framework when they return. With something like Comet these events could even
> be initiated by the server as if you had made a call on the client and then
> the delivery events occured.
>
Re: json + prototype + ajax?
Posted by Ean Schuessler <ea...@brainfood.com>.
On Wednesday 13 December 2006 19:21, David E Jones wrote:
> BTW, as to how I see AJAX stuff fitting into OFBiz there are 2 big
> parts:
>
> 1. adding dynamic client side features to the form and screen (and
> other) widgets for things like dynamic lookups, expanding tree-
> browsers, movable screen-lets, etc.
>
> 2. special purpose pages that are meant to optimize a certain task,
> like the checkout stuff Tim mentioned, but probably even moreso for
> fancy back-end stuff
>
> For #1 replacing an AJAX framework is easy, but doesn't make as big a
> different in coding efficiency or anything, whereas for #2 something
> better would make coding easier, but require more rewriting...
We've had a few discussions going on over here about how to handle AJAX
integration while still keeping security in mind. It seems like providing a
limited dispatcher that only allows certain groups of services to be invoked
is a good thing. Lots of services are already userLogin and Role protected,
which is a good headstart. Maybe a specific AJAX dispatcher that has only
services which are already vetted exposed through it?
It would also be nice to have a high level facility for invoking those
services and then triggering their results to something like the Dojo event
framework when they return. With something like Comet these events could even
be initiated by the server as if you had made a call on the client and then
the delivery events occured.
--
Ean Schuessler, CTO
ean@brainfood.com
214-720-0700 x 315
Brainfood, Inc.
http://www.brainfood.com
Re: json + prototype + ajax?
Posted by Si Chen <si...@opensourcestrategies.com>.
Related to this, we have done some work already to create a dynamic
party lookup tag for the form widget. We were planning to wrap that
up and put it on JIRA for everybody, but we may need to re-tweak it a
bit in light of the jpublish/bsf changes.
On Dec 13, 2006, at 5:21 PM, David E Jones wrote:
> On an important but less pleasant note: the AJAX stuff we are
> dealing with is very new in OFBiz, and outside of OFBiz the
> "market" is still maturing quite a lot. I agree we should perhaps
> vote on a best practice, though in general I'd rather see X task
> implemented with DOJO required so much effort and with Prototype so
> much effort. What I mean to say is that we should definitely decide
> on a best practice now and it sounds like most of the consensus is
> around JSON+DOJO, but we shouldn't be surprised if something much
> better comes up at some point in the future.
Best Regards,
Si
sichen@opensourcestrategies.com
Re: json + prototype + ajax?
Posted by "A. Zeneski" <ja...@ofbiz.org>.
Don't get me wrong, I'm not trying to limit us by any means. However,
there are currently a number of efforts going on in which Ajax will be
used to enhance or update various pieces of the open source project. I
for one would like to see an Ajax based packing screen go in the near
future as well.
What I mean by #1 priority, is to decide how we will standardize this
[for now] during the first wave of development. If we have a handful of
people all using different tools, we'll end up with a mess.
To compare, we don't have some screens using Velocity and others using
Freemarker, we have a standard for this. Even though Velocity is
supported and people can use it in the custom solutions. Freemarker is
standard for the open source contributions.
Before we start getting patches from people, I think we need standards.
This will save a lot of review time in the future.
Andrew
David E Jones wrote:
>
> Consistency is good, but I wouldn't say that's our #1 priority. We
> definitely want primary and secondary best practices like we do with
> other things, but also want to support a variety of technologies on the
> framework level. In other words, if people want to do stuff in their own
> code bases we don't want to block that, but yes for anything going into
> the project it should follow a consistent set of patterns so that people
> exploring the code for the first time will have a stream of "okay, okay,
> okay, ..." going through their heads instead of a stream of "wtf, wtf,
> wtf, ...".
>
> On an important but less pleasant note: the AJAX stuff we are dealing
> with is very new in OFBiz, and outside of OFBiz the "market" is still
> maturing quite a lot. I agree we should perhaps vote on a best practice,
> though in general I'd rather see X task implemented with DOJO required
> so much effort and with Prototype so much effort. What I mean to say is
> that we should definitely decide on a best practice now and it sounds
> like most of the consensus is around JSON+DOJO, but we shouldn't be
> surprised if something much better comes up at some point in the future.
>
> BTW, as to how I see AJAX stuff fitting into OFBiz there are 2 big parts:
>
> 1. adding dynamic client side features to the form and screen (and
> other) widgets for things like dynamic lookups, expanding tree-browsers,
> movable screen-lets, etc.
>
> 2. special purpose pages that are meant to optimize a certain task, like
> the checkout stuff Tim mentioned, but probably even moreso for fancy
> back-end stuff
>
> For #1 replacing an AJAX framework is easy, but doesn't make as big a
> different in coding efficiency or anything, whereas for #2 something
> better would make coding easier, but require more rewriting...
>
> -David
>
>
> On Dec 13, 2006, at 4:53 PM, A. Zeneski wrote:
>
>> I am curious as to the pattern used to make the async calls, what method
>> of return is used here?
>>
>> I see two possible patterns which would be useful:
>>
>> 1) JSON compressed objects. This will require more processing on the
>> front end to pull the data and format the HTML. I like leaving this in
>> the front end code personally. This is currently implemented using the
>> JSONServiceEventHandler request handler.
>>
>> 2) Screen Widget based HTML return. The Ajax request makes a simple call
>> which returns a HTML fragment (developed using screen widgets). The
>> return is then just plugged in by updating the element content
>> (innerHTML).
>>
>> Either of these patterns is fine by me, and I believe that for most
>> applications a combination of the two would be necessary.
>>
>> I am sure there are many other ways to accomplish the same thing, but
>> since there is so much effort about to begin around 'Ajaxing' OFBiz
>> making sure things are consistent is #1 priority.
>>
>> I'm curious as to what other 'patterns' people have come up with (if
>> any).
>>
>> Andrew
>>
>>
>> Tim Ruppert wrote:
>>> Just to continue the push towards Dojo, I am about to submit a new
>>> Anonymous Checkout process for
>>> https://issues.apache.org/jira/browse/OFBIZ-510 which is based upon
>>> Dojo. You guys will like it - 3 steps and working towards my 2 step
>>> process goal.
>>>
>>> Cheers,
>>> Tim
>>> --Tim Ruppert
>>> HotWax Media
>>> http://www.hotwaxmedia.com
>>>
>>> o:801.649.6594
>>> f:801.649.6594
>>>
>>>
>>> On Dec 13, 2006, at 4:36 PM, A. Zeneski wrote:
>>>
>>>> I used prototype for my initial test and found it very easy to work
>>>> with. Dojo on the other hand seemed to have a much broader learning
>>>> curve. It too me a while to get everything working, but I think it is
>>>> due to the ajax part being more verbose.
>>>>
>>>> The extra features such as DND and other widgets is very nice as well.
>>>>
>>>> The fact that DOJO is available under the BSD license is a plus as
>>>> well.
>>>> I think there should be no license issues with this library.
>>>>
>>>> Should we just say DOJO is the way to go for future Ajax based tools in
>>>> OFBiz or do we need a formal vote?
>>>>
>>>> Andrew
>>>>
>>>> Alex D. Fleming wrote:
>>>>> Hi,
>>>>>
>>>>> Ooops Dojo is supported by IBM & AOL ....so I will prefer Dojo.
>>>>>
>>>>> http://dojotoolkit.org/foundation/
>>>>>
>>>>>
>>>>> On 12/14/06, A. Zeneski <ja...@ofbiz.org> wrote:
>>>>>>
>>>>>> Si (& all),
>>>>>>
>>>>>> I am in process of doing a lot of custom AJAX stuff for a new
>>>>>> client. I
>>>>>> intended on using prototype.js but based on conversations with other
>>>>>> people decided to go with dojo instead.
>>>>>>
>>>>>> The main part of what I did was a JSON wrapper around the service
>>>>>> event
>>>>>> handler. What this does is allows you to define (controller) requests
>>>>>> for ajax calls and have the results return in a lightweight (JSON)
>>>>>> format.
>>>>>>
>>>>>> This will work with any front end toolkit (Yahoo, Prototype, Dojo,
>>>>>> etc).
>>>>>> The main point is to define a standard pattern for AJAX requests in
>>>>>> OFBiz.
>>>>>>
>>>>>> Deciding on a toolkit for the javascript is very important and
>>>>>> based on
>>>>>> what I have researched and discussed with other people, Dojo seems
>>>>>> to be
>>>>>> the way to go.
>>>>>>
>>>>>> Of course, I am open for discussion with this, but we really should
>>>>>> decide on a standard for contributions back to OFBiz. The last
>>>>>> thing I
>>>>>> want to see is several different ways of communication and different
>>>>>> toolkits being used.
>>>>>>
>>>>>> Prototype.js has been removed from SVN for the time being. As soon as
>>>>>> there is code which uses one of the toolkits it can be added back in.
>>>>>>
>>>>>> Let's start a community vote for the default AJAX toolkit to use in
>>>>>> OFBiz. Based on the work I did, I have already setup the back end
>>>>>> pattern, services using JSON for the return. Now let's decide on a
>>>>>> front
>>>>>> end toolkit.
>>>>>>
>>>>>> First lets, define the candidates:
>>>>>>
>>>>>> 1) Dojo
>>>>>> 2) Prototype
>>>>>>
>>>>>> Andy
>>>>>>
>>>
>>>
>
Re: json + prototype + ajax?
Posted by David E Jones <jo...@undersunconsulting.com>.
Consistency is good, but I wouldn't say that's our #1 priority. We
definitely want primary and secondary best practices like we do with
other things, but also want to support a variety of technologies on
the framework level. In other words, if people want to do stuff in
their own code bases we don't want to block that, but yes for
anything going into the project it should follow a consistent set of
patterns so that people exploring the code for the first time will
have a stream of "okay, okay, okay, ..." going through their heads
instead of a stream of "wtf, wtf, wtf, ...".
On an important but less pleasant note: the AJAX stuff we are dealing
with is very new in OFBiz, and outside of OFBiz the "market" is still
maturing quite a lot. I agree we should perhaps vote on a best
practice, though in general I'd rather see X task implemented with
DOJO required so much effort and with Prototype so much effort. What
I mean to say is that we should definitely decide on a best practice
now and it sounds like most of the consensus is around JSON+DOJO, but
we shouldn't be surprised if something much better comes up at some
point in the future.
BTW, as to how I see AJAX stuff fitting into OFBiz there are 2 big
parts:
1. adding dynamic client side features to the form and screen (and
other) widgets for things like dynamic lookups, expanding tree-
browsers, movable screen-lets, etc.
2. special purpose pages that are meant to optimize a certain task,
like the checkout stuff Tim mentioned, but probably even moreso for
fancy back-end stuff
For #1 replacing an AJAX framework is easy, but doesn't make as big a
different in coding efficiency or anything, whereas for #2 something
better would make coding easier, but require more rewriting...
-David
On Dec 13, 2006, at 4:53 PM, A. Zeneski wrote:
> I am curious as to the pattern used to make the async calls, what
> method
> of return is used here?
>
> I see two possible patterns which would be useful:
>
> 1) JSON compressed objects. This will require more processing on the
> front end to pull the data and format the HTML. I like leaving this in
> the front end code personally. This is currently implemented using the
> JSONServiceEventHandler request handler.
>
> 2) Screen Widget based HTML return. The Ajax request makes a simple
> call
> which returns a HTML fragment (developed using screen widgets). The
> return is then just plugged in by updating the element content
> (innerHTML).
>
> Either of these patterns is fine by me, and I believe that for most
> applications a combination of the two would be necessary.
>
> I am sure there are many other ways to accomplish the same thing, but
> since there is so much effort about to begin around 'Ajaxing' OFBiz
> making sure things are consistent is #1 priority.
>
> I'm curious as to what other 'patterns' people have come up with
> (if any).
>
> Andrew
>
>
> Tim Ruppert wrote:
>> Just to continue the push towards Dojo, I am about to submit a new
>> Anonymous Checkout process for
>> https://issues.apache.org/jira/browse/OFBIZ-510 which is based upon
>> Dojo. You guys will like it - 3 steps and working towards my 2 step
>> process goal.
>>
>> Cheers,
>> Tim
>> --
>> Tim Ruppert
>> HotWax Media
>> http://www.hotwaxmedia.com
>>
>> o:801.649.6594
>> f:801.649.6594
>>
>>
>> On Dec 13, 2006, at 4:36 PM, A. Zeneski wrote:
>>
>>> I used prototype for my initial test and found it very easy to work
>>> with. Dojo on the other hand seemed to have a much broader learning
>>> curve. It too me a while to get everything working, but I think
>>> it is
>>> due to the ajax part being more verbose.
>>>
>>> The extra features such as DND and other widgets is very nice as
>>> well.
>>>
>>> The fact that DOJO is available under the BSD license is a plus
>>> as well.
>>> I think there should be no license issues with this library.
>>>
>>> Should we just say DOJO is the way to go for future Ajax based
>>> tools in
>>> OFBiz or do we need a formal vote?
>>>
>>> Andrew
>>>
>>> Alex D. Fleming wrote:
>>>> Hi,
>>>>
>>>> Ooops Dojo is supported by IBM & AOL ....so I will prefer Dojo.
>>>>
>>>> http://dojotoolkit.org/foundation/
>>>>
>>>>
>>>> On 12/14/06, A. Zeneski <ja...@ofbiz.org> wrote:
>>>>>
>>>>> Si (& all),
>>>>>
>>>>> I am in process of doing a lot of custom AJAX stuff for a new
>>>>> client. I
>>>>> intended on using prototype.js but based on conversations with
>>>>> other
>>>>> people decided to go with dojo instead.
>>>>>
>>>>> The main part of what I did was a JSON wrapper around the
>>>>> service event
>>>>> handler. What this does is allows you to define (controller)
>>>>> requests
>>>>> for ajax calls and have the results return in a lightweight (JSON)
>>>>> format.
>>>>>
>>>>> This will work with any front end toolkit (Yahoo, Prototype, Dojo,
>>>>> etc).
>>>>> The main point is to define a standard pattern for AJAX
>>>>> requests in
>>>>> OFBiz.
>>>>>
>>>>> Deciding on a toolkit for the javascript is very important and
>>>>> based on
>>>>> what I have researched and discussed with other people, Dojo seems
>>>>> to be
>>>>> the way to go.
>>>>>
>>>>> Of course, I am open for discussion with this, but we really
>>>>> should
>>>>> decide on a standard for contributions back to OFBiz. The last
>>>>> thing I
>>>>> want to see is several different ways of communication and
>>>>> different
>>>>> toolkits being used.
>>>>>
>>>>> Prototype.js has been removed from SVN for the time being. As
>>>>> soon as
>>>>> there is code which uses one of the toolkits it can be added
>>>>> back in.
>>>>>
>>>>> Let's start a community vote for the default AJAX toolkit to
>>>>> use in
>>>>> OFBiz. Based on the work I did, I have already setup the back end
>>>>> pattern, services using JSON for the return. Now let's decide on a
>>>>> front
>>>>> end toolkit.
>>>>>
>>>>> First lets, define the candidates:
>>>>>
>>>>> 1) Dojo
>>>>> 2) Prototype
>>>>>
>>>>> Andy
>>>>>
>>
>>
Re: json + prototype + ajax?
Posted by "A. Zeneski" <ja...@ofbiz.org>.
Nice, I like...
Anil Patel wrote:
> 2) Screen Widget based HTML return. The Ajax request makes a simple call
> which returns a HTML fragment (developed using screen widgets). The
> return is then just plugged in by updating the element content (innerHTML).
>
> I have used this pattern with screen/ftl for generating html on demand.
>
> Regards
>
>
> On 12/13/06, A. Zeneski <ja...@ofbiz.org> wrote:
>>
>> I am curious as to the pattern used to make the async calls, what method
>> of return is used here?
>>
>> I see two possible patterns which would be useful:
>>
>> 1) JSON compressed objects. This will require more processing on the
>> front end to pull the data and format the HTML. I like leaving this in
>> the front end code personally. This is currently implemented using the
>> JSONServiceEventHandler request handler.
>>
>> 2) Screen Widget based HTML return. The Ajax request makes a simple call
>> which returns a HTML fragment (developed using screen widgets). The
>> return is then just plugged in by updating the element content
>> (innerHTML).
>>
>> Either of these patterns is fine by me, and I believe that for most
>> applications a combination of the two would be necessary.
>>
>> I am sure there are many other ways to accomplish the same thing, but
>> since there is so much effort about to begin around 'Ajaxing' OFBiz
>> making sure things are consistent is #1 priority.
>>
>> I'm curious as to what other 'patterns' people have come up with (if
>> any).
>>
>> Andrew
>>
>>
>> Tim Ruppert wrote:
>> > Just to continue the push towards Dojo, I am about to submit a new
>> > Anonymous Checkout process for
>> > https://issues.apache.org/jira/browse/OFBIZ-510 which is based upon
>> > Dojo. You guys will like it - 3 steps and working towards my 2 step
>> > process goal.
>> >
>> > Cheers,
>> > Tim
>> > --
>> > Tim Ruppert
>> > HotWax Media
>> > http://www.hotwaxmedia.com
>> >
>> > o:801.649.6594
>> > f:801.649.6594
>> >
>> >
>> > On Dec 13, 2006, at 4:36 PM, A. Zeneski wrote:
>> >
>> >> I used prototype for my initial test and found it very easy to work
>> >> with. Dojo on the other hand seemed to have a much broader learning
>> >> curve. It too me a while to get everything working, but I think it is
>> >> due to the ajax part being more verbose.
>> >>
>> >> The extra features such as DND and other widgets is very nice as well.
>> >>
>> >> The fact that DOJO is available under the BSD license is a plus as
>> well.
>> >> I think there should be no license issues with this library.
>> >>
>> >> Should we just say DOJO is the way to go for future Ajax based
>> tools in
>> >> OFBiz or do we need a formal vote?
>> >>
>> >> Andrew
>> >>
>> >> Alex D. Fleming wrote:
>> >>> Hi,
>> >>>
>> >>> Ooops Dojo is supported by IBM & AOL ....so I will prefer Dojo.
>> >>>
>> >>> http://dojotoolkit.org/foundation/
>> >>>
>> >>>
>> >>> On 12/14/06, A. Zeneski <ja...@ofbiz.org> wrote:
>> >>>>
>> >>>> Si (& all),
>> >>>>
>> >>>> I am in process of doing a lot of custom AJAX stuff for a new
>> client.
>> I
>> >>>> intended on using prototype.js but based on conversations with other
>> >>>> people decided to go with dojo instead.
>> >>>>
>> >>>> The main part of what I did was a JSON wrapper around the service
>> event
>> >>>> handler. What this does is allows you to define (controller)
>> requests
>> >>>> for ajax calls and have the results return in a lightweight (JSON)
>> >>>> format.
>> >>>>
>> >>>> This will work with any front end toolkit (Yahoo, Prototype, Dojo,
>> >>>> etc).
>> >>>> The main point is to define a standard pattern for AJAX requests in
>> >>>> OFBiz.
>> >>>>
>> >>>> Deciding on a toolkit for the javascript is very important and based
>> on
>> >>>> what I have researched and discussed with other people, Dojo seems
>> >>>> to be
>> >>>> the way to go.
>> >>>>
>> >>>> Of course, I am open for discussion with this, but we really should
>> >>>> decide on a standard for contributions back to OFBiz. The last thing
>> I
>> >>>> want to see is several different ways of communication and different
>> >>>> toolkits being used.
>> >>>>
>> >>>> Prototype.js has been removed from SVN for the time being. As
>> soon as
>> >>>> there is code which uses one of the toolkits it can be added back
>> in.
>> >>>>
>> >>>> Let's start a community vote for the default AJAX toolkit to use in
>> >>>> OFBiz. Based on the work I did, I have already setup the back end
>> >>>> pattern, services using JSON for the return. Now let's decide on a
>> >>>> front
>> >>>> end toolkit.
>> >>>>
>> >>>> First lets, define the candidates:
>> >>>>
>> >>>> 1) Dojo
>> >>>> 2) Prototype
>> >>>>
>> >>>> Andy
>> >>>>
>> >
>> >
>>
>>
>>
>
Re: json + prototype + ajax?
Posted by Anil Patel <ap...@adititechlabs.com>.
2) Screen Widget based HTML return. The Ajax request makes a simple call
which returns a HTML fragment (developed using screen widgets). The
return is then just plugged in by updating the element content (innerHTML).
I have used this pattern with screen/ftl for generating html on demand.
Regards
On 12/13/06, A. Zeneski <ja...@ofbiz.org> wrote:
>
> I am curious as to the pattern used to make the async calls, what method
> of return is used here?
>
> I see two possible patterns which would be useful:
>
> 1) JSON compressed objects. This will require more processing on the
> front end to pull the data and format the HTML. I like leaving this in
> the front end code personally. This is currently implemented using the
> JSONServiceEventHandler request handler.
>
> 2) Screen Widget based HTML return. The Ajax request makes a simple call
> which returns a HTML fragment (developed using screen widgets). The
> return is then just plugged in by updating the element content
> (innerHTML).
>
> Either of these patterns is fine by me, and I believe that for most
> applications a combination of the two would be necessary.
>
> I am sure there are many other ways to accomplish the same thing, but
> since there is so much effort about to begin around 'Ajaxing' OFBiz
> making sure things are consistent is #1 priority.
>
> I'm curious as to what other 'patterns' people have come up with (if any).
>
> Andrew
>
>
> Tim Ruppert wrote:
> > Just to continue the push towards Dojo, I am about to submit a new
> > Anonymous Checkout process for
> > https://issues.apache.org/jira/browse/OFBIZ-510 which is based upon
> > Dojo. You guys will like it - 3 steps and working towards my 2 step
> > process goal.
> >
> > Cheers,
> > Tim
> > --
> > Tim Ruppert
> > HotWax Media
> > http://www.hotwaxmedia.com
> >
> > o:801.649.6594
> > f:801.649.6594
> >
> >
> > On Dec 13, 2006, at 4:36 PM, A. Zeneski wrote:
> >
> >> I used prototype for my initial test and found it very easy to work
> >> with. Dojo on the other hand seemed to have a much broader learning
> >> curve. It too me a while to get everything working, but I think it is
> >> due to the ajax part being more verbose.
> >>
> >> The extra features such as DND and other widgets is very nice as well.
> >>
> >> The fact that DOJO is available under the BSD license is a plus as
> well.
> >> I think there should be no license issues with this library.
> >>
> >> Should we just say DOJO is the way to go for future Ajax based tools in
> >> OFBiz or do we need a formal vote?
> >>
> >> Andrew
> >>
> >> Alex D. Fleming wrote:
> >>> Hi,
> >>>
> >>> Ooops Dojo is supported by IBM & AOL ....so I will prefer Dojo.
> >>>
> >>> http://dojotoolkit.org/foundation/
> >>>
> >>>
> >>> On 12/14/06, A. Zeneski <ja...@ofbiz.org> wrote:
> >>>>
> >>>> Si (& all),
> >>>>
> >>>> I am in process of doing a lot of custom AJAX stuff for a new client.
> I
> >>>> intended on using prototype.js but based on conversations with other
> >>>> people decided to go with dojo instead.
> >>>>
> >>>> The main part of what I did was a JSON wrapper around the service
> event
> >>>> handler. What this does is allows you to define (controller) requests
> >>>> for ajax calls and have the results return in a lightweight (JSON)
> >>>> format.
> >>>>
> >>>> This will work with any front end toolkit (Yahoo, Prototype, Dojo,
> >>>> etc).
> >>>> The main point is to define a standard pattern for AJAX requests in
> >>>> OFBiz.
> >>>>
> >>>> Deciding on a toolkit for the javascript is very important and based
> on
> >>>> what I have researched and discussed with other people, Dojo seems
> >>>> to be
> >>>> the way to go.
> >>>>
> >>>> Of course, I am open for discussion with this, but we really should
> >>>> decide on a standard for contributions back to OFBiz. The last thing
> I
> >>>> want to see is several different ways of communication and different
> >>>> toolkits being used.
> >>>>
> >>>> Prototype.js has been removed from SVN for the time being. As soon as
> >>>> there is code which uses one of the toolkits it can be added back in.
> >>>>
> >>>> Let's start a community vote for the default AJAX toolkit to use in
> >>>> OFBiz. Based on the work I did, I have already setup the back end
> >>>> pattern, services using JSON for the return. Now let's decide on a
> >>>> front
> >>>> end toolkit.
> >>>>
> >>>> First lets, define the candidates:
> >>>>
> >>>> 1) Dojo
> >>>> 2) Prototype
> >>>>
> >>>> Andy
> >>>>
> >
> >
>
>
>
Re: json + prototype + ajax?
Posted by "A. Zeneski" <ja...@ofbiz.org>.
I am curious as to the pattern used to make the async calls, what method
of return is used here?
I see two possible patterns which would be useful:
1) JSON compressed objects. This will require more processing on the
front end to pull the data and format the HTML. I like leaving this in
the front end code personally. This is currently implemented using the
JSONServiceEventHandler request handler.
2) Screen Widget based HTML return. The Ajax request makes a simple call
which returns a HTML fragment (developed using screen widgets). The
return is then just plugged in by updating the element content (innerHTML).
Either of these patterns is fine by me, and I believe that for most
applications a combination of the two would be necessary.
I am sure there are many other ways to accomplish the same thing, but
since there is so much effort about to begin around 'Ajaxing' OFBiz
making sure things are consistent is #1 priority.
I'm curious as to what other 'patterns' people have come up with (if any).
Andrew
Tim Ruppert wrote:
> Just to continue the push towards Dojo, I am about to submit a new
> Anonymous Checkout process for
> https://issues.apache.org/jira/browse/OFBIZ-510 which is based upon
> Dojo. You guys will like it - 3 steps and working towards my 2 step
> process goal.
>
> Cheers,
> Tim
> --
> Tim Ruppert
> HotWax Media
> http://www.hotwaxmedia.com
>
> o:801.649.6594
> f:801.649.6594
>
>
> On Dec 13, 2006, at 4:36 PM, A. Zeneski wrote:
>
>> I used prototype for my initial test and found it very easy to work
>> with. Dojo on the other hand seemed to have a much broader learning
>> curve. It too me a while to get everything working, but I think it is
>> due to the ajax part being more verbose.
>>
>> The extra features such as DND and other widgets is very nice as well.
>>
>> The fact that DOJO is available under the BSD license is a plus as well.
>> I think there should be no license issues with this library.
>>
>> Should we just say DOJO is the way to go for future Ajax based tools in
>> OFBiz or do we need a formal vote?
>>
>> Andrew
>>
>> Alex D. Fleming wrote:
>>> Hi,
>>>
>>> Ooops Dojo is supported by IBM & AOL ....so I will prefer Dojo.
>>>
>>> http://dojotoolkit.org/foundation/
>>>
>>>
>>> On 12/14/06, A. Zeneski <ja...@ofbiz.org> wrote:
>>>>
>>>> Si (& all),
>>>>
>>>> I am in process of doing a lot of custom AJAX stuff for a new client. I
>>>> intended on using prototype.js but based on conversations with other
>>>> people decided to go with dojo instead.
>>>>
>>>> The main part of what I did was a JSON wrapper around the service event
>>>> handler. What this does is allows you to define (controller) requests
>>>> for ajax calls and have the results return in a lightweight (JSON)
>>>> format.
>>>>
>>>> This will work with any front end toolkit (Yahoo, Prototype, Dojo,
>>>> etc).
>>>> The main point is to define a standard pattern for AJAX requests in
>>>> OFBiz.
>>>>
>>>> Deciding on a toolkit for the javascript is very important and based on
>>>> what I have researched and discussed with other people, Dojo seems
>>>> to be
>>>> the way to go.
>>>>
>>>> Of course, I am open for discussion with this, but we really should
>>>> decide on a standard for contributions back to OFBiz. The last thing I
>>>> want to see is several different ways of communication and different
>>>> toolkits being used.
>>>>
>>>> Prototype.js has been removed from SVN for the time being. As soon as
>>>> there is code which uses one of the toolkits it can be added back in.
>>>>
>>>> Let's start a community vote for the default AJAX toolkit to use in
>>>> OFBiz. Based on the work I did, I have already setup the back end
>>>> pattern, services using JSON for the return. Now let's decide on a
>>>> front
>>>> end toolkit.
>>>>
>>>> First lets, define the candidates:
>>>>
>>>> 1) Dojo
>>>> 2) Prototype
>>>>
>>>> Andy
>>>>
>
>
Re: json + prototype + ajax?
Posted by Tim Ruppert <ti...@hotwaxmedia.com>.
Just to continue the push towards Dojo, I am about to submit a new
Anonymous Checkout process for https://issues.apache.org/jira/browse/
OFBIZ-510 which is based upon Dojo. You guys will like it - 3 steps
and working towards my 2 step process goal.
Cheers,
Tim
--
Tim Ruppert
HotWax Media
http://www.hotwaxmedia.com
o:801.649.6594
f:801.649.6594
On Dec 13, 2006, at 4:36 PM, A. Zeneski wrote:
> I used prototype for my initial test and found it very easy to work
> with. Dojo on the other hand seemed to have a much broader learning
> curve. It too me a while to get everything working, but I think it is
> due to the ajax part being more verbose.
>
> The extra features such as DND and other widgets is very nice as well.
>
> The fact that DOJO is available under the BSD license is a plus as
> well.
> I think there should be no license issues with this library.
>
> Should we just say DOJO is the way to go for future Ajax based
> tools in
> OFBiz or do we need a formal vote?
>
> Andrew
>
> Alex D. Fleming wrote:
>> Hi,
>>
>> Ooops Dojo is supported by IBM & AOL ....so I will prefer Dojo.
>>
>> http://dojotoolkit.org/foundation/
>>
>>
>> On 12/14/06, A. Zeneski <ja...@ofbiz.org> wrote:
>>>
>>> Si (& all),
>>>
>>> I am in process of doing a lot of custom AJAX stuff for a new
>>> client. I
>>> intended on using prototype.js but based on conversations with other
>>> people decided to go with dojo instead.
>>>
>>> The main part of what I did was a JSON wrapper around the service
>>> event
>>> handler. What this does is allows you to define (controller)
>>> requests
>>> for ajax calls and have the results return in a lightweight (JSON)
>>> format.
>>>
>>> This will work with any front end toolkit (Yahoo, Prototype,
>>> Dojo, etc).
>>> The main point is to define a standard pattern for AJAX requests in
>>> OFBiz.
>>>
>>> Deciding on a toolkit for the javascript is very important and
>>> based on
>>> what I have researched and discussed with other people, Dojo
>>> seems to be
>>> the way to go.
>>>
>>> Of course, I am open for discussion with this, but we really should
>>> decide on a standard for contributions back to OFBiz. The last
>>> thing I
>>> want to see is several different ways of communication and different
>>> toolkits being used.
>>>
>>> Prototype.js has been removed from SVN for the time being. As
>>> soon as
>>> there is code which uses one of the toolkits it can be added back
>>> in.
>>>
>>> Let's start a community vote for the default AJAX toolkit to use in
>>> OFBiz. Based on the work I did, I have already setup the back end
>>> pattern, services using JSON for the return. Now let's decide on
>>> a front
>>> end toolkit.
>>>
>>> First lets, define the candidates:
>>>
>>> 1) Dojo
>>> 2) Prototype
>>>
>>> Andy
>>>
Re: json + prototype + ajax?
Posted by "A. Zeneski" <ja...@ofbiz.org>.
I used prototype for my initial test and found it very easy to work
with. Dojo on the other hand seemed to have a much broader learning
curve. It too me a while to get everything working, but I think it is
due to the ajax part being more verbose.
The extra features such as DND and other widgets is very nice as well.
The fact that DOJO is available under the BSD license is a plus as well.
I think there should be no license issues with this library.
Should we just say DOJO is the way to go for future Ajax based tools in
OFBiz or do we need a formal vote?
Andrew
Alex D. Fleming wrote:
> Hi,
>
> Ooops Dojo is supported by IBM & AOL ....so I will prefer Dojo.
>
> http://dojotoolkit.org/foundation/
>
>
> On 12/14/06, A. Zeneski <ja...@ofbiz.org> wrote:
>>
>> Si (& all),
>>
>> I am in process of doing a lot of custom AJAX stuff for a new client. I
>> intended on using prototype.js but based on conversations with other
>> people decided to go with dojo instead.
>>
>> The main part of what I did was a JSON wrapper around the service event
>> handler. What this does is allows you to define (controller) requests
>> for ajax calls and have the results return in a lightweight (JSON)
>> format.
>>
>> This will work with any front end toolkit (Yahoo, Prototype, Dojo, etc).
>> The main point is to define a standard pattern for AJAX requests in
>> OFBiz.
>>
>> Deciding on a toolkit for the javascript is very important and based on
>> what I have researched and discussed with other people, Dojo seems to be
>> the way to go.
>>
>> Of course, I am open for discussion with this, but we really should
>> decide on a standard for contributions back to OFBiz. The last thing I
>> want to see is several different ways of communication and different
>> toolkits being used.
>>
>> Prototype.js has been removed from SVN for the time being. As soon as
>> there is code which uses one of the toolkits it can be added back in.
>>
>> Let's start a community vote for the default AJAX toolkit to use in
>> OFBiz. Based on the work I did, I have already setup the back end
>> pattern, services using JSON for the return. Now let's decide on a front
>> end toolkit.
>>
>> First lets, define the candidates:
>>
>> 1) Dojo
>> 2) Prototype
>>
>> Andy
>>
Re: json + prototype + ajax?
Posted by "Alex D. Fleming" <al...@gmail.com>.
Hi,
Ooops Dojo is supported by IBM & AOL ....so I will prefer Dojo.
http://dojotoolkit.org/foundation/
On 12/14/06, A. Zeneski <ja...@ofbiz.org> wrote:
>
> Si (& all),
>
> I am in process of doing a lot of custom AJAX stuff for a new client. I
> intended on using prototype.js but based on conversations with other
> people decided to go with dojo instead.
>
> The main part of what I did was a JSON wrapper around the service event
> handler. What this does is allows you to define (controller) requests
> for ajax calls and have the results return in a lightweight (JSON) format.
>
> This will work with any front end toolkit (Yahoo, Prototype, Dojo, etc).
> The main point is to define a standard pattern for AJAX requests in OFBiz.
>
> Deciding on a toolkit for the javascript is very important and based on
> what I have researched and discussed with other people, Dojo seems to be
> the way to go.
>
> Of course, I am open for discussion with this, but we really should
> decide on a standard for contributions back to OFBiz. The last thing I
> want to see is several different ways of communication and different
> toolkits being used.
>
> Prototype.js has been removed from SVN for the time being. As soon as
> there is code which uses one of the toolkits it can be added back in.
>
> Let's start a community vote for the default AJAX toolkit to use in
> OFBiz. Based on the work I did, I have already setup the back end
> pattern, services using JSON for the return. Now let's decide on a front
> end toolkit.
>
> First lets, define the candidates:
>
> 1) Dojo
> 2) Prototype
>
> Andy
>
--
Regards
Alex D. Fleming
Re: json + prototype + ajax?
Posted by "A. Zeneski" <ja...@ofbiz.org>.
Si (& all),
I am in process of doing a lot of custom AJAX stuff for a new client. I
intended on using prototype.js but based on conversations with other
people decided to go with dojo instead.
The main part of what I did was a JSON wrapper around the service event
handler. What this does is allows you to define (controller) requests
for ajax calls and have the results return in a lightweight (JSON) format.
This will work with any front end toolkit (Yahoo, Prototype, Dojo, etc).
The main point is to define a standard pattern for AJAX requests in OFBiz.
Deciding on a toolkit for the javascript is very important and based on
what I have researched and discussed with other people, Dojo seems to be
the way to go.
Of course, I am open for discussion with this, but we really should
decide on a standard for contributions back to OFBiz. The last thing I
want to see is several different ways of communication and different
toolkits being used.
Prototype.js has been removed from SVN for the time being. As soon as
there is code which uses one of the toolkits it can be added back in.
Let's start a community vote for the default AJAX toolkit to use in
OFBiz. Based on the work I did, I have already setup the back end
pattern, services using JSON for the return. Now let's decide on a front
end toolkit.
First lets, define the candidates:
1) Dojo
2) Prototype
Andy
Si Chen wrote:
> Hi Andy -
>
> Just saw your commits last night. What are you planning to implement
> with JSON and Ajax?
>
> We were thinking about doing an auto-complete for the form widget lookup
> with prototype.js this week, by the way.
>
> Best Regards,
>
> Si
> sichen@opensourcestrategies.com
>
>
>
>