KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > myfaces > renderkit > html > util > DummyFormResponseWriter


1 /*
2  * Copyright 2004 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
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.renderkit.html.util;
17
18 /**
19  * Myfaces extension for ResponseWriters that support the automatical rendering
20  * of a dummy form when endDocument is called.
21  * @author Manfred Geiler (latest modification by $Author: matze $)
22  * @version $Revision: 1.3 $ $Date: 2004/10/13 11:51:01 $
23  */

24 public interface DummyFormResponseWriter
25 {
26     /**
27      * Switch on/off the writing of a dummy form in endDocument.
28      * @param writeDummyForm
29      */

30     public void setWriteDummyForm(boolean writeDummyForm);
31
32     /**
33      * @return name of the dummy form, that will be rendered
34      */

35     public String JavaDoc getDummyFormName();
36
37     /**
38      * Adds a parameter that will be rendered as a hidden input within the dummy form.
39      */

40     public void addDummyFormParameter(String JavaDoc paramName);
41 }
42
Popular Tags