You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Bertrand Delacretaz (JIRA)" <ji...@apache.org> on 2007/12/11 14:47:43 UTC

[jira] Created: (SLING-133) microsling Resource resolver and default renderers do not support Properties

microsling Resource resolver and default renderers do not support Properties
----------------------------------------------------------------------------

                 Key: SLING-133
                 URL: https://issues.apache.org/jira/browse/SLING-133
             Project: Sling
          Issue Type: Improvement
          Components: microsling
            Reporter: Bertrand Delacretaz
            Priority: Minor


Currently, assuming the /content/testing/foo Node exists and has a "text" property, requesting /content/testing/foo/text.txt (or any other extension) fails with a ClassCastException, as the resolution and rendering chain supports Nodes only.

It should be fairly easy to use a JcrPropertyResource when the MicroslingResourceResolver finds an Item that is a Property, and let the default renderers handle it.

One use case, is, when working with client-side forms, to fill a <textarea>, for example, with the value of a property, based on a relative URL.

I don't think we need to handle POSTs to Properties for now, but GETs are useful in the above case, and for testing as well.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (SLING-133) microsling Resource resolver and default renderers do not support Properties

Posted by "Bertrand Delacretaz (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SLING-133?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12552731 ] 

Bertrand Delacretaz commented on SLING-133:
-------------------------------------------

We discussed this on the list, and the consensus seems to be that the resource type of a Property should be the resource type of the parent node, followed by the property name with some character filtering to make it suitable as a script name.

For example, the jcr:data property of an nt:resource node would have a resource type of "nt:resource/jcr:data" which translates to "nt/resource/jcr/data" as the script path.


> microsling Resource resolver and default renderers do not support Properties
> ----------------------------------------------------------------------------
>
>                 Key: SLING-133
>                 URL: https://issues.apache.org/jira/browse/SLING-133
>             Project: Sling
>          Issue Type: Improvement
>          Components: microsling
>            Reporter: Bertrand Delacretaz
>            Priority: Minor
>
> Currently, assuming the /content/testing/foo Node exists and has a "text" property, requesting /content/testing/foo/text.txt (or any other extension) fails with a ClassCastException, as the resolution and rendering chain supports Nodes only.
> It should be fairly easy to use a JcrPropertyResource when the MicroslingResourceResolver finds an Item that is a Property, and let the default renderers handle it.
> One use case, is, when working with client-side forms, to fill a <textarea>, for example, with the value of a property, based on a relative URL.
> I don't think we need to handle POSTs to Properties for now, but GETs are useful in the above case, and for testing as well.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (SLING-133) microsling Resource resolver and default renderers do not support Properties

Posted by "Felix Meschberger (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SLING-133?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Felix Meschberger closed SLING-133.
-----------------------------------

       Resolution: Fixed
    Fix Version/s: 2.0.0
         Assignee: Bertrand Delacretaz

This issue is fixed.

> microsling Resource resolver and default renderers do not support Properties
> ----------------------------------------------------------------------------
>
>                 Key: SLING-133
>                 URL: https://issues.apache.org/jira/browse/SLING-133
>             Project: Sling
>          Issue Type: Improvement
>          Components: microsling
>            Reporter: Bertrand Delacretaz
>            Assignee: Bertrand Delacretaz
>            Priority: Minor
>             Fix For: 2.0.0
>
>
> Currently, assuming the /content/testing/foo Node exists and has a "text" property, requesting /content/testing/foo/text.txt (or any other extension) fails with a ClassCastException, as the resolution and rendering chain supports Nodes only.
> It should be fairly easy to use a JcrPropertyResource when the MicroslingResourceResolver finds an Item that is a Property, and let the default renderers handle it.
> One use case, is, when working with client-side forms, to fill a <textarea>, for example, with the value of a property, based on a relative URL.
> I don't think we need to handle POSTs to Properties for now, but GETs are useful in the above case, and for testing as well.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (SLING-133) microsling Resource resolver and default renderers do not support Properties

Posted by "Bertrand Delacretaz (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SLING-133?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12550451 ] 

Bertrand Delacretaz commented on SLING-133:
-------------------------------------------

Simple default rendering of Properties implemented in revision 603249, see the PropertyRenderingTest class for examples.

JcrPropertyResource currently uses an empty string for the resourceType, so Properties cannot be wired to rendering scripts (which is probably not needed either).

Leaving this issue open, as we might want to refine this for other HTTP methods.

> microsling Resource resolver and default renderers do not support Properties
> ----------------------------------------------------------------------------
>
>                 Key: SLING-133
>                 URL: https://issues.apache.org/jira/browse/SLING-133
>             Project: Sling
>          Issue Type: Improvement
>          Components: microsling
>            Reporter: Bertrand Delacretaz
>            Priority: Minor
>
> Currently, assuming the /content/testing/foo Node exists and has a "text" property, requesting /content/testing/foo/text.txt (or any other extension) fails with a ClassCastException, as the resolution and rendering chain supports Nodes only.
> It should be fairly easy to use a JcrPropertyResource when the MicroslingResourceResolver finds an Item that is a Property, and let the default renderers handle it.
> One use case, is, when working with client-side forms, to fill a <textarea>, for example, with the value of a property, based on a relative URL.
> I don't think we need to handle POSTs to Properties for now, but GETs are useful in the above case, and for testing as well.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.