Hi Kris,

Thanks very much! I've added a link to your blog posting from a new FAQ 
item on integrating jabsorb with dojo.

Cheers,
Michael.

Kris Zyp wrote:
>
> ------------------------------------------------------------------------
>
> Subject:
> Re: [Dojo-interest] JAVA
> From:
> Kris Zyp <[EMAIL PROTECTED]>
> Date:
> Tue, 11 Nov 2008 08:41:56 -0700
> To:
> [EMAIL PROTECTED]
>
> To:
> [EMAIL PROTECTED]
>
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>  
>   
>> How could I pass back and array with info?
>>     
> I am not certain, but I am under the impression that you have your
> Java method that is remotely executed return an array or List, and
> then this is converted to JavaScript for the client.
>
>   
>> How could I populate a dojo object, like a tree with the returned
>> array?
>>     
> Based on the examples, I think it would be something like this:
> jabsorbServices["myObject.myMethod"]().addCallback(function(resultArray) {
>              myStore = new dojo.data.ItemFileReadStore({
>                  data:{
>                       identifier: "id",
>                       items:resultArray
>                 }
>              });
>             myTree = new dijit.Tree({
>                 id: "myTree",
>                 store: myStore
>             });
>             dojo.byId("myTreeNode").appendChild(myTree.domNode);
>             myTree.startup();
>
>         });
>       
>
>   
>> Pete
>>
>> --- On Thu, 11/6/08, Kris Zyp <[EMAIL PROTECTED]> wrote:
>>
>>     
>>> From: Kris Zyp <[EMAIL PROTECTED]> Subject: Re: [Dojo-interest]
>>> JAVA To: [EMAIL PROTECTED] Date: Thursday, November
>>> 6, 2008, 9:18 AM
>>>       
>> In case you didn't see, I wrote a post a while back about Dojo +
>> jabsorb interoperability. They actually should work quite well
>> together: http://www.sitepen.com/blog/2008/06/18/dojo-jabsorb/ Kris
>>
>>
>> Russell Jones wrote:
>>     
>>>>> Peter O'Reilly wrote:
>>>>>           
>>>>>> Can dojo take input from a java back end class
>>>>>>             
>> file and return it
>>     
>>>>>> to the browser?
>>>>>>
>>>>>> Someone told me this could
>>>>>>
>>>>>> https://ajax.dev.java.net
>>>>>>             
>>>>> I use jabsorb. Though it doesn't integrate
>>>>>           
>> directly with Dojo, e.g.
>>     
>>>>> via dojo.data, it exposes methods of objects through a
>>>>>           
>> bridging
>>     
>>>>> servelet and a JavaScript client that allows one to
>>>>>           
>> call them with
>>     
>>>>> something like
>>>>>
>>>>> jsonrpc.myObj.myMethod(some, parameters, myCallbackFn)
>>>>>
>>>>> Mapping is done from basic Java types to special JS
>>>>>           
>> Objects and
>>     
>>>>> back (e.g. HashMap<String, String> to an object
>>>>>           
>> with, amongst
>>     
>>>>> others, a property called map set to a {} ), and one
>>>>>           
>> can add custom
>>     
>>>>> serializers for more complex back-end objects.
>>>>>
>>>>> Give it a try. It's easier than it perhaps sounds
>>>>>           
>> from my
>>     
>>>>> description.
>>>>>
>>>>> Russell
>>>>>           


_______________________________________________
Jabsorb-dev mailing list
[email protected]
http://lists.jabsorb.org/mailman/listinfo/jabsorb-dev

Reply via email to