All Downloads are FREE. Search and download functionalities are using the official Maven repository.

META-INF.omnifaces-functions.taglib.xml Maven / Gradle / Ivy

There is a newer version: 4.4.1
Show newest version



	http://omnifaces.org/functions

	

	
		
			
		
		abbreviate
		org.omnifaces.el.functions.Strings
		java.lang.String abbreviate(java.lang.String, int)
	

	
		
			null, otherwise the new EL 2.2
				#{bean.string1.concat(bean.string2)} can just be used.
			]]>
		
		concat
		org.omnifaces.el.functions.Strings
		java.lang.String concat(java.lang.Object, java.lang.Object)
	

	
		
			
		
		capitalize
		org.omnifaces.el.functions.Strings
		java.lang.String capitalize(java.lang.String)
	

	
		
			
		
		replaceAll
		org.omnifaces.el.functions.Strings
		java.lang.String replaceAll(java.lang.String, java.lang.String, java.lang.String)
	

	
		
			
		
		matches
		org.omnifaces.el.functions.Strings
		java.lang.String matches(java.lang.String, java.lang.String)
	

	
		
			
				
  • Lowercase the string.
  • Remove combining diacritical marks.
  • Replace non-alphanumeric characters by hyphens. This is useful when populating links with dynamic paths obtained from user controlled variables, such as blog titles. ]]> prettyURL org.omnifaces.el.functions.Strings java.lang.String prettyURL(java.lang.String) <f:param>. ]]> encodeURL org.omnifaces.el.functions.Strings java.lang.String encodeURL(java.lang.String) escapeJS org.omnifaces.el.functions.Strings java.lang.String escapeJS(java.lang.String) javax.text.MessageFormat 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. ]]> format1 org.omnifaces.el.functions.Strings java.lang.String format1(java.lang.String, java.lang.Object) javax.text.MessageFormat 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. ]]> format2 org.omnifaces.el.functions.Strings java.lang.String format2(java.lang.String, java.lang.Object, java.lang.Object) javax.text.MessageFormat 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. ]]> format3 org.omnifaces.el.functions.Strings java.lang.String format3(java.lang.String, java.lang.Object, java.lang.Object, java.lang.Object) javax.text.MessageFormat 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. ]]> format4 org.omnifaces.el.functions.Strings java.lang.String format4(java.lang.String, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object) javax.text.MessageFormat 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. ]]> format5 org.omnifaces.el.functions.Strings java.lang.String format5(java.lang.String, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object) n times over an <ui:repeat>, which doesn't support EL in begin and end attributes. ]]> createArray org.omnifaces.el.functions.Arrays java.lang.Object[] createArray(int) <f:selectItems> which shows an integer range to represent days and years. ]]> createIntegerArray org.omnifaces.el.functions.Arrays java.lang.int[] createIntegerArray(int, int) true if the string representation of an item of the given array equals to the string representation of the given item. This returns false if either the array or the item is null. This is useful if you want to for example check if #{paramValues.foo} contains a certain value. ]]> contains org.omnifaces.el.functions.Arrays boolean contains(java.lang.Object[], java.lang.Object) Set<E> to a List<E>. Useful when you want to iterate over a Set in for example <ui:repeat>. ]]> setToList org.omnifaces.el.functions.Converters java.util.List setToList(java.util.Set) <ui:repeat> and <h:datatable>. ]]> iterableToList org.omnifaces.el.functions.Converters java.util.List iterableToList(java.lang.Iterable) <ui:repeat> and <h:datatable>. ]]> iterableToModel org.omnifaces.el.functions.Converters javax.faces.model.DataModel iterableToModel(java.lang.Iterable) Map<K, V> to a List<Map.Entry<K, V>>. Useful when you want to iterate over a Map in for example <ui:repeat>. Each of the entries has the usual getKey() and getValue() methods. ]]> mapToList org.omnifaces.el.functions.Converters java.util.List mapToList(java.util.Map) joinArray org.omnifaces.el.functions.Converters java.lang.String joinArray(java.lang.Object, java.lang.String) joinCollection org.omnifaces.el.functions.Converters java.lang.String joinCollection(java.util.Collection, java.lang.String) joinMap org.omnifaces.el.functions.Converters java.lang.String joinMap(java.util.Map, java.lang.String, java.lang.String) splitArray org.omnifaces.el.functions.Converters java.lang.Object[] splitArray(java.lang.Object, int) splitList org.omnifaces.el.functions.Converters java.util.List splitList(java.util.List, int) toJson org.omnifaces.el.functions.Converters java.lang.String toJson(java.lang.Object) printStackTrace org.omnifaces.el.functions.Converters java.lang.String printStackTrace(java.lang.Throwable) title attribute of an UI component, or the itemLabel attribute of select item, or wherever you can't use the <f:convertDateTime> tag. ]]> formatDate org.omnifaces.el.functions.Dates java.lang.String formatDate(java.util.Date, java.lang.String) title attribute of an UI component, or the itemLabel attribute of select item, or wherever you can't use the <f:convertDateTime> tag. ]]> formatDateWithTimezone org.omnifaces.el.functions.Dates java.lang.String formatDateWithTimezone(java.util.Date, java.lang.String, java.lang.Object) addYears org.omnifaces.el.functions.Dates java.util.Date addYears(java.util.Date, int) addMonths org.omnifaces.el.functions.Dates java.util.Date addMonths(java.util.Date, int) addWeeks org.omnifaces.el.functions.Dates java.util.Date addWeeks(java.util.Date, int) addDays org.omnifaces.el.functions.Dates java.util.Date addDays(java.util.Date, int) addHours org.omnifaces.el.functions.Dates java.util.Date addHours(java.util.Date, int) addMinutes org.omnifaces.el.functions.Dates java.util.Date addMinutes(java.util.Date, int) addSeconds org.omnifaces.el.functions.Dates java.util.Date addSeconds(java.util.Date, int) yearsBetween org.omnifaces.el.functions.Dates int yearsBetween(java.util.Date, java.util.Date) monthsBetween org.omnifaces.el.functions.Dates int monthsBetween(java.util.Date, java.util.Date) weeksBetween org.omnifaces.el.functions.Dates int weeksBetween(java.util.Date, java.util.Date) daysBetween org.omnifaces.el.functions.Dates int daysBetween(java.util.Date, java.util.Date) hoursBetween org.omnifaces.el.functions.Dates int hoursBetween(java.util.Date, java.util.Date) minutesBetween org.omnifaces.el.functions.Dates int minutesBetween(java.util.Date, java.util.Date) secondsBetween org.omnifaces.el.functions.Dates int secondsBetween(java.util.Date, java.util.Date) <f:selectItems> 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. ]]> getMonths org.omnifaces.el.functions.Dates java.util.Map getMonths() <f:selectItems> 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. ]]> getShortMonths org.omnifaces.el.functions.Dates java.util.Map getShortMonths() <f:selectItems> 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. ]]> getDaysOfWeek org.omnifaces.el.functions.Dates java.util.Map getDaysOfWeek() <f:selectItems> 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. ]]> getShortDaysOfWeek org.omnifaces.el.functions.Dates java.util.Map getShortDaysOfWeek() getMonth org.omnifaces.el.functions.Dates java.lang.String getMonth(java.lang.Integer) getShortMonth org.omnifaces.el.functions.Dates java.lang.String getShortMonth(java.lang.Integer) getDayOfWeek org.omnifaces.el.functions.Dates java.lang.String getDayOfWeek(java.lang.Integer) getShortDayOfWeek org.omnifaces.el.functions.Dates java.lang.String getShortDayOfWeek(java.lang.Integer) n with IEC binary unit (KiB, MiB, etc) with rounding precision of 1 fraction. For example:
    • 1023 bytes will appear as 1023 B
    • 1024 bytes will appear as 1.0 KiB
    • 500000 bytes will appear as 488.3 KiB
    • 1048576 bytes will appear as 1.0 GiB
    ]]>
    formatBytes org.omnifaces.el.functions.Numbers java.lang.String formatBytes(java.lang.Long)
    title attribute of an UI component, or the itemLabel attribute of select item, or wherever you can't use the <f:convertNumber> tag. The format locale will be set to the one as obtained by Faces#getLocale(). ]]> formatCurrency org.omnifaces.el.functions.Numbers java.lang.String formatCurrency(java.lang.Number, java.lang.String) title attribute of an UI component, or the itemLabel attribute of select item, or wherever you can't use the <f:convertNumber> tag. The format locale will be set to the one as obtained by Faces#getLocale(). ]]> formatNumber org.omnifaces.el.functions.Numbers java.lang.String formatNumber(java.lang.Number, java.lang.String) title attribute of an UI component, or the itemLabel attribute of select item, or wherever you can't use the <f:convertNumber> tag. The format locale will be set to the one as obtained by Faces#getLocale(). ]]> formatNumberDefault org.omnifaces.el.functions.Numbers java.lang.String formatNumberDefault(java.lang.Number) title attribute of an UI component, or the itemLabel attribute of select item, or wherever you can't use the <f:convertNumber> tag. The format locale will be set to the one as obtained by Faces#getLocale(). ]]> formatPercent org.omnifaces.el.functions.Numbers java.lang.String formatPercent(java.lang.Number) null object from the two objects. ]]> coalesce org.omnifaces.el.functions.Objects java.lang.Object coalesce(java.lang.Object, java.lang.Object)




  • © 2015 - 2024 Weber Informatics LLC | Privacy Policy