You need to sign in to do that
Don't have an account?
Kevin Jackson 11
Why are my variables not being called
I cannot figure out what I am doing wrong here. This was working before.
MY VF Page
My Controller
The VF page does not show any of the variables.
Any help is appreciated. Where is the bug?
MY VF Page
<apex:page Controller="TestP" showHeader="false"> <apex:pageBlock><apex:pageBlockSection> <apex:form> Email given: {!cemail} Email Returned: {!IdentifyUser.email} Name: {!IdentifyUser.name} </apex:form> </apex:pageBlockSection> </apex:pageBlock> </apex:page>
My Controller
public class TestP { Public string cemail {get;set;} Public Contact IdentifyUser {get;set;} Public Contact x {get;set;} // IDENTIFY USER BASED ON EMAIL ADDRESS Public Contact getIdentifyUser(){ cemail='kevin@caberu.be'; Contact x = [SELECT Id, firstname, email, name FROM Contact WHERE email = :cemail LIMIT 1]; Return x; } }
The VF page does not show any of the variables.
Any help is appreciated. Where is the bug?
However, for the changes in SObject values to be retained, you need to save the values before rerendering (and call it using a command button or some other means). Your code will look like this
All Answers
Try the following code.
VF Page APEX Code Let me know if this helps.
Thanks.
However, for the changes in SObject values to be retained, you need to save the values before rerendering (and call it using a command button or some other means). Your code will look like this