[jboss-user] [JBoss Tools] - UISelectOne and selectOneMenu
yasser zairi
do-not-reply at jboss.com
Thu Jul 28 15:57:32 EDT 2011
yasser zairi [http://community.jboss.org/people/yasser_z] created the discussion
"UISelectOne and selectOneMenu"
To view the discussion, visit: http://community.jboss.org/message/618222#618222
--------------------------------------------------------------
hi everyone
i'm trying to get the selected item from a selectOneMenu by using UISelectOne but it doesn't work not even does it displey an error .
PS: the selectOneMenu is populated without a problem.
---------------------------------------------------------------
<a4j:outputPanel layout="block">
<h:outputLabel value="Categorie :" />
<h:selectOneMenu id="select_cat" value="#{valeursMBean.selected}" >
<f:selectItem itemLabel="--categorie"/>
<f:selectItems value="#{valeursMBean.categories}"/>
</h:selectOneMenu>
</a4j:outputPanel>
<a4j:commandButton value="Search" reRender="table"
action="#{valeursMBean.takeSelection}" />
---------------------------------------------------------------
private UISelectOne selected=new UISelectOne();
public void takeSelection() {
System.out.println("value : "+selected.getValue());
}
---------------------------------------------------------------
but i don't get nth displayed in the Console.
any suggestions please ?
Regards
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/618222#618222]
Start a new discussion in JBoss Tools at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2128]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110728/9584d88b/attachment.html
More information about the jboss-user
mailing list