[richfaces-issues] [JBoss JIRA] Created: (RF-11078) javax.faces.FacesException: Error send image

Alessandro Arrigo (JIRA) jira-events at lists.jboss.org
Mon Jun 20 12:02:23 EDT 2011


javax.faces.FacesException: Error send image
--------------------------------------------

                 Key: RF-11078
                 URL: https://issues.jboss.org/browse/RF-11078
             Project: RichFaces
          Issue Type: Bug
      Security Level: Public (Everyone can see)
          Components: component-tree
    Affects Versions: 3.3.3.Final
         Environment: firefox , chrome , ie
            Reporter: Alessandro Arrigo


I have this errore when i used ie 7.6
java.lang.ArrayIndexOutOfBoundsException: Array index out of range: 0
	at org.ajax4jsf.util.Zipper.unzip(Zipper.java:30)
	at org.richfaces.renderkit.html.images.TreeImageBase$TreeImageData.<init>(TreeImageBase.java:109)
	at org.richfaces.renderkit.html.images.TreeImageBase.getTreeImageData(TreeImageBase.java:94)
	at org.richfaces.renderkit.html.images.TreeLineNodeImage.paint(TreeLineNodeImage.java:47)
	at org.ajax4jsf.resource.Java2Dresource.getImage(Java2Dresource.java:116)
	at org.ajax4jsf.resource.Java2Dresource.send(Java2Dresource.java:89)

My code is it:

<rich:tree id="treeGaranzie" switchType="client"
			adviseNodeOpened="#{definizioneProdotto.isNodeOpenedGaranzie}"
			rowKeyVar="index">
			<rich:treeNodesAdaptor id="sezioneTreeAdaptor" var="sezione"
				nodes="#{definizioneProdotto.beneCorrente.istanzaBene.sezioni}">
				<rich:treeNode id="sezioneTreeNode">
					<h:outputText value="#{sezione.descrizione}" />
					<a4j:support event="onexpand" ajaxSingle="true">
						<f:setPropertyActionListener
							value="${ext:treeRowKeyToIndex(index)}"
							target="#{definizioneProdotto.currentNodeIndex}" />
						<f:actionListener
							binding="#{definizioneProdotto.actionListenerExpand}" />
					</a4j:support>
					<a4j:support event="oncollapse" ajaxSingle="true">
						<f:setPropertyActionListener
							value="${ext:treeRowKeyToIndex(index)}"
							target="#{definizioneProdotto.currentNodeIndex}" />
						<f:actionListener
							binding="#{definizioneProdotto.actionListenerCollapse}" />
					</a4j:support>
				</rich:treeNode>
				<rich:treeNodesAdaptor id="unitTreeAdaptor" var="unit" nodes="#{sezione.units}">
					<rich:treeNode id="unitTreeNode" iconLeaf="/images/Blank.png">
						<h:panelGrid columns="2" style="margin-right:0px;">
							<h:panelGroup
								style="width:300px; display:block; text-align:left;">
								<h:outputText value="#{unit.descrizione}"
									id="descrizioneGaranzia">
									<rich:toolTip for="descrizioneGaranzia">#{unit.descrizioneEstesa}</rich:toolTip>
								</h:outputText>
							</h:panelGroup>
							<h:panelGroup style="width:70px; display:block; text-align:left;">
								<h:selectBooleanCheckbox id="garanzia#{unit.codice}"
									value="#{unit.selezionata}" disabled="#{!unit.abilitata}">
									<a4j:support ajaxSingle="true" id="selectUnit" event="onclick"
										disableDefault="true" action="processSelezioneUnit"
										reRender="treeGaranzie" status="commonStatus">
										<f:param name="codiceSezione" value="#{sezione.codice}" />
										<f:param name="codiceUnit" value="#{unit.codice}" />
										<f:param name="pacchetto" value="#{unit.pacchetto}" />
									</a4j:support>
								</h:selectBooleanCheckbox>
								<a4j:commandLink action="addGaranzieNext"
									rendered="#{unit.abilitata and unit.istanziabile and unit.multiIstanziabile}">
									<f:param name="codiceBene"
										value="#{definizioneProdotto.beneCorrente.istanzaBene.codice}" />
									<f:param name="codiceSezione" value="#{sezione.codice}" />
									<f:param name="codiceUnit" value="#{unit.codice}" />
									<f:param name="pacchetto" value="#{unit.pacchetto}" />
									<h:graphicImage style="border:0;"
										title="#{pf.aggiungiGaranzia}" url="/images/Add.png"
										width="16px" height="16px" />
								</a4j:commandLink>
							</h:panelGroup>
						</h:panelGrid>
					</rich:treeNode>
				</rich:treeNodesAdaptor>
			</rich:treeNodesAdaptor>
		</rich:tree>

--------------- END -------------
This error is caused when i click on selectBooleanCheckbox but only when i used ie 7.6 meanwhile i used ie 8 or another browser this error not appear

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the richfaces-issues mailing list