01: /*
02: * This file is part of the WfMOpen project.
03: * Copyright (C) 2001-2005 Danet GmbH (www.danet.de), BU BTS.
04: * All rights reserved.
05: *
06: * This program is free software; you can redistribute it and/or modify
07: * it under the terms of the GNU General Public License as published by
08: * the Free Software Foundation; either version 2 of the License, or
09: * (at your option) any later version.
10: *
11: * This program is distributed in the hope that it will be useful,
12: * but WITHOUT ANY WARRANTY; without even the implied warranty of
13: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14: * GNU General Public License for more details.
15: *
16: * You should have received a copy of the GNU General Public License
17: * along with this program; if not, write to the Free Software
18: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19: *
20: * $Id: HtmlDataScrollerRenderer.java,v 1.3 2006/09/29 12:32:09 drmlipp Exp $
21: *
22: * $Log: HtmlDataScrollerRenderer.java,v $
23: * Revision 1.3 2006/09/29 12:32:09 drmlipp
24: * Consistently using WfMOpen as projct name now.
25: *
26: * Revision 1.2 2006/09/05 15:58:11 drmlipp
27: * Removed unnecessary import.
28: *
29: * Revision 1.1 2006/09/05 15:54:35 drmlipp
30: * Fixed data scroller problems.
31: *
32: */
33: package de.danet.an.util.jsf.taglib;
34:
35: import java.io.IOException;
36:
37: import javax.faces.component.UIComponent;
38: import javax.faces.context.FacesContext;
39:
40: import org.apache.myfaces.custom.datascroller.HtmlDataScroller;
41:
42: /**
43: * This class provides a fixed data scroller renderer, see Jira issue
44: * TOMAHAWK-657.
45: *
46: * @author Michael Lipp
47: *
48: */
49: public class HtmlDataScrollerRenderer extends
50: org.apache.myfaces.custom.datascroller.HtmlDataScrollerRenderer {
51:
52: public void encodeChildren(FacesContext facescontext,
53: UIComponent uicomponent) throws IOException {
54: // Do nothing. Children will be rendered by renderScroller.
55: }
56:
57: protected void renderScroller(FacesContext facesContext,
58: HtmlDataScroller scroller) throws IOException {
59: scroller.getChildren().clear();
60: super.renderScroller(facesContext, scroller);
61: }
62:
63: }
|