This content has been marked as final.
Show 1 reply
-
1. Re: How to get selected value from combobox?
snaker May 27, 2011 5:05 AM (in response to er.viveksrivastava)<h:selectOneMenu style="margin-right:200px;" id="fileFormat1" name="opttwo2" onchange="changeFormat()" value="#{country.value}">
and in bean Country you must create the variable "value"
private String value; with his getter and setter
and with <a4j:support ajaxSingle="true" action="#{country.check}" event="onchange" reRender="fileTable">
</a4j:support>
you can use the variable "value" inside function "check"
Is this you want?