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 -

        Please attach a .war file suitable for reproducing the problem on Tomcat 7.

        Show
        Ted Goddard added a comment - Please attach a .war file suitable for reproducing the problem on Tomcat 7.
        Hide
        Arran Mccullough added a comment -

        War file is too large to attach which is why as per my last comment I had uploaded it to the iceads1 server. I was able to run this war on my local Tomcat 7 instance. Did you run into issues deploying the war file?

        Show
        Arran Mccullough added a comment - War file is too large to attach which is why as per my last comment I had uploaded it to the iceads1 server. I was able to run this war on my local Tomcat 7 instance. Did you run into issues deploying the war file?
        Hide
        Ted Goddard added a comment -

        Didn't see the comment, I only tried the attachment. I will download from iceads1.

        Show
        Ted Goddard added a comment - Didn't see the comment, I only tried the attachment. I will download from iceads1.
        Hide
        Ted Goddard added a comment -

        ace-components.uncompressed.js is missing from the page when the navigation occurs, causing the button component to fail.

        Show
        Ted Goddard added a comment - ace-components.uncompressed.js is missing from the page when the navigation occurs, causing the button component to fail.
        Hide
        Ted Goddard added a comment -

        With Spring removed from the application, the page contains a variety of used and unused .js files (including the ace-components file required by the pushbutton).

        Show
        Ted Goddard added a comment - With Spring removed from the application, the page contains a variety of used and unused .js files (including the ace-components file required by the pushbutton).
        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: