• 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

Terminal Basic

Terminal commands are handled by a server side listener. "greet {text}" and "date" are sample commands.

Terminal Tag Documentation

Terminal is an ajax powered component bringing desktop command-line tools to the web.

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.
autoCompleteModel TerminalAutoCompleteModel false TerminalAutoCompleteModel instance that represents the commands and arguments used for autocompletion.
commandHandler MethodExpression false Method to execute by passing command and the arguments.
escape boolean false true Defines if the terminal is escaped or not.
prompt String false prime $ Primary prompt text.
style String false Inline style of the component.
styleClass String false Style class of the component.
welcomeMessage String false Welcome message to be displayed on initial load.
Loading...
Tag DocumentationNew DocumentationNew Documentation JSDoc Basic Autocomplete
Welcome to PrimeFaces Terminal
prime $

Usage


<div class="card">
    <h:form>
        <p:focus for="terminal"/>

        <p:terminal id="terminal" widgetVar="term" commandHandler="#{terminalBasicView.handleCommand}"
                    welcomeMessage="Welcome to PrimeFaces Terminal"/>

        <p:commandButton type="button" value="Clear" icon="pi pi-trash" onclick="PF('term').clear()" styleClass="mt-3" />
    </h:form>
</div>