내 커뮤니티 업적 표시줄을 확대합니다.

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Mark Solution

활동이 없어 이 대화는 잠겼습니다. 새 게시물을 작성해 주세요.

해결됨

granite properties

Avatar

Level 6

I store some jcr properties as comma separated values in a String. When I get the properties by properties.get("links"); or granite.resource.properties["links"] , i am not able to do String operations(split). Is there anyway to get the properties as String Object ?

1 채택된 해결책 개

Avatar

정확한 답변 작성자:
Level 8

Are you doing this in a JSP or a Java object? Or Sightly? Those calls return a String object, so if you aren't able to manipulate it then I'd guess it's a limitation of your scripting tool.

Assuming that this is sightly you'll probably need to use either JavaScript Use function or Java Use Bean to do the manipulation. 

원본 게시물의 솔루션 보기

2 답변 개

Avatar

정확한 답변 작성자:
Level 8

Are you doing this in a JSP or a Java object? Or Sightly? Those calls return a String object, so if you aren't able to manipulate it then I'd guess it's a limitation of your scripting tool.

Assuming that this is sightly you'll probably need to use either JavaScript Use function or Java Use Bean to do the manipulation. 

Avatar

Employee

can you check if the property type is string or string[]?