when we use apex:param inside an apex:actionFunction component as given below
<apex:page controller="testCon">
<apex:outputText value="Clicked? {!state}" id="showstate" />
<apex:outputPanel onclick="methodOneInJavascript('Yes!')" styleClass="btn">
Click Me
</apex:outputPanel>
<apex:form>
<apex:actionFunction action="{!methodOne}" name="methodOneInJavascript" rerender="showstate">
<apex:param name="firstParam" assignTo="{!state}" value="" />
</apex:actionFunction>
</apex:form>
public class testCon {
public void setState(String n) {
state = n;
}
public String getState() {
return state;
}
public PageReference methodOne() {
return null;
}
private String state = 'no';
}
How will be the request parameter firstParam sent to the controller when an Ajax request happens? Is it via query string parameter or in the body of the request (as in POST request) ?