You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@isis.apache.org by Johan Andries <jo...@gmail.com> on 2011/11/10 17:51:00 UTC
[RO] Transient objects in the Claims example
Hi,
it would be cool if the Javascript application I'm working on was able
to support all functionality present in the Claims example before I
put it online. There is one thing left and I think it has to do with
transient objects.
The newToDo() method on ToDoItemRepositoryDefault does an explicit
persist() on the object representation returned by
newTransientInstance(). The object that is returned by the POST to the
action invoke resource returns a full-fledged object that I can
continue to work with.
The newClaim() method on ClaimRepositoryDefault does not call
persist() on the object returned by newTransientInstance() and that's
probably why the returned object representation is rather anemic.
There's no link of type "self" and the actions on the object do not
point to an action invoke resource to do anything meaningful with it.
(The action newEmployee on EmployeeRepositoryDefault has the same behaviour.)
Am I missing something, or has this not yet been implemented in the JSON viewer?
Kind regards,
Johan.
Re: [RO] Transient objects in the Claims example
Posted by Johan Andries <jo...@gmail.com>.
For the brave: http://users.telenet.be/johanenhilde/js.zip contains
the updated javascript files. Just overwrite the *.js files in the
webapp/js directory with the files in the zip.
Improvements:
1. Nicer drag-and-drop.
2. All domain object titles are now draggable.
Johan.
On Mon, Nov 14, 2011 at 3:01 PM, Mike Burton <mi...@mycosystems.co.uk> wrote:
> Yes I would some time, will let you know.
>
> Mike
>
> On 14 Nov 2011, at 13:39, Dan Haywood <da...@haywood-associates.co.uk> wrote:
>
>> No, it's at a conf called codeken, near canary wharf.
>> If you fancy doing a demo yourself at ljc, let me know...!
>> Cheers
>> Dan
>>
>> Sorry to be brief, sent from my phone
>> On Nov 14, 2011 1:31 PM, "Mike Burton" <mi...@mycosystems.co.uk> wrote:
>>
>>> Hi Dan,
>>>
>>> Is this at LJC by any chance?
>>>
>>> Best Regards
>>>
>>> Mike Burton
>>>
>>>
>>> On 10 Nov 2011, at 18:22, Dan Haywood wrote:
>>>
>>>> on Tuesday I'm doing a lightning talk (10 minutes!) on RO in London
>>>
>>>
>
Re: [RO] Transient objects in the Claims example
Posted by Mike Burton <mi...@mycosystems.co.uk>.
Yes I would some time, will let you know.
Mike
On 14 Nov 2011, at 13:39, Dan Haywood <da...@haywood-associates.co.uk> wrote:
> No, it's at a conf called codeken, near canary wharf.
> If you fancy doing a demo yourself at ljc, let me know...!
> Cheers
> Dan
>
> Sorry to be brief, sent from my phone
> On Nov 14, 2011 1:31 PM, "Mike Burton" <mi...@mycosystems.co.uk> wrote:
>
>> Hi Dan,
>>
>> Is this at LJC by any chance?
>>
>> Best Regards
>>
>> Mike Burton
>>
>>
>> On 10 Nov 2011, at 18:22, Dan Haywood wrote:
>>
>>> on Tuesday I'm doing a lightning talk (10 minutes!) on RO in London
>>
>>
Re: [RO] Transient objects in the Claims example
Posted by Dan Haywood <da...@haywood-associates.co.uk>.
No, it's at a conf called codeken, near canary wharf.
If you fancy doing a demo yourself at ljc, let me know...!
Cheers
Dan
Sorry to be brief, sent from my phone
On Nov 14, 2011 1:31 PM, "Mike Burton" <mi...@mycosystems.co.uk> wrote:
> Hi Dan,
>
> Is this at LJC by any chance?
>
> Best Regards
>
> Mike Burton
>
>
> On 10 Nov 2011, at 18:22, Dan Haywood wrote:
>
> > on Tuesday I'm doing a lightning talk (10 minutes!) on RO in London
>
>
Re: [RO] Transient objects in the Claims example
Posted by Mike Burton <mi...@mycosystems.co.uk>.
Hi Dan,
Is this at LJC by any chance?
Best Regards
Mike Burton
On 10 Nov 2011, at 18:22, Dan Haywood wrote:
> on Tuesday I'm doing a lightning talk (10 minutes!) on RO in London
Re: [RO] Transient objects in the Claims example
Posted by Johan Andries <jo...@gmail.com>.
On Thu, Nov 10, 2011 at 7:22 PM, Dan Haywood
<da...@haywood-associates.co.uk> wrote:
> By the way, on Tuesday I'm doing a lightning talk (10 minutes!) on RO in
> London. If you thought your viewer was in a fit state to show off, I'd love
> to give it an audience?
I have just sent the link to the zip file on the mailing list. If you
can get it to work on your computer, feel free to use it for a
two-minute demo.
Johan.
Re: [RO] Transient objects in the Claims example
Posted by Dan Haywood <da...@haywood-associates.co.uk>.
On 10/11/2011 16:51, Johan Andries wrote:
> Hi,
>
> it would be cool if the Javascript application I'm working on was able
> to support all functionality present in the Claims example before I
> put it online. There is one thing left and I think it has to do with
> transient objects.
Great to hear you're making such good progress. Definitely looking
forward to seeing what you've come up with.
>
> The newToDo() method on ToDoItemRepositoryDefault does an explicit
> persist() on the object representation returned by
> newTransientInstance(). The object that is returned by the POST to the
> action invoke resource returns a full-fledged object that I can
> continue to work with.
>
> The newClaim() method on ClaimRepositoryDefault does not call
> persist() on the object returned by newTransientInstance() and that's
> probably why the returned object representation is rather anemic.
> There's no link of type "self" and the actions on the object do not
> point to an action invoke resource to do anything meaningful with it.
>
> (The action newEmployee on EmployeeRepositoryDefault has the same behaviour.)
>
> Am I missing something, or has this not yet been implemented in the JSON viewer?
No, you're not missing anythingI just haven't got around to implementing
it yet. Sounds like I need to put it to the top of the todo pile!
By the way, on Tuesday I'm doing a lightning talk (10 minutes!) on RO in
London. If you thought your viewer was in a fit state to show off, I'd
love to give it an audience?
Cheers
Dan
>
> Kind regards,
>
> Johan.
>
>