looks like the index is large than your number of selectItems

can you post some more infos ?

(or did you try valuePassThru="true" on the selectOnechoice ?)

On 10/18/07, Darren McEntee <[EMAIL PROTECTED]> wrote:
> Hi,
>
> We're using Trinidad v1.0.1. We seem to be getting an issue with an 
> IndexOutOfBoundsException on tr:selectOneChoice dropdowns.
> We have two dropdowns, of which the second dropdown is populated (from DB) 
> from the choice on the first dropdown.
>
> What seems to be happening is that every so often, we get this 
> IndexOutOfBoundsException error on a selection.
> For example we select the first option from dropdown 1, which populates 10 
> values in dropdown 2. If we go back and select a different option in dropdown 
> 1, which populates 4 values in dropdown 2 it causes this error. Its difficult 
> to reproduce the error as it occurs sporadically, and not everytime.
>
> The error is attached below. Does anyone else ever get this in their log 
> output?
> Is it a known bug in Trinidad? We're using Trinidad 1.0.1, with Sun App 
> Server 8.2
>
> Any info would be appreciated.
> Thanks,
> Darren.
>
> Error:
>
> [#|2007-10-17T18:52:35.031+0100|SEVERE|sun-appserver-ee8.2|javax.enterprise.system.container.web|_ThreadID=27;|StandardWrapperValve[Faces
>  Servlet]: Servlet.service() for servlet Faces Servlet threw exception
> java.lang.IndexOutOfBoundsException: SelectOne submittedValue's index 11 is 
> out of bounds. It should be between 0 and 3
>             at 
> org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.SimpleSelectOneRenderer.__getIndex(SimpleSelectOneRenderer.java:399)
>             at 
> org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.SimpleSelectOneRenderer._getSelectedIndex(SimpleSelectOneRenderer.java:466)
>             at 
> org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.SimpleSelectOneRenderer.encodeAllAsElement(SimpleSelectOneRenderer.java:261)
>             at 
> org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.FormElementRenderer.encodeAll(FormElementRenderer.java:109)
>             at 
> org.apache.myfaces.trinidad.render.CoreRenderer.delegateRenderer(CoreRenderer.java:318)
>             at 
> org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.InputLabelAndMessageRenderer.renderFieldCellContents(InputLabelAndMessageRenderer.java:142)
>             at 
> org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.LabelAndMessageRenderer.encodeAll(LabelAndMessageRenderer.java:194)
>             at 
> org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.InputLabelAndMessageRenderer.encodeAll(InputLabelAndMessageRenderer.java:120)
>             at 
> org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:208)
>             at 
> org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:694)
>             at 
> org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:287)
>             at 
> org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.ColumnRenderer.renderKids(ColumnRenderer.java:151)
>             at 
> org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.ColumnRenderer._renderKids(ColumnRenderer.java:168)
>             at 
> org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.ColumnRenderer._renderTD(ColumnRenderer.java:330)
>             at 
> org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.ColumnRenderer._renderDataMode(ColumnRenderer.java:241)
>
> P Please consider the environment before printing this email
> _________________________________________________________
>
> 1. The information contained in this E-mail, including any files transmitted 
> with it, is confidential and may be legally privileged. This E-mail is 
> intended only for the personal attention of the stated addressee(s). Any 
> access to this E-mail, including any files transmitted with it, by any other 
> person is unauthorised. If you are not an addressee, you must not disclose, 
> copy, circulate or in any other way use or rely on the information contained 
> in this E-mail or any files transmitted with it. Such unauthorised use may be 
> unlawful. If you have received this E-mail in error, please inform the sender 
> immediately and delete it and all copies from your system. You may not 
> forward this E-mail without the permission of the sender.
>
> 2. The views expressed in this E-mail are those of the author, and do not 
> necessarily represent the views of AMT-SYBEX. Internet communications are not 
> secure and AMT-SYBEX cannot, therefore, accept legal responsibility for the 
> contents of this message nor for any damage caused by viruses.
>
> AMT-SYBEX Limited is a UK company, registration number GB03036807 at address 
> The Spirella Building, Bridge Road, Letchworth, SG6 4ET.
> AMT-SYBEX (NI) Limited is a UK company, registration number NI024104 at 
> address Edgewater Office Park, Edgewater Rd, Belfast, BT3 9JQ.
> For more information on the AMT-SYBEX Group visit http://www.amt-sybex.com
> _________________________________________________________
>
>


-- 
Matthias Wessendorf

further stuff:
blog: http://matthiaswessendorf.wordpress.com/
mail: matzew-at-apache-dot-org

Reply via email to