Hi am new to CQ
I am trying to write java class for dialog.
Can any one please share any document to refer.
My idea : from dialog, i need to get properties and need to store in Crx.
Thanks,
Seetha
Solved! Go to Solution.
Views
Replies
Total Likes
Views
Replies
Total Likes
Normally when you click ok on the dialog the values are persisted into crx.
Views
Replies
Total Likes
Thank you for the reply.
Instead of doing logical thing in Jsp, i need to do in java.
Is there any way to achieve that.
Views
Replies
Total Likes
Thanks all for the help.
Views
Replies
Total Likes
Could you be more clear on what you are trying to achieve. As @feike mentioned, When you click "Ok" button on dialog box, values filled in dialog box gets automatically stored in crx. This is an default functionality of CQ5. There is no need to write JSP or JAVA code to save dialog values to properties.
[or]
If you are trying to retrieve those already saved properties, this is the article you should read: https://cqwemblog.wordpress.com/2013/12/19/how-to-read-properties-from-a-node-in-cq5/
Views
Replies
Total Likes
Not sure if that article still works with AEM6
Views
Replies
Total Likes
Thanks Edubey for the reply.
Example :
Navigation component:
Navigation logical we can do directly in Jsp
But my idea is to do logical like list of children and other things in java, only i need to pass value to jsp.
how i can create link between jsp and java?
Help me to understand that.
Views
Replies
Total Likes
I hope you have setup your project in Eclipse IDE, If not Check here.
Create java classes in your IDE, once you project setup is done.
Refer here a Hello World Example.
Views
Replies
Total Likes
Thanks for the example.
Here we are passing static value from Java to Jsp using sling service.
Example :
Am passing one textfield value.
In jsp i can retrive <%=properties.get("textfieldName",String.class)%>
or in JSTL ${properties.textfieldName}
How i can get in java?
Thanks in advance
Views
Replies
Total Likes
Thanks for the example.
Hi Seetha,
Here are some example articles
https://helpx.adobe.com/experience-manager/using/persisting-cq-data-java-content.html
https://helpx.adobe.com/experience-manager/kb/index/development.html
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies