You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Nitin Khekare <ni...@gmail.com> on 2012/02/21 06:52:32 UTC
Getting ArrayIndexOutOfBoundsException on JBoss 6.1 for trinidad
table component
Hi
I am getting ArrayIndexOutOfBoundsException on JBoss 6.1 for trinidad table
component.
The scenario is like, I am using same table component on two different pages
with the backing bean in session scope and the table has binding attribute
in xhtml page. The first page is getting rendered fine, but when second page
starts rendering the exception comes. And the reason for exception is the
column count is getting increased, and it increases in multiple of actual
column number. If I remover binding for the jsf page, then everything works
fine.
I am using JBoss 6.1.0, JSF 1.2 and trinidad components.
The same thing is working fine in JBoss 4.2.3.
Can anybody help me in this?
Thanks
--
View this message in context: http://old.nabble.com/Getting-ArrayIndexOutOfBoundsException-on-JBoss-6.1-for-trinidad-table-component-tp33361827p33361827.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.
Re: Getting ArrayIndexOutOfBoundsException on JBoss 6.1 for trinidad
table component
Posted by Scott O'Bryan <da...@gmail.com>.
I understand, but the UIComponents are neither serializable nor are
they threadsafe. Binding an object to anything greater then the
"request" scope will be problematic. Does everything work if you
change the scope to request? You might also want to consider binding
the backing bean to the viewScope.
On Tue 21 Feb 2012 08:24:25 PM MST, Nitin Khekare wrote:
>
> Thanks For your reply.
>
> The reason I have kept the bean in session scope and using binding is, I am
> using the same table on different screens and I want to maintain the
> selections and other things performed on the table across the screens.
>
>
> Scott O'Bryan wrote:
>>
>> Your binding should never be session scoped.
>>
>> On Mon 20 Feb 2012 10:52:32 PM MST, Nitin Khekare wrote:
>>>
>>> Hi
>>>
>>> I am getting ArrayIndexOutOfBoundsException on JBoss 6.1 for trinidad
>>> table
>>> component.
>>>
>>> The scenario is like, I am using same table component on two different
>>> pages
>>> with the backing bean in session scope and the table has binding
>>> attribute
>>> in xhtml page. The first page is getting rendered fine, but when second
>>> page
>>> starts rendering the exception comes. And the reason for exception is the
>>> column count is getting increased, and it increases in multiple of actual
>>> column number. If I remover binding for the jsf page, then everything
>>> works
>>> fine.
>>>
>>> I am using JBoss 6.1.0, JSF 1.2 and trinidad components.
>>> The same thing is working fine in JBoss 4.2.3.
>>>
>>> Can anybody help me in this?
>>>
>>> Thanks
>>
>>
>
Re: Getting ArrayIndexOutOfBoundsException on JBoss 6.1 for
trinidad table component
Posted by Nitin Khekare <ni...@gmail.com>.
Thanks For your reply.
The reason I have kept the bean in session scope and using binding is, I am
using the same table on different screens and I want to maintain the
selections and other things performed on the table across the screens.
Scott O'Bryan wrote:
>
> Your binding should never be session scoped.
>
> On Mon 20 Feb 2012 10:52:32 PM MST, Nitin Khekare wrote:
>>
>> Hi
>>
>> I am getting ArrayIndexOutOfBoundsException on JBoss 6.1 for trinidad
>> table
>> component.
>>
>> The scenario is like, I am using same table component on two different
>> pages
>> with the backing bean in session scope and the table has binding
>> attribute
>> in xhtml page. The first page is getting rendered fine, but when second
>> page
>> starts rendering the exception comes. And the reason for exception is the
>> column count is getting increased, and it increases in multiple of actual
>> column number. If I remover binding for the jsf page, then everything
>> works
>> fine.
>>
>> I am using JBoss 6.1.0, JSF 1.2 and trinidad components.
>> The same thing is working fine in JBoss 4.2.3.
>>
>> Can anybody help me in this?
>>
>> Thanks
>
>
--
View this message in context: http://old.nabble.com/Getting-ArrayIndexOutOfBoundsException-on-JBoss-6.1-for-trinidad-table-component-tp33361827p33368591.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.
Re: Getting ArrayIndexOutOfBoundsException on JBoss 6.1 for trinidad
table component
Posted by Scott O'Bryan <da...@gmail.com>.
Your binding should never be session scoped.
On Mon 20 Feb 2012 10:52:32 PM MST, Nitin Khekare wrote:
>
> Hi
>
> I am getting ArrayIndexOutOfBoundsException on JBoss 6.1 for trinidad table
> component.
>
> The scenario is like, I am using same table component on two different pages
> with the backing bean in session scope and the table has binding attribute
> in xhtml page. The first page is getting rendered fine, but when second page
> starts rendering the exception comes. And the reason for exception is the
> column count is getting increased, and it increases in multiple of actual
> column number. If I remover binding for the jsf page, then everything works
> fine.
>
> I am using JBoss 6.1.0, JSF 1.2 and trinidad components.
> The same thing is working fine in JBoss 4.2.3.
>
> Can anybody help me in this?
>
> Thanks