function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
TomSnyderTomSnyder 

apex:page attribute language does not seem to maintain on postbacks

<apex:page> attribute language does not seem to maintain on postbacks.

 

<apex:page controller="mycontroller" language="en">

This renders the dates and currency in english as expected. However once I do a call to the custom controller via a commandbutton the page now renders the dates and currencies in the locale/language of the current user?

 and the dates on the inputfields are not excepted and return the following errors:

 

Errors:

• Invalid Date

• {0}: Conversion error occurred. 

 

Anyone else aware of this issue or/and a workaround?