Uploaded image for project: 'PUBLIC - Liferay Faces'
  1. PUBLIC - Liferay Faces
  2. FACES-3403

Develop Item Selector components

    Details

      Description

      The Liferay Item Selector JSP components can be found here: https://docs.liferay.com/ce/apps/collaboration/latest/taglibdocs/liferay-item-selector/tld-summary.html

      This feature request involves creating JSF equivalents for these components.

      It's have Liferay YUI based component: https://dev.liferay.com/en/develop/tutorials/-/knowledge_base/7-1/item-selector

      This component cannot be used from the JSF world.

      1. I have try to implement it with taglib (I have itemSelector dependency but this taglib is missing in JSF):
      https://docs.liferay.com/ce/apps/collaboration/latest/taglibdocs/liferay-item-selector/repository-entry-browser.html

      <ui:composition
              xmlns="http://www.w3.org/1999/xhtml"
              xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
              xmlns:liferay-item-selector="http://liferay.com/tld/item-selector"
      >
      <liferay-item-selector:repository-entry-browser
                              itemSelectedEventName="eventName"
                              portletURL="#{newsItemSelector.portletURL}"
                              repositoryEntries="#{newsItemSelector.fileEntries}"
                              repositoryEntriesCount="#{newsItemSelector.fileEntries.size}"
                              tabName="news-images"
                      />
      </ui:composition>
      
      compileOnly group: "com.liferay", name: "com.liferay.item.selector.api", version: "3.0.6"
      compileOnly group: "com.liferay", name: "com.liferay.item.selector.web", version: "4.0.12"
      compileOnly group: "com.liferay", name: "com.liferay.item.selector.criteria.api", version: "3.0.2"
      compileOnly group: "com.liferay", name: "com.liferay.item.selector.taglib", version: "2.0.10"
      

      2. And the old way (with plain JS implementation) maybe the same error and missing JS lib:
      https://dev.liferay.com/en/develop/tutorials/-/knowledge_base/7-1/selecting-entities-using-the-item-selector#getting-an-item-selector-for-the-criteria

      var itemSelectorDialog = new A.LiferayItemSelectorDialog(  // A-is undefined here
      

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:

                Packages

                Version Package