How to access component properties from a Java Class(AEM 5.6.1)

Avatar

Avatar

Sh1ju

Avatar

Sh1ju

Sh1ju

15-10-2015

Can I get some code for fetching component properties from a java class.

I'm  working on a component which requires some properties that the user sets during run time.

Initially, I was simply using a properties.get('employeename') to fetch this property from my component(JSP), but I'm trying collect this value from a java bean.

How to fetch this property 'employeename' (which is set during runtime on my component) within my Java code?

We can achieve this by using third party AEM frameworks like Slice,Bedrock etc.But I didn't want these frameworks.

Refer : http://code.citytechinc.com/bedrock/component-framework.html

desktop_exl_promo_600x100_weempoweryou.png

View Entire Topic

Avatar

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Reply

2.3K

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Reply

2.3K
smacdonald2008

15-10-2015

    A component  is only A node in the JCR. You use the JCR API to read node props using Java.