[jboss-user] [JBoss Seam] - Re: Injecting/Outjecting Primitive Types
pete.muir@jboss.org
do-not-reply at jboss.com
Thu Jan 10 05:05:46 EST 2008
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
More information about the jboss-user
mailing list