cancel
Showing results for 
Search instead for 
Did you mean: 

Question on read-only property with noderef

felipe
Champ in-the-making
Champ in-the-making
Hello,

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
4 REPLIES 4

tulum
Champ in-the-making
Champ in-the-making
…..mamevoleterisponnebruttifraciconi??????

gavinc
Champ in-the-making
Champ in-the-making
No, unfortunately you can't, the property type d:noderef is treated as a system property, hence the warning you get about not being able to edit it.

I have raised an issue to raise the question whether this should remain the case (it still applies in 1.3 as well). http://www.alfresco.org/jira/browse/AWC-689

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.

Hope that makes sense.

gavinc
Champ in-the-making
Champ in-the-making
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.

felipe
Champ in-the-making
Champ in-the-making
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???