01: /*
02: * Copyright 2004 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.EditableValueHolder;
19: import javax.faces.event.ValueChangeListener;
20:
21: /**
22: * @author Manfred Geiler (latest modification by $Author: baranda $)
23: * @version $Revision: 467972 $ $Date: 2006-10-26 14:04:43 +0200 (Do, 26 Okt 2006) $
24: */
25: public class ValueChangeListenerTag extends
26: GenericListenerTag<EditableValueHolder, ValueChangeListener> {
27: private static final long serialVersionUID = 2155190261951046892L;
28:
29: public ValueChangeListenerTag() {
30: super (EditableValueHolder.class);
31: }
32:
33: protected void addListener(EditableValueHolder editableValueHolder,
34: ValueChangeListener valueChangeListener) {
35: editableValueHolder.addValueChangeListener(valueChangeListener);
36: }
37: }
|