[ 
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.

Reply via email to