Hi, I am confused about when to use SetupRender and PageAttached methods. I know that PageAttached methods comes in Page Lifecycle and SetupRender methods comes in Component rendering phase cycle.
It means PageAttached should belong to the Page and SetupRender belong to the Components. To verify the same I have created one Component and one Page package net.xyz.components; public class FooterComponent { @PageAttached Public void compAttached(){ System.out.println("in Component compAttached: ") } @SetupRender Public void compRender(){ System.out.println("in Component compRender: ") } } package net.xyz.pages; public class LoginPage { @PageAttached Public void pageAttached(){ System.out.println("in Page pageAttached: ") } @SetupRender Public void pageRender(){ System.out.println("in Page pageRender: ") } } My LoginPage contain FooterComponent. When I run my page in console I'll get sysout for PageAttached in Page as well as in component. Same for the setuprender method. Can someone please explain me why it is happening? Regards, Mahendra