Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
sasmita swain
Index out of bound exception
March 3, 2013 9:39 PM

sasmita swain

Rank: Regular Member

Posts: 185

Join Date: February 24, 2012

Recent Posts


I am working on LR6.1..i have two radio buttons..when i am clicking on one radio button it should save in database and it is retreive ata time..

my code is:

<aui:input inlineLabel="right" name="gender" type="radio" value="Male" label="basicinfo.male" checked="${basicInformations.get(0).getGender().equalsIgnoreCase('Male')?true:false}" />
<aui:input inlineLabel="right" name="gender" type="radio" value="Female" label="basicinfo.female" checked="${basicInformations.get(0).getGender().equalsIgnoreCase('Female')?true:false}" />

i am getting error like

05:35:59,681 ERROR [render_portlet_jsp:154] javax.el.ELException: java.lang.IndexOutOfBoundsException: Index: 0

for non user it is showing temporarily unavailable


Sampsa Sohlman
RE: Index out of bound exception
March 4, 2013 3:48 AM

Sampsa Sohlman


Rank: Regular Member

Posts: 227

Join Date: September 27, 2007

Recent Posts

Hi Sasmita,

At your code basicInformations does not any have values inside. That's why you are getting that kind of error. It is empty array. Try to debug from there.

Participate in the State of Liferay Community 2017. Help the community and even win some prizes!