[ 
https://issues.apache.org/jira/browse/TUSCANY-2568?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12633121#action_12633121
 ] 

Dan Becker commented on TUSCANY-2568:
-------------------------------------

After discussion on the list (see "Google license for JavaScript Client 
Library" http://www.mail-archive.com/[email protected]/msg02530.html), 
several commenters had some issues with the Google JavaScript client for 
manipulating Atom feeds.

Although Tuscany does use Google Java code in manipulating GData items in other 
areas of the build, we have not yet used the JavaScript client code in Tuscany. 
From a technical perspective, I did try an implementation with the Google 
JavaScript client and found several errors trying to use the Google client with 
a Tuscany Atom Feed. It seems the Google client is geared toward using their 
client with their services such as Calendar, Blogger, etc. I  Googled for 
information on my feed errors, but found no public documentation.

I did have success creating a Tuscany implementation of a JavaScript client 
that parses Atom Feeds and Entries. Using this JavaScript model, users can use 
syntax such as:
   item += "name=" + entry.getName() + ", price=" + entry.getContent() 
rather than
  item += entries[i].getElementsByTagName("content")[0].firstChild.nodeValue;
>From a customer perspective, it is easier using a JavaScript model for Feed 
>and Entry (first example) rather than do XML tag parsing (second example).

I will create an interim patch shortly. After some review I will update or 
commit the patch.

> Javascript model for Atom binding collections and entries
> ---------------------------------------------------------
>
>                 Key: TUSCANY-2568
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-2568
>             Project: Tuscany
>          Issue Type: New Feature
>          Components: Java SCA ATOM Binding Extension
>         Environment: All
>            Reporter: Dan Becker
>            Assignee: Dan Becker
>             Fix For: Java-SCA-Next
>
>
> - A proper Javascript object model for an Atom collection and Atom entries to 
> facilitate the use of Atom in Javascript clients, modeled after the Abdera 
> model for collection and entry.
> - A Javascript model for Atom collections and entries mirroring the Tuscany 
> Java data.Collection interface, providing simple access to business data 
> objects in an Atom collection.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to