Question on read-only property with noderef
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-19-2006 04:08 AM
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
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
Labels:
- Labels:
-
Archive
4 REPLIES 4

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-19-2006 06:26 AM
…..mamevoleterisponnebruttifraciconi??????

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-19-2006 12:30 PM
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.
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.

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-23-2006 07:42 AM
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.
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.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-24-2006 08:35 AM
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???
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???
