Pavitra Subramaniam wrote:
I also noticed the following comment in the inner class,
FormElementRenderer$AutoSubmitEvent,
/**
* Dummy class purely to get subforms to recognize that
* an event has occurred
*/
static private final class AutoSubmitEvent extends FacesEvent
{
...
}
Don't really know much about subforms, but would not queue-ing the
event cause subforms to not PPR-ed? I doubt it, and I can test this
usecase but thought I'd check.
Hmmm, I'm not sure the subform is even ppr-able, I don't think they
render any markup.
However subforms decide whether they are the 'submitted' subform based
on queued events, take a look at UIXSubformTemplate. Almost all events
are queued in the apply request values phase, even if they aren't
delivered until a later phase. An exception to this is the
valueChangeEvent, which isn't queued until the validate phase. So maybe
we're triggering the autosubmit event so that the subform sets itself as
the submitted subform during the apply request values phase.
Gab