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
mh@reedmh@reed 

Write data to component on load

I've written a component that I want to write data to from the page controller constructor.  So,  just to make that clear,  not the component constructor...

 

However,  when my page loads and I attempt to feed data to the component I get a System.NullPointerException: Attempt to de-reference a null object error.  If I feed the data through an on-click event,  there's no problem.

 

So,  it looks like the component has not been loaded by the time the constructor runs.  Is there an event during the load process I can capture and piggy-back my code into?