You need to sign in to do that
Don't have an account?

Pass value of InputText field to Apex
How do I go about passing the value from an InputText field to my apex controller? I know I'm supposed to use apex:param, but I can't figure out what to specify for the value of the apex:param in order to reference my InputText field. Any help is highly appreciated.
Thanks.
P.S. Here's some sample code to illustrate what I'm trying to figure out ... what do I replace ????? with in order to reference the InputText field with the "date" ID?
<apex:page controller="test"> <apex:form> <apex:inputText id="date"/> <apex:commandButton value="button" action="{!controlleraction}"> <apex:param name="testdate" value="?????"/> </apex:commandButton> </apex:form> </apex:page>
Never mind ... I figured out I can use apex properties to get these values.
Thanks.