user2182326
user2182326

Reputation: 77

checkboxlist preselected values struts2

i read some tutorials and other questions, but my checkboxlist is just not "checked".

My checkboxlist contains keyword objects. they are stores in an publication.

<s:checkboxlist list="keywords"  value="publication.keyword.keyID" listKey="keyID" listTitle="name" listValue="name" key="publication.keyword.keyID"/>

and here is where they get selected

<s:checkboxlist list="keywords"  listKey="keyID" listTitle="name" listValue="name" key="publication.keyword.keyID"/>

If i step through it with my debugger I am able to fill the keyword field in the action.

So whats wrong :( ?

Upvotes: 1

Views: 398

Answers (1)

Ravindra HV
Ravindra HV

Reputation: 2608

Have you looked here ?

Also as per this source the values are comma separated.

Perhaps an iterator and plain checkbox would be a better approach. Then you can use fieldValue attribute.

Upvotes: 1

Related Questions