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

cant create task vf page
hi all
i want to create task visualforece page but get the bellow error
Could not resolve the entity from <apex:inputField> value binding '{!task.subject}'. inputField can only be used with SObject fields.
same things worked with account.
my code is as bellow please help me out.
pleas help me its urgent in my project
i want to create task visualforece page but get the bellow error
Could not resolve the entity from <apex:inputField> value binding '{!task.subject}'. inputField can only be used with SObject fields.
same things worked with account.
my code is as bellow please help me out.
Code:
//VF page logic <apex:page controller="Task"> <apex:form > <apex:pageBlock title="Task" mode="edit"> <apex:pageBlockButtons > <apex:commandButton action="{!save}" value="save"/> </apex:pageBlockButtons> <apex:pageBlockSection title="Task Information"> <apex:inputField value="{!account.name}"/> <apex:inputfield value="{!task.subject}"/> </apex:pageBlockSection> </apex:pageBlock> </apex:form> </apex:page> //task controller public class task { Task task; Account account; public Task gettask() { if (task == null) task = new Task(); return task; } public Account getaccount() { if (account == null) account = new Account(); return account; } public PageReference save() { return null; } }
pleas help me its urgent in my project
I'm also working on a Task VF page. I got it to work but the styling isn't perfect. Fill in your contact details on my site and I'll let you know when the page is done.
i got the solution.
thanks Doug Chasman.