Documente Academic
Documente Profesional
Documente Cultură
http://localhost:8080/Sentinel212/documentation....
Sentinel Documentation
Installation
Sentinel provides a main template.xhtml and additional leftmenu.xhtml, topbar.xhtml files for
the base layout. These 3 files must be placed under WEB-INF folder. Provided emptypage.xhtml is a sample content page using the main template.xhtml that defines "content"
and "head" ui:define placeholders. Other required resources are the css, js, image and font
files that are located inside resources/sentinel-layout folder, simply copy the sentinel-layout
folder to your %WEB-APP-FOLDER%/resources folder so that final path would be
%WEB-APP-FOLDER%/sentinel-layout/. Please refer to demo app or maven project of the
demo app as the reference.
Theme is a regular PrimeFaces theme and setup is simple as defining primefaces.THEME
context parameter in web.xml as "sentinel", refer to themes page for more information.
Navigation Menu
Sentinel provides a navigation menu positioned at left side of the screen. This menu is
responsive and adjusts to the screen width automatically. Menu is actually a PrimeFaces
component specifically created for Sentinel under http://primefaces.org/sentinel namespace
having menu as the tag name., usage is same as a regular PrimeFaces component that
utilizes p:submenu and p:menuitem components. This component is placed inside the
Sentinel theme jar so this jar must be in your classpath. Demo application features an
example menu created declaratively however since this component is a JSF component, you
can also use PrimeFaces MenuModel API to create the menu dynamically.
Menu keeps its state using cookies so that between page navigations, state of the menu can
be restored. In case you'd like to clear this state, call
PF('SentinelMenuWidget').clearMenuState() javascript method. For stateful menu to work,
each menuitem and submenu must have explicit ids defined, otherwise ids will be generated
by JSF that may be different for each page. So please make sure you have defined explicit ids
for each menuitem and submenu to have a stateful menu. Menu is large by default, if you
prefer slim menu by default add "slimmenu" style class to the #layout-menubar div in
1 of 17
22/11/16 07:45
PrimeFaces Sentinel
http://localhost:8080/Sentinel212/documentation....
leftmenu.xhtml.
SENTINELLAYOUT
166
24
are included automatically whenever there is a PrimeFaces component on the page that depends on
them, however you can easily add them manually if required using h:outputScript component with
name attribute values jquery/jquery.js and primefaces.js correspondingly under primefaces library. An
example would be <h:outputScript name="jquery/jquery.js" library="primefaces" />
Migration Guide
2.1.1 to 2.1.2
- Replace theme jar with the new jar.
- Replace SentinelMenu.java with the new SentinelMenu.java.
2.1 to 2.1.1
- Update core-layout.css, sentinel-layout.css and layout.js.
- Replace theme jar with the new jar.
- Replace SentinelMenuRenderer.java with the new SentinelMenuRenderer.java.
- Replace SentinelMenu.java with the new SentinelMenu.java.
2.0.2 to 2.1
- Replace theme jar with the new jar.
2.0.1 to 2.0.2
- Update core-layout.css, sentinel-layout.css and template.xhtml.
- Replace theme jar with the new jar.
2.0 to 2.0.1
- Update core-layout.css and sentinel-layout.css files.
- Update layout.js file.
- Replace theme jar with the new jar.
1.3.1 to 2.0
2 of 17
22/11/16 07:45
PrimeFaces Sentinel
http://localhost:8080/Sentinel212/documentation....
SENTINELLAYOUT
166
1.3 to 1.3.1
24
1.2 to 1.3
- Update core-layout.css and sentinel-layout.css files.
- Replace theme jar with the new jar.
- Update login.xhtml.
1.1 to 1.2
- Update layout resources located inside css, fonts, images and js folders under sentinel-layout
folder.
- Replace theme jar with the new jar.
- Remove js/layout.js file from 404, access-denied and error pages.
- Replace js/layout.js file with js/login.js in login.xhtml.
- Remove IE specific css from template.xhtml.
1.0 to 1.1
- Update layout resources located inside css, fonts, images and js folders.
- Replace theme jar with the new jar.
- Replace the menu markup in leftmenu.xhtml with the Sentinel Menu component. Refer to
demo app for the example.
- Set "sm-mobiletopmenu" as the id of the second ul element in topbar.xhtml. Id of the first ul
is "sm-topmenu" and it has not changed.
Core Layout
Core Layout is a set of CSS classes used to create responsive grid layouts with additional
utilities. Sentinel uses Core Layout internally, however for grid layout you may also choose
another utility like Grid CSS or Bootstrap Grid.
Responsive Mode
Class Group
3 of 17
Class
Instructions
22/11/16 07:45
PrimeFaces Sentinel
http://localhost:8080/Sentinel212/documentation....
SENTINELLAYOUT
Responsive
Mode
166
24
Responsive
Responsive50
Responsive100
4 of 17
22/11/16 07:45
PrimeFaces Sentinel
http://localhost:8080/Sentinel212/documentation....
SENTINELLAYOUT
166
24
Size
Type
Documents
Folder
Pictures
Folder
Movies
Folder
TreeTable Footer
Size
Type
Documents
Folder
Pictures
Folder
Movies
Folder
ContainerX's
5 of 17
Class
Group
Class Name
Instructions
Containers
Container100
Container96
Container90
Container85
Container80
Container75
Container70
Container60
Container50
22/11/16 07:45
PrimeFaces Sentinel
http://localhost:8080/Sentinel212/documentation....
SENTINELLAYOUT
166
Container40
Container33
Container30
Container25
Container20
Container10
Container5
24
Indent
ContainerIndent
Container
Wrapper
Container20 - Responsive
Container30 - Responsive
Container50 - Responsive
Container33 - Reponsive
Container33 - Reponsive
Container33 - Reponsive
Container40
Container Indent
Selection
Class
Group
Selection
6 of 17
Class
Name
Instructions
Makes text unselectable
Unselectable
22/11/16 07:45
PrimeFaces Sentinel
http://localhost:8080/Sentinel212/documentation....
SENTINELLAYOUT
166
24
Class Name
Instructions
Visibilities
According To The
Platform
ShowOnMobile
ShowOnDesktop
Floating According
To The Platform
FloatNoneOnMobile
WidAutoOnMobile
HeiAutoOnMobile
Cc;
Floating is removed if screen width is smaller than 960px
InputField 1
7 of 17
22/11/16 07:45
PrimeFaces Sentinel
http://localhost:8080/Sentinel212/documentation....
SENTINELLAYOUT
166
InputField 3
24
This element has 30% width on bigger screens and auto width on smaller screens as it uses
WidAutoOnMobile.
Displaying
Class
Group
Displaying
Class
Name
Instructions
Displays an element as a block element
DispBlock
.DispBlock{ display:block;}
DispNone
DispTable
.DispTable{display:table;}
DispInlBlock
8 of 17
22/11/16 07:45
PrimeFaces Sentinel
http://localhost:8080/Sentinel212/documentation....
SENTINELLAYOUT
166
24
DispTableCell
.DispTableCell{ display:table-cell; vertical-align:middle;}
Positioning
Class
Group
Positioning
Class
Name
Instructions
The element is positioned relative to the browser window
PosFixed
.PosFixed{position:fixed;}
PosAbsolute
PosRelative
PosStatic
Underline
Class Group
Text Decoration
Class Name
Instructions
Defines a line below the text
Underline
.Underline{ text-decoration:underline;}
This is underlined text
9 of 17
22/11/16 07:45
PrimeFaces Sentinel
http://localhost:8080/Sentinel212/documentation....
SENTINELLAYOUT
Class
Group
Class
Name
166
24
Instructions
The element floats to the left
Floating
Fleft
.Fleft{ float:left;}
The element floats to the right
Fright
.Fleft{ float:right;}
Fnone
Overflows
Class
Group
Overflow
Class
Name
OvHidden
Instructions
The overflow is clipped, and the rest of the content will be
invisible
.OvHidden{ overflow:hidden;}
OvScroll
OvAuto
10 of 17
22/11/16 07:45
PrimeFaces Sentinel
http://localhost:8080/Sentinel212/documentation....
SENTINELLAYOUT
166
OvVisible
24
.OvVisible{ overflow:visible;}
OvXScroll
OvYScroll
OvXHidden
OvYHidden
Empty Boxes
Class
Group
Class
Name
Instructions
Horizontally , leaving space so that the value of the specified
number of pixels
Empty
Boxes
11 of 17
EmptyBox5
EmptyBox10
EmptyBox20
EmptyBox30
EmptyBox40
EmptyBox50
EmptyBox60
EmptyBox70
EmptyBox80
EmptyBox90
EmptyBox100
EmptyBox110
EmptyBox120
EmptyBox130
EmptyBox140
EmptyBox150
22/11/16 07:45
PrimeFaces Sentinel
http://localhost:8080/Sentinel212/documentation....
SENTINELLAYOUT
166
24
Opacity
Class
Group
Class
Name
Opacity
OpacZero
Opac10
Opac20
Opac30
Opac40
Opac50
Opac60
Opac70
Opac80
Opac90
Opac95
Opac100
Instructions
Element gives transparency specified value
.Opac100{ opacity:1; -webkit-opacity:1; -moz-opacity:1;} , .Opac95{
opacity:0.95; -webkit-opacity:0.95; -moz-opacity:0.95;} , .Opac90{
opacity:0.9; -webkit-opacity:0.9; -moz-opacity:0.9;} , .Opac80{
opacity:0.8; -webkit-opacity:0.8; -moz-opacity:0.8;} , .Opac70{
opacity:0.7; -webkit-opacity:0.7; -moz-opacity:0.7;} , .Opac60{
opacity:0.6; -webkit-opacity:0.6; -moz-opacity:0.6;} , .Opac50{
opacity:0.5; -webkit-opacity:0.5; -moz-opacity:0.5;} , .Opac40{
opacity:0.4; -webkit-opacity:0.4; -moz-opacity:0.4;} , .Opac30{
opacity:0.3; -webkit-opacity:0.3; -moz-opacity:0.3;} , .Opac20{
opacity:0.2; -webkit-opacity:0.2; -moz-opacity:0.2;} , .Opac10{
opacity:0.1; -webkit-opacity:0.1; -moz-opacity:0.1;} , .OpacZero{
opacity:0; -webkit-opacity:0; -moz-opacity:0;}
WidX's
12 of 17
Class
Group
Class
Name
Width
Special
Values
Wid100
Wid90
Wid80
Wid70
Wid60
Instructions
Element data width is specified with a percentage value. Add
Responsive class to apply responsive features.
.Wid100{ width:100%;} , .Wid90{ width:90%;} , .Wid80{ width:80%;} ,
.Wid70{ width:70%;} , .Wid60{ width:60%;} , .Wid50{ width:50%;} ,
22/11/16 07:45
PrimeFaces Sentinel
http://localhost:8080/Sentinel212/documentation....
SENTINELLAYOUT
Wid40
Wid33
Wid30
Wid25
Wid20
Wid10
166
24
Wid20 - Responsive
Wid20
Wid20 - Responsive
Wid20
Wid33 - Reponsive
Wid20
Wid33 - Reponsive
Wid33 - Reponsive
Text Aligning
Class Group
Text Align
Class Name
Instructions
Centers the text
TexAlCenter
.TexAlCenter{ text-align:center;}
Aligns the text to the left
TexAlLeft
.TexAlLeft{ text-align:left;}
Aligns the text to the right
TexAlRight
.TexAlRight{ text-align:right;}
This text align center
13 of 17
22/11/16 07:45
PrimeFaces Sentinel
http://localhost:8080/Sentinel212/documentation....
SENTINELLAYOUT
Class
Group
Box
Sizing
166
Class
Name
24
Instructions
BoxSizeContent
BoxSizeBorder
.BoxSizeBorder{ box-sizing:border-box; -webkitbox-sizing:border-box; -moz-box-sizing:border-box;}
Box Sizing :
BoxSizeBorder (same
width with below box)
Box Sizing : BoxSizeContent
Font Sizes
14 of 17
Class
Group
Class
Name
Font
Size
Fs130
Fs100
Fs60
Fs50
Fs40
Fs30
Fs29
Fs28
Fs27
Fs26
Fs25
Instructions
Set to the specified pixel value of font-size.
.Fs9{font-size:9px !important;} , .Fs10{font-size:10px !important;} ,
.Fs11{font-size:11px !important;} , .Fs12{font-size:12px !important;} ,
.Fs13{font-size:13px !important;} , .Fs14{font-size:14px !important;} ,
.Fs15{font-size:15px !important;} , .Fs16{font-size:16px !important;} ,
.Fs17{font-size:17px !important;} , .Fs18{font-size:18px !important;} ,
.Fs19{font-size:19px !important;} , .Fs20{font-size:20px !important;} ,
.Fs21{font-size:21px !important;} , .Fs22{font-size:22px !important;} ,
.Fs23{font-size:23px !important;} , .Fs24{font-size:24px !important;} ,
.Fs25{font-size:25px !important;} , .Fs26{font-size:26px !important;} ,
22/11/16 07:45
PrimeFaces Sentinel
http://localhost:8080/Sentinel212/documentation....
SENTINELLAYOUT
Fs22
Fs21
Fs20
Fs19
Fs18
Fs17
Fs16
Fs15
Fs14
Fs13
Fs14
Fs13
Fs12
Fs11
Fs10
Fs9
166
24
Class Name
Instructions
Defines thick characters.
FontBold
.FontBold{ font-weight:bold;}
Defines lighter characters.
FontLight
.FontLight{ font-weight:lighter;}
15 of 17
22/11/16 07:45
PrimeFaces Sentinel
http://localhost:8080/Sentinel212/documentation....
SENTINELLAYOUT
166
24
.FontNormal{ font-weight:normal;}
Transitions
Timing
Class
Name
Instructions
Make css3 transitions with the specified duration. (
Animated05 = Transition ends in 500 milli-seconds with
easing)
Animated05
.Animated05{-webkit-transition: all 0.5s ease;
-moz-transition: all 0.5s ease; -ms-transition: all 0.5s ease;
-o-transition: all 0.5s ease; transition: all 0.5s ease;}
Make css3 transitions with the specified duration. (
Animated1 = Transition ends in 1 second with easing)
Animated05
16 of 17
22/11/16 07:45
PrimeFaces Sentinel
http://localhost:8080/Sentinel212/documentation....
info@sentinelsentinel.com
SENTINELLAYOUT
17 of 17
166
24
22/11/16 07:45