I have a class which looks something like this:
public class ScoreDefinition {
protected Boolean primary;
public Boolean isPrimary() {
retu
You can use a call directly to method score.isPrimary() like this:
<c:forEach var="score" items="${scores}">
<input type="checkbox"
value="${score.isPrimary()}"
name="someName"
class="textField"/>
</c:forEach>
The is
prefix is for boolean
only, not for Boolean
.
You have 2 options:
Use boolean
instead of Boolean
.
Or, rename method isPrimary()
to getPrimary()
.
As to JAXB blunder of autogenerating the wrong method, you need to upgrade to at least JAXB 2.1.13 or to add -B-enableIntrospection
to the wsimport call as per this JAXB documentation.