2009/05/20 - Apache Shale has been retired.
For more information, please explore the Attic.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 package org.apache.shale.clay.parser.builder;
22
23 import org.apache.shale.clay.parser.Node;
24
25 /***
26 * <p>
27 * Builds a {@link ElementBean} from a HTML {@link Node} where the
28 * {@link org.apache.shale.clay.parser.builder.chain.TextareaBuilderRule}
29 * handles the mapping.
30 * </p>
31 */
32 public class InputTextareaBuilder extends Builder {
33
34 /***
35 * <p>
36 * Returns the <code>jsfid</code> used to populate the {@link ElementBean}.
37 * </p>
38 *
39 * @param node markup
40 * @return jsfid
41 */
42 protected String getJsfid(Node node) {
43 return "inputTextarea";
44 }
45
46 /***
47 * <p>
48 * Returns the JSF componentType of
49 * <code>javax.faces.HtmlInputTextarea</code> used to define the
50 * {@link ElementBean} from the HTML {@link Node}.
51 * </p>
52 *
53 * @param node markup
54 * @return component type
55 */
56 protected String getComponentType(Node node) {
57 return "javax.faces.HtmlInputTextarea";
58 }
59
60 }