ICEfaces
  1. ICEfaces
  2. ICE-10320

autoCompleteEntry does not support objects as values with conversion

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 4.0.BETA, EE-3.3.0.GA_P02
    • Fix Version/s: EE-4.0.0.GA, EE-3.3.0.GA_P03, 4.1
    • Component/s: ACE-Components
    • Labels:
      None
    • Environment:
      jsf 2 ace

      Description

      See attached test case. When using a converter that returns an object, ace autoCompleteEntry assumes everything to be submitted is already a string (and does not seek to use a supplied converter if it is not).
      ct 15, 2014 8:50:11 AM org.icefaces.impl.context.DOMPartialRenderCallback visit
      SEVERE: Subtree rendering failed for class javax.faces.component.html.HtmlForm form2
      java.lang.ClassCastException: com.icesoft.support.Item cannot be cast to java.lang.String
      at org.icefaces.ace.component.autocompleteentry.AutoCompleteEntryRenderer.encodeScript(AutoCompleteEntryRenderer.java:294)
      at org.icefaces.ace.component.autocompleteentry.AutoCompleteEntryRenderer.encodeBegin(AutoCompleteEntryRenderer.java:215)
      at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:822)
      at org.icefaces.ace.renderkit.CoreRenderer.renderChild(CoreRenderer.java:79)
      at org.icefaces.ace.renderkit.CoreRenderer.renderChildren(CoreRenderer.java:70)
      at org.icefaces.ace.component.panel.PanelRenderer.encodeContent(PanelRenderer.java:236)
      at org.icefaces.ace.component.panel.PanelRenderer.encodeMarkup(PanelRenderer.java:135)
      at org.icefaces.ace.component.panel.PanelRenderer.encodeEnd(PanelRenderer.java:73)
      at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:877)
      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1826)
      at javax.faces.render.Renderer.encodeChildren(Renderer.java:168)
      at org.icefaces.impl.renderkit.RendererWrapper.encodeChildren(RendererWrapper.java:49)
      at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:847)
      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1819)
      at org.icefaces.impl.context.DOMPartialRenderCallback.visit(DOMPartialViewContext.java:821)
      at com.sun.faces.component.visit.PartialVisitContext.invokeVisitCallback(PartialVisitContext.java:183)
      at javax.faces.component.UIForm.visitTree(UIForm.java:381)
      at javax.faces.component.UIComponent.visitTree(UIComponent.java:1663)
      at javax.faces.component.UIComponent.visitTree(UIComponent.java:1663)
      at org.icefaces.impl.context.DOMPartialViewContext.renderSubtrees(DOMPartialViewContext.java:459)
      at org.icefaces.impl.context.DOMPartialViewContext.processPartial(DOMPartialViewContext.java:170)
      at javax.faces.component.UIViewRoot.encodeChildren(UIViewRoot.java:973)
      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1819)
      at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:421)
      at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:125)
      at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:286)
      at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:120)
      at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
      at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:594)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
      at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
      at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1040)
      at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)
      at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)
      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(TaskThread.java:61)
      at java.lang.Thread.run(Thread.java:745)

      Oct 15, 2014 8:50:11 AM org.icefaces.impl.context.DOMResponseWriter logUnclosedNode
      WARNING: Missing end-element for: #document (path: #document)

        Activity

        Judy Guglielmin created issue -
        Hide
        Judy Guglielmin added a comment -

        requires jsf jar and icefaces-3.3.0_P02 libs (not compat)

        Show
        Judy Guglielmin added a comment - requires jsf jar and icefaces-3.3.0_P02 libs (not compat)
        Judy Guglielmin made changes -
        Field Original Value New Value
        Attachment Case13062Example.zip [ 17514 ]
        Ken Fyten made changes -
        Issue Type Bug [ 1 ] Improvement [ 4 ]
        Ken Fyten made changes -
        Fix Version/s EE-4.0.0.GA [ 11171 ]
        Fix Version/s EE-3.3.0.GA_P03 [ 11572 ]
        Ken Fyten made changes -
        Assignee Arturo Zambrano [ artzambrano ]
        Assignee Priority P2 [ 10011 ]
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #43829 Tue Dec 16 13:28:15 MST 2014 art.zambrano ICE-10320 fix to convert component value at the point where it is evaluated when rendering script
        Files Changed
        Commit graph MODIFY /icefaces4/trunk/icefaces/ace/component/src/org/icefaces/ace/component/autocompleteentry/AutoCompleteEntryRenderer.java
        Hide
        Arturo Zambrano added a comment -

        Committed fix to convert component value at the point where it is evaluated when rendering script, at revision 43828 to the 3.3 EE maintenance branch and at revision 43829 to the 4.0 trunk.

        Show
        Arturo Zambrano added a comment - Committed fix to convert component value at the point where it is evaluated when rendering script, at revision 43828 to the 3.3 EE maintenance branch and at revision 43829 to the 4.0 trunk.
        Arturo Zambrano made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Liana Munroe made changes -
        Assignee Arturo Zambrano [ artzambrano ] Judy Guglielmin [ judy.guglielmin ]
        Hide
        Judy Guglielmin added a comment -

        further testing shows no exceptions for conversion

        Show
        Judy Guglielmin added a comment - further testing shows no exceptions for conversion
        Judy Guglielmin made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Ken Fyten made changes -
        Resolution Fixed [ 1 ]
        Status Closed [ 6 ] Reopened [ 4 ]
        Ken Fyten made changes -
        Status Reopened [ 4 ] Resolved [ 5 ]
        Fix Version/s 4.1 [ 11375 ]
        Resolution Fixed [ 1 ]
        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved: