• Settings
    • Locale
    • Change the locale of the datepicker, schedule and client side validation messages.

      Language
      English
      English
      English
      French
      German
      German
      German
      Italian
      Korean
      Spanish
      Catalan
      Dutch
      Portuguese
      Portuguese
      Arabic
      Arabic
      Bulgarian
      Bangla
      Bosnian
      Czech
      Greek
      Estonian
      Persian
      Finnish
      Danish
      Hindi
      Indonesian
      Icelandic
      Croatian
      Japanese
      Hungarian
      Hebrew
      Georgian
      Central Kurdish
      Khmer
      Kyrgyz
      Kazakh
      Lithuanian
      Latvian
      Malay
      Norwegian
      Polish
      Romanian
      Russian
      Slovak
      Slovenian
      Serbian
      Serbian
      Swedish
      Thai
      Turkish
      Ukrainian
      Uzbek
      Vietnamese
      Chinese
      Chinese
  • Resources

TagLib

PrimeFaces TagLib documentation

Functions

SignatureDescription
String closestWidgetVar(UIComponent component)Returns the widgetVar of the closest parent widget of the given component.
Object dynamicColumnValue(UIComponent component)Gets the value of the current column. This is only required when p:columns and field is used with a nested expression like user.name.
String dynamicColumnValueAsString(UIComponent component)Gets the value of the current column converted to string. This is only required when p:columns and field is used with a nested expression like user.name.
String escapeJavaScriptVarName(String input)Escapes a string for a JS var name (e.g. ':' in a clientId). This is useful if you need to use a clientId in the name of a p:remoteCommand.
String language()Gets the current ISO 639-1 Language Code from current Locale so 'pt_BR' becomes 'pt'.
String resolveClientId(String expression, UIComponent source)Returns the clientId of the resolved component for the given expression.
String resolveClientIds(String expressions, UIComponent source)Returns the clientIds of the resolved components for the given expression.
UIComponent resolveComponent(String expression, UIComponent source)Returns the resolved UIComponent for the given expression.
UIComponent resolveFirstComponentWithId(String id, UIComponent base)Returns the first UIComponent with the same id (not clientId!) as the requested id. This method ignores any algorithm or NamingContainers.
String resolveWidgetVar(String expression, UIComponent component)Returns the widgetVar of the resolved component for the given expression.
boolean shouldRenderFacet(UIComponent facet)Returns true when facet and one of the first level children is rendered.

Usage:
#{p:escapeJavaScriptVarName('myVar')}

Tags




AccordionPanel is a container component that displays content in stacked format.

NameTypeRequiredDefaultDescription
id String false generated Unique identifier of the component in a namingContainer.
rendered boolean false true Boolean value to specify the rendering of the component, when set to false component will not be rendered.
binding UIComponent false generated An EL expression referring to a server side UIComponent instance in a backing bean.
widgetVar String false generated ('widget_' + componentClientId) Name of the client side widget.
active String false Active tab index(es)/key(s). Use 'none'/'-1' to collapse all, or 'all' to expand all.
activeIndex String false 0 (Deprecated, use active instead!) Active tab index(es). Supports '-1' or 'all'.
cache boolean false true When enabled, dynamically loaded tab contents are cached.
dir String false ltr Defines text direction, valid values are ltr and rtl.
dynamic boolean false false When enabled, only active tab contents are rendered.
multiViewState boolean false false Whether to keep component state across views.
multiple boolean false false Allows multiple tabs to be active at the same time.
offset int false 0 Index of the first item to iterate.
onTabChange String false Client side callback to execute when a tab is changed.
onTabClose String false Client side callback to execute when a tab is closed.
onTabShow String false Client side callback to execute when a tab is shown.
prependId boolean false true Whether to prepend the component id to its children.
scrollIntoView String false Scrolls the active tab into view. Valid values are start, center, end, nearest.
size int false -1 Maximum number of items to iterate, whereas -1 means 'all items'.
step int false 1 Step size for iteration.
style String false Inline style of the component.
styleClass String false Style class of the component.
tabController MethodExpression false MethodExpression to control tab access.
tabindex String false 0 Position of the element in the tabbing order.
toggleSpeed int false 500 Speed of toggling in milliseconds.
value Object false Value binding expression to a data model.
var String false Name of the request-scoped variable used to reference each data object in the iteration.
varStatus String false Name of the request-scoped variable used to expose the iteration status.