I have this MyHumbleTO which attribute is read on a JSF page. So I need to add isTheAwesomeBoolean
Method to use elsewhere. But now the page is reading that new method instead the get method, which is inappropriate. Is there a way to ignore that in page?
<h:outputText value="#{myAwesomeBean.myHumbleTO.theAwesomeBoolean ne null ?
(myAwesomeBean.myHumbleTO.theAwesomeBoolean ? 'Yes ' : 'No') : ''}" />
public class MyHumbleTO implements Serializable{
private Boolean theAwesomeBoolean;
public boolean isTheAwesomeBoolean() {
return Boolean.TRUE.equals(theAwesomeBoolean);
}
public Boolean getTheAwesomeBoolean() {
return theAwesomeBoolean;
}
}