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.
| }
| }
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118557#4118557
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118557
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user