Skip to main content
Tweeted twitter.com/StackSalesforce/status/781744268280864768
added 60 characters in body; edited tags
Source Link
Adrian Larson
  • 151.3k
  • 38
  • 247
  • 431

How to pass value from user side or vf page side by using this type of getter setter is there any way to pass value using this type?

Here is the Code

public class simplegetset
{
    public String userinput{
        get{
            return userinput;
        }
        set{
            this.userinput = userinput;
        }
    }
}

Here is the visualforce page

<apex:page controller="simplegetset">
  <!--<apex:form>
    <apex:outputlabel value="Enter your name here"/>
       <apex:inputtext value="{!userinput}"/>          
  </apex:form>    -->
  
  <apex:form >
    <apex:outputlabel value="Enter your name here"/>
       <apex:inputtext value="{!userinput}">
           <apex:actionsupport event="onclick" rerender="display" />
       </apex:inputtext><br/>                   
    <apex:outputpanel id="display">
        <apex:outputtext value=<b>"The name entered is = {!userinput}" </b> />
    </apex:outputpanel>                   
  </apex:form>    
</apex:page>

How to pass value from user side or vf page side by using this type of getter setter is there any way to pass value using this type?

Here is the Code

public class simplegetset
{
public String userinput{
get{
return userinput;
}
set{
this.userinput = userinput;
}
}
}

Here is the visualforce page

<apex:page controller="simplegetset">
  <!--<apex:form>
    <apex:outputlabel value="Enter your name here"/>
       <apex:inputtext value="{!userinput}"/>          
  </apex:form>    -->
  
  <apex:form >
    <apex:outputlabel value="Enter your name here"/>
       <apex:inputtext value="{!userinput}">
           <apex:actionsupport event="onclick" rerender="display" />
       </apex:inputtext><br/>                   
    <apex:outputpanel id="display">
        <apex:outputtext value=<b>"The name entered is = {!userinput}" </b> />
    </apex:outputpanel>                   
  </apex:form>    
</apex:page>

How to pass value from user side or vf page side by using this type of getter setter is there any way to pass value using this type?

Here is the Code

public class simplegetset
{
    public String userinput{
        get{
            return userinput;
        }
        set{
            this.userinput = userinput;
        }
    }
}

Here is the visualforce page

<apex:page controller="simplegetset">
  <!--<apex:form>
    <apex:outputlabel value="Enter your name here"/>
       <apex:inputtext value="{!userinput}"/>          
  </apex:form>    -->
  
  <apex:form >
    <apex:outputlabel value="Enter your name here"/>
       <apex:inputtext value="{!userinput}">
           <apex:actionsupport event="onclick" rerender="display" />
       </apex:inputtext><br/>                   
    <apex:outputpanel id="display">
        <apex:outputtext value=<b>"The name entered is = {!userinput}" </b> />
    </apex:outputpanel>                   
  </apex:form>    
</apex:page>

How to pass value from user side or vf page side by using this type of getter setter is there any way to pass value using this type? 

Here is the Code

public class simplegetset { public String userinput{ get{ return userinput; } set{ this.userinput = userinput; } } }

public class simplegetset
{
public String userinput{
get{
return userinput;
}
set{
this.userinput = userinput;
}
}
}

Here is the visualforce page

<apex:page controller="simplegetset">

-->

<apex:form > <apex:outputlabel value="Enter your name here"/> <apex:inputtext value="{!userinput}"> <apex:actionsupport event="onclick" rerender="display" /> </apex:inputtext>

<apex:outputpanel id="display"> <apex:outputtext value="The name entered is = {!userinput}" /> </apex:outputpanel>
</apex:form>
</apex:page>

<apex:page controller="simplegetset">
  <!--<apex:form>
    <apex:outputlabel value="Enter your name here"/>
       <apex:inputtext value="{!userinput}"/>          
  </apex:form>    -->
  
  <apex:form >
    <apex:outputlabel value="Enter your name here"/>
       <apex:inputtext value="{!userinput}">
           <apex:actionsupport event="onclick" rerender="display" />
       </apex:inputtext><br/>                   
    <apex:outputpanel id="display">
        <apex:outputtext value=<b>"The name entered is = {!userinput}" </b> />
    </apex:outputpanel>                   
  </apex:form>    
</apex:page>

How to pass value from user side or vf page side by using this type of getter setter is there any way to pass value using this type? Here is the Code

public class simplegetset { public String userinput{ get{ return userinput; } set{ this.userinput = userinput; } } }

Here is the visualforce page

<apex:page controller="simplegetset">

-->

<apex:form > <apex:outputlabel value="Enter your name here"/> <apex:inputtext value="{!userinput}"> <apex:actionsupport event="onclick" rerender="display" /> </apex:inputtext>

<apex:outputpanel id="display"> <apex:outputtext value="The name entered is = {!userinput}" /> </apex:outputpanel>
</apex:form>
</apex:page>

How to pass value from user side or vf page side by using this type of getter setter is there any way to pass value using this type? 

Here is the Code

public class simplegetset
{
public String userinput{
get{
return userinput;
}
set{
this.userinput = userinput;
}
}
}

Here is the visualforce page

<apex:page controller="simplegetset">
  <!--<apex:form>
    <apex:outputlabel value="Enter your name here"/>
       <apex:inputtext value="{!userinput}"/>          
  </apex:form>    -->
  
  <apex:form >
    <apex:outputlabel value="Enter your name here"/>
       <apex:inputtext value="{!userinput}">
           <apex:actionsupport event="onclick" rerender="display" />
       </apex:inputtext><br/>                   
    <apex:outputpanel id="display">
        <apex:outputtext value=<b>"The name entered is = {!userinput}" </b> />
    </apex:outputpanel>                   
  </apex:form>    
</apex:page>
Source Link
Bonny
  • 367
  • 3
  • 12

Simple getter setter

How to pass value from user side or vf page side by using this type of getter setter is there any way to pass value using this type? Here is the Code

public class simplegetset { public String userinput{ get{ return userinput; } set{ this.userinput = userinput; } } }

Here is the visualforce page

<apex:page controller="simplegetset">

-->

<apex:form > <apex:outputlabel value="Enter your name here"/> <apex:inputtext value="{!userinput}"> <apex:actionsupport event="onclick" rerender="display" /> </apex:inputtext>

<apex:outputpanel id="display"> <apex:outputtext value="The name entered is = {!userinput}" /> </apex:outputpanel>
</apex:form>
</apex:page>