/
omnifaces-functions.taglib.xml
953 lines (872 loc) · 38.5 KB
/
omnifaces-functions.taglib.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright 2012 OmniFaces.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
specific language governing permissions and limitations under the License.
-->
<facelet-taglib
xmlns="http://xmlns.jcp.org/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-facelettaglibrary_2_2.xsd"
version="2.2"
>
<description>OmniFaces EL functions.</description>
<namespace>http://omnifaces.org/functions</namespace>
<short-name>of</short-name>
<!-- Strings ================================================================================================== -->
<function>
<description>
<![CDATA[
Abbreviate the given text on the given size limit with ellipsis.
]]>
</description>
<function-name>abbreviate</function-name>
<function-class>org.omnifaces.el.functions.Strings</function-class>
<function-signature>java.lang.String abbreviate(java.lang.String, int)</function-signature>
</function>
<function>
<description>
<![CDATA[
Concatenate the string representation of the given objects. This is useful when you don't know
beforehand if one of the both hands is a string or is <code>null</code>, otherwise the new EL 2.2
<code>#{bean.string1.concat(bean.string2)}</code> can just be used.
]]>
</description>
<function-name>concat</function-name>
<function-class>org.omnifaces.el.functions.Strings</function-class>
<function-signature>java.lang.String concat(java.lang.Object, java.lang.Object)</function-signature>
</function>
<function>
<description>
<![CDATA[
Capitalize the given string, i.e. uppercase the first character.
]]>
</description>
<function-name>capitalize</function-name>
<function-class>org.omnifaces.el.functions.Strings</function-class>
<function-signature>java.lang.String capitalize(java.lang.String)</function-signature>
</function>
<function>
<description>
<![CDATA[
Replace all matches of the given pattern on the given string with the given replacement.
]]>
</description>
<function-name>replaceAll</function-name>
<function-class>org.omnifaces.el.functions.Strings</function-class>
<function-signature>java.lang.String replaceAll(java.lang.String, java.lang.String, java.lang.String)</function-signature>
</function>
<function>
<description>
<![CDATA[
Returns true if the given string matches the given pattern.
]]>
</description>
<function-name>matches</function-name>
<function-class>org.omnifaces.el.functions.Strings</function-class>
<function-signature>java.lang.String matches(java.lang.String, java.lang.String)</function-signature>
</function>
<function>
<description>
<![CDATA[
URL-prettify the given string. It performs the following tasks:
<ul>
<li>Lowercase the string.
<li>Remove combining diacritical marks.
<li>Replace non-alphanumeric characters by hyphens.
</ul>
This is useful when populating links with dynamic paths obtained from user controlled variables, such
as blog titles.
]]>
</description>
<function-name>prettyURL</function-name>
<function-class>org.omnifaces.el.functions.Strings</function-class>
<function-signature>java.lang.String prettyURL(java.lang.String)</function-signature>
</function>
<function>
<description>
<![CDATA[
URL-encode the given string using UTF-8. This is useful for cases where you can't use
<code><f:param></code>.
]]>
</description>
<function-name>encodeURL</function-name>
<function-class>org.omnifaces.el.functions.Strings</function-class>
<function-signature>java.lang.String encodeURL(java.lang.String)</function-signature>
</function>
<function>
<description>
<![CDATA[
Escapes the given string according the JavaScript code rules. This escapes among others the special
characters, the whitespace, the quotes and the unicode characters. Useful whenever you want to use a
Java string variable as a JavaScript string variable.
]]>
</description>
<function-name>escapeJS</function-name>
<function-class>org.omnifaces.el.functions.Strings</function-class>
<function-signature>java.lang.String escapeJS(java.lang.String)</function-signature>
</function>
<function>
<description>
<![CDATA[
Format the given string with 1 parameter using <code>javax.text.MessageFormat</code> API.
Design notice: There are five formatX() functions, each taking 1 to 5 format parameters because EL
functions does not support varargs methods nor overloaded function names.
]]>
</description>
<function-name>format1</function-name>
<function-class>org.omnifaces.el.functions.Strings</function-class>
<function-signature>java.lang.String format1(java.lang.String, java.lang.Object)</function-signature>
</function>
<function>
<description>
<![CDATA[
Format the given string with 2 parameters using <code>javax.text.MessageFormat</code> API.
Design notice: There are five formatX() functions, each taking 1 to 5 format parameters because EL
functions does not support varargs methods nor overloaded function names.
]]>
</description>
<function-name>format2</function-name>
<function-class>org.omnifaces.el.functions.Strings</function-class>
<function-signature>java.lang.String format2(java.lang.String, java.lang.Object, java.lang.Object)</function-signature>
</function>
<function>
<description>
<![CDATA[
Format the given string with 3 parameters using <code>javax.text.MessageFormat</code> API.
Design notice: There are five formatX() functions, each taking 1 to 5 format parameters because EL
functions does not support varargs methods nor overloaded function names.
]]>
</description>
<function-name>format3</function-name>
<function-class>org.omnifaces.el.functions.Strings</function-class>
<function-signature>java.lang.String format3(java.lang.String, java.lang.Object, java.lang.Object, java.lang.Object)</function-signature>
</function>
<function>
<description>
<![CDATA[
Format the given string with 4 parameters using <code>javax.text.MessageFormat</code> API.
Design notice: There are five formatX() functions, each taking 1 to 5 format parameters because EL
functions does not support varargs methods nor overloaded function names.
]]>
</description>
<function-name>format4</function-name>
<function-class>org.omnifaces.el.functions.Strings</function-class>
<function-signature>java.lang.String format4(java.lang.String, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object)</function-signature>
</function>
<function>
<description>
<![CDATA[
Format the given string with 5 parameters using <code>javax.text.MessageFormat</code> API.
Design notice: There are five formatX() functions, each taking 1 to 5 format parameters because EL
functions does not support varargs methods nor overloaded function names.
]]>
</description>
<function-name>format5</function-name>
<function-class>org.omnifaces.el.functions.Strings</function-class>
<function-signature>java.lang.String format5(java.lang.String, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object)</function-signature>
</function>
<!-- Arrays =================================================================================================== -->
<function>
<description>
<![CDATA[
Creates and returns a dummy object array of the given size. This is useful if you want to iterate
<i>n</i> times over an <code><ui:repeat></code>, which doesn't support EL in <code>begin</code>
and <code>end</code> attributes.
]]>
</description>
<function-name>createArray</function-name>
<function-class>org.omnifaces.el.functions.Arrays</function-class>
<function-signature>java.lang.Object[] createArray(int)</function-signature>
</function>
<function>
<description>
<![CDATA[
Creates and returns an integer array which starts at the given integer and ends at the given integer, inclusive. This is
useful if you want to for example populate a <code><f:selectItems></code> which shows an integer range to
represent days and years.
]]>
</description>
<function-name>createIntegerArray</function-name>
<function-class>org.omnifaces.el.functions.Arrays</function-class>
<function-signature>java.lang.int[] createIntegerArray(int, int)</function-signature>
</function>
<function>
<description>
<![CDATA[
Returns <code>true</code> if the string representation of an item of the given array equals to the
string representation of the given item. This returns <code>false</code> if either the array or the
item is null. This is useful if you want to for example check if <code>#{paramValues.foo}</code>
contains a certain value.
]]>
</description>
<function-name>contains</function-name>
<function-class>org.omnifaces.el.functions.Arrays</function-class>
<function-signature>boolean contains(java.lang.Object[], java.lang.Object)</function-signature>
</function>
<function>
<description>
<![CDATA[
Returns a copy of the array with items in reversed order.
]]>
</description>
<function-name>reverseArray</function-name>
<function-class>org.omnifaces.el.functions.Arrays</function-class>
<function-signature>java.lang.Object[] reverseArray(java.lang.Object[])</function-signature>
</function>
<!-- Converters =============================================================================================== -->
<function>
<description>
<![CDATA[
Converts a <code>Set<E></code> to a <code>List<E></code>. Useful when you want to iterate
over a <code>Set</code> in for example <code><ui:repeat></code>.
]]>
</description>
<function-name>setToList</function-name>
<function-class>org.omnifaces.el.functions.Converters</function-class>
<function-signature>java.util.List setToList(java.util.Set)</function-signature>
</function>
<function>
<description>
<![CDATA[
Converts any iterable, like a Collection or more specifically a Set into a List so it can
be used with components like <code><ui:repeat></code> and <code><h:datatable></code>.
]]>
</description>
<function-name>iterableToList</function-name>
<function-class>org.omnifaces.el.functions.Converters</function-class>
<function-signature>java.util.List iterableToList(java.lang.Iterable)</function-signature>
</function>
<function>
<description>
<![CDATA[
Wraps any iterable, like a Collection or more specifically a Set into a DataModel so it can
be used with components like <code><ui:repeat></code> and <code><h:datatable></code>.
]]>
</description>
<function-name>iterableToModel</function-name>
<function-class>org.omnifaces.el.functions.Converters</function-class>
<function-signature>javax.faces.model.DataModel iterableToModel(java.lang.Iterable)</function-signature>
</function>
<function>
<description>
<![CDATA[
Converts a <code>Map<K, V></code> to a <code>List<Map.Entry<K, V>></code>. Useful when
you want to iterate over a <code>Map</code> in for example <code><ui:repeat></code>. Each of the
entries has the usual <code>getKey()</code> and <code>getValue()</code> methods.
]]>
</description>
<function-name>mapToList</function-name>
<function-class>org.omnifaces.el.functions.Converters</function-class>
<function-signature>java.util.List mapToList(java.util.Map)</function-signature>
</function>
<function>
<description>
<![CDATA[
Joins all elements of the given array to a single string, separated by the given separator.
]]>
</description>
<function-name>joinArray</function-name>
<function-class>org.omnifaces.el.functions.Converters</function-class>
<function-signature>java.lang.String joinArray(java.lang.Object, java.lang.String)</function-signature>
</function>
<function>
<description>
<![CDATA[
Joins all elements of the given collection to a single string, separated by the given separator.
]]>
</description>
<function-name>joinCollection</function-name>
<function-class>org.omnifaces.el.functions.Converters</function-class>
<function-signature>java.lang.String joinCollection(java.util.Collection, java.lang.String)</function-signature>
</function>
<function>
<description>
<![CDATA[
Joins all elements of the given map to a single string, separated by the given key-value pair separator and
entry separator.
]]>
</description>
<function-name>joinMap</function-name>
<function-class>org.omnifaces.el.functions.Converters</function-class>
<function-signature>java.lang.String joinMap(java.util.Map, java.lang.String, java.lang.String)</function-signature>
</function>
<function>
<description>
<![CDATA[
Splits the given array into an array of subarrays of the given fragment size.
]]>
</description>
<function-name>splitArray</function-name>
<function-class>org.omnifaces.el.functions.Converters</function-class>
<function-signature>java.lang.Object[] splitArray(java.lang.Object, int)</function-signature>
</function>
<function>
<description>
<![CDATA[
Splits the given list into a list of sublists of the given fragment size.
]]>
</description>
<function-name>splitList</function-name>
<function-class>org.omnifaces.el.functions.Converters</function-class>
<function-signature>java.util.List splitList(java.util.List, int)</function-signature>
</function>
<function>
<description>
<![CDATA[
Encode given object as JSON.
]]>
</description>
<function-name>toJson</function-name>
<function-class>org.omnifaces.el.functions.Converters</function-class>
<function-signature>java.lang.String toJson(java.lang.Object)</function-signature>
</function>
<function>
<description>
<![CDATA[
Print the stack trace of the given exception.
]]>
</description>
<function-name>printStackTrace</function-name>
<function-class>org.omnifaces.el.functions.Converters</function-class>
<function-signature>java.lang.String printStackTrace(java.lang.Throwable)</function-signature>
</function>
<!-- Dates ==================================================================================================== -->
<function>
<description>
<![CDATA[
Format the given date in the given pattern and system default timezone. This is useful when you want to
format dates in for example the <code>title</code> attribute of an UI component, or the
<code>itemLabel</code> attribute of select item, or wherever you can't use the
<code><f:convertDateTime></code> tag.
]]>
</description>
<function-name>formatDate</function-name>
<function-class>org.omnifaces.el.functions.Dates</function-class>
<function-signature>java.lang.String formatDate(java.util.Date, java.lang.String)</function-signature>
</function>
<function>
<description>
<![CDATA[
Format the given date in the given pattern with given timezone. This is useful when you want to format
dates in for example the <code>title</code> attribute of an UI component, or the <code>itemLabel</code>
attribute of select item, or wherever you can't use the <code><f:convertDateTime></code> tag.
]]>
</description>
<function-name>formatDateWithTimezone</function-name>
<function-class>org.omnifaces.el.functions.Dates</function-class>
<function-signature>java.lang.String formatDateWithTimezone(java.util.Date, java.lang.String, java.lang.Object)</function-signature>
</function>
<function>
<description>
<![CDATA[
Returns a new date instance which is a sum of the given date and the given amount of years. The years can be negative.
]]>
</description>
<function-name>addYears</function-name>
<function-class>org.omnifaces.el.functions.Dates</function-class>
<function-signature>java.util.Date addYears(java.util.Date, int)</function-signature>
</function>
<function>
<description>
<![CDATA[
Returns a new date instance which is a sum of the given date and the given amount of months. The months can be negative.
]]>
</description>
<function-name>addMonths</function-name>
<function-class>org.omnifaces.el.functions.Dates</function-class>
<function-signature>java.util.Date addMonths(java.util.Date, int)</function-signature>
</function>
<function>
<description>
<![CDATA[
Returns a new date instance which is a sum of the given date and the given amount of weeks. The weeks can be negative.
]]>
</description>
<function-name>addWeeks</function-name>
<function-class>org.omnifaces.el.functions.Dates</function-class>
<function-signature>java.util.Date addWeeks(java.util.Date, int)</function-signature>
</function>
<function>
<description>
<![CDATA[
Returns a new date instance which is a sum of the given date and the given amount of days. The days can be negative.
]]>
</description>
<function-name>addDays</function-name>
<function-class>org.omnifaces.el.functions.Dates</function-class>
<function-signature>java.util.Date addDays(java.util.Date, int)</function-signature>
</function>
<function>
<description>
<![CDATA[
Returns a new date instance which is a sum of the given date and the given amount of hours. The hours can be negative.
]]>
</description>
<function-name>addHours</function-name>
<function-class>org.omnifaces.el.functions.Dates</function-class>
<function-signature>java.util.Date addHours(java.util.Date, int)</function-signature>
</function>
<function>
<description>
<![CDATA[
Returns a new date instance which is a sum of the given date and the given amount of minutes. The minutes can be negative.
]]>
</description>
<function-name>addMinutes</function-name>
<function-class>org.omnifaces.el.functions.Dates</function-class>
<function-signature>java.util.Date addMinutes(java.util.Date, int)</function-signature>
</function>
<function>
<description>
<![CDATA[
Returns a new date instance which is a sum of the given date and the given amount of seconds. The seconds can be negative.
]]>
</description>
<function-name>addSeconds</function-name>
<function-class>org.omnifaces.el.functions.Dates</function-class>
<function-signature>java.util.Date addSeconds(java.util.Date, int)</function-signature>
</function>
<function>
<description>
<![CDATA[
Returns the amount of years between two given dates. This will be negative when the end date is before the start date.
]]>
</description>
<function-name>yearsBetween</function-name>
<function-class>org.omnifaces.el.functions.Dates</function-class>
<function-signature>int yearsBetween(java.util.Date, java.util.Date)</function-signature>
</function>
<function>
<description>
<![CDATA[
Returns the amount of months between two given dates. This will be negative when the end date is before the start date.
]]>
</description>
<function-name>monthsBetween</function-name>
<function-class>org.omnifaces.el.functions.Dates</function-class>
<function-signature>int monthsBetween(java.util.Date, java.util.Date)</function-signature>
</function>
<function>
<description>
<![CDATA[
Returns the amount of weeks between two given dates. This will be negative when the end date is before the start date.
]]>
</description>
<function-name>weeksBetween</function-name>
<function-class>org.omnifaces.el.functions.Dates</function-class>
<function-signature>int weeksBetween(java.util.Date, java.util.Date)</function-signature>
</function>
<function>
<description>
<![CDATA[
Returns the amount of days between two given dates. This will be negative when the end date is before the start date.
]]>
</description>
<function-name>daysBetween</function-name>
<function-class>org.omnifaces.el.functions.Dates</function-class>
<function-signature>int daysBetween(java.util.Date, java.util.Date)</function-signature>
</function>
<function>
<description>
<![CDATA[
Returns the amount of hours between two given dates. This will be negative when the end date is before the start date.
]]>
</description>
<function-name>hoursBetween</function-name>
<function-class>org.omnifaces.el.functions.Dates</function-class>
<function-signature>int hoursBetween(java.util.Date, java.util.Date)</function-signature>
</function>
<function>
<description>
<![CDATA[
Returns the amount of minutes between two given dates. This will be negative when the end date is before the start date.
]]>
</description>
<function-name>minutesBetween</function-name>
<function-class>org.omnifaces.el.functions.Dates</function-class>
<function-signature>int minutesBetween(java.util.Date, java.util.Date)</function-signature>
</function>
<function>
<description>
<![CDATA[
Returns the amount of seconds between two given dates. This will be negative when the end date is before the start date.
]]>
</description>
<function-name>secondsBetween</function-name>
<function-class>org.omnifaces.el.functions.Dates</function-class>
<function-signature>int secondsBetween(java.util.Date, java.util.Date)</function-signature>
</function>
<function>
<description>
<![CDATA[
Returns a mapping of month names by month numbers for the current locale. For example: "January=1", "February=2",
etc. This is useful if you want to for example populate a <code><f:selectItems></code> which shows all
months. The locale is obtained by Faces#getLocale(). The mapping is per locale stored in a local cache
to improve retrieving performance.
]]>
</description>
<function-name>getMonths</function-name>
<function-class>org.omnifaces.el.functions.Dates</function-class>
<function-signature>java.util.Map getMonths()</function-signature>
</function>
<function>
<description>
<![CDATA[
Returns a mapping of short month names by month numbers for the current locale. For example: "Jan=1", "Feb=2",
etc. This is useful if you want to for example populate a <code><f:selectItems></code> which shows all
short months. The locale is obtained by Faces#getLocale(). The mapping is per locale stored in a local
cache to improve retrieving performance.
]]>
</description>
<function-name>getShortMonths</function-name>
<function-class>org.omnifaces.el.functions.Dates</function-class>
<function-signature>java.util.Map getShortMonths()</function-signature>
</function>
<function>
<description>
<![CDATA[
Returns a mapping of day of week names in ISO 8601 order for the current locale. For example: "Monday=1", "Tuesday=2",
etc. This is useful if you want to for example populate a <code><f:selectItems></code> which shows all
days of week. The locale is obtained by Faces#getLocale(). The mapping is per locale stored in a local cache
to improve retrieving performance.
]]>
</description>
<function-name>getDaysOfWeek</function-name>
<function-class>org.omnifaces.el.functions.Dates</function-class>
<function-signature>java.util.Map getDaysOfWeek()</function-signature>
</function>
<function>
<description>
<![CDATA[
Returns a mapping of short day of week names in ISO 8601 order for the current locale. For example: "Mon=1", "Tue=2",
etc. This is useful if you want to for example populate a <code><f:selectItems></code> which shows all
short days of week. The locale is obtained by Faces#getLocale(). The mapping is per locale stored in a local
cache to improve retrieving performance.
]]>
</description>
<function-name>getShortDaysOfWeek</function-name>
<function-class>org.omnifaces.el.functions.Dates</function-class>
<function-signature>java.util.Map getShortDaysOfWeek()</function-signature>
</function>
<function>
<description>
<![CDATA[
Returns the month name from the mapping associated with the given month number for the current locale. For
example: "1=January", "2=February", etc. The locale is obtained by Faces#getLocale().
]]>
</description>
<function-name>getMonth</function-name>
<function-class>org.omnifaces.el.functions.Dates</function-class>
<function-signature>java.lang.String getMonth(java.lang.Integer)</function-signature>
</function>
<function>
<description>
<![CDATA[
Returns the short month name from the mapping associated with the given month number for the current locale. For
example: "1=Jan", "2=Feb", etc. The locale is obtained by Faces#getLocale().
]]>
</description>
<function-name>getShortMonth</function-name>
<function-class>org.omnifaces.el.functions.Dates</function-class>
<function-signature>java.lang.String getShortMonth(java.lang.Integer)</function-signature>
</function>
<function>
<description>
<![CDATA[
Returns the day of week name from the mapping associated with the given day of week number in ISO 8601 order
(Monday first) for the current locale. For example: "1=Monday", "2=Tuesday", etc. The locale is obtained by
Faces#getLocale().
]]>
</description>
<function-name>getDayOfWeek</function-name>
<function-class>org.omnifaces.el.functions.Dates</function-class>
<function-signature>java.lang.String getDayOfWeek(java.lang.Integer)</function-signature>
</function>
<function>
<description>
<![CDATA[
Returns the short day of week name from the mapping associated with the given day of week number in ISO 8601
order (Monday first) for the current locale. For example: "1=Mon", "2=Tue", etc. The locale is obtained by
Faces#getLocale().
]]>
</description>
<function-name>getShortDayOfWeek</function-name>
<function-class>org.omnifaces.el.functions.Dates</function-class>
<function-signature>java.lang.String getShortDayOfWeek(java.lang.Integer)</function-signature>
</function>
<!-- Numbers ================================================================================================== -->
<function>
<description>
<![CDATA[
Format the given bytes to nearest 10<sup>n</sup> with IEC binary unit (KiB, MiB, etc) with rounding
precision of 1 fraction. For example:
<ul>
<li>1023 bytes will appear as 1023 B
<li>1024 bytes will appear as 1.0 KiB
<li>500000 bytes will appear as 488.3 KiB
<li>1048576 bytes will appear as 1.0 GiB
</ul>
]]>
</description>
<function-name>formatBytes</function-name>
<function-class>org.omnifaces.el.functions.Numbers</function-class>
<function-signature>java.lang.String formatBytes(java.lang.Long)</function-signature>
</function>
<function>
<description>
<![CDATA[
Format the given number as currency with the given symbol. This is useful when you want to format numbers as
currency in for example the <code>title</code> attribute of an UI component, or the <code>itemLabel</code>
attribute of select item, or wherever you can't use the <code><f:convertNumber></code> tag. The format
locale will be set to the one as obtained by <code>Faces#getLocale()</code>.
]]>
</description>
<function-name>formatCurrency</function-name>
<function-class>org.omnifaces.el.functions.Numbers</function-class>
<function-signature>java.lang.String formatCurrency(java.lang.Number, java.lang.String)</function-signature>
</function>
<function>
<description>
<![CDATA[
Format the given number in the given pattern. This is useful when you want to format numbers in for example the
<code>title</code> attribute of an UI component, or the <code>itemLabel</code> attribute of select item, or
wherever you can't use the <code><f:convertNumber></code> tag. The format locale will be set to the one as
obtained by <code>Faces#getLocale()</code>.
]]>
</description>
<function-name>formatNumber</function-name>
<function-class>org.omnifaces.el.functions.Numbers</function-class>
<function-signature>java.lang.String formatNumber(java.lang.Number, java.lang.String)</function-signature>
</function>
<function>
<description>
<![CDATA[
Format the given number in the default pattern of the default locale. This is useful when you want to format numbers in for
example the <code>title</code> attribute of an UI component, or the <code>itemLabel</code> attribute of select
item, or wherever you can't use the <code><f:convertNumber></code> tag. The default locale is
the one as obtained by <code>Faces#getLocale()</code>.
]]>
</description>
<function-name>formatNumberDefault</function-name>
<function-class>org.omnifaces.el.functions.Numbers</function-class>
<function-signature>java.lang.String formatNumberDefault(java.lang.Number)</function-signature>
</function>
<function>
<description>
<![CDATA[
Format the given number in the default pattern of the given locale. This is useful when you want to format numbers in for
example the <code>title</code> attribute of an UI component, or the <code>itemLabel</code> attribute of select
item, or wherever you can't use the <code><f:convertNumber></code> tag. The given
locale can be a {@link Locale} object or a string representation.
]]>
</description>
<function-name>formatNumberDefaultForLocale</function-name>
<function-class>org.omnifaces.el.functions.Numbers</function-class>
<function-signature>java.lang.String formatNumberDefaultForLocale(java.lang.Number, java.lang.Object)</function-signature>
</function>
<function>
<description>
<![CDATA[
Format the given number as percentage. This is useful when you want to format numbers as
percentage in for example the <code>title</code> attribute of an UI component, or the <code>itemLabel</code>
attribute of select item, or wherever you can't use the <code><f:convertNumber></code> tag. The format
locale will be set to the one as obtained by <code>Faces#getLocale()</code>.
]]>
</description>
<function-name>formatPercent</function-name>
<function-class>org.omnifaces.el.functions.Numbers</function-class>
<function-signature>java.lang.String formatPercent(java.lang.Number)</function-signature>
</function>
<function>
<description>
<![CDATA[
Format the given number to nearest 10<sup>n</sup> (rounded to thousands), immediately suffixed (without space)
with metric unit (k, M, G, T, P or E), rounding half up with a precision of 3 digits, whereafter
trailing zeroes in fraction part are stripped. Numbers lower than thousand are not affected.
For example (with English locale):
<ul>
<li>999.999 will appear as 999.999
<li>1000 will appear as 1k
<li>1004 will appear as 1k
<li>1005 will appear as 1.01k
<li>1594 will appear as 1.59k
<li>1595 will appear as 1.6k
<li>9000 will appear as 9k
<li>9900 will appear as 9.9k
<li>9994 will appear as 9.99k
<li>9995 will appear as 10k
<li>99990 will appear as 100k
<li>9994999 will appear as 9.99M
<li>9995000 will appear as 10M
</ul>
The format locale will be set to the one as obtained by <code>Faces#getLocale()</code>.
If the value is <code>null</code>, <code>NaN</code> or infinity, then this will return <code>null</code>.
]]>
</description>
<function-name>formatThousands</function-name>
<function-class>org.omnifaces.el.functions.Numbers</function-class>
<function-signature>java.lang.String formatThousands(java.lang.Number)</function-signature>
</function>
<function>
<description>
<![CDATA[
Format the given number to nearest 10<sup>n</sup> (rounded to thousands), suffixed with a space, the metric unit
prefix (k, M, G, T, P or E) and the given unit, rounding half up with a precision of 3 digits, whereafter
trailing zeroes in fraction part are stripped.
For example (with English locale and unit <code>B</code>):
<ul>
<li>999 will appear as 999 B
<li>1000 will appear as 1 kB
<li>1004 will appear as 1 kB
<li>1005 will appear as 1.01 kB
<li>1594 will appear as 1.59 kB
<li>1595 will appear as 1.6 kB
<li>9000 will appear as 9 kB
<li>9900 will appear as 9.9 kB
<li>9994 will appear as 9.99 kB
<li>9995 will appear as 10 kB
<li>99990 will appear as 100 kB
<li>9994999 will appear as 9.99 MB
<li>9995000 will appear as 10 MB
</ul>
The format locale will be set to the one as obtained by <code>Faces#getLocale()</code>.
If the value is <code>null</code>, <code>NaN</code> or infinity, then this will return <code>null</code>.
]]>
</description>
<function-name>formatThousandsUnit</function-name>
<function-class>org.omnifaces.el.functions.Numbers</function-class>
<function-signature>java.lang.String formatThousandsUnit(java.lang.Number, java.lang.String)</function-signature>
</function>
<!-- Objects ================================================================================================== -->
<function>
<description>
<![CDATA[
Return the first non-<code>null</code> object from the two objects.
]]>
</description>
<function-name>coalesce</function-name>
<function-class>org.omnifaces.el.functions.Objects</function-class>
<function-signature>java.lang.Object coalesce(java.lang.Object, java.lang.Object)</function-signature>
</function>
<!-- Components =============================================================================================== -->
<function>
<description>
<![CDATA[
Gets the value of a component's attribute by trying to evaluate a value expression associated with the
attribute first, and if none exists goes via the regular attribute mechanism (which will likely call
a getter on the component if indeed no value expression is associated).
]]>
</description>
<function-name>evalAttribute</function-name>
<function-class>org.omnifaces.el.functions.Components</function-class>
<function-signature>java.lang.Object evalAttribute(javax.faces.component.UIComponent, java.lang.String)</function-signature>
</function>
<function>
<description>
<![CDATA[
Returns <code><o:graphicImage></code> URL based on given expression string.
The expression string must be a quoted string. Any nested quotes can be escaped with backslash.
<p>
Usage example:
<pre>
<a href="#{of:graphicImageURL('bean.getFullImage(image.id)')}">
<o:graphicImage value="#{bean.getThumbnailImage(image.id)}" />
</a>
</pre>
]]>
</description>
<function-name>graphicImageURL</function-name>
<function-class>org.omnifaces.el.functions.Components</function-class>
<function-signature>java.lang.String graphicImageURL(java.lang.String)</function-signature>
</function>
<function>
<description>
<![CDATA[
Returns <code><o:graphicImage></code> URL based on given expression string and image type.
The expression string must be a quoted string. Any nested quotes can be escaped with backslash.
The image type is represented as file extension. E.g. "jpg", "png", "gif", "ico", "svg", "bmp", "tiff", etc.
<p>
Usage example:
<pre>
<a href="#{of:graphicImageURL('bean.getFullImage(image.id)', 'png')}">
<o:graphicImage value="#{bean.getThumbnailImage(image.id)}" type="png" />
</a>
</pre>
]]>
</description>
<function-name>graphicImageURLWithType</function-name>
<function-class>org.omnifaces.el.functions.Components</function-class>
<function-signature>java.lang.String graphicImageURLWithType(java.lang.String, java.lang.String)</function-signature>
</function>
<function>
<description>
<![CDATA[
Returns <code><o:graphicImage></code> URL based on given expression string, image type and last modified.
The expression string must be a quoted string. Any nested quotes can be escaped with backslash.
The image type is represented as file extension. E.g. "jpg", "png", "gif", "ico", "svg", "bmp", "tiff", etc.
The "last modified" timestamp can be either a <code>java.lang.Long</code>, <code>java.util.Date</code>,
or <code>java.lang.String</code> which is parseable as <code>java.lang.Long</code>.
<p>
Usage example:
<pre>
<a href="#{of:graphicImageURL('bean.getFullImage(image.id)', 'png', image.lastModified)}">
<o:graphicImage value="#{bean.getThumbnailImage(image.id)}" type="png" lastModified="#{image.lastModified}" />
</a>
</pre>
]]>
</description>
<function-name>graphicImageURLWithTypeAndLastModified</function-name>
<function-class>org.omnifaces.el.functions.Components</function-class>
<function-signature>java.lang.String graphicImageURLWithTypeAndLastModified(java.lang.String, java.lang.String, java.lang.Object)</function-signature>
</function>
<!-- Faces (request URL/header shortcuts) ===================================================================== -->
<function>
<description>
<![CDATA[
Returns the HTTP request base URL. This is the URL from the scheme, domain until with context path, including
the trailing slash. This is the value you could use in HTML <code><base></code> tag.
]]>
</description>
<function-name>getRequestBaseURL</function-name>
<function-class>org.omnifaces.util.Faces</function-class>
<function-signature>java.lang.String getRequestBaseURL()</function-signature>
</function>
<function>
<description>
<![CDATA[
Returns the HTTP request domain URL. This is the URL with the scheme and domain, without any trailing slash.
]]>
</description>
<function-name>getRequestDomainURL</function-name>
<function-class>org.omnifaces.util.Faces</function-class>
<function-signature>java.lang.String getRequestDomainURL()</function-signature>
</function>
<function>
<description>
<![CDATA[
Returns the HTTP request URL with query string. This is the full request URL with query string as the enduser
sees in browser address bar.
]]>
</description>
<function-name>getRequestURLWithQueryString</function-name>
<function-class>org.omnifaces.util.Faces</function-class>
<function-signature>java.lang.String getRequestURLWithQueryString()</function-signature>
</function>
<function>
<description>
<![CDATA[
Returns the Internet Protocol (IP) address of the client that sent the request. This will first check the
<code>X-Forwarded-For</code> request header and if it's present, then return its first IP address, else just
return <code>HttpServletRequest#getRemoteAddr()</code> unmodified.
]]>
</description>
<function-name>getRemoteAddr</function-name>
<function-class>org.omnifaces.util.Faces</function-class>
<function-signature>java.lang.String getRemoteAddr()</function-signature>
</function>
</facelet-taglib>