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
Czech
Greek
Persian
Finnish
Danish
Hindi
Indonesian
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
Vietnamese
Chinese
Chinese

Input Style

Themes

PrimeOne
Saga Saga
Vela Vela
Arya Arya
Bootstrap
bootstrap4-blue-light Bootstrap Blue
bootstrap4-purple-light Bootstrap Purple
bootstrap4-blue-dark Bootstrap Blue
bootstrap4-purple-dark Bootstrap Purple
Material Design
material-indigo-light Indigo
material-deeppurple-light' Deep Purple
material-indigo-dark Indigo
material-deeppurple-dark' Deep Purple
Material Design Compact
material-indigo-light Indigo
material-deeppurple-light' Deep Purple
material-indigo-dark Indigo
material-deeppurple-dark' Deep Purple

Diagram Editable

Connections can be created and edited on the fly using drag and drop. In this example, computers are sources whereas servers are the targets. Once a connection is created, removed or changed using drag and drop, diagram makes an ajax request to save changes in the backend model. Additionally, optional ajax events are provided as callbacks.

Computer A
Computer B
Computer C
Server A
Server B

<style>
    .ui-diagram-element {
        border: 0.1em dotted #E5E4E2;
        background-color: #EFEEEC;
        width: 10em;
        height: 8em;
        text-align: center;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.8);
        user-select: none;
    }

    .ui-diagram-element:hover {
        background-color: #C7C6C4;
    }
</style>

<div class="card">
    <h:form id="form">
        <p:growl id="msgs" showDetail="true" skipDetailIfEqualsSummary="true"/>

        <p:diagram value="#{diagramEditableView.model}" style="height:600px" styleClass="ui-widget-content"
                   var="el">
            <f:facet name="element">
                <h:outputText value="#{el.name}" style="display:block;margin-top:1em;"/>
                <p:graphicImage name="demo/images/#{el.image}"/>
            </f:facet>
            <p:ajax event="connect" listener="#{diagramEditableView.onConnect}"/>
            <p:ajax event="disconnect" listener="#{diagramEditableView.onDisconnect}"/>
            <p:ajax event="connectionChange" listener="#{diagramEditableView.onConnectionChange}"/>
        </p:diagram>
    </h:form>
</div>