ICEfaces
  1. ICEfaces
  2. ICE-11313

chart.xhtml in showcase example has incorrect attribute

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 4.2
    • Fix Version/s: EE-4.2.0.GA
    • Component/s: ACE-Components
    • Labels:
      None
    • Environment:
      ace chart

      Description

      reviewing the showcase example for ICE-11258 and noticed that chart.xhtml specifies attribute as yAxis, but should be yAxes.

        Activity

        Judy Guglielmin created issue -
        Judy Guglielmin made changes -
        Field Original Value New Value
        Assignee Judy Guglielmin [ judy.guglielmin ]
        Hide
        Judy Guglielmin added a comment -

        rev 51570

        Show
        Judy Guglielmin added a comment - rev 51570
        Judy Guglielmin made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #51570 Tue May 30 10:04:35 MDT 2017 judy.guglielmin ICE-11313 rename attribute to yAxes as there is no such attribute as yAxis
        Files Changed
        Commit graph MODIFY /icefaces4/trunk/icefaces/samples/showcase/showcase/src/main/webapp/resources/examples/ace/chart/chart.xhtml
        Hide
        Liana Munroe added a comment -

        Tested with ICEfaces 4 trunk r51570 and ICEfaces 4 trunk continuous Jenkins build 2563.
        Can not access ace:chart demos in showcase due to Class Cast Exception.
        Server log:

        30-May-2017 10:27:13.493 SEVERE [http-apr-8080-exec-1] com.sun.faces.context.Aja
        xExceptionHandlerImpl.handlePartialResponseError java.lang.ClassCastException: o
        rg.icefaces.samples.showcase.example.ace.chart.ChartBean$4 cannot be cast to [Lo
        rg.icefaces.ace.component.chart.Axis;
                at org.icefaces.ace.component.chart.ChartBase.getYAxes(ChartBase.java:22
        61)
                at org.icefaces.ace.component.chart.ChartRenderer.encodeAxesConfig(Chart
        Renderer.java:278)
                at org.icefaces.ace.component.chart.ChartRenderer.encodeScript(ChartRend
        erer.java:164)
                at org.icefaces.ace.component.chart.ChartRenderer.encodeBegin(ChartRende
        rer.java:129)
                at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.jav
        a:865)
                at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1854)
                at javax.faces.render.Renderer.encodeChildren(Renderer.java:176)
                at org.icefaces.impl.renderkit.RendererWrapper.encodeChildren(RendererWr
        apper.java:41)
                at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.
        java:890)
                at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(
        HtmlBasicRenderer.java:304)
                at com.sun.faces.renderkit.html_basic.GroupRenderer.encodeChildren(Group
        Renderer.java:114)
                at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.
        java:890)
                at org.icefaces.ace.renderkit.CoreRenderer.renderChild(CoreRenderer.java
        :74)
                at org.icefaces.ace.renderkit.CoreRenderer.renderChildren(CoreRenderer.j
        ava:62)
                at org.icefaces.ace.component.panel.PanelRenderer.encodeContent(PanelRen
        derer.java:294)
                at org.icefaces.ace.component.panel.PanelRenderer.encodeMarkup(PanelRend
        erer.java:141)
                at org.icefaces.ace.component.panel.PanelRenderer.encodeEnd(PanelRendere
        r.java:77)
                at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:
        920)
                at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(
        HtmlBasicRenderer.java:312)
                at com.sun.faces.renderkit.html_basic.GroupRenderer.encodeChildren(Group
        Renderer.java:114)
                at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.
        java:890)
                at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(
        HtmlBasicRenderer.java:304)
                at com.sun.faces.renderkit.html_basic.GroupRenderer.encodeChildren(Group
        Renderer.java:114)
                at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.
        java:890)
                at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(
        HtmlBasicRenderer.java:304)
                at com.sun.faces.renderkit.html_basic.GroupRenderer.encodeChildren(Group
        Renderer.java:114)
                at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.
        java:890)
                at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1856)
                at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1859)
                at org.icefaces.impl.context.DOMPartialViewContext.processPartial(DOMPar
        tialViewContext.java:300)
                at javax.faces.context.PartialViewContextWrapper.processPartial(PartialV
        iewContextWrapper.java:219)
                at javax.faces.component.UIViewRoot.encodeChildren(UIViewRoot.java:1004)
        
                at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1856)
                at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView
        (FaceletViewHandlingStrategy.java:432)
                at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewH
        andler.java:134)
                at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrap
        per.java:337)
                at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePha
        se.java:120)
                at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
                at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:219)
                at javax.faces.webapp.FacesServlet.service(FacesServlet.java:659)
                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
        icationFilterChain.java:292)
                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
        ilterChain.java:207)
                at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52
        )
                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
        icationFilterChain.java:240)
                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
        ilterChain.java:207)
                at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
        alve.java:212)
                at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
        alve.java:106)
                at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authentica
        torBase.java:502)
                at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
        ava:141)
                at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
        ava:79)
                at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAcce
        ssLogValve.java:616)
                at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
        ve.java:88)
                at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
        a:522)
                at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp
        11Processor.java:1095)
                at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(
        AbstractProtocol.java:672)
                at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.doRun(AprEndpo
        int.java:2500)
                at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoin
        t.java:2489)
                at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.
        java:1145)
                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
        .java:615)
                at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskTh
        read.java:61)
                at java.lang.Thread.run(Thread.java:745)
        
        Show
        Liana Munroe added a comment - Tested with ICEfaces 4 trunk r51570 and ICEfaces 4 trunk continuous Jenkins build 2563. Can not access ace:chart demos in showcase due to Class Cast Exception. Server log: 30-May-2017 10:27:13.493 SEVERE [http-apr-8080-exec-1] com.sun.faces.context.Aja xExceptionHandlerImpl.handlePartialResponseError java.lang.ClassCastException: o rg.icefaces.samples.showcase.example.ace.chart.ChartBean$4 cannot be cast to [Lo rg.icefaces.ace.component.chart.Axis; at org.icefaces.ace.component.chart.ChartBase.getYAxes(ChartBase.java:22 61) at org.icefaces.ace.component.chart.ChartRenderer.encodeAxesConfig(Chart Renderer.java:278) at org.icefaces.ace.component.chart.ChartRenderer.encodeScript(ChartRend erer.java:164) at org.icefaces.ace.component.chart.ChartRenderer.encodeBegin(ChartRende rer.java:129) at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.jav a:865) at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1854) at javax.faces.render.Renderer.encodeChildren(Renderer.java:176) at org.icefaces.impl.renderkit.RendererWrapper.encodeChildren(RendererWr apper.java:41) at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase. java:890) at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive( HtmlBasicRenderer.java:304) at com.sun.faces.renderkit.html_basic.GroupRenderer.encodeChildren(Group Renderer.java:114) at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase. java:890) at org.icefaces.ace.renderkit.CoreRenderer.renderChild(CoreRenderer.java :74) at org.icefaces.ace.renderkit.CoreRenderer.renderChildren(CoreRenderer.j ava:62) at org.icefaces.ace.component.panel.PanelRenderer.encodeContent(PanelRen derer.java:294) at org.icefaces.ace.component.panel.PanelRenderer.encodeMarkup(PanelRend erer.java:141) at org.icefaces.ace.component.panel.PanelRenderer.encodeEnd(PanelRendere r.java:77) at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java: 920) at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive( HtmlBasicRenderer.java:312) at com.sun.faces.renderkit.html_basic.GroupRenderer.encodeChildren(Group Renderer.java:114) at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase. java:890) at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive( HtmlBasicRenderer.java:304) at com.sun.faces.renderkit.html_basic.GroupRenderer.encodeChildren(Group Renderer.java:114) at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase. java:890) at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive( HtmlBasicRenderer.java:304) at com.sun.faces.renderkit.html_basic.GroupRenderer.encodeChildren(Group Renderer.java:114) at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase. java:890) at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1856) at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1859) at org.icefaces.impl.context.DOMPartialViewContext.processPartial(DOMPar tialViewContext.java:300) at javax.faces.context.PartialViewContextWrapper.processPartial(PartialV iewContextWrapper.java:219) at javax.faces.component.UIViewRoot.encodeChildren(UIViewRoot.java:1004) at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1856) at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView (FaceletViewHandlingStrategy.java:432) at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewH andler.java:134) at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrap per.java:337) at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePha se.java:120) at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101) at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:219) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:659) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl icationFilterChain.java:292) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF ilterChain.java:207) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52 ) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl icationFilterChain.java:240) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF ilterChain.java:207) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV alve.java:212) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV alve.java:106) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authentica torBase.java:502) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j ava:141) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j ava:79) at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAcce ssLogValve.java:616) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal ve.java:88) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav a:522) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp 11Processor.java:1095) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process( AbstractProtocol.java:672) at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.doRun(AprEndpo int .java:2500) at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoin t.java:2489) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor. java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor .java:615) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskTh read.java:61) at java.lang. Thread .run( Thread .java:745)
        Liana Munroe made changes -
        Resolution Fixed [ 1 ]
        Status Resolved [ 5 ] Reopened [ 4 ]
        Hide
        Judy Guglielmin added a comment -

        rev 51571. had to modify the bean too since the yAxes must take a type of Axis [ ] . can now see the value for the Y Axes label from this attribute.

        Show
        Judy Guglielmin added a comment - rev 51571. had to modify the bean too since the yAxes must take a type of Axis [ ] . can now see the value for the Y Axes label from this attribute.
        Judy Guglielmin made changes -
        Status Reopened [ 4 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #51571 Tue May 30 11:34:00 MDT 2017 judy.guglielmin ICE-11313 backing bean was also incorrect as yAxes attribute must be Axis[ ] type. fixed this and now label can be seen from this attribute being set (USD Millions) which was not present in previous version
        Files Changed
        Commit graph MODIFY /icefaces4/trunk/icefaces/samples/showcase/showcase/src/main/java/org/icefaces/samples/showcase/example/ace/chart/ChartBean.java
        Commit graph MODIFY /icefaces4/trunk/icefaces/samples/showcase/showcase/src/main/webapp/resources/examples/ace/chart/chart.xhtml
        Hide
        Ken Fyten added a comment -

        Re-opened for missing x-axis labels.

        Show
        Ken Fyten added a comment - Re-opened for missing x-axis labels.
        Ken Fyten made changes -
        Resolution Fixed [ 1 ]
        Status Resolved [ 5 ] Reopened [ 4 ]
        Ken Fyten made changes -
        Fix Version/s EE-4.2.0.GA [ 13071 ]
        Ken Fyten made changes -
        Security Private [ 10001 ]
        Hide
        Judy Guglielmin added a comment -

        rev 51577 now just has both axes showing the value.

        Show
        Judy Guglielmin added a comment - rev 51577 now just has both axes showing the value.
        Judy Guglielmin made changes -
        Status Reopened [ 4 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #51577 Tue May 30 17:06:04 MDT 2017 judy.guglielmin ICE-11313 modified x and y axes so that all labels are shown for value.
        Files Changed
        Commit graph MODIFY /icefaces4/trunk/icefaces/samples/showcase/showcase/src/main/java/org/icefaces/samples/showcase/example/ace/chart/ChartBean.java
        Hide
        Liana Munroe added a comment -

        Tested with ICEfaces 4 trunk r51577
        showcase ace:chart > Overview
        Chart labels are now displayed in a random order every time the app is opened in a browser. This is not the case with any of the other chart demos.
        See screen shot random.png

        Show
        Liana Munroe added a comment - Tested with ICEfaces 4 trunk r51577 showcase ace:chart > Overview Chart labels are now displayed in a random order every time the app is opened in a browser. This is not the case with any of the other chart demos. See screen shot random.png
        Liana Munroe made changes -
        Resolution Fixed [ 1 ]
        Status Resolved [ 5 ] Reopened [ 4 ]
        Liana Munroe made changes -
        Attachment random.PNG [ 22543 ]
        Hide
        Judy Guglielmin added a comment -

        rev 51581. When using the Category Axis renderer on yAxes as well as xAxes, it sorts the data and tries to render it sorted via the last defined axes, so specifically defined the axis and labelling for ticks instead.

        Show
        Judy Guglielmin added a comment - rev 51581. When using the Category Axis renderer on yAxes as well as xAxes, it sorts the data and tries to render it sorted via the last defined axes, so specifically defined the axis and labelling for ticks instead.
        Judy Guglielmin made changes -
        Status Reopened [ 4 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #51581 Wed May 31 16:42:50 MDT 2017 judy.guglielmin ICE-11313 removed use of Category AxisType renderer for y axes and defined ticks and labels specifically.
        Files Changed
        Commit graph MODIFY /icefaces4/trunk/icefaces/samples/showcase/showcase/src/main/java/org/icefaces/samples/showcase/example/ace/chart/ChartBean.java
        Commit graph MODIFY /icefaces4/trunk/icefaces/samples/showcase/showcase/src/main/webapp/resources/examples/ace/chart/chart.xhtml
        Hide
        Liana Munroe added a comment -

        Verified ICEfaces 4 trunk r51581, Tomcat 8, MS Edge, IE 11, 10, 9, 8, FF 47, Chrome 57

        Show
        Liana Munroe added a comment - Verified ICEfaces 4 trunk r51581, Tomcat 8, MS Edge, IE 11, 10, 9, 8, FF 47, Chrome 57
        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Judy Guglielmin
            Reporter:
            Judy Guglielmin
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: