Re: JSON and WebObjects

2009-11-11 Thread Miguel Arroz

Hi!

  Just include the Wonder Ajax framework and use the (IIRC) AjaxProxy  
component. It gives you a bare bones jason bridge.


  Yours

Miguel Arroz

On 2009/11/11, at 03:50, Don Lindsay wrote:


Hello;

I am looking to play with some JSON implementations with  
WebObjects.  Unfortunately I have not been able to find much  
information or examples.  I searched through google and the Wiki,  
without much success


Any hints on where to go to find information and small examples?

Don
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/arroz%40guiamac.com

This email sent to ar...@guiamac.com





smime.p7s
Description: S/MIME cryptographic signature
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: JSON and WebObjects

2009-11-11 Thread John Lennard
Hi,

I have been doing a fair bit of json-rpc the last few days. There are a few 
approaches i have been using in my apps

In one.. i am using the json rpc at a component level for auto completion, and 
for the starting of and tracking of long running server processes. These both 
use LEWOStuff.. and andrew's json-rpc stuff works very well.

In another application, the site is actually a php site, and i am pulling data 
out of the webobjects app and then building pages to display the data returned. 
As its PHP and totally brain dead i am returning raw rows and not worrying 
about EO's.. these raw rows translate almost directly into PHP's associative 
arrays. This is primarily read only access into the application, again i am 
using lewostuff on the woa side and some PHP library of suspect parentage.

The main reason for this approach was to allow for the other developers and 
designers to be able to work on the pages without having to deal with the WO 
which is a database of car parts. The only real draw backs are that it is php, 
and the possible cost of continual requests into the woa (I am likely to cache 
this in memory to lower this load). It is however a lot cleaner and more search 
engine friendly than using AJAX style calls and javascript in the pages.

The car parts database/woa also provides a JSON-RPC interface that is used for 
updating the database with a small pure java app that reads internal databases 
and xml files and uploads it in batches.. This JSON-RPC is far better than 
having to deal with XML data. It runs three or four times faster than the xml, 
and uses much less bandwith. 

If you want some examples just sing out and i can provide you with code.


Cheers
John

On 11/11/2009, at 7:26 PM, Andrew Lindesay wrote:

> Hello Don;
> 
> The framework will deal with EO serialisation for you.  Watch the WOWODC-2009 
> video on this subject and check out the sample code which was shown in the 
> video;
> 
>   
> http://homepage.mac.com/andrewlindesay/le/downloads/JSONRPCHandsOn-SessionCode-1sep2009.zip
> 
> I think John Lennard is doing some foo like this at the moment... John?
> 
> cheers.
> 
>> I am wanting to pass EO Objects back and forth to an AJAX web application.  
>> We have a need where the entire front wend web application will be designed 
>> by graphics designers, no developers involved, then it will be turned over 
>> to the Developers to make sure all the bits are filled in.  (management's 
>> words not mine).  But the developers cannot modify the design.
>> The way I expected would be the easiest to implement would be to use JSON 
>> and AJAX, to receive objects to populate the interface.
> 
> ___
> Andrew Lindesay
> www.lindesay.co.nz
> 

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: JSON and WebObjects

2009-11-11 Thread Don Lindsay

Thank you sir.
On Nov 11, 2009, at 1:26 AM, Andrew Lindesay wrote:


Hello Don;

The framework will deal with EO serialisation for you.  Watch the  
WOWODC-2009 video on this subject and check out the sample code  
which was shown in the video;



http://homepage.mac.com/andrewlindesay/le/downloads/JSONRPCHandsOn-SessionCode-1sep2009.zip

I think John Lennard is doing some foo like this at the moment...  
John?


cheers.

I am wanting to pass EO Objects back and forth to an AJAX web  
application.  We have a need where the entire front wend web  
application will be designed by graphics designers, no developers  
involved, then it will be turned over to the Developers to make  
sure all the bits are filled in.  (management's words not mine).   
But the developers cannot modify the design.
The way I expected would be the easiest to implement would be to  
use JSON and AJAX, to receive objects to populate the interface.


___
Andrew Lindesay
www.lindesay.co.nz



___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: JSON and WebObjects

2009-11-10 Thread Andrew Lindesay
Hello Don;

The framework will deal with EO serialisation for you.  Watch the WOWODC-2009 
video on this subject and check out the sample code which was shown in the 
video;


http://homepage.mac.com/andrewlindesay/le/downloads/JSONRPCHandsOn-SessionCode-1sep2009.zip

I think John Lennard is doing some foo like this at the moment... John?

cheers.

> I am wanting to pass EO Objects back and forth to an AJAX web application.  
> We have a need where the entire front wend web application will be designed 
> by graphics designers, no developers involved, then it will be turned over to 
> the Developers to make sure all the bits are filled in.  (management's words 
> not mine).  But the developers cannot modify the design.
> The way I expected would be the easiest to implement would be to use JSON and 
> AJAX, to receive objects to populate the interface.

___
Andrew Lindesay
www.lindesay.co.nz

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: JSON and WebObjects

2009-11-10 Thread Chuck Hill


On Nov 10, 2009, at 8:05 PM, Don Lindsay wrote:


Hello Chuck;

Already did that.  When I go to WOWODC, the slideshow loads but then  
never does it anything, just plays the same overview screen for 15  
minutes.


You mean the one marked *** PREVIEW *** Using JSON-RPC with  
WebObjects*** PREVIEW ***?


And a few links down are Andrew's very popular code and examples.


Chuck




On Nov 10, 2009, at 10:56 PM, Chuck Hill wrote:


http://www.google.com/search?client=safari&rls=en&q=Webobjects+JSON ?

On Nov 10, 2009, at 7:50 PM, Don Lindsay wrote:


Hello;

I am looking to play with some JSON implementations with  
WebObjects.  Unfortunately I have not been able to find much  
information or examples.  I searched through google and the Wiki,  
without much success


Any hints on where to go to find information and small examples?

Don
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net

This email sent to ch...@global-village.net


--
Chuck Hill Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their  
overall knowledge of WebObjects or who are trying to solve specific  
problems.

http://www.global-village.net/products/practical_webobjects











--
Chuck Hill Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their  
overall knowledge of WebObjects or who are trying to solve specific  
problems.

http://www.global-village.net/products/practical_webobjects







___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: JSON and WebObjects

2009-11-10 Thread Don Lindsay

Hello Chuck;

Already did that.  When I go to WOWODC, the slideshow loads but then  
never does it anything, just plays the same overview screen for 15  
minutes.



On Nov 10, 2009, at 10:56 PM, Chuck Hill wrote:


http://www.google.com/search?client=safari&rls=en&q=Webobjects+JSON ?

On Nov 10, 2009, at 7:50 PM, Don Lindsay wrote:


Hello;

I am looking to play with some JSON implementations with  
WebObjects.  Unfortunately I have not been able to find much  
information or examples.  I searched through google and the Wiki,  
without much success


Any hints on where to go to find information and small examples?

Don
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net

This email sent to ch...@global-village.net


--
Chuck Hill Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their  
overall knowledge of WebObjects or who are trying to solve specific  
problems.

http://www.global-village.net/products/practical_webobjects









___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: JSON and WebObjects

2009-11-10 Thread Don Lindsay
I am wanting to pass EO Objects back and forth to an AJAX web  
application.  We have a need where the entire front wend web  
application will be designed by graphics designers, no developers  
involved, then it will be turned over to the Developers to make sure  
all the bits are filled in.  (management's words not mine).  But the  
developers cannot modify the design.


The way I expected would be the easiest to implement would be to use  
JSON and AJAX, to receive objects to populate the interface.


Don
On Nov 10, 2009, at 11:01 PM, Andrew Lindesay wrote:


Hello Don;

You will be happy to know that I've got some quite good material in  
this space.


Check out my WOWODC-2009 video and or look at LEWOStuff;


http://homepage.mac.com/andrewlindesay/le/manuals/lewostuff/LEWOStuffOverview.pdf
(6.10.1 LEJSONFormat)
(7.20 JSON-RPC)

There are also a range of clients for various platforms included.

The JSON serialisation and deserialisation can be used separately  
from the JSON-RPC infrastructure as well.


Do you have a specific thing you want to do?

cheers.

I am looking to play with some JSON implementations with  
WebObjects.  Unfortunately I have not been able to find much  
information or examples.  I searched through google and the Wiki,  
without much success

Any hints on where to go to find information and small examples?


___
Andrew Lindesay
www.lindesay.co.nz



___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: JSON and WebObjects

2009-11-10 Thread Andrew Lindesay
Hello Don;

You will be happy to know that I've got some quite good material in this space.

Check out my WOWODC-2009 video and or look at LEWOStuff;


http://homepage.mac.com/andrewlindesay/le/manuals/lewostuff/LEWOStuffOverview.pdf
(6.10.1 LEJSONFormat)
(7.20 JSON-RPC)

There are also a range of clients for various platforms included.

The JSON serialisation and deserialisation can be used separately from the 
JSON-RPC infrastructure as well.

Do you have a specific thing you want to do?

cheers.

> I am looking to play with some JSON implementations with WebObjects.  
> Unfortunately I have not been able to find much information or examples.  I 
> searched through google and the Wiki, without much success
> Any hints on where to go to find information and small examples?

___
Andrew Lindesay
www.lindesay.co.nz

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: JSON and WebObjects

2009-11-10 Thread Chuck Hill

http://www.google.com/search?client=safari&rls=en&q=Webobjects+JSON ?

On Nov 10, 2009, at 7:50 PM, Don Lindsay wrote:


Hello;

I am looking to play with some JSON implementations with  
WebObjects.  Unfortunately I have not been able to find much  
information or examples.  I searched through google and the Wiki,  
without much success


Any hints on where to go to find information and small examples?

Don
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net

This email sent to ch...@global-village.net


--
Chuck Hill Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their  
overall knowledge of WebObjects or who are trying to solve specific  
problems.

http://www.global-village.net/products/practical_webobjects







___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com