Hi,
I have a radio button in my application which on click calls a new JSP page inside DIV tag of the same JSP. Now before calling that JSP Page i want to perform some functionality . So i placed a commandlink on radio like this -
<h:commandLink action="#{controller.deleteData}">
<h:selectOneRadio id="licenseType" layout="lineDirection" value="#{controller.licenseType}" onclick="javascript:getServerInfo();">
<f:selectItem itemValue="#{dataTableItem}"/>
</h:selectOneRadio>
</h:commandLink>
What I am looking for is that when a user clicks on Radio, first a Java method named deleteData() is called and then onclick() event of Radio is processed which loads a new JSP Page inside DIV tag beneath the radio button.
But what happens is that as i click on Radio, command link takes precedence and refreshes the page.
Is it possible for commanlink to just call the method and don't refresh or reload the page ????
Plz assist with some code example