+ Start a Discussion

New HTML5 Apex:Input issue

I'm trying to use new Input and InputField with type attribute. I need to use the date or datetime type as follow:


<apex:input value="{!birthdayDate}" type="date" styleClass="select-box"/>

 with corresponding controller:


public Date birthdayDate {
    set {
        System.debug('birthdayDate setter: ' + value);
        birthdayDate = value;
        currentAccount.PersonBirthdate = value;


But when the user clears the field by clicking on the "x" button, the setter is not triggered and value cannot be reset.

I could use the inputField instead directly on PersonBithdate field, but I get an "Error: Invalid Date" when submitting the form.

FYI : I'm using API 29 (as requested by the Winter 14 release notes) for this files.

Thanks for your help.


Best Answer chosen by Admin (Salesforce Developers) 

You found a bug!  This will be resolved in the next release.  If desired sooner, please raise w/ your customer support rep.  Thanks for identifying.