problem with a <h:selectOneRadio [message #777560] |
Tue, 10 January 2012 17:45 |
|
I have this in the file.jsp: a simple Button and selectOneRadio.
.....
<h:commandButton immediate="true" id="redisplayCommand" type="submit"
value="Redisplay" action="#{ventaBB.agregarProducto}" />
<h:selectOneRadio id="c" layout="pageDirection" binding="#{ventaBB.radioButton}">
<f:selectItems value="#{ventaBB.productos}" />
</h:selectOneRadio>
......
This example show the selected value in a class, when you click in the button. this is the method in the Backing Bean:
......
public String agregarProducto (){
String value=(String)radioButton.getSubmittedValue();
System.out.print(value);
....
very good... but.. if the property immediate="true" in the button is removed o update to false, the String value obtained is null
how do I get the value of radioButton without using the property immediate="true"??
I need a example of this type.. thanks...
from Colombia
|
|
|
|
Powered by
FUDForum. Page generated in 0.05932 seconds