jsf-renderer

JSF Bootstrap Message and Messages Renderer

License

License

Categories

Categories

Jakarta Server Faces Jakarta EE The Web Tier
GroupId

GroupId

de.samply
ArtifactId

ArtifactId

jsf-renderer
Last Version

Last Version

2.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

jsf-renderer
JSF Bootstrap Message and Messages Renderer
Project URL

Project URL

https://github.com/samply/common-web-jsf-renderer
Project Organization

Project Organization

Samply Community
Source Code Management

Source Code Management

https://github.com/samply/common-web-jsf-renderer

Download jsf-renderer

How to add to project

<!-- https://jarcasting.com/artifacts/de.samply/jsf-renderer/ -->
<dependency>
    <groupId>de.samply</groupId>
    <artifactId>jsf-renderer</artifactId>
    <version>2.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/de.samply/jsf-renderer/
implementation 'de.samply:jsf-renderer:2.0.0'
// https://jarcasting.com/artifacts/de.samply/jsf-renderer/
implementation ("de.samply:jsf-renderer:2.0.0")
'de.samply:jsf-renderer:jar:2.0.0'
<dependency org="de.samply" name="jsf-renderer" rev="2.0.0">
  <artifact name="jsf-renderer" type="jar" />
</dependency>
@Grapes(
@Grab(group='de.samply', module='jsf-renderer', version='2.0.0')
)
libraryDependencies += "de.samply" % "jsf-renderer" % "2.0.0"
[de.samply/jsf-renderer "2.0.0"]

Dependencies

compile (3)

Group / Artifact Type Version
org.slf4j : slf4j-api jar 1.7.25
com.sun.faces : jsf-impl jar 2.2.15
com.sun.faces : jsf-api jar 2.2.15

Project Modules

There are no modules declared in this project.

UNMERGED BRANCH -CHANGES FROM OTHER SAMPLY TEAMS MISSING

JSF Bootstrap Message and Messages Renderer

Style the h:messages component from JSF with bootstrap alerts

Use maven to build the jar:

mvn clean install

In order to use it in any JSF2 project:

  • Bootstrap has to be included in the project

  • Add the following snippet to faces-config.xml:

    <!-- Register the custom renderers to use bootstrap message(s) -->
    <render-kit>
        <renderer>
            <component-family>javax.faces.Message</component-family>
            <renderer-type>javax.faces.Message</renderer-type>
            <renderer-class>de.samply.share.client.renderer.BootstrapMessageRenderer</renderer-class>
        </renderer>
        <renderer>
            <component-family>javax.faces.Messages</component-family>
            <renderer-type>javax.faces.Messages</renderer-type>
            <renderer-class>de.samply.share.client.renderer.BootstrapMessagesRenderer</renderer-class>
        </renderer>
    </render-kit>

## License
       
Copyright 2020 The Samply Development Community
       
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.

de.samply

Samply

Versions

Version
2.0.0