Hi, We have a TextField whose object value we'd like to populate from a Cookie using CookieValuePersister. Things work fine (persister.save and .load) when the input is added to the form at Form's construction time. However, in cases when the input's added to the form using addOrReplace during form's onBeforeRender, the cookie value is not applied to the input.
That appears to be the case because in Page.renderPage() setFormComponentValuesFromCookies() is called *before *prepareForRender() (which ultimately calls onBeforeRender()). So, is the bottom line that CookieValuePersister currently cannot be used when input's added via addOrReplace? If so, seems like it'd be easy to add if there was a componentAdded callback on Form: if(componentAdded.isPersistent()) { this.getPersister().load(componentAdded); }