- Maven
<dependency> <groupId>javax.servlet</groupId> <artifactId>javax.servlet-api</artifactId> <version>3.1.0</version> <scope>provided</scope> </dependency>
- Gradle
configurations { provided } sourceSets { main { compileClasspath += configurations.provided } } dependencies { provided 'javax.servlet:javax.servlet-api:3.1.0' }
3 sierpnia 2017
the superclass javax.servlet.http.httpservlet was not found on the java build path
31 marca 2017
Pass values from JavaScript to ManagedBean
30 marca 2017
JSF + javaScript
" "
& &
' '
< <
> >
Hex
C
Name
Ent
Ref
0x0022
"
QUOTATION MARK
"
"
0x0026
&
AMPERSAND
&
&
0x0027
'
APOSTROPHE
'
'
0x003c
<
LESS-THAN SIGN
<
<
0x003e
>
GREATER-THAN SIGN
>
>
0x00a0
nbsp
NO-BREAK SPACE
 
0x00a1
¡
INVERTED EXCLAMATION MARK
¡
¡
0x00a2
¢
CENT SIGN
¢
¢
0x00a3
£
POUND SIGN
£
£
0x00a4
¤
CURRENCY SIGN
¤
¤
0x00a5
¥
YEN SIGN
¥
¥
0x00a6
¦
BROKEN BAR
¦
¦
0x00a7
§
SECTION SIGN
§
§
0x00a8
¨
DIAERESIS
¨
¨
0x00a9
©
COPYRIGHT SIGN
©
©
0x00aa
ª
FEMININE ORDINAL INDICATOR
ª
ª
0x00ab
«
LEFT-POINTING DOUBLE ANGLE QUOTATION MARK
«
«
0x00ac
¬
NOT SIGN
¬
¬
0x00ad
shy
SOFT HYPHEN
­
­
0x00ae
®
REGISTERED SIGN
®
®
0x00af
¯
MACRON
¯
¯
0x00b0
°
DEGREE SIGN
°
°
0x00b1
±
PLUS-MINUS SIGN
±
±
0x00b2
²
SUPERSCRIPT TWO
²
²
0x00b3
³
SUPERSCRIPT THREE
³
³
0x00b4
´
ACUTE ACCENT
´
´
0x00b5
µ
MICRO SIGN
µ
µ
0x00b6
¶
PILCROW SIGN
¶
¶
0x00b7
·
MIDDLE DOT
·
·
0x00b8
¸
CEDILLA
¸
¸
0x00b9
¹
SUPERSCRIPT ONE
¹
¹
0x00ba
º
MASCULINE ORDINAL INDICATOR
º
º
0x00bb
»
RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK
»
»
0x00bc
¼
VULGAR FRACTION ONE QUARTER
¼
¼
0x00bd
½
VULGAR FRACTION ONE HALF
½
½
0x00be
¾
VULGAR FRACTION THREE QUARTERS
¾
¾
0x00bf
¿
INVERTED QUESTION MARK
¿
¿
0x00c0
À
LATIN CAPITAL LETTER A WITH GRAVE
À
À
0x00c1
Á
LATIN CAPITAL LETTER A WITH ACUTE
Á
Á
0x00c2
Â
LATIN CAPITAL LETTER A WITH CIRCUMFLEX
Â
Â
0x00c3
Ã
LATIN CAPITAL LETTER A WITH TILDE
Ã
Ã
0x00c4
Ä
LATIN CAPITAL LETTER A WITH DIAERESIS
Ä
Ä
0x00c5
Å
LATIN CAPITAL LETTER A WITH RING ABOVE
Å
Å
0x00c6
Æ
LATIN CAPITAL LETTER AE
Æ
Æ
0x00c7
Ç
LATIN CAPITAL LETTER C WITH CEDILLA
Ç
Ç
0x00c8
È
LATIN CAPITAL LETTER E WITH GRAVE
È
È
0x00c9
É
LATIN CAPITAL LETTER E WITH ACUTE
É
É
0x00ca
Ê
LATIN CAPITAL LETTER E WITH CIRCUMFLEX
Ê
Ê
0x00cb
Ë
LATIN CAPITAL LETTER E WITH DIAERESIS
Ë
Ë
0x00cc
Ì
LATIN CAPITAL LETTER I WITH GRAVE
Ì
Ì
0x00cd
Í
LATIN CAPITAL LETTER I WITH ACUTE
Í
Í
0x00ce
Î
LATIN CAPITAL LETTER I WITH CIRCUMFLEX
Î
Î
0x00cf
Ï
LATIN CAPITAL LETTER I WITH DIAERESIS
Ï
Ï
0x00d0
Ð
LATIN CAPITAL LETTER ETH
Ð
Ð
0x00d1
Ñ
LATIN CAPITAL LETTER N WITH TILDE
Ñ
Ñ
0x00d2
Ò
LATIN CAPITAL LETTER O WITH GRAVE
Ò
Ò
0x00d3
Ó
LATIN CAPITAL LETTER O WITH ACUTE
Ó
Ó
0x00d4
Ô
LATIN CAPITAL LETTER O WITH CIRCUMFLEX
Ô
Ô
0x00d5
Õ
LATIN CAPITAL LETTER O WITH TILDE
Õ
Õ
0x00d6
Ö
LATIN CAPITAL LETTER O WITH DIAERESIS
Ö
Ö
0x00d7
×
MULTIPLICATION SIGN
×
×
0x00d8
Ø
LATIN CAPITAL LETTER O WITH STROKE
Ø
Ø
0x00d9
Ù
LATIN CAPITAL LETTER U WITH GRAVE
Ù
Ù
0x00da
Ú
LATIN CAPITAL LETTER U WITH ACUTE
Ú
Ú
0x00db
Û
LATIN CAPITAL LETTER U WITH CIRCUMFLEX
Û
Û
0x00dc
Ü
LATIN CAPITAL LETTER U WITH DIAERESIS
Ü
Ü
0x00dd
Ý
LATIN CAPITAL LETTER Y WITH ACUTE
Ý
Ý
0x00de
Þ
LATIN CAPITAL LETTER THORN
Þ
Þ
0x00df
ß
LATIN SMALL LETTER SHARP S
ß
ß
0x00e0
à
LATIN SMALL LETTER A WITH GRAVE
à
à
0x00e1
á
LATIN SMALL LETTER A WITH ACUTE
á
á
0x00e2
â
LATIN SMALL LETTER A WITH CIRCUMFLEX
â
â
0x00e3
ã
LATIN SMALL LETTER A WITH TILDE
ã
ã
0x00e4
ä
LATIN SMALL LETTER A WITH DIAERESIS
ä
ä
0x00e5
å
LATIN SMALL LETTER A WITH RING ABOVE
å
å
0x00e6
æ
LATIN SMALL LETTER AE
æ
æ
0x00e7
ç
LATIN SMALL LETTER C WITH CEDILLA
ç
ç
0x00e8
è
LATIN SMALL LETTER E WITH GRAVE
è
è
0x00e9
é
LATIN SMALL LETTER E WITH ACUTE
é
é
0x00ea
ê
LATIN SMALL LETTER E WITH CIRCUMFLEX
ê
ê
0x00eb
ë
LATIN SMALL LETTER E WITH DIAERESIS
ë
ë
0x00ec
ì
LATIN SMALL LETTER I WITH GRAVE
ì
ì
0x00ed
í
LATIN SMALL LETTER I WITH ACUTE
í
í
0x00ee
î
LATIN SMALL LETTER I WITH CIRCUMFLEX
î
î
0x00ef
ï
LATIN SMALL LETTER I WITH DIAERESIS
ï
ï
0x00f0
ð
LATIN SMALL LETTER ETH
ð
ð
0x00f1
ñ
LATIN SMALL LETTER N WITH TILDE
ñ
ñ
0x00f2
ò
LATIN SMALL LETTER O WITH GRAVE
ò
ò
0x00f3
ó
LATIN SMALL LETTER O WITH ACUTE
ó
ó
0x00f4
ô
LATIN SMALL LETTER O WITH CIRCUMFLEX
ô
ô
0x00f5
õ
LATIN SMALL LETTER O WITH TILDE
õ
õ
0x00f6
ö
LATIN SMALL LETTER O WITH DIAERESIS
ö
ö
0x00f7
÷
DIVISION SIGN
÷
÷
0x00f8
ø
LATIN SMALL LETTER O WITH STROKE
ø
ø
0x00f9
ù
LATIN SMALL LETTER U WITH GRAVE
ù
ù
0x00fa
ú
LATIN SMALL LETTER U WITH ACUTE
ú
ú
0x00fb
û
LATIN SMALL LETTER U WITH CIRCUMFLEX
û
û
0x00fc
ü
LATIN SMALL LETTER U WITH DIAERESIS
ü
ü
0x00fd
ý
LATIN SMALL LETTER Y WITH ACUTE
ý
ý
0x00fe
þ
LATIN SMALL LETTER THORN
þ
þ
0x00ff
ÿ
LATIN SMALL LETTER Y WITH DIAERESIS
ÿ
ÿ
0x0152
Œ
LATIN CAPITAL LIGATURE OE
Œ
Œ
0x0153
œ
LATIN SMALL LIGATURE OE
œ
œ
0x0160
Š
LATIN CAPITAL LETTER S WITH CARON
Š
Š
0x0161
š
LATIN SMALL LETTER S WITH CARON
š
š
0x0178
Ÿ
LATIN CAPITAL LETTER Y WITH DIAERESIS
Ÿ
Ÿ
0x0192
ƒ
LATIN SMALL LETTER F WITH HOOK
ƒ
ƒ
0x02c6
ˆ
MODIFIER LETTER CIRCUMFLEX ACCENT
ˆ
ˆ
0x02dc
˜
SMALL TILDE
˜
˜
0x0391
Α
GREEK CAPITAL LETTER ALPHA
Α
Α
0x0392
Β
GREEK CAPITAL LETTER BETA
Β
Β
0x0393
Γ
GREEK CAPITAL LETTER GAMMA
Γ
Γ
0x0394
Δ
GREEK CAPITAL LETTER DELTA
Δ
Δ
0x0395
Ε
GREEK CAPITAL LETTER EPSILON
Ε
Ε
0x0396
Ζ
GREEK CAPITAL LETTER ZETA
Ζ
Ζ
0x0397
Η
GREEK CAPITAL LETTER ETA
Η
Η
0x0398
Θ
GREEK CAPITAL LETTER THETA
Θ
Θ
0x0399
Ι
GREEK CAPITAL LETTER IOTA
Ι
Ι
0x039a
Κ
GREEK CAPITAL LETTER KAPPA
Κ
Κ
0x039b
Λ
GREEK CAPITAL LETTER LAMDA
Λ
Λ
0x039c
Μ
GREEK CAPITAL LETTER MU
Μ
Μ
0x039d
Ν
GREEK CAPITAL LETTER NU
Ν
Ν
0x039e
Ξ
GREEK CAPITAL LETTER XI
Ξ
Ξ
0x039f
Ο
GREEK CAPITAL LETTER OMICRON
Ο
Ο
0x03a0
Π
GREEK CAPITAL LETTER PI
Π
Π
0x03a1
Ρ
GREEK CAPITAL LETTER RHO
Ρ
Ρ
0x03a3
Σ
GREEK CAPITAL LETTER SIGMA
Σ
Σ
0x03a4
Τ
GREEK CAPITAL LETTER TAU
Τ
Τ
0x03a5
Υ
GREEK CAPITAL LETTER UPSILON
Υ
Υ
0x03a6
Φ
GREEK CAPITAL LETTER PHI
Φ
Φ
0x03a7
Χ
GREEK CAPITAL LETTER CHI
Χ
Χ
0x03a8
Ψ
GREEK CAPITAL LETTER PSI
Ψ
Ψ
0x03a9
Ω
GREEK CAPITAL LETTER OMEGA
Ω
Ω
0x03b1
α
GREEK SMALL LETTER ALPHA
α
α
0x03b2
β
GREEK SMALL LETTER BETA
β
β
0x03b3
γ
GREEK SMALL LETTER GAMMA
γ
γ
0x03b4
δ
GREEK SMALL LETTER DELTA
δ
δ
0x03b5
ε
GREEK SMALL LETTER EPSILON
ε
ε
0x03b6
ζ
GREEK SMALL LETTER ZETA
ζ
ζ
0x03b7
η
GREEK SMALL LETTER ETA
η
η
0x03b8
θ
GREEK SMALL LETTER THETA
θ
θ
0x03b9
ι
GREEK SMALL LETTER IOTA
ι
ι
0x03ba
κ
GREEK SMALL LETTER KAPPA
κ
κ
0x03bb
λ
GREEK SMALL LETTER LAMDA
λ
λ
0x03bc
μ
GREEK SMALL LETTER MU
μ
μ
0x03bd
ν
GREEK SMALL LETTER NU
ν
ν
0x03be
ξ
GREEK SMALL LETTER XI
ξ
ξ
0x03bf
ο
GREEK SMALL LETTER OMICRON
ο
ο
0x03c0
π
GREEK SMALL LETTER PI
π
π
0x03c1
ρ
GREEK SMALL LETTER RHO
ρ
ρ
0x03c2
ς
GREEK SMALL LETTER FINAL SIGMA
ς
ς
0x03c3
σ
GREEK SMALL LETTER SIGMA
σ
σ
0x03c4
τ
GREEK SMALL LETTER TAU
τ
τ
0x03c5
υ
GREEK SMALL LETTER UPSILON
υ
υ
0x03c6
φ
GREEK SMALL LETTER PHI
φ
φ
0x03c7
χ
GREEK SMALL LETTER CHI
χ
χ
0x03c8
ψ
GREEK SMALL LETTER PSI
ψ
ψ
0x03c9
ω
GREEK SMALL LETTER OMEGA
ω
ω
0x03d1
ϑ
GREEK THETA SYMBOL
ϑ
ϑ
0x03d2
ϒ
GREEK UPSILON WITH HOOK SYMBOL
ϒ
ϒ
0x03d6
ϖ
GREEK PI SYMBOL
ϖ
ϖ
0x2002
ensp
EN SPACE
 
 
0x2003
emsp
EM SPACE
 
 
0x2009
thsp
THIN SPACE
 
 
0x200c
zwnj
ZERO WIDTH NON-JOINER
‌
‌
0x200d
zwj
ZERO WIDTH JOINER
‍
‍
0x200e
lrm
LEFT-TO-RIGHT MARK
‎
‎
0x200f
rlm
RIGHT-TO-LEFT MARK
‏
‏
0x2013
–
EN DASH
–
–
0x2014
—
EM DASH
—
—
0x2018
‘
LEFT SINGLE QUOTATION MARK
‘
‘
0x2019
’
RIGHT SINGLE QUOTATION MARK
’
’
0x201a
‚
SINGLE LOW-9 QUOTATION MARK
‚
‚
0x201c
“
LEFT DOUBLE QUOTATION MARK
“
“
0x201d
”
RIGHT DOUBLE QUOTATION MARK
”
”
0x201e
„
DOUBLE LOW-9 QUOTATION MARK
„
„
0x2020
†
DAGGER
†
†
0x2021
‡
DOUBLE DAGGER
‡
‡
0x2022
•
BULLET
•
•
0x2026
…
HORIZONTAL ELLIPSIS
…
…
0x2030
‰
PER MILLE SIGN
‰
‰
0x2032
′
PRIME
′
′
0x2033
″
DOUBLE PRIME
″
″
0x2039
‹
SINGLE LEFT-POINTING ANGLE QUOTATION MARK
‹
‹
0x203a
›
SINGLE RIGHT-POINTING ANGLE QUOTATION MARK
›
›
0x203e
‾
OVERLINE
‾
‾
0x2044
⁄
FRACTION SLASH
⁄
⁄
0x20ac
€
EURO SIGN
€
€
0x2111
ℑ
BLACK-LETTER CAPITAL I
ℑ
ℑ
0x2118
℘
SCRIPT CAPITAL P
℘
℘
0x211c
ℜ
BLACK-LETTER CAPITAL R
ℜ
ℜ
0x2122
™
TRADE MARK SIGN
™
™
0x2135
ℵ
ALEF SYMBOL
ℵ
ℵ
0x2190
←
LEFTWARDS ARROW
←
←
0x2191
↑
UPWARDS ARROW
↑
↑
0x2192
→
RIGHTWARDS ARROW
→
→
0x2193
↓
DOWNWARDS ARROW
↓
↓
0x2194
↔
LEFT RIGHT ARROW
↔
↔
0x21b5
↵
DOWNWARDS ARROW WITH CORNER LEFTWARDS
↵
↵
0x21d0
⇐
LEFTWARDS DOUBLE ARROW
⇐
⇐
0x21d1
⇑
UPWARDS DOUBLE ARROW
⇑
⇑
0x21d2
⇒
RIGHTWARDS DOUBLE ARROW
⇒
⇒
0x21d3
⇓
DOWNWARDS DOUBLE ARROW
⇓
⇓
0x21d4
⇔
LEFT RIGHT DOUBLE ARROW
⇔
⇔
0x2200
∀
FOR ALL
∀
∀
0x2202
∂
PARTIAL DIFFERENTIAL
∂
∂
0x2203
∃
THERE EXISTS
∃
∃
0x2205
∅
EMPTY SET
∅
∅
0x2207
∇
NABLA
∇
∇
0x2208
∈
ELEMENT OF
∈
∈
0x2209
∉
NOT AN ELEMENT OF
∉
∉
0x220b
∋
CONTAINS AS MEMBER
∋
∋
0x220f
∏
N-ARY PRODUCT
∏
∏
0x2211
∑
N-ARY SUMMATION
∑
∑
0x2212
−
MINUS SIGN
−
−
0x2217
∗
ASTERISK OPERATOR
∗
∗
0x221a
√
SQUARE ROOT
√
√
0x221d
∝
PROPORTIONAL TO
∝
∝
0x221e
∞
INFINITY
∞
∞
0x2220
∠
ANGLE
∠
∠
0x2227
∧
LOGICAL AND
∧
∧
0x2228
∨
LOGICAL OR
∨
∨
0x2229
∩
INTERSECTION
∩
∩
0x222a
∪
UNION
∪
∪
0x222b
∫
INTEGRAL
∫
∫
0x2234
∴
THEREFORE
∴
∴
0x223c
∼
TILDE OPERATOR
∼
∼
0x2245
≅
APPROXIMATELY EQUAL TO
≅
≅
0x2248
≈
ALMOST EQUAL TO
≈
≈
0x2260
≠
NOT EQUAL TO
≠
≠
0x2261
≡
IDENTICAL TO
≡
≡
0x2264
≤
LESS-THAN OR EQUAL TO
≤
≤
0x2265
≥
GREATER-THAN OR EQUAL TO
≥
≥
0x2282
⊂
SUBSET OF
⊂
⊂
0x2283
⊃
SUPERSET OF
⊃
⊃
0x2284
⊄
NOT A SUBSET OF
⊄
⊄
0x2286
⊆
SUBSET OF OR EQUAL TO
⊆
⊆
0x2287
⊇
SUPERSET OF OR EQUAL TO
⊇
⊇
0x2295
⊕
CIRCLED PLUS
⊕
⊕
0x2297
⊗
CIRCLED TIMES
⊗
⊗
0x22a5
⊥
UP TACK
⊥
⊥
0x22c5
⋅
DOT OPERATOR
⋅
⋅
0x2308
⌈
LEFT CEILING
⌈
⌈
0x2309
⌉
RIGHT CEILING
⌉
⌉
0x230a
⌊
LEFT FLOOR
⌊
⌊
0x230b
⌋
RIGHT FLOOR
⌋
⌋
0x2329
⟨
LEFT-POINTING ANGLE BRACKET
⟨
〈
0x232a
⟩
RIGHT-POINTING ANGLE BRACKET
⟩
〉
0x25ca
◊
LOZENGE
◊
◊
0x2660
♠
BLACK SPADE SUIT
♠
♠
0x2663
♣
BLACK CLUB SUIT
♣
♣
0x2665
♥
BLACK HEART SUIT
♥
♥
0x2666
♦
BLACK DIAMOND SUIT
♦
♦
23 marca 2017
integer comparision
integer comparison
- -eq
- is equal to
if [ "$a" -eq "$b" ]
- -ne
- is not equal to
if [ "$a" -ne "$b" ]
- -gt
- is greater than
if [ "$a" -gt "$b" ]
- -ge
- is greater than or equal to
if [ "$a" -ge "$b" ]
- -lt
- is less than
if [ "$a" -lt "$b" ]
- -le
- is less than or equal to
if [ "$a" -le "$b" ]
- <
- is less than (within double parentheses)
(("$a" < "$b"))
- <=
- is less than or equal to (within double parentheses)
(("$a" <= "$b"))
- >
- is greater than (within double parentheses)
(("$a" > "$b"))
- >=
- is greater than or equal to (within double parentheses)
(("$a" >= "$b"))
- =
-
is equal to
if [ "$a" = "$b" ]
Note the whitespace framing the =. if [ "$a"="$b" ] is not equivalent to the above.
- ==
- is equal to
if [ "$a" == "$b" ]
This is a synonym for =.
The == comparison operator behaves differently within a double-brackets test than within single brackets. [[ $a == z* ]] # True if $a starts with an "z" (pattern matching). [[ $a == "z*" ]] # True if $a is equal to z* (literal matching). [ $a == z* ] # File globbing and word splitting take place. [ "$a" == "z*" ] # True if $a is equal to z* (literal matching). # Thanks, Stéphane Chazelas
- !=
- is not equal to
if [ "$a" != "$b" ]
This operator uses pattern matching within a [[ ... ]] construct.
- <
- is less than, in ASCII alphabetical order
if [[ "$a" < "$b" ]]
if [ "$a" \< "$b" ]
Note that the “<” needs to be escaped within a [ ] construct.
- >
- is greater than, in ASCII alphabetical order
if [[ "$a" > "$b" ]]
if [ "$a" \> "$b" ]
Note that the “>” needs to be escaped within a [ ] construct.
See Example 27-11 for an application of this comparison operator.
- -z
- string is null, that is, has zero length
String='' # Zero-length ("null") string variable. if [ -z "$String" ] then echo "\$String is null." else echo "\$String is NOT null." fi # $String is null.
- -n
- string is not null.
The -n test requires that the string be quoted within the test brackets. Using an unquoted string with ! -z, or even just the unquoted string alone within test brackets (see Example 7-6) normally works, however, this is an unsafe practice. Always quote a tested string. [1]
PrimeFaces – kolorowanki
p:dataTable id=”tbl” var=”i” value=”#{JsPuleGodzPrac.lst}”
rows=”500″ paginator=”true”
paginatorTemplate=”{CurrentPageReport} {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}”
rowsPerPageTemplate=”500,1000,1500″
rowStyleClass=”#{i.roznica lt 0 ? ‘mniejnizzero’ : i.roznica ge 500 ? ‘wiecej’ : null}”
>
gdzie mniejnizzero i wiecej to style CSS