* @param context The FacesContext
* @param component The UIComponent
*/
public void encode(FacesContext context, UIComponent component) throws IOException {
dispatchHandlers(context, BEFORE_LOOP,
new BeforeLoopEvent((UIComponent) component));
while (shouldContinue(component)) {
super.encode(context, component);
}
dispatchHandlers(context, AFTER_LOOP,
new AfterLoopEvent((UIComponent) component));