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
bharat004.is091.3910779915252478E12bharat004.is091.3910779915252478E12 

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

Vinita_SFDCVinita_SFDC
Hello,

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:

Refer: http://www.salesforce.com/us/developer/docs/pages/Content/pages_controller_methods.htm


bharat004.is091.3910779915252478E12bharat004.is091.3910779915252478E12
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:pageBlockButtons>
            <apex:pageBlockSection columns="1">
                <Apex:pageBlockSectionItem >
                    <apex:outputLabel >Enter the username :</apex:outputLabel>
                    <apex:inputText id="s1" value="{!userName}" />
                </Apex:pageBlockSectionItem>
                <apex:pageBlockSectionItem >
                    <apex:outputLabel >Password :</apex:outputLabel>
                    <apex:inputSecret id="s2" value="{!password}" />
                </apex:pageBlockSectionItem>
                <apex:pageBlockSectionItem >
                    <apex:outputLabel >Oauth URL</apex:outputLabel>
                    <apex:inputText id="s3" value="{!auth}" />
                </apex:pageBlockSectionItem>
            </apex:pageBlockSection>
        </apex:pageBlock>

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.
Vinita_SFDCVinita_SFDC
Hello,

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

http://wiki.developerforce.com/page/Authenticating_Users_on_Force.com_Sites