SAP Hybris Tutorial – CMS Publish a Page to Online Mode | Unit 4

0 Comments
Publish content page

In the previous post, we told about the custom component on a template and view it on the page. But we can’t view this page on the Online mode. So, in this post, we are going to publish the page which used our custom template, from Staged mode to Online mode. Let’s get started. Steps: […]


List and Set in Java

0 Comments

List and Set are common collections in Java. They are used to contain items that have the same data type. The difference is List allow contain duplication of items while Set is not allowed. Code example: Result: NOTEs Errors: 1. Exception in thread “main” java.lang.UnsupportedOperationException: remove Run the following code below to get the error: […]


HashSet and Set

0 Comments

Set is a collection that contains unique items. In this post, we will cover the way to convert a string array to Set<String>. There are 2 approaches to do this requirement. Let’s consider which one we need to use. 1) Using new HashSet<>() HashSet is a mutable collection. That means we can modify the set […]


[SCC Practice 1] Smartedit Infinite loading…

0 Comments
Smartedit infinite loading

Sometimes we face issues like the images below when opening smartedit page, and we don’t see any error in the log console. Solutions Open localextensions.xml file and trace with the list extensions below: To ensure sure that the access rights are correctly set up so that you can log in to SmartEdit, you must do one […]


Materials Java SE 11

0 Comments

We have 2 main books to learn Java SE 11. One for theory and one for practice. There 2 books also used to prepare for your examination with code: 1Z0-819 Disclaimer: these 2 books are the intellectual property of Scott and Jeanne authors, and are being sold on the Amazon website. I share them with […]


Generate CSV File

0 Comments

In this post, we will use printwriter library to export data to csv file. View the video for more detail:


SAP Hybris Tutorial – CMS Create Custom Template | Unit 2

0 Comments
Hybris create custom template

To create a page, we need to choose a template for the page. We can use the existed template or can create a new template for this page. In this post, we will cover how to create a new template for the page. Step 1: Create a new page templateStep 2: Set component slots name […]


SAP Hybris Tutorial – CMS Create Custom Component | Unit 3

0 Comments
Hybris create custom component

Today, we will create a Youtube Video Component and include this component into: “Contact Page Template” Steps:1. Define Item Type Component in *item.xml file2. Define Impex to init data for component3. Create Controller and JSP page for this component4. Update the JSP page template and include the components5. Verify the result 1. Define Item Type […]