I'm currently using the alfresco's 1.2.1 version, and I would like to enable users to select a space when I integrate a d:noderef property in my custom models, but I've only a disabled textfield in the web client My Tomcat server warns me : WARN [UIProperty] Setting property {Model}ref to read-only as it can not be edited
Can I configure the web client in order to use a space selector? Thanks
The only way you will be able to do this is to manually place the r:spaceSelector component on a JSP and manually set the property.
In 1.3 you can configure properties to use custom components but the component is still going to get disabled due to the fact that we treat d:noderef as a "system" property.
The d:noderef property will remain to be treated as a system property.
If you wanting this type of behaviour you could model the link to the space an association instead of a property.
The association editor will provide a list of items that match the target node type so in your case you would get a list of spaces to choose from.
With some customisation you could replace the association editor with the space picker and then create the association yourself in a custom backing bean.
OK, thanks gavinc. I would like to model this link as an association, but the problem is I use an object layer to acces Alfresco's repository under the JSR170 api, and I can't acces this association throw this API. Is it true???