function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

how to call a method of parameters in visual force page.


You can not pass parameters from VF to methods in your controller, as VF can only provide action, get and set methods. Please refer following help document for better understanding  on how to call controller methods in VF:


thank you.. i have still more doubt

<apex:page controller="Xmlretrive">
    <apex:form >
        <apex:pageBlock >
            <apex:pageBlockButtons location="top">
                <apex:commandButton value="Click here to submit" action="{!submit}" reRender="output,resoutput" />
            <apex:pageBlockSection columns="1">
                <Apex:pageBlockSectionItem >
                    <apex:outputLabel >Enter the username :</apex:outputLabel>
                    <apex:inputText id="s1" value="{!userName}" />
                <apex:pageBlockSectionItem >
                    <apex:outputLabel >Password :</apex:outputLabel>
                    <apex:inputSecret id="s2" value="{!password}" />
                <apex:pageBlockSectionItem >
                    <apex:outputLabel >Oauth URL</apex:outputLabel>
                    <apex:inputText id="s3" value="{!auth}" />

when clicking submit  it should call 1 more method in apex. that should have the parameters username, password , auth. Is this possible help me with code.

Yes, it is possible. Please refer code sample provided in following wiki doc: