This content has been marked as final.
Show 1 reply
-
1. Re: Injecting/Outjecting Primitive Types
pmuir Jan 10, 2008 5:05 AM (in response to toni)You need to bind it to a property
<f:view> <h:form> <h:outputText value="List All"/> <h:selectBooleanCheckbox value="#{linkSectionAction.showallentries}"/> <h:commandButton type="submit" value="Save" action="#{StatefullTestBean.save}"/> </h:form> </f:view>
Name("linkSectionAction") @Stateful public class StatefullTestBean implements StatefullTtestBeanInterface { private boolean showallentries; //getters and setters public String save() { // IWould like to access the boolean value, but I can't inject/outject it. } }