You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Dan Becker (JIRA)" <de...@tuscany.apache.org> on 2008/08/27 16:45:44 UTC

[jira] Created: (TUSCANY-2568) Javascript model for Atom binding collections and entries

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


- 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.


[jira] Updated: (TUSCANY-2568) Javascript model for Atom binding collections and entries

Posted by "Dan Becker (JIRA)" <de...@tuscany.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-2568?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dan Becker updated TUSCANY-2568:
--------------------------------

    Attachment:     (was: TUSCANY-2569-beta.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.


[jira] Commented: (TUSCANY-2568) Javascript model for Atom binding collections and entries

Posted by "Dan Becker (JIRA)" <de...@tuscany.apache.org>.
    [ 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/dev@tuscany.apache.org/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.


[jira] Resolved: (TUSCANY-2568) Javascript model for Atom binding collections and entries

Posted by "Dan Becker (JIRA)" <de...@tuscany.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-2568?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dan Becker resolved TUSCANY-2568.
---------------------------------

       Resolution: Fixed
    Fix Version/s: Java-SCA-1.4

Resolved in trunk At revision: 698020

> 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-1.4, 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.


[jira] Closed: (TUSCANY-2568) Javascript model for Atom binding collections and entries

Posted by "Dan Becker (JIRA)" <de...@tuscany.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-2568?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dan Becker closed TUSCANY-2568.
-------------------------------


> 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-1.4, 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.


[jira] Commented: (TUSCANY-2568) Javascript model for Atom binding collections and entries

Posted by "Dan Becker (JIRA)" <de...@tuscany.apache.org>.
    [ https://issues.apache.org/jira/browse/TUSCANY-2568?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12631567#action_12631567 ] 

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

The first thing I did when assessing this requirement was to search the web for existing JavaScript libraries that could model and parse items in the Atom Publishing Protocol. Unfortunately, most of the links I found seemed to be poorly maintained, proprietary, or little support. If people have a favorite JavaScript/APP library, please let me know.

The one exception to my search was the Google GData JavaScript client. They have support for atom feeds in the google.gdata.atom package. I think that part of the GData API can be used to parse and display Atom feeds and would help facilitate client side programming for Tuscany when using the Tuscany Atom Collection APIs.

The other option I am evaluating is writing a Tuscany JavaScript library from scratch. Although users of the Abdera Java library might think the model library is huge, in reality the Atom Pub Protocol has very few main objects: Category, Email, Entry, Feed, Generator, Id, Link, Name, Person, Published/Updated, Text, and Uri. If most of these items are modeled as Strings and Dates, a home grown Tuscany JavaScript library is not very large, and certainly will not  be as detailed and in-depth as the Abdera Java model.

So the tradeoff is use a popular API from Google and have a dependency on an external provider, or use a home grown API. I am still evaluating both, but I think I am leaning toward the later (homegrown Tuscany JavaScript library). The whole goal is aid Tuscany client programming. What do others think which route is more desireable and which features are needed?



> 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.


[jira] Updated: (TUSCANY-2568) Javascript model for Atom binding collections and entries

Posted by "Dan Becker (JIRA)" <de...@tuscany.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-2568?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dan Becker updated TUSCANY-2568:
--------------------------------

    Attachment: TUSCANY-2569-beta.patch

Temporary patch to show implementation of Tuscany JavaScript client for Atom feeds.

> 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
>
>         Attachments: TUSCANY-2569-beta.patch
>
>
> - 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.


[jira] Commented: (TUSCANY-2568) Javascript model for Atom binding collections and entries

Posted by "Luciano Resende (JIRA)" <de...@tuscany.apache.org>.
    [ https://issues.apache.org/jira/browse/TUSCANY-2568?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12631572#action_12631572 ] 

Luciano Resende commented on TUSCANY-2568:
------------------------------------------

Just FYI, We already have dependencies on Google Data in binding.gdata

> 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.


[jira] Commented: (TUSCANY-2568) Javascript model for Atom binding collections and entries

Posted by "Luciano Resende (JIRA)" <de...@tuscany.apache.org>.
    [ https://issues.apache.org/jira/browse/TUSCANY-2568?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12631532#action_12631532 ] 

Luciano Resende commented on TUSCANY-2568:
------------------------------------------

What's the plan here ? It would be great if we could use an existing framework/library that would allow us to manipulate the atom collections on the browser, instead of creating our own.

> 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.


[jira] Assigned: (TUSCANY-2568) Javascript model for Atom binding collections and entries

Posted by "Dan Becker (JIRA)" <de...@tuscany.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-2568?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dan Becker reassigned TUSCANY-2568:
-----------------------------------

    Assignee: Dan Becker

> 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.