1/*2 * Licensed to the Apache Software Foundation (ASF) under one3 * or more contributor license agreements. See the NOTICE file4 * distributed with this work for additional information5 * regarding copyright ownership. The ASF licenses this file6 * to you under the Apache License, Version 2.0 (the7 * "License"); you may not use this file except in compliance8 * with the License. You may obtain a copy of the License at9 *10 * http://www.apache.org/licenses/LICENSE-2.011 *12 * Unless required by applicable law or agreed to in writing,13 * software distributed under the License is distributed on an14 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY15 * KIND, either express or implied. See the License for the16 * specific language governing permissions and limitations17 * under the License.18 */19package org.apache.myfaces.tomahawk.application;
2021import javax.faces.component.UIComponent;
22import javax.faces.event.ComponentSystemEvent;
23import javax.faces.event.FacesListener;
24import javax.faces.event.SystemEventListener;
2526/**27 * This event is triggered after PreRenderViewEvent but before 28 * ViewHandler.render, to give the chance to component to add 29 * resources to the current view before render occur.30 * 31 * <p>The component resources to be added are supposed to be transient, so32 * each time before the view will be rendered, this event will be published33 * and the resources will be on the page.</p>34 * 35 * <p>This event should be propagated only for the "real" component tree, that36 * means for a datatable component it should to traverse all rows.</p>37 * 38 * @since 1.1.1039 */40publicclassPreRenderViewAddResourceEventextends ComponentSystemEvent
41 {
4243/**44 * 45 */46privatestaticfinallong serialVersionUID = 3534476922995054263L;
4748publicPreRenderViewAddResourceEvent(UIComponent component)
49 {
50super(component);
51 }
5253 @Override
54publicboolean isAppropriateListener(FacesListener listener)
55 {
56return listener instanceof SystemEventListener;
57 }
58 }