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

        Arran Mccullough created issue -
        Arran Mccullough made changes -
        Field Original Value New Value
        Attachment Case12419Example2.zip [ 16508 ]
        Arran Mccullough made changes -
        Summary ace:pushButton - Missing resources errors thrown after foprward navigation takes place Missing resources errors thrown after forward navigation takes place with a Spring integration
        Arran Mccullough made changes -
        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.

        Sample Erros:

        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".
        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".
        Arran Mccullough made changes -
        Salesforce Case Reference 5007000000W7GRPAA3
        Ken Fyten made changes -
        Assignee Ted Goddard [ ted.goddard ]
        Fix Version/s 3.4 [ 10770 ]
        Fix Version/s EE-3.4.0.GA [ 11171 ]
        Assignee Priority P1 [ 10010 ]
        Ted Goddard made changes -
        Assignee Ted Goddard [ ted.goddard ] Arran Mccullough [ arran.mccullough ]
        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?
        Arran Mccullough made changes -
        Assignee Arran Mccullough [ arran.mccullough ] Ted Goddard [ ted.goddard ]
        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
        Ted Goddard made changes -
        Assignee Ted Goddard [ ted.goddard ] Arran Mccullough [ arran.mccullough ]
        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.
        Ted Goddard made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #38354 Thu Oct 03 13:57:11 MDT 2013 ted.goddard loop over RenderKitWrapper until DOMRenderKit is found (ICE-9621)
        Files Changed
        Commit graph MODIFY /icefaces3/trunk/icefaces/core/src/main/java/org/icefaces/impl/event/MandatoryResourcesSetup.java
        Ken Fyten made changes -
        Fix Version/s EE-3.3.0.GA_P02 [ 11371 ]
        Fix Version/s EE-4.0.0.GA [ 11171 ]
        Ken Fyten made changes -
        Resolution Fixed [ 1 ]
        Status Resolved [ 5 ] Reopened [ 4 ]
        Assignee Arran Mccullough [ arran.mccullough ] Ted Goddard [ ted.goddard ]
        Assignee Priority P1 [ 10010 ] P2 [ 10011 ]
        Ken Fyten made changes -
        Assignee Ted Goddard [ ted.goddard ] Mircea Toma [ mircea.toma ]
        Hide
        Mircea Toma added a comment -

        Back-ported fix.

        Show
        Mircea Toma added a comment - Back-ported fix.
        Mircea Toma made changes -
        Status Reopened [ 4 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Ken Fyten made changes -
        Fix Version/s 4.0 [ 11382 ]
        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved: