01: /*
02: * Copyright 2006 The Apache Software Foundation.
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
10: * Unless required by applicable law or agreed to in writing, software
11: * distributed under the License is distributed on an "AS IS" BASIS,
12: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13: * See the License for the specific language governing permissions and
14: * limitations under the License.
15: */
16: package org.apache.myfaces.taglib.core;
17:
18: import javax.faces.component.ActionSource;
19: import javax.faces.event.ActionListener;
20:
21: /**
22: * @author Manfred Geiler (latest modification by $Author: baranda $)
23: * @version $Revision: 467970 $ $Date: 2006-10-26 14:02:03 +0200 (Do, 26 Okt 2006) $
24: */
25: public class ActionListenerTag extends
26: GenericListenerTag<ActionSource, ActionListener> {
27: private static final long serialVersionUID = -2021978765020549175L;
28:
29: public ActionListenerTag() {
30: super (ActionSource.class);
31: }
32:
33: protected void addListener(ActionSource actionSource,
34: ActionListener actionListener) {
35: actionSource.addActionListener(actionListener);
36: }
37: }
|