ICEfaces
  1. ICEfaces
  2. ICE-4151

Graphic Image when attached to a blob creates an error in the Visual Web JSF design environment

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.8RC2, 1.8
    • Component/s: Tool Integrations
    • Labels:
      None
    • Environment:
      Netbeans 6.5 with the ICEFaces plugin developed in the visual web JSF design environment

      Description

      I have created a visual web JSF page and am using the ICEFaces plugin. My project stores jpeg images as blobs in a database and I'm connecting a graphic image object to the blob column. In this case the value of the object is #(Map.friendtolocationsviewDataProvider.value['photo']}. I have also inserted a graphic image object into a data table which is used to select the current row in the database. Those objects are using a value of #{currentRow['photo']}.

      This configuration is working as expected at runtime but at design time it's throwing the following exception:

      java.lang.ClassCastException: [B
      at com.icesoft.faces.component.ext.renderkit.dt.renderer.ImageRenderer.processSrcAttribute(ImageRenderer.java:89)
      at com.icesoft.faces.component.ext.renderkit.dt.renderer.ImageRenderer.encodeBegin(ImageRenderer.java:59)
      at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:788)
      at com.icesoft.faces.component.ext.renderkit.dt.renderer.TableRenderer.encodeRecursive(TableRenderer.java:788)
      at com.icesoft.faces.component.ext.renderkit.dt.renderer.TableRenderer.encodeChildren(TableRenderer.java:718)
      at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:812)
      at org.netbeans.modules.visualweb.insync.faces.FacesPageUnit.renderBean(FacesPageUnit.java:1304)
      at org.netbeans.modules.visualweb.insync.faces.FacesPageUnit.renderNode(FacesPageUnit.java:1549)
      at org.netbeans.modules.visualweb.insync.faces.FacesPageUnit.renderBean(FacesPageUnit.java:1337)
      at org.netbeans.modules.visualweb.insync.faces.FacesPageUnit.renderNode(FacesPageUnit.java:1549)
      at org.netbeans.modules.visualweb.insync.faces.FacesPageUnit.renderNode(FacesPageUnit.java:1563)
      at org.netbeans.modules.visualweb.insync.faces.FacesPageUnit.renderNode(FacesPageUnit.java:1563)
      at org.netbeans.modules.visualweb.insync.faces.FacesPageUnit.getFacesRenderTree(FacesPageUnit.java:1105)
      at org.netbeans.modules.visualweb.insync.faces.FacesPageUnit.renderHtml(FacesPageUnit.java:1675)
      at org.netbeans.modules.visualweb.insync.faces.FacesPageUnit.renderHtml(FacesPageUnit.java:1628)
      at org.netbeans.modules.visualweb.insync.models.FacesModel.getHtmlDomFragment(FacesModel.java:1614)
      at org.netbeans.modules.visualweb.insync.models.FacesModel.findHtmlBody(FacesModel.java:1638)
      at org.netbeans.modules.visualweb.insync.models.FacesModel.getHtmlBody(FacesModel.java:1626)
      at org.netbeans.modules.visualweb.designer.jsf.JsfForm.getHtmlBody(JsfForm.java:1755)
      at org.netbeans.modules.visualweb.designer.jsf.JsfForm.getHtmlBody(JsfForm.java:1745)
      at org.netbeans.modules.visualweb.designer.jsf.DomProviderImpl.getHtmlBody(DomProviderImpl.java:119)
      at org.netbeans.modules.visualweb.designer.WebForm.getHtmlBody(WebForm.java:937)
      at org.netbeans.modules.visualweb.designer.DesignerPane.paintComponent(DesignerPane.java:268)
      at javax.swing.JComponent.paint(JComponent.java:1006)
      at javax.swing.JComponent.paintChildren(JComponent.java:843)
      at javax.swing.JComponent.paint(JComponent.java:1015)
      at javax.swing.JViewport.paint(JViewport.java:728)
      at javax.swing.JComponent._paintImmediately(JComponent.java:4890)
      at javax.swing.JComponent.paintImmediately(JComponent.java:4676)
      at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:477)
      at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:114)
      at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
      at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
      at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:104)
      at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:269)
      at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184)
      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176)
      at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)

        Issue Links

          Activity

          Eric Marsh created issue -
          Frank Ye made changes -
          Field Original Value New Value
          Assignee Frank Ye [ frank.ye ]
          Frank Ye made changes -
          Link This issue blocks ICE-3581 [ ICE-3581 ]
          Frank Ye made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Fix Version/s 1.8 [ 10161 ]
          Resolution Fixed [ 1 ]
          Ken Fyten made changes -
          Fix Version/s 1.8RC2 [ 10163 ]
          Fix Version/s 1.8 [ 10161 ]
          Ken Fyten made changes -
          Fix Version/s 1.8 [ 10161 ]
          Ken Fyten made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Assignee Frank Ye [ frank.ye ]

            People

            • Assignee:
              Unassigned
              Reporter:
              Eric Marsh
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: