You need to sign in to do that
Don't have an account?
reshma
How to get selectlist and date values from visualforce page to controller
<apex:inputField name='journeydate' value="{!task.activityDate}"/>
How to write getters and setters for this date field to get the value in the controller
I wrote
public void setJourneydate(Date d){
System.debug(' journeydate : '+d );
}
public Date getJourneydate()
{
Date dd;
return dd;
}
<apex:selectList size='1' name='reserveclass' multiselect="true"> <apex:selectOptions value="{!options}"/> </apex:selectList>
How to write getters and setters for this date field to get the value in the controller
I wrote
public List<SelectOption> getOptions()
{
return options;
}
public List<SelectOption> getStateoptions()
{
return stateoptions;
}
which is not working.
Second part:
{
return t;
}
{
t=this.t;
}
{
return t;
}
The point of that long explanation: To useit in your controller now, you just have to reference t.activityDate.
Message Edited by jwetzler on 06-06-2008 06:45 AM
Message Edited by jwetzler on 06-06-2008 06:45 AM