ICEfaces
  1. ICEfaces
  2. ICE-6667

Portlets: CoreComponentUtils findComponent not absolutely finding components

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Won't Fix
    • Affects Version/s: 2.0.0
    • Fix Version/s: 2.0.1
    • Component/s: Framework
    • Labels:
      None
    • Environment:
      Portlets, ICEfaces 2

      Description

      As found in ICE-6659, when using an absolute search for a component, CoreComponentUtils.findComponent(-) is not finding the component. There seems to be some issue with the clientIds including the portlet namespace in a way that the algorithm doesn't support.

      This might also be part of the issue with portlet environment components not finding each other with their for property.

        Issue Links

          Activity

          Hide
          Mark Collette added a comment -

          Investigation shows that the portlet UIViewRoot is a NamingContainer, but its id is generated and not the same as the first part of the clientId, which seems to be confusing the findComponent algorithm. We should look into giving it that as the id.

          Both CoreComponentUtils.findComponent, and UIComponent[Base?].findComponent are failing to find components using an absolute search string in a portlet environment.

          Show
          Mark Collette added a comment - Investigation shows that the portlet UIViewRoot is a NamingContainer, but its id is generated and not the same as the first part of the clientId, which seems to be confusing the findComponent algorithm. We should look into giving it that as the id. Both CoreComponentUtils.findComponent , and UIComponent [Base?] .findComponent are failing to find components using an absolute search string in a portlet environment.
          Hide
          Deryk Sinotte added a comment -

          As noted in the description and fully documented in ICE-6659, the issue is being resolved in the PortletFaces bridge by having the ViewRoot implementation provide the namespace as the id of the component as well so that findComponent will work again.

          Show
          Deryk Sinotte added a comment - As noted in the description and fully documented in ICE-6659 , the issue is being resolved in the PortletFaces bridge by having the ViewRoot implementation provide the namespace as the id of the component as well so that findComponent will work again.

            People

            • Assignee:
              Deryk Sinotte
              Reporter:
              Mark Collette
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: