Re: New collection view and suppressing default view

2016-03-29 Thread Erik de Hair

That's right, Kevin.

I was trying to add it to an Isis add on but I haven't tested that. In 
the meantime the code is on Github, though. [1]


The Sortable-interface for the row-items is in [2]. The component 
factory for the table is in [3].


Right now I get views "Table","Sortable" and "Hide" for the table but I 
don't want the "Table"-view as a possible view for a table implementing 
the Sortable-interface.


Thanks,
Erik

[1] https://github.com/erikdehair/isis-module-editrank
[2] 
https://github.com/erikdehair/isis-module-editrank/blob/master/dom/src/main/java/nl/pocos/applib/editrank/Sortable.java
[3] 
https://github.com/erikdehair/isis-module-editrank/tree/master/webapp/src/main/java/nl/pocos/wicket/ui/components/collectioncontents/ajaxtable


On 03/29/2016 09:23 PM, Kevin Meyer wrote:

Hi,
Erik is asking how to suppress all but a specific "view" for a table, one that 
is picked up from the interface implemented by the items in the collection.
Cheers,
Kevin

On 29 March 2016 19:26:59 CEST, Jeroen van der Wal  wrote:

Hi Erik,

I've read your question multiple times but can't envision what you're
trying to accomplish. Can you perhaps elaborate with some code?

Cheers,

Jeroen

On 29 March 2016 at 16:50, Erik de Hair  wrote:


Hi,

I've created a new collection view for sorting/re-ranking items in a

table

where the items implement a certain interface. The table is rendered

in the

correct way and the sorting works. Is it possible to suppress the

default

table view for tables containing items implementing the before

mentioned

interface so the view can't be selected anymore from the drop down?

Met vriendelijke groet,


*Erik de Hair*

Software Engineer | Pocos bv

Pocos gaat verhuizen! Per 29 maart is ons adres: Beemdstraat 1b, 5653

MA

Eindhoven.

[image: Pocos bv] [image: Telecom Inspirience awards - Best VaMo

Project]

T: 088-0100713 | e.deh...@pocos.nl | Partner ondersteuning:
part...@pocos.nl  | Service: serviced...@pocos.nl

www.pocos.nl | Beemdstraat 1b, 5653 MA Eindhoven | Kamer van

Koophandel

17097024 | [image: btn_in_20x15]



[image:

twitter] 






Re: [ANN] Apache Isis version 1.12.0 Released

2016-03-29 Thread Erik de Hair

Thank you very much, guys! Another great release again.

Erik

On 03/29/2016 08:04 PM, Dan Haywood wrote:

The Apache Isis team is pleased to announce the release of Apache Isis
v1.12.0.

New features in this release include:

* much enhanced support for custom layouts, using an optional separate XML
layout file "Xxx.layout.xml".  This is similar in concept to the earlier
support we have had for custom layouts through a `.layout.json` file, but
introduces the ability to position object members anywhere using
(bootstrap3) columns and rows.  It also brings in support for tabgroups,
and allows object members to be included in the page more than once (eg a
table view and also a calendar view).

* a change to the editing of objects: rather than an 'edit' button which
toggles the entire page into edit mode, instead each property is edited
individually.

* various new domain services.  Some of these are in supoprt of the dynamic
layouts functionality, others including new access into Apache Isis'
metamodel.  In addition, the `DomainObjectContainer` service has been
deprecated, replaced by a number of fine-grained services such as
`RepositoryService` and `MessageService`.

* a number of new mixins, to automatically surface in the UI an entity's
id, version (if any) as properties, and actions to download the layout XML
and other metadata actions.  (These can always be hidden using either
security or by writing a subscriber; see the migration notes).

* JAXB view models are now automatically editable by default.

Full release notes are available on the Apache Isis website at [1].  Please
also read the migration notes [2].

You can access this release directly from the Maven central repo [3], or
download the release and build it from
source [4].

Enjoy!

--The Apache Isis team

[1] http://isis.apache.org/release-notes.html#r1.12.0
[2]
http://isis.apache.org/migration-notes.html#_migration-notes_1.11.0-to-1.12.0
[3] http://search.maven.org
[4] http://isis.apache.org/downloads.html





Re: Save image as blob

2016-03-29 Thread Arturo Ulises Castañeda Estrada
Thank's a lot Dan for resolve my problem


De: Dan Haywood 
Enviado: martes, 29 de marzo de 2016 06:10 p. m.
Para: users
Asunto: Re: Save image as blob

The format of the image doesn't look quite right.

I just did a quick experiment with the kitchensink app (
https://github.com/isisaddons/isis-app-kitchensink, using the
KitchensinkAppManifestWithFixtures); seemed to work ok:

- in the Wicket viewer, Data Types > First BlobClob Object  can
view picture etc.

- in the RO viewer, navigate to

http://localhost:8080/restful/objects/BLOBCLOB/0

- can inspect the representation of the image

- in the Wicket viewer, clear the property using the clearSomeImage action

- in the RO viewer, invoke:

http://localhost:8080/restful/objects/BLOBCLOB/0/actions/updateSomeImage/invoke

with body set to:

{
  "blob": {
"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WWPbWizC+yEaZIqpMg0bMyrjBxSVlUWOjFsQl04q/IrXDPaLlGg8NttGBxQzyWLpsK9uQMnNJ3pk2MDkxnIouGgkmmOQahtOCSDWeeGzTGY4NQ45NI8ka5oBLeMx4NNjiSM2SdhYZFZPF51Uk0xPYKSAO3Smwyexe0Gtl484rUsnBVF5o+nImZ5UDAcKp8zXP1molaxwfLNOHGqcmaJLbuIhgYlYeEeg9TWDVavcvKj0ux+PG16mUd3Z21xqkVtGpZY1zM2fiP6Vow6jLDA8kn+QiWKMsiiv1KO/to/t0oiUKgbAA8q6uknJ4k5dmPLSm0jkGlNcRSyAARxLlmPQe1Fl1UMTUX2y4Y5STa9hTulDggU1ysSzQ6NH3jAk4WsGozLGi4Qtm1t4I1jAGOleZz5pTfJ0YRSCPFEi5OCT5Vk3Ns0KhI2wlfp1p29pA9iN9AsXtWjFJyBlKjlhCDIGPSryy4ouMi8mj7pA8Z4rNB26YMxCe7k2HPNdGGCPYptla2okHBHNHPHS4GY+XydEneLmszVM2VwBlyB0psJUKlESndsHyrZCbMskUd23iroY3aMs0LLdBBjFNcGwKGIJjP65oZRoujMMNprr9gk0NKkRnWTNUnRVgjDTFIuz4Jt4otxA0a54oGwWw5gO2gKsVlUqaJBoARk0xFnypk1dkGY0I8qXJlDUZwRmkMBovLZe8jB86sWL38GEYVCIptuDUtjLCKSOlC0UFWQkY86qiEt586NFHxJIx5ULRCOwk4oboOxhbfC5od4DYCYbaZHkpMCBuIxTOhiGI0IXmoFZJmA60SBAu+4ECpQaAbT1qBMYgTK9KzzfIp9j0QAGKBDYM7I4VavaFJ8ANwYVBDOKwDVCg

Re: Save image as blob

2016-03-29 Thread Dan Haywood
The format of the image doesn't look quite right.

I just did a quick experiment with the kitchensink app (
https://github.com/isisaddons/isis-app-kitchensink, using the
KitchensinkAppManifestWithFixtures); seemed to work ok:

- in the Wicket viewer, Data Types > First BlobClob Object  can
view picture etc.

- in the RO viewer, navigate to

http://localhost:8080/restful/objects/BLOBCLOB/0

- can inspect the representation of the image

- in the Wicket viewer, clear the property using the clearSomeImage action

- in the RO viewer, invoke:

http://localhost:8080/restful/objects/BLOBCLOB/0/actions/updateSomeImage/invoke

with body set to:

{
  "blob": {
"value":
"Amelie-0-flowers.jpg:image/jpeg:/9j/4AAQSkZJRgABAQEASABIAAD//gAcY21wMy4xMC4zLjFMcTMgMHg0NmE5YmE5ZgD/2wBDAAgGBgcGBQgHBwcJCAgKDBQNDAsLDBkSEw4UHRofHh0aHBwgJC4nICIsIxwcKDcpLDAyNDQ0Hyc5PTkzPS4zNDL/2wBDAQgJCQwLDBgNDRgyIRwhMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjL/wAARCAHgAoADAREAAhEBAxEB/8QAHgMBAQEBAwQCBQYBBwAI/8QASxAAAgEDAwEGAwUGBAMGBQMFAQIDAAQRBRIhMQYTIkFRYTJxgRSRobHBBxUjQlLRM2Jy8CSC4TRDU7LC8RYmNZKiY2RzJVST0uL/xAAbAQACAwEBAQACAwABBAUGB//EADgRAAICAQQABQIDBwMFAQEBAAABAhEDBBIhMQUTIkFRMmEUcYEjQpGhsdHwM8HhBhUkUvFiFjT/2gAMAwEAAhEDEQA/APLYZyVxXOlEyNBGYtQUDR8jsp9qGUbIxgHevNJpplC80Wc02Mi7IRlkbFMbspjirvXNJuiheePHSmwkWgC0wIPGVUZxUspk2cDkVCqIxzEyVGiUGk5Q1W0tIQTH2jaabXA32Lu1jUYyKzTFSH2iQAMKQKASgBapogKOTnFC0QdjbcMGlS4CXIQ2+4Hil+ZRNolcW3WnwmVyiudduQRmtCdjIsHGoeYAUz2Gpl7aghM4rPJcmuC4Fb+9aIYB5NMxwtkk+KKsXeW5NPeNCHFDMNySRzkVjyQM8ocj0cgI5rJJMZjiTZ1K9aBXZoF25Jx1rXFcGaTaYCR2x1otqIpsgk23qapwsNSGEk31UcdMuU+AyYGc1pikkZpO2SSYBsA4qPkEvbCVdi5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C49QG6fca8v4hjePUyj+TN2J3BGO7X6WdI1bMfNvMO8iPsfKvQeGalZ8PPa7Ofnx7JlIk24bSK6TQij0n9nNoIVa8deXkCg+3+zXk/Gs1zWNex0N

Save image as blob

2016-03-29 Thread Arturo Ulises Castañeda Estrada
Hi Dan,


- I have a problem saving images, consume the next ws:


  *
rel: "urn:org.restfulobjects:rels/invoke;action="addSequenceItem"",
  *
href: 
"http://xxx.xxx.x.xx:8080/restful/services/SequenceItemRepository/actions/addSequenceItem/invoke",
  *
method: "POST",
  *
type: 
"application/json;profile="urn:org.restfulobjects:repr-types/object-action"",
  *
arguments:
{
 *
sequence:
{
*
value: null
},
 *
picture:
{
*
value: null
}
}

- the sequence arguments is a href and the picture is a blob value i'm trying 
persist from the postman with the next code:

{
"sequence":
{
"value":
{
"href": 
"http://192.168.0.20:8080/restful/objects/simple.Sequence/58";
}
},
"picture":
{
"value": 
"data:image/jpeg;base64,/9j/4AAQSkZJRgABAAEAAQABAAD//gAfTEVBRCBUZWNobm9sb2dpZXMgSW5jLiBWMS4wMQD/2wCEAAUFBQgFCAwHBwwMCQkJDA0MDAwMDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0BBQgICgcKDAcHDA0MCgwNDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDf/EAaIAAAEFAQEBAQEBAAABAgMEBQYHCAkKCwEAAwEBAQEBAQEBAQECAwQFBgcICQoLEAACAQMDAgQDBQUEBX0BAgMABBEFEiExQQYTUWEHInEUMoGRoQgjQrHBFVLR8CQzYnKCCQoWFxgZGiUmJygpKjQ1Njc4OTpDREVGR0hJSlNUVVZXWFlaY2RlZmdoaWpzdHV2d3h5eoOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4eLj5OX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IPBBB6g1EZOm1ODcZJ3TWjTXVFyipJxkrp6NdPmeC638NbuC+SHTCxsbtwG5J8jHzHzOfmRRkxseeiE7iC36Hhc6pToupi0vb0otpf8/Ol49pPTmS/wAVrXt8LiMpqQqqGGb9lUev9zrr3itXHu9NZfFreL/BFzbQQz6I0pW1i8gwoSH2kku6bQNxkLHzVxls5B2jaOLLs0pSnUp49QTqTdRTaXLdbRlf4VFL3HsuurudeOy6cIwngnJqEVBxT1ae8l35n8S6+lku68F+GE8M2QjYA3MuHnYc/NjhAf7qAkD1JZv4sV4OZY54+s5L+FC8aa8ura6OWj9LLoe3gMIsFSUd6krOb89dF5RvZfN9TsK8U9YKACgAoAKACgD/2Q=="
}
}

- but i get the next errors:

- "invalidReason": "Failed to parse representation  as value of 
type 'Blob'"

- "x-ro-invalidReason": "'Picture' is mandatory"





Re: XMLHttpRequest cannot load

2016-03-29 Thread Arturo Ulises Castañeda Estrada
thank you Dan I could resolve the problem


De: Dan Haywood 
Enviado: martes, 29 de marzo de 2016 12:03 a. m.
Para: users
Asunto: Re: XMLHttpRequest cannot load

This is a CORS error ... a security precaution implemented by web
browsers.  It prevents your Javascript is attempting to make a RESTful call
to a different URL (192.168.0.20) than it was served from (localhost).

You either need to serve the Javascript itself from that same origin
(192.168.0.20) or add in a CORS filter to your web.xml, see eg [1]

HTH
Dan

[1]
https://github.com/incodehq/contactapp/blob/master/backend/webapp/src/main/webapp/WEB-INF/web.xml#L38



On 28 March 2016 at 22:25, Arturo Ulises Castañeda Estrada <
arturo.castan...@sisorg.com.mx> wrote:

> Hi Dan,
>
>
> I'm trying to persist but the server says that i dont have access and u
> get next error:
>
>
> XMLHttpRequest cannot load http://192.168.0.20:8080/restful/user.
> Response to preflight request doesn't pass access control check: No
> 'Access-Control-Allow-Origin' header is present on the requested resource.
> Origin 'http://localhost:8100' is therefore not allowed access. The
> response had HTTP status code 401.
>
>
>

Re: New collection view and suppressing default view

2016-03-29 Thread Kevin Meyer
Hi, 
Erik is asking how to suppress all but a specific "view" for a table, one that 
is picked up from the interface implemented by the items in the collection. 
Cheers, 
Kevin

On 29 March 2016 19:26:59 CEST, Jeroen van der Wal  wrote:
>Hi Erik,
>
>I've read your question multiple times but can't envision what you're
>trying to accomplish. Can you perhaps elaborate with some code?
>
>Cheers,
>
>Jeroen
>
>On 29 March 2016 at 16:50, Erik de Hair  wrote:
>
>> Hi,
>>
>> I've created a new collection view for sorting/re-ranking items in a
>table
>> where the items implement a certain interface. The table is rendered
>in the
>> correct way and the sorting works. Is it possible to suppress the
>default
>> table view for tables containing items implementing the before
>mentioned
>> interface so the view can't be selected anymore from the drop down?
>>
>> Met vriendelijke groet,
>>
>>
>> *Erik de Hair*
>>
>> Software Engineer | Pocos bv
>>
>> Pocos gaat verhuizen! Per 29 maart is ons adres: Beemdstraat 1b, 5653
>MA
>> Eindhoven.
>>
>> [image: Pocos bv] [image: Telecom Inspirience awards - Best VaMo
>Project]
>>
>> T: 088-0100713 | e.deh...@pocos.nl | Partner ondersteuning:
>> part...@pocos.nl  | Service: serviced...@pocos.nl
>>
>> www.pocos.nl | Beemdstraat 1b, 5653 MA Eindhoven | Kamer van
>Koophandel
>> 17097024 | [image: btn_in_20x15]
>>
>
>[image:
>> twitter] 
>>
>>

-- 
Sent from my phone with K-9 Mail.
Please excuse my brevity.

[ANN] Apache Isis version 1.12.0 Released

2016-03-29 Thread Dan Haywood
The Apache Isis team is pleased to announce the release of Apache Isis
v1.12.0.

New features in this release include:

* much enhanced support for custom layouts, using an optional separate XML
layout file "Xxx.layout.xml".  This is similar in concept to the earlier
support we have had for custom layouts through a `.layout.json` file, but
introduces the ability to position object members anywhere using
(bootstrap3) columns and rows.  It also brings in support for tabgroups,
and allows object members to be included in the page more than once (eg a
table view and also a calendar view).

* a change to the editing of objects: rather than an 'edit' button which
toggles the entire page into edit mode, instead each property is edited
individually.

* various new domain services.  Some of these are in supoprt of the dynamic
layouts functionality, others including new access into Apache Isis'
metamodel.  In addition, the `DomainObjectContainer` service has been
deprecated, replaced by a number of fine-grained services such as
`RepositoryService` and `MessageService`.

* a number of new mixins, to automatically surface in the UI an entity's
id, version (if any) as properties, and actions to download the layout XML
and other metadata actions.  (These can always be hidden using either
security or by writing a subscriber; see the migration notes).

* JAXB view models are now automatically editable by default.

Full release notes are available on the Apache Isis website at [1].  Please
also read the migration notes [2].

You can access this release directly from the Maven central repo [3], or
download the release and build it from
source [4].

Enjoy!

--The Apache Isis team

[1] http://isis.apache.org/release-notes.html#r1.12.0
[2]
http://isis.apache.org/migration-notes.html#_migration-notes_1.11.0-to-1.12.0
[3] http://search.maven.org
[4] http://isis.apache.org/downloads.html


Re: New collection view and suppressing default view

2016-03-29 Thread Jeroen van der Wal
Hi Erik,

I've read your question multiple times but can't envision what you're
trying to accomplish. Can you perhaps elaborate with some code?

Cheers,

Jeroen

On 29 March 2016 at 16:50, Erik de Hair  wrote:

> Hi,
>
> I've created a new collection view for sorting/re-ranking items in a table
> where the items implement a certain interface. The table is rendered in the
> correct way and the sorting works. Is it possible to suppress the default
> table view for tables containing items implementing the before mentioned
> interface so the view can't be selected anymore from the drop down?
>
> Met vriendelijke groet,
>
>
> *Erik de Hair*
>
> Software Engineer | Pocos bv
>
> Pocos gaat verhuizen! Per 29 maart is ons adres: Beemdstraat 1b, 5653 MA
> Eindhoven.
>
> [image: Pocos bv] [image: Telecom Inspirience awards - Best VaMo Project]
>
> T: 088-0100713 | e.deh...@pocos.nl | Partner ondersteuning:
> part...@pocos.nl  | Service: serviced...@pocos.nl
>
> www.pocos.nl | Beemdstraat 1b, 5653 MA Eindhoven | Kamer van Koophandel
> 17097024 | [image: btn_in_20x15]
>  
> [image:
> twitter] 
>
>


New collection view and suppressing default view

2016-03-29 Thread Erik de Hair

Hi,

I've created a new collection view for sorting/re-ranking items in a 
table where the items implement a certain interface. The table is 
rendered in the correct way and the sorting works. Is it possible to 
suppress the default table view for tables containing items implementing 
the before mentioned interface so the view can't be selected anymore 
from the drop down?


Met vriendelijke groet,


*Erik de Hair*

Software Engineer | Pocos bv

Pocos gaat verhuizen! Per 29 maart is ons adres: Beemdstraat 1b, 5653 MA 
Eindhoven.


Pocos bv Telecom Inspirience awards - Best VaMo Project

T: 088-0100713  | e.deh...@pocos.nl 
 | Partner ondersteuning: part...@pocos.nl 
 | Service: serviced...@pocos.nl 



www.pocos.nl  | Beemdstraat 1b, 5653 MA Eindhoven 
| Kamer van Koophandel 17097024 | btn_in_20x15 
 
twitter