1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
|
17 | |
|
18 | |
|
19 | |
package org.apache.myfaces.shared.renderkit.html; |
20 | |
|
21 | |
import java.io.IOException; |
22 | |
|
23 | |
import javax.faces.component.UIComponent; |
24 | |
import javax.faces.component.UIViewRoot; |
25 | |
import javax.faces.context.ResponseWriter; |
26 | |
|
27 | 0 | public final class CommonPropertyUtils |
28 | |
{ |
29 | |
public static long getCommonPropertiesMarked(UIComponent component) |
30 | |
{ |
31 | 0 | Long commonProperties = (Long) component.getAttributes().get(CommonPropertyConstants.COMMON_PROPERTIES_MARKED); |
32 | |
|
33 | 0 | if (commonProperties == null) |
34 | |
{ |
35 | 0 | commonProperties = 0L; |
36 | |
} |
37 | |
|
38 | 0 | return commonProperties; |
39 | |
} |
40 | |
|
41 | |
public static boolean isIdRenderingNecessary(UIComponent component) |
42 | |
{ |
43 | 0 | return component.getId() != null && !component.getId().startsWith(UIViewRoot.UNIQUE_ID_PREFIX); |
44 | |
} |
45 | |
|
46 | |
public static void renderUniversalProperties(ResponseWriter writer, |
47 | |
long commonPropertiesMarked, UIComponent component) |
48 | |
throws IOException |
49 | |
{ |
50 | 0 | if ((commonPropertiesMarked & CommonPropertyConstants.DIR_PROP) != 0) |
51 | |
{ |
52 | 0 | HtmlRendererUtils.renderHTMLStringAttribute(writer, component, |
53 | |
HTML.DIR_ATTR, HTML.DIR_ATTR); |
54 | |
} |
55 | 0 | if ((commonPropertiesMarked & CommonPropertyConstants.LANG_PROP) != 0) |
56 | |
{ |
57 | 0 | HtmlRendererUtils.renderHTMLStringAttribute(writer, component, |
58 | |
HTML.LANG_ATTR, HTML.LANG_ATTR); |
59 | |
} |
60 | 0 | if ((commonPropertiesMarked & CommonPropertyConstants.TITLE_PROP) != 0) |
61 | |
{ |
62 | 0 | HtmlRendererUtils.renderHTMLStringAttribute(writer, component, |
63 | |
HTML.TITLE_ATTR, HTML.TITLE_ATTR); |
64 | |
} |
65 | 0 | if ((commonPropertiesMarked & CommonPropertyConstants.ROLE_PROP) != 0) |
66 | |
{ |
67 | 0 | HtmlRendererUtils.renderHTMLStringAttribute(writer, component, |
68 | |
HTML.ROLE_ATTR, HTML.ROLE_ATTR); |
69 | |
} |
70 | 0 | } |
71 | |
|
72 | |
public static void renderUniversalPropertiesWithoutTitle(ResponseWriter writer, |
73 | |
long commonPropertiesMarked, UIComponent component) |
74 | |
throws IOException |
75 | |
{ |
76 | 0 | if ((commonPropertiesMarked & CommonPropertyConstants.DIR_PROP) != 0) |
77 | |
{ |
78 | 0 | HtmlRendererUtils.renderHTMLStringAttribute(writer, component, |
79 | |
HTML.DIR_ATTR, HTML.DIR_ATTR); |
80 | |
} |
81 | 0 | if ((commonPropertiesMarked & CommonPropertyConstants.LANG_PROP) != 0) |
82 | |
{ |
83 | 0 | HtmlRendererUtils.renderHTMLStringAttribute(writer, component, |
84 | |
HTML.LANG_ATTR, HTML.LANG_ATTR); |
85 | |
} |
86 | 0 | if ((commonPropertiesMarked & CommonPropertyConstants.ROLE_PROP) != 0) |
87 | |
{ |
88 | 0 | HtmlRendererUtils.renderHTMLStringAttribute(writer, component, |
89 | |
HTML.ROLE_ATTR, HTML.ROLE_ATTR); |
90 | |
} |
91 | 0 | } |
92 | |
|
93 | |
public static void renderStyleProperties(ResponseWriter writer, |
94 | |
long commonPropertiesMarked, UIComponent component) |
95 | |
throws IOException |
96 | |
{ |
97 | 0 | if ((commonPropertiesMarked & CommonPropertyConstants.STYLE_PROP) != 0) |
98 | |
{ |
99 | 0 | HtmlRendererUtils.renderHTMLStringAttribute(writer, component, |
100 | |
HTML.STYLE_ATTR, HTML.STYLE_ATTR); |
101 | |
} |
102 | 0 | if ((commonPropertiesMarked & CommonPropertyConstants.STYLECLASS_PROP) != 0) |
103 | |
{ |
104 | 0 | HtmlRendererUtils.renderHTMLStringAttribute(writer, component, |
105 | |
HTML.STYLE_CLASS_ATTR, HTML.CLASS_ATTR); |
106 | |
} |
107 | 0 | } |
108 | |
|
109 | |
public static void renderStyleClassProperty(ResponseWriter writer, |
110 | |
long commonPropertiesMarked, UIComponent component) |
111 | |
throws IOException |
112 | |
{ |
113 | 0 | if ((commonPropertiesMarked & CommonPropertyConstants.STYLECLASS_PROP) != 0) |
114 | |
{ |
115 | 0 | HtmlRendererUtils.renderHTMLStringAttribute(writer, component, |
116 | |
HTML.STYLE_CLASS_ATTR, HTML.CLASS_ATTR); |
117 | |
} |
118 | 0 | } |
119 | |
|
120 | |
public static void renderEventProperties(ResponseWriter writer, |
121 | |
long commonPropertiesMarked, UIComponent component) |
122 | |
throws IOException |
123 | |
{ |
124 | 0 | if ((commonPropertiesMarked & CommonPropertyConstants.ONCLICK_PROP) != 0) |
125 | |
{ |
126 | 0 | HtmlRendererUtils.renderHTMLStringAttribute(writer, component, |
127 | |
HTML.ONCLICK_ATTR, HTML.ONCLICK_ATTR); |
128 | |
} |
129 | 0 | renderEventPropertiesWithoutOnclick(writer, commonPropertiesMarked, component); |
130 | 0 | } |
131 | |
|
132 | |
public static void renderEventPropertiesWithoutOnclick(ResponseWriter writer, |
133 | |
long commonPropertiesMarked, UIComponent component) |
134 | |
throws IOException |
135 | |
{ |
136 | 0 | if ((commonPropertiesMarked & CommonPropertyConstants.ONDBLCLICK_PROP) != 0) |
137 | |
{ |
138 | 0 | HtmlRendererUtils.renderHTMLStringAttribute(writer, component, |
139 | |
HTML.ONDBLCLICK_ATTR, HTML.ONDBLCLICK_ATTR); |
140 | |
} |
141 | 0 | if ((commonPropertiesMarked & CommonPropertyConstants.ONMOUSEDOWN_PROP) != 0) |
142 | |
{ |
143 | 0 | HtmlRendererUtils.renderHTMLStringAttribute(writer, component, |
144 | |
HTML.ONMOUSEDOWN_ATTR, HTML.ONMOUSEDOWN_ATTR); |
145 | |
} |
146 | 0 | if ((commonPropertiesMarked & CommonPropertyConstants.ONMOUSEUP_PROP) != 0) |
147 | |
{ |
148 | 0 | HtmlRendererUtils.renderHTMLStringAttribute(writer, component, |
149 | |
HTML.ONMOUSEUP_ATTR, HTML.ONMOUSEUP_ATTR); |
150 | |
} |
151 | 0 | if ((commonPropertiesMarked & CommonPropertyConstants.ONMOUSEOVER_PROP) != 0) |
152 | |
{ |
153 | 0 | HtmlRendererUtils.renderHTMLStringAttribute(writer, component, |
154 | |
HTML.ONMOUSEOVER_ATTR, HTML.ONMOUSEOVER_ATTR); |
155 | |
} |
156 | 0 | if ((commonPropertiesMarked & CommonPropertyConstants.ONMOUSEMOVE_PROP) != 0) |
157 | |
{ |
158 | 0 | HtmlRendererUtils.renderHTMLStringAttribute(writer, component, |
159 | |
HTML.ONMOUSEMOVE_ATTR, HTML.ONMOUSEMOVE_ATTR); |
160 | |
} |
161 | 0 | if ((commonPropertiesMarked & CommonPropertyConstants.ONMOUSEOUT_PROP) != 0) |
162 | |
{ |
163 | 0 | HtmlRendererUtils.renderHTMLStringAttribute(writer, component, |
164 | |
HTML.ONMOUSEOUT_ATTR, HTML.ONMOUSEOUT_ATTR); |
165 | |
} |
166 | 0 | if ((commonPropertiesMarked & CommonPropertyConstants.ONKEYPRESS_PROP) != 0) |
167 | |
{ |
168 | 0 | HtmlRendererUtils.renderHTMLStringAttribute(writer, component, |
169 | |
HTML.ONKEYPRESS_ATTR, HTML.ONKEYPRESS_ATTR); |
170 | |
} |
171 | 0 | if ((commonPropertiesMarked & CommonPropertyConstants.ONKEYDOWN_PROP) != 0) |
172 | |
{ |
173 | 0 | HtmlRendererUtils.renderHTMLStringAttribute(writer, component, |
174 | |
HTML.ONKEYDOWN_ATTR, HTML.ONKEYDOWN_ATTR); |
175 | |
} |
176 | 0 | if ((commonPropertiesMarked & CommonPropertyConstants.ONKEYUP_PROP) != 0) |
177 | |
{ |
178 | 0 | HtmlRendererUtils.renderHTMLStringAttribute(writer, component, |
179 | |
HTML.ONKEYUP_ATTR, HTML.ONKEYUP_ATTR); |
180 | |
} |
181 | 0 | } |
182 | |
|
183 | |
|
184 | |
public static void renderChangeSelectEventProperties(ResponseWriter writer, |
185 | |
long commonPropertiesMarked, UIComponent component) |
186 | |
throws IOException |
187 | |
{ |
188 | 0 | if ((commonPropertiesMarked & CommonPropertyConstants.ONCHANGE_PROP) != 0) |
189 | |
{ |
190 | 0 | HtmlRendererUtils.renderHTMLStringAttribute(writer, component, |
191 | |
HTML.ONCHANGE_ATTR, HTML.ONCHANGE_ATTR); |
192 | |
} |
193 | 0 | if ((commonPropertiesMarked & CommonPropertyConstants.ONSELECT_PROP) != 0) |
194 | |
{ |
195 | 0 | HtmlRendererUtils.renderHTMLStringAttribute(writer, component, |
196 | |
HTML.ONSELECT_ATTR, HTML.ONSELECT_ATTR); |
197 | |
} |
198 | 0 | } |
199 | |
|
200 | |
public static void renderFocusBlurEventProperties(ResponseWriter writer, |
201 | |
long commonPropertiesMarked, UIComponent component) |
202 | |
throws IOException |
203 | |
{ |
204 | 0 | if ((commonPropertiesMarked & CommonPropertyConstants.ONFOCUS_PROP) != 0) |
205 | |
{ |
206 | 0 | HtmlRendererUtils.renderHTMLStringAttribute(writer, component, |
207 | |
HTML.ONFOCUS_ATTR, HTML.ONFOCUS_ATTR); |
208 | |
} |
209 | 0 | if ((commonPropertiesMarked & CommonPropertyConstants.ONBLUR_PROP) != 0) |
210 | |
{ |
211 | 0 | HtmlRendererUtils.renderHTMLStringAttribute(writer, component, |
212 | |
HTML.ONBLUR_ATTR, HTML.ONBLUR_ATTR); |
213 | |
} |
214 | 0 | } |
215 | |
|
216 | |
public static void renderFieldEventPropertiesWithoutOnchangeAndOnselect(ResponseWriter writer, |
217 | |
long commonPropertiesMarked, UIComponent component) throws IOException |
218 | |
{ |
219 | 0 | if ((commonPropertiesMarked & CommonPropertyConstants.ONFOCUS_PROP) != 0) |
220 | |
{ |
221 | 0 | HtmlRendererUtils.renderHTMLStringAttribute(writer, component, |
222 | |
HTML.ONFOCUS_ATTR, HTML.ONFOCUS_ATTR); |
223 | |
} |
224 | 0 | if ((commonPropertiesMarked & CommonPropertyConstants.ONBLUR_PROP) != 0) |
225 | |
{ |
226 | 0 | HtmlRendererUtils.renderHTMLStringAttribute(writer, component, |
227 | |
HTML.ONBLUR_ATTR, HTML.ONBLUR_ATTR); |
228 | |
} |
229 | 0 | } |
230 | |
|
231 | |
public static void renderFieldEventPropertiesWithoutOnchange(ResponseWriter writer, |
232 | |
long commonPropertiesMarked, UIComponent component) throws IOException |
233 | |
{ |
234 | 0 | if ((commonPropertiesMarked & CommonPropertyConstants.ONFOCUS_PROP) != 0) |
235 | |
{ |
236 | 0 | HtmlRendererUtils.renderHTMLStringAttribute(writer, component, |
237 | |
HTML.ONFOCUS_ATTR, HTML.ONFOCUS_ATTR); |
238 | |
} |
239 | 0 | if ((commonPropertiesMarked & CommonPropertyConstants.ONBLUR_PROP) != 0) |
240 | |
{ |
241 | 0 | HtmlRendererUtils.renderHTMLStringAttribute(writer, component, |
242 | |
HTML.ONBLUR_ATTR, HTML.ONBLUR_ATTR); |
243 | |
} |
244 | 0 | if ((commonPropertiesMarked & CommonPropertyConstants.ONSELECT_PROP) != 0) |
245 | |
{ |
246 | 0 | HtmlRendererUtils.renderHTMLStringAttribute(writer, component, |
247 | |
HTML.ONSELECT_ATTR, HTML.ONSELECT_ATTR); |
248 | |
} |
249 | 0 | } |
250 | |
|
251 | |
public static void renderChangeEventProperty(ResponseWriter writer, |
252 | |
long commonPropertiesMarked, UIComponent component) throws IOException |
253 | |
{ |
254 | 0 | if ((commonPropertiesMarked & CommonPropertyConstants.ONCHANGE_PROP) != 0) |
255 | |
{ |
256 | 0 | HtmlRendererUtils.renderHTMLStringAttribute(writer, component, |
257 | |
HTML.ONCHANGE_ATTR, HTML.ONCHANGE_ATTR); |
258 | |
} |
259 | 0 | } |
260 | |
|
261 | |
public static void renderAccesskeyTabindexProperties(ResponseWriter writer, |
262 | |
long commonPropertiesMarked, UIComponent component) |
263 | |
throws IOException |
264 | |
{ |
265 | 0 | if ((commonPropertiesMarked & CommonPropertyConstants.ACCESSKEY_PROP) != 0) |
266 | |
{ |
267 | 0 | HtmlRendererUtils.renderHTMLStringAttribute(writer, component, |
268 | |
HTML.ACCESSKEY_ATTR, HTML.ACCESSKEY_ATTR); |
269 | |
} |
270 | 0 | if ((commonPropertiesMarked & CommonPropertyConstants.TABINDEX_PROP) != 0) |
271 | |
{ |
272 | 0 | HtmlRendererUtils.renderHTMLStringAttribute(writer, component, |
273 | |
HTML.TABINDEX_ATTR, HTML.TABINDEX_ATTR); |
274 | |
} |
275 | 0 | } |
276 | |
|
277 | |
public static void renderAltAlignProperties(ResponseWriter writer, |
278 | |
long commonPropertiesMarked, UIComponent component) |
279 | |
throws IOException |
280 | |
{ |
281 | 0 | if ((commonPropertiesMarked & CommonPropertyConstants.ALIGN_PROP) != 0) |
282 | |
{ |
283 | 0 | HtmlRendererUtils.renderHTMLStringAttribute(writer, component, |
284 | |
HTML.ALIGN_ATTR, HTML.ALIGN_ATTR); |
285 | |
} |
286 | 0 | if ((commonPropertiesMarked & CommonPropertyConstants.ALT_PROP) != 0) |
287 | |
{ |
288 | 0 | HtmlRendererUtils.renderHTMLStringAttribute(writer, component, |
289 | |
HTML.ALT_ATTR, HTML.ALT_ATTR); |
290 | |
} |
291 | 0 | } |
292 | |
|
293 | |
public static void renderInputProperties(ResponseWriter writer, |
294 | |
long commonPropertiesMarked, UIComponent component) |
295 | |
throws IOException |
296 | |
{ |
297 | 0 | if ((commonPropertiesMarked & CommonPropertyConstants.ALIGN_PROP) != 0) |
298 | |
{ |
299 | 0 | HtmlRendererUtils.renderHTMLAttribute(writer, component, |
300 | |
HTML.ALIGN_ATTR, HTML.ALIGN_ATTR); |
301 | |
} |
302 | 0 | if ((commonPropertiesMarked & CommonPropertyConstants.ALT_PROP) != 0) |
303 | |
{ |
304 | 0 | HtmlRendererUtils.renderHTMLStringAttribute(writer, component, |
305 | |
HTML.ALT_ATTR, HTML.ALT_ATTR); |
306 | |
} |
307 | 0 | if ((commonPropertiesMarked & CommonPropertyConstants.CHECKED_PROP) != 0) |
308 | |
{ |
309 | 0 | HtmlRendererUtils.renderHTMLAttribute(writer, component, |
310 | |
HTML.CHECKED_ATTR, HTML.CHECKED_ATTR); |
311 | |
} |
312 | 0 | if ((commonPropertiesMarked & CommonPropertyConstants.MAXLENGTH_PROP) != 0) |
313 | |
{ |
314 | 0 | HtmlRendererUtils.renderHTMLAttribute(writer, component, |
315 | |
HTML.MAXLENGTH_ATTR, HTML.MAXLENGTH_ATTR); |
316 | |
} |
317 | 0 | if ((commonPropertiesMarked & CommonPropertyConstants.READONLY_PROP) != 0) |
318 | |
{ |
319 | 0 | HtmlRendererUtils.renderHTMLAttribute(writer, component, |
320 | |
HTML.READONLY_ATTR, HTML.READONLY_ATTR); |
321 | |
} |
322 | 0 | if ((commonPropertiesMarked & CommonPropertyConstants.SIZE_PROP) != 0) |
323 | |
{ |
324 | 0 | HtmlRendererUtils.renderHTMLAttribute(writer, component, |
325 | |
HTML.SIZE_ATTR, HTML.SIZE_ATTR); |
326 | |
} |
327 | 0 | } |
328 | |
|
329 | |
public static void renderAnchorProperties(ResponseWriter writer, |
330 | |
long commonPropertiesMarked, UIComponent component) |
331 | |
throws IOException |
332 | |
{ |
333 | 0 | renderAccesskeyTabindexProperties(writer, commonPropertiesMarked, component); |
334 | 0 | if ((commonPropertiesMarked & CommonPropertyConstants.CHARSET_PROP) != 0) |
335 | |
{ |
336 | 0 | HtmlRendererUtils.renderHTMLStringAttribute(writer, component, |
337 | |
HTML.CHARSET_ATTR, HTML.CHARSET_ATTR); |
338 | |
} |
339 | 0 | if ((commonPropertiesMarked & CommonPropertyConstants.COORDS_PROP) != 0) |
340 | |
{ |
341 | 0 | HtmlRendererUtils.renderHTMLStringAttribute(writer, component, |
342 | |
HTML.COORDS_ATTR, HTML.COORDS_ATTR); |
343 | |
} |
344 | 0 | if ((commonPropertiesMarked & CommonPropertyConstants.HREFLANG_PROP) != 0) |
345 | |
{ |
346 | 0 | HtmlRendererUtils.renderHTMLStringAttribute(writer, component, |
347 | |
HTML.HREFLANG_ATTR, HTML.HREFLANG_ATTR); |
348 | |
} |
349 | 0 | if ((commonPropertiesMarked & CommonPropertyConstants.REL_PROP) != 0) |
350 | |
{ |
351 | 0 | HtmlRendererUtils.renderHTMLStringAttribute(writer, component, |
352 | |
HTML.REL_ATTR, HTML.REL_ATTR); |
353 | |
} |
354 | 0 | if ((commonPropertiesMarked & CommonPropertyConstants.REV_PROP) != 0) |
355 | |
{ |
356 | 0 | HtmlRendererUtils.renderHTMLStringAttribute(writer, component, |
357 | |
HTML.REV_ATTR, HTML.REV_ATTR); |
358 | |
} |
359 | 0 | if ((commonPropertiesMarked & CommonPropertyConstants.SHAPE_PROP) != 0) |
360 | |
{ |
361 | 0 | HtmlRendererUtils.renderHTMLStringAttribute(writer, component, |
362 | |
HTML.SHAPE_ATTR, HTML.SHAPE_ATTR); |
363 | |
} |
364 | 0 | if ((commonPropertiesMarked & CommonPropertyConstants.TARGET_PROP) != 0) |
365 | |
{ |
366 | 0 | HtmlRendererUtils.renderHTMLStringAttribute(writer, component, |
367 | |
HTML.TARGET_ATTR, HTML.TARGET_ATTR); |
368 | |
} |
369 | 0 | if ((commonPropertiesMarked & CommonPropertyConstants.TYPE_PROP) != 0) |
370 | |
{ |
371 | 0 | HtmlRendererUtils.renderHTMLStringAttribute(writer, component, |
372 | |
HTML.TYPE_ATTR, HTML.TYPE_ATTR); |
373 | |
} |
374 | 0 | } |
375 | |
|
376 | |
public static void renderCommonPassthroughPropertiesWithoutEvents(ResponseWriter writer, |
377 | |
long commonPropertiesMarked, UIComponent component) |
378 | |
throws IOException |
379 | |
{ |
380 | 0 | renderStyleProperties(writer, commonPropertiesMarked, component); |
381 | 0 | renderUniversalProperties(writer, commonPropertiesMarked, component); |
382 | 0 | } |
383 | |
|
384 | |
public static void renderCommonPassthroughProperties(ResponseWriter writer, |
385 | |
long commonPropertiesMarked, UIComponent component) |
386 | |
throws IOException |
387 | |
{ |
388 | 0 | renderStyleProperties(writer, commonPropertiesMarked, component); |
389 | 0 | renderUniversalProperties(writer, commonPropertiesMarked, component); |
390 | 0 | renderEventProperties(writer, commonPropertiesMarked, component); |
391 | 0 | } |
392 | |
|
393 | |
|
394 | |
public static void renderCommonFieldEventProperties(ResponseWriter writer, |
395 | |
long commonPropertiesMarked, UIComponent component) |
396 | |
throws IOException |
397 | |
{ |
398 | 0 | renderChangeSelectEventProperties(writer, commonPropertiesMarked, component); |
399 | 0 | renderFocusBlurEventProperties(writer, commonPropertiesMarked, component); |
400 | 0 | } |
401 | |
|
402 | |
public static void renderCommonFieldPassthroughPropertiesWithoutDisabled(ResponseWriter writer, |
403 | |
long commonPropertiesMarked, UIComponent component) |
404 | |
throws IOException |
405 | |
{ |
406 | 0 | renderCommonPassthroughProperties(writer, commonPropertiesMarked, component); |
407 | 0 | renderAccesskeyTabindexProperties(writer, commonPropertiesMarked, component); |
408 | 0 | renderCommonFieldEventProperties(writer, commonPropertiesMarked, component); |
409 | 0 | } |
410 | |
|
411 | |
public static void renderCommonFieldPassthroughPropertiesWithoutDisabledAndEvents(ResponseWriter writer, |
412 | |
long commonPropertiesMarked, UIComponent component) |
413 | |
throws IOException |
414 | |
{ |
415 | 0 | renderCommonPassthroughPropertiesWithoutEvents(writer, commonPropertiesMarked, component); |
416 | 0 | renderAccesskeyTabindexProperties(writer, commonPropertiesMarked, component); |
417 | 0 | } |
418 | |
|
419 | |
public static void renderInputPassthroughPropertiesWithoutDisabled(ResponseWriter writer, |
420 | |
long commonPropertiesMarked, UIComponent component) |
421 | |
throws IOException |
422 | |
{ |
423 | 0 | renderInputProperties(writer, commonPropertiesMarked, component); |
424 | 0 | renderCommonFieldPassthroughPropertiesWithoutDisabled(writer, commonPropertiesMarked, component); |
425 | 0 | } |
426 | |
|
427 | |
public static void renderInputPassthroughPropertiesWithoutDisabledAndEvents(ResponseWriter writer, |
428 | |
long commonPropertiesMarked, UIComponent component) |
429 | |
throws IOException |
430 | |
{ |
431 | 0 | renderInputProperties(writer, commonPropertiesMarked, component); |
432 | 0 | renderCommonFieldPassthroughPropertiesWithoutDisabledAndEvents(writer, commonPropertiesMarked, component); |
433 | 0 | } |
434 | |
|
435 | |
public static void renderAnchorPassthroughProperties(ResponseWriter writer, |
436 | |
long commonPropertiesMarked, UIComponent component) |
437 | |
throws IOException |
438 | |
{ |
439 | 0 | renderAnchorProperties(writer, commonPropertiesMarked, component); |
440 | 0 | renderCommonPassthroughProperties(writer, commonPropertiesMarked, component); |
441 | 0 | renderFocusBlurEventProperties(writer, commonPropertiesMarked, component); |
442 | 0 | } |
443 | |
|
444 | |
public static void renderAnchorPassthroughPropertiesDisabled(ResponseWriter writer, |
445 | |
long commonPropertiesMarked, UIComponent component) |
446 | |
throws IOException |
447 | |
{ |
448 | 0 | renderAccesskeyTabindexProperties(writer, commonPropertiesMarked, component); |
449 | 0 | renderCommonPassthroughProperties(writer, commonPropertiesMarked, component); |
450 | 0 | renderFocusBlurEventProperties(writer, commonPropertiesMarked, component); |
451 | 0 | } |
452 | |
|
453 | |
public static void renderAnchorPassthroughPropertiesWithoutEvents(ResponseWriter writer, |
454 | |
long commonPropertiesMarked, UIComponent component) |
455 | |
throws IOException |
456 | |
{ |
457 | 0 | renderAnchorProperties(writer, commonPropertiesMarked, component); |
458 | 0 | renderStyleProperties(writer, commonPropertiesMarked, component); |
459 | 0 | renderUniversalProperties(writer, commonPropertiesMarked, component); |
460 | 0 | } |
461 | |
|
462 | |
public static void renderAnchorPassthroughPropertiesDisabledWithoutEvents(ResponseWriter writer, |
463 | |
long commonPropertiesMarked, UIComponent component) |
464 | |
throws IOException |
465 | |
{ |
466 | 0 | renderAccesskeyTabindexProperties(writer, commonPropertiesMarked, component); |
467 | 0 | renderStyleProperties(writer, commonPropertiesMarked, component); |
468 | 0 | renderUniversalProperties(writer, commonPropertiesMarked, component); |
469 | 0 | } |
470 | |
|
471 | |
public static void renderAnchorPassthroughPropertiesWithoutStyleAndEvents(ResponseWriter writer, |
472 | |
long commonPropertiesMarked, UIComponent component) |
473 | |
throws IOException |
474 | |
{ |
475 | 0 | renderAnchorProperties(writer, commonPropertiesMarked, component); |
476 | 0 | renderUniversalProperties(writer, commonPropertiesMarked, component); |
477 | 0 | } |
478 | |
|
479 | |
public static void renderAnchorPassthroughPropertiesWithoutStyle(ResponseWriter writer, |
480 | |
long commonPropertiesMarked, UIComponent component) |
481 | |
throws IOException |
482 | |
{ |
483 | 0 | renderAnchorProperties(writer, commonPropertiesMarked, component); |
484 | 0 | renderUniversalProperties(writer, commonPropertiesMarked, component); |
485 | 0 | renderEventProperties(writer, commonPropertiesMarked, component); |
486 | 0 | renderFocusBlurEventProperties(writer, commonPropertiesMarked, component); |
487 | 0 | } |
488 | |
|
489 | |
public static void renderAnchorPassthroughPropertiesWithoutOnclickAndStyle(ResponseWriter writer, |
490 | |
long commonPropertiesMarked, UIComponent component) |
491 | |
throws IOException |
492 | |
{ |
493 | 0 | renderAnchorProperties(writer, commonPropertiesMarked, component); |
494 | 0 | renderUniversalProperties(writer, commonPropertiesMarked, component); |
495 | 0 | renderEventPropertiesWithoutOnclick(writer, commonPropertiesMarked, component); |
496 | 0 | renderFocusBlurEventProperties(writer, commonPropertiesMarked, component); |
497 | 0 | } |
498 | |
|
499 | |
public static void renderButtonPassthroughPropertiesWithoutDisabledAndEvents(ResponseWriter writer, |
500 | |
long commonPropertiesMarked, UIComponent component) |
501 | |
throws IOException |
502 | |
{ |
503 | 0 | renderUniversalProperties(writer, commonPropertiesMarked, component); |
504 | 0 | renderStyleProperties(writer, commonPropertiesMarked, component); |
505 | 0 | renderAccesskeyTabindexProperties(writer, commonPropertiesMarked, component); |
506 | 0 | renderAltAlignProperties(writer, commonPropertiesMarked, component); |
507 | 0 | } |
508 | |
|
509 | |
public static void renderLabelProperties(ResponseWriter writer, |
510 | |
long commonPropertiesMarked, UIComponent component) |
511 | |
throws IOException |
512 | |
{ |
513 | 0 | renderFocusBlurEventProperties(writer, commonPropertiesMarked, component); |
514 | 0 | if ((commonPropertiesMarked & CommonPropertyConstants.ACCESSKEY_PROP) != 0) |
515 | |
{ |
516 | 0 | HtmlRendererUtils.renderHTMLStringAttribute(writer, component, |
517 | |
HTML.ACCESSKEY_ATTR, HTML.ACCESSKEY_ATTR); |
518 | |
} |
519 | 0 | } |
520 | |
|
521 | |
|
522 | |
public static void renderLabelPassthroughProperties(ResponseWriter writer, |
523 | |
long commonPropertiesMarked, UIComponent component) |
524 | |
throws IOException |
525 | |
{ |
526 | 0 | renderLabelProperties(writer, commonPropertiesMarked, component); |
527 | 0 | renderCommonPassthroughProperties(writer, commonPropertiesMarked, component); |
528 | 0 | } |
529 | |
|
530 | |
public static void renderLabelPassthroughPropertiesWithoutEvents(ResponseWriter writer, |
531 | |
long commonPropertiesMarked, UIComponent component) |
532 | |
throws IOException |
533 | |
{ |
534 | 0 | if ((commonPropertiesMarked & CommonPropertyConstants.ACCESSKEY_PROP) != 0) |
535 | |
{ |
536 | 0 | HtmlRendererUtils.renderHTMLStringAttribute(writer, component, |
537 | |
HTML.ACCESSKEY_ATTR, HTML.ACCESSKEY_ATTR); |
538 | |
} |
539 | 0 | renderCommonPassthroughPropertiesWithoutEvents(writer, commonPropertiesMarked, component); |
540 | 0 | } |
541 | |
|
542 | |
public static void renderSelectPassthroughPropertiesWithoutDisabled(ResponseWriter writer, |
543 | |
long commonPropertiesMarked, UIComponent component) |
544 | |
throws IOException |
545 | |
{ |
546 | 0 | renderCommonFieldPassthroughPropertiesWithoutDisabled(writer, commonPropertiesMarked, component); |
547 | 0 | } |
548 | |
|
549 | |
public static void renderSelectPassthroughPropertiesWithoutDisabledAndEvents(ResponseWriter writer, |
550 | |
long commonPropertiesMarked, UIComponent component) |
551 | |
throws IOException |
552 | |
{ |
553 | 0 | renderCommonFieldPassthroughPropertiesWithoutDisabledAndEvents(writer, commonPropertiesMarked, component); |
554 | 0 | } |
555 | |
} |