JSF : Error in h:selectBooleanCheckBox

OK here is the story...

I am trying to give the shortest of my code where I have trouble with.

I have a jsf page that contains the following snippet....

<c:forEach var="row" items="#{edPage.cRecords}" varStatus="nextRow">
    <td style="text-align: center;">

          <h:selectBooleanCheckbox  class="eCheckBox"
                         onclick="processServerSide(2);" > </h:selectBooleanCheckbox>

The backer bean is working well. The problem is in the line


At the start this works great and I can see the checked/unchked boxes work great.

I also have several other buttons and tabs in my page. For example a "Previous" button. After the above page is
displayed, and then I click the "Previous" button or any other button or tab for that matter I get the folloing exception:

14:51:00,446 WARNING [javax.enterprise.resource.webcontainer.jsf.lifecycle]
(http-localhost/ For input string: "get":
java.lang.NumberFormatException: For input string: "get"
) [rt.jar:1.7.0_55]
      at java.lang.Integer.parseInt(Integer.java:492) [rt.jar:1.7.0_55]
      at java.lang.Integer.parseInt(Integer.java:527) [rt.jar:1.7.0_55]
      at javax.el.ListELResolver.toInteger(ListELResolver.java:407)

I do not understand what it is trying to tell me by :
java.lang.NumberFormatException: For input string: "get"

Note : If I remove the line:


The error is not coming (but of course it will not be the functionality I want).

My backer bean has the following... (again very shortened for this questions purpose)

@ManagedBean( name="edPage")
public class EDPage {

private String pageName =  "EPage";

private List<CrRecords> cRecords;

private List<Boolean> checkedList;

public void init() {
    //cRecords are instantiated from Database
    //checkedList is instantiated here and set to true or false based on cRecords

                /** The above two lines work Great **/

//Getters and Setters
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

The error means that this line

> edPage.checkedList.get(nextRow.index)

returns the value "get" at some point. So the problem is that you insert wrong data in the list.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.