Re: CMIS Workbench; Entering integers?

2013-07-23 Thread Florian Müller
Hi Nicholas,

The CMIS Workbench does currently not support setting mandatory integer
properties when you use the create dialog.
You can use the Groovy console to create documents with all kinds of
mandatory properties, though.


Florian



> Hi All,
> 
> I'm learning to build content models in Alfresco. As part of this, I've 
> created a type deriving from folder, that has a mandatory integer property.
> 
> The problem is, using workbench to attempt to create it gives:
>   IllegalArgumentException: 
>   Property 'ddb:currentnum' is a integer property. Expected type 
> '   Short,Integer,Long>' but received a 'java.lang.String' property.
> 
> Even when I DO enter a number, or even leave blank (to try and use the 
> default).
> 
> Is there a way of signifying to workbench that I do actually want to enter a 
> number?


Re: CMIS Workbench; Entering integers?

2013-07-23 Thread Sebastian Danninger
try Integer (capital i)


2013/7/23 Nicholas Devenish 

> Hi All,
>
> I'm learning to build content models in Alfresco. As part of this, I've
> created a type deriving from folder, that has a mandatory integer property.
>
> The problem is, using workbench to attempt to create it gives:
> IllegalArgumentException:
> Property 'ddb:currentnum' is a integer property. Expected type
> ' Short,Integer,Long>' but received a 'java.lang.String' property.
>
> Even when I DO enter a number, or even leave blank (to try and use the
> default).
>
> Is there a way of signifying to workbench that I do actually want to enter
> a number?


CMIS Workbench; Entering integers?

2013-07-23 Thread Nicholas Devenish
Hi All,

I'm learning to build content models in Alfresco. As part of this, I've created 
a type deriving from folder, that has a mandatory integer property.

The problem is, using workbench to attempt to create it gives:
IllegalArgumentException: 
Property 'ddb:currentnum' is a integer property. Expected type 
'' but received a 'java.lang.String' property.

Even when I DO enter a number, or even leave blank (to try and use the default).

Is there a way of signifying to workbench that I do actually want to enter a 
number?