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

Clemens Wyss edited comment on SLING-1859 at 11/14/10 11:00 AM:
----------------------------------------------------------------

If resource.adaptTo(ValueMap) fails (i.e returns null) I try your 
"cast-approach" through ResourceUtil#getValueMap, so this does not seem to be 
the problem.

>not sure you want strings, I guess you could also ask for Long[0] etc. 
the Property should not only tell me if the property is mutivalued 
(Property#isMultiple()), but also the type the multiple values 
(Property#getType()), no matter whether it's empty or not.

I expect to always get a Property from the ValueMap-casted resource... Maybe a 
false implication?

      was (Author: clemensdev):
    If resource.adaptTo(ValueMap) fails (i.e returns null) I try your 
"cast-approach" through ResourceUtil#getValueMap, so this does not seem to be 
the problem.

>not sure you want strings, I guess you could also ask for Long[0] etc. 
the PropertyDefinition (Property#getDefinition()) should not only tell me if 
the property is mutivalued (PropertyDefinition#isMultiple()), but also the type 
the multiple values (PropertyDefinition#getRequiredType()), no matter whether 
it's empty or not.

I expect to always get a Property from the ValueMap-casted resource... Maybe a 
false implication?
  
> Multi-value string properties are not displayed correctly
> ---------------------------------------------------------
>
>                 Key: SLING-1859
>                 URL: https://issues.apache.org/jira/browse/SLING-1859
>             Project: Sling
>          Issue Type: Bug
>          Components: Extensions
>    Affects Versions: Sling Explorer 1.0.0
>            Reporter: Carsten Ziegeler
>            Assignee: Clemens Wyss
>
> I have a node with a multi value string property, and the explorer displays 
> the value as "[Ljava.lang.Object;@1a6b7e", together with the hint "[not a 
> property!] 

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