You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by su2 <sh...@pexsupply.com> on 2009/07/31 22:01:19 UTC
getParameter of radio button in .java
Hi All,
I want to have the parameter value of radio button (I have two radio buttons
with Yes and No in Form Widget)
------------------------------------------------------------------------------------------
<field name="yourAnswer">
<radio>
<option key="Yes"/>
<option key="No"/>
</radio>
</field>
------------------------------------------------------------------------------------------
In .java file I tried
String yourAnswer = (String) request.getParameter("yourAnswer");
request.setAttribute("yourAnswer",yourAnswer);
and on screen
<container><label text="yourAnswer: ${parameters.yourAnswer}"/></container>
But it gives me no value.
Thanks for the help in advance.
--
View this message in context: http://www.nabble.com/getParameter-of-radio-button-in-.java-tp24762275p24762275.html
Sent from the OFBiz - User mailing list archive at Nabble.com.