I have used image(core/wcm/components/image/v2/image) resource type and copy pasted cq:dialog But writing after writing HTL<h1>Banner</h1><img src="${properties.fileReferenceBanner}" width="500" height="600"> <h1>Interstetial</h1><img src="${properties.fileReferenceInterstetial}"> Images those are p...
For the below code I am unable to write the JUnit for @Postconstruct init() But for text JUNIT is working fine via JSON. Need help@inject
private Page currentPage;
@ValueMapValue
Private String text;
private String pageTitle;
@PostConstruct
protected void init() {
if(!(currentPage.getName().eq...
@Siva_Sogalapalli In HTL Text is not printing anything If I remove postconstruct and SlingHttpServletRequest.class from adaptable then only it is working
This is working but component is not displaying anything@Model(adaptables = {SlingHttpServletRequest.class, Resource.class}, defaultInjectionStrategy = DefaultInjectionStrategy.OPTIONAL)
public class TextingModelImpl {
@ValueMapValue
private String text;
@Inject
private Pa...
Hi, I have added one component in experience fragment.....Now I want to make the page available in every page where page name is "Product" Now I am facing challenge in geting the page name in ModelImpl.class......Whenever I uses currentPage=resourceResolver.adaptTo(PageManager.class).getContainingPa...