ICEfaces
  1. ICEfaces
  2. ICE-9621

Missing resources errors thrown after forward navigation takes place with a Spring integration

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: EE-3.3.0.GA, EE-3.3.0.GA_P01, 4.0.BETA
    • Fix Version/s: 4.0.BETA, EE-3.3.0.GA_P02, 4.0
    • Component/s: ACE-Components
    • Labels:
      None
    • Environment:
      Spring 3
    • Assignee Priority:
      P2
    • Salesforce Case Reference:

      Description

      An ace:pushButton is set on a page to do a forward navigation. The page it is navigating to contains an ace:dataTable and an ace:menuButton components. Upon navigating to the page there are many Missing resources JavaScript errors being displayed and the component styling is not correct.

      This also seems to be only an issue when Spring is in use with the application. A standard JSF/ICEfaces implementation does not show this behavior.

      Note: testing with an h:commandButton also shows the same behavior.

      Sample Errors:

      uncaught exception: Missing resources for "MenuButton" component. See "http://www.icesoft.org/wiki/display/ICE/mandatoryResourceConfiguration" for more details.

      uncaught exception: Missing resources for "DataTable" component. See "http://www.icesoft.org/wiki/display/ICE/mandatoryResourceConfiguration" for more details.

      This is seen even with having the mandatoryResourceConfiguration parameter set to "all".

        Activity

        Hide
        Ted Goddard added a comment -

        The following is set, so the resources are not being included even in the initial page as expected:

        <context-param>
        <param-name>org.icefaces.mandatoryResourceConfiguration</param-name>
        <param-value>all</param-value>
        </context-param>

        Show
        Ted Goddard added a comment - The following is set, so the resources are not being included even in the initial page as expected: <context-param> <param-name>org.icefaces.mandatoryResourceConfiguration</param-name> <param-value>all</param-value> </context-param>
        Hide
        Ted Goddard added a comment -

        Only one mandatory resource is discovered as needing to be added in the spring variant:

        MandatoryResourcesSetup.addOrCollectReplacingResource addComponentResource jsf.js

        Show
        Ted Goddard added a comment - Only one mandatory resource is discovered as needing to be added in the spring variant: MandatoryResourcesSetup.addOrCollectReplacingResource addComponentResource jsf.js
        Hide
        Ted Goddard added a comment -

        A spring-defined RenderKit is interfering with our RenderKit detection:

        MandatoryResourcesSetup.addMandatoryResources RenderKit org.springframework.faces.webflow.FlowRenderKit

        Show
        Ted Goddard added a comment - A spring-defined RenderKit is interfering with our RenderKit detection: MandatoryResourcesSetup.addMandatoryResources RenderKit org.springframework.faces.webflow.FlowRenderKit
        Hide
        Ted Goddard added a comment -

        Fix is checked in to trunk

        Sending core/src/main/java/org/icefaces/impl/event/MandatoryResourcesSetup.java
        Transmitting file data .
        Committed revision 38354.

        Show
        Ted Goddard added a comment - Fix is checked in to trunk Sending core/src/main/java/org/icefaces/impl/event/MandatoryResourcesSetup.java Transmitting file data . Committed revision 38354.
        Hide
        Mircea Toma added a comment -

        Back-ported fix.

        Show
        Mircea Toma added a comment - Back-ported fix.

          People

          • Assignee:
            Mircea Toma
            Reporter:
            Arran Mccullough
          • Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: