[ 
https://issues.apache.org/jira/browse/SLING-590?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12618269#action_12618269
 ] 

Felix Meschberger commented on SLING-590:
-----------------------------------------

Is it ok, if it would be adaptTo(Map.class) ?

Or how about this: Default is "ValueMap properties = 
resource.adaptTo(ValueMap.class)"

Attributes exist to overwrite the type and name:

   propertiesName -- Name of the variable
   propertiesClass -- Name of the class to adapt the resource to

WDYT ?

> Add resource.adaptTo(ValueMap.class) to page context attributes
> ---------------------------------------------------------------
>
>                 Key: SLING-590
>                 URL: https://issues.apache.org/jira/browse/SLING-590
>             Project: Sling
>          Issue Type: New Feature
>          Components: Scripting JSP
>            Reporter: Tobias Bocanegra
>            Priority: Minor
>
> <sling:defineObject/> should add a 'properties' as page context variable from 
> resource.adaptTo(ValueMap.class)

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