Java Coach - Scrum Master - Enterprise Integration Specialist
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.
Java Coach - Scrum Master - Enterprise Integration Specialist
Originally posted by Yasir Bajwa:
<h:selectOneRadio value="#{myBean.myBooleanOption">
<f:selectItem itemValue="#{true}" itemLabel="Yes" />
<f:selectItem itemValue="#{false}" itemLabel="No" />
</h:selectOneRadio>
Missing closing brace for myBean.myBooleanOption
Use just "true", "false" as item values
Java Coach - Scrum Master - Enterprise Integration Specialist
Java Coach - Scrum Master - Enterprise Integration Specialist
Originally posted by Bob Good:
Can you use a checkbox instead? GUI wise I think it is more correct for a true false selection. It will talk properly to a backing bean boolean:
Java Coach - Scrum Master - Enterprise Integration Specialist
Java Coach - Scrum Master - Enterprise Integration Specialist
Java Coach - Scrum Master - Enterprise Integration Specialist
Java Coach - Scrum Master - Enterprise Integration Specialist
Java Coach - Scrum Master - Enterprise Integration Specialist
Missing closing brace for myBean.myBooleanOption
Originally posted by Dylan Honorez:
Thanks, that helped clarifying ...
Conclusion: new SelectItem takes an 'Object value' as a parameter, but in fact never works unless the value object is a String.
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.
Java Coach - Scrum Master - Enterprise Integration Specialist
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime. |