论坛

主页 » Liferay Portal » English » 3. Development

组合视图 统一视图 树状图
讨论主题 [ 上一个 | 下一个 ]
toggle
sasmita swain
Index out of bound exception
2013年3月3日 下午9:39
答复

sasmita swain

等级: Regular Member

帖子: 171

加入日期: 2012年2月24日

最近的帖子

Hi

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}" />
</td>
<td>
<aui:input inlineLabel="right" name="gender" type="radio" value="Female" label="basicinfo.female" checked="${basicInformations.get(0).getGender().equalsIgnoreCase('Female')?true:false}" />
</td>

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

Thanks

Sasmita
Sampsa Sohlman
RE: Index out of bound exception
2013年3月4日 上午3:48
答复

Sampsa Sohlman

LIFERAY STAFF

等级: Regular Member

帖子: 217

加入日期: 2007年9月27日

最近的帖子

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.