Skip to main content
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
smacdonald2008
smacdonald2008Accepted solution
Level 10
Oct 16, 2015 2:28 AM UTC

Another option is to build your Sightly component to use Java. THen use Java to perform numeric fomatting on the value

https://docs.oracle.com/javase/tutorial/java/data/numberformat.html

See this community article:

https://helpx.adobe.com/experience-manager/using/creating-sightly-component.html

That article will show you how to build a Sightly component with data-sly and Java.

5 replies

Feike_Visser1
Adobe Employee
Adobe Employee
Oct 16, 2015 2:28 AM UTC

In Sightly there is, for now, no formatting is available. You would need to implement this via Java/Javascript.

Translate
francisco_ribei
Level 6
Oct 16, 2015 2:28 AM UTC

Hi,

Thanks for your reply.

That's was my first idea, I'd just like to know if in Sightly itself there was already anything ready.

Thanks

Translate
smacdonald2008
smacdonald2008Accepted solution
Level 10
Oct 16, 2015 2:28 AM UTC

Another option is to build your Sightly component to use Java. THen use Java to perform numeric fomatting on the value

https://docs.oracle.com/javase/tutorial/java/data/numberformat.html

See this community article:

https://helpx.adobe.com/experience-manager/using/creating-sightly-component.html

That article will show you how to build a Sightly component with data-sly and Java.

Translate
francisco_ribei
Level 6
Oct 16, 2015 2:28 AM UTC

Hi @smacdonald2008,

Thanks for you reply, but I didn't find anything about number formatting, could you point me that?

Thanks

Translate
smacdonald2008
Level 10
Oct 16, 2015 2:28 AM UTC

Information about Sightly and numeric data can be located here:

http://docs.adobe.com/content/docs/en/aem/6-0/develop/sightly.html

Translate