Expand my Community achievements bar.

fetching dialog field values using WCM POJO class and display on a page.


Level 1

Hello community,


I'm trying to fetch dialog box values using WCM POJO class(Use class and Bean class). I'm providing my bean class and use class code here to fetch "title" value. Could you help me out!



public class MyBean


private String title='' ";

public String getTitle(){

return title;


public void setTitle(String title){






public class MyUse extends WCMUsePojo{

private static final Logger Logger = LoggerFactory


private MyBean myBean=null;

private MyBean getMyBean(){

return myBean;


@ Override

public void activate() throws Exception{


maintenancetabBean = new MaintenancetabBean();


  Node node= getResourceResolver()

                      .getResource("content/...(path of my page)").adaptTo(Node.class);








myhtml code:

<sly data-sly-use.content="com.fedex.irc.use.MyUse"">



This is my code. It is not throwing any errors but not displaying output in my page. I'm not getting what's the wrong! could anyone of you help me with this?

2 Replies