代码之家  ›  专栏  ›  技术社区  ›  Vivek Dhiman

无法在WCMPojo中获取隐式对象

  •  0
  • Vivek Dhiman  · 技术社区  · 6 年前

    我使用的组件需要动态下拉。这些选项在页面属性中配置。但我无法在数据源中获取currentPage对象。html文件。下面是我的组件的结构。

    enter image description here

    以及调用wcmpojo类的数据源。在下面的流动中。

    enter image description here

    数据源。html

    <sly data-sly-use.data="${'apps.myprj.components.content.tabcontent.HtlDatasourceExample'  @ text=currentPage.path}">
    </sly>
    

    HtlDatasourceExample正在获取调用,如果值是硬编码的,则会得到正确的响应。

    问题是无法获取HtlDatasourceExample中的sling对象,例如currentPage。

    谢谢

    0 回复  |  直到 5 年前