Marzec « 2017 « Różności …

Różności …

31 marca 2017

Pass values from JavaScript to ManagedBean

Zaszufladkowany do: JAVA EE,Programowanie — Tagi: — Jacek @ 23:06

https://www.mkyong.com/jsf2/how-to-pass-new-hidden-value-to-backing-bean-in-jsf/

30 marca 2017

JSF + javaScript

Zaszufladkowany do: JAVA EE — Tagi: — Jacek @ 13:17
"     "
&     &
'     '
<     &lt;
>     &gt;


Hex C Name Ent Ref
0x0022 " QUOTATION MARK &quot; &#34;
0x0026 & AMPERSAND &amp; &#38;
0x0027 ' APOSTROPHE &apos; &#39;
0x003c < LESS-THAN SIGN &lt; &#60;
0x003e > GREATER-THAN SIGN &gt; &#62;
0x00a0 nbsp NO-BREAK SPACE &nbsp; &#160;
0x00a1 ¡ INVERTED EXCLAMATION MARK &iexcl; &#161;
0x00a2 ¢ CENT SIGN &cent; &#162;
0x00a3 £ POUND SIGN &pound; &#163;
0x00a4 ¤ CURRENCY SIGN &curren; &#164;
0x00a5 ¥ YEN SIGN &yen; &#165;
0x00a6 ¦ BROKEN BAR &brvbar; &#166;
0x00a7 § SECTION SIGN &sect; &#167;
0x00a8 ¨ DIAERESIS &uml; &#168;
0x00a9 © COPYRIGHT SIGN &copy; &#169;
0x00aa ª FEMININE ORDINAL INDICATOR &ordf; &#170;
0x00ab « LEFT-POINTING DOUBLE ANGLE QUOTATION MARK &laquo; &#171;
0x00ac ¬ NOT SIGN &not; &#172;
0x00ad shy SOFT HYPHEN &shy; &#173;
0x00ae ® REGISTERED SIGN &reg; &#174;
0x00af ¯ MACRON &macr; &#175;
0x00b0 ° DEGREE SIGN &deg; &#176;
0x00b1 ± PLUS-MINUS SIGN &plusmn; &#177;
0x00b2 ² SUPERSCRIPT TWO &sup2; &#178;
0x00b3 ³ SUPERSCRIPT THREE &sup3; &#179;
0x00b4 ´ ACUTE ACCENT &acute; &#180;
0x00b5 µ MICRO SIGN &micro; &#181;
0x00b6 PILCROW SIGN &para; &#182;
0x00b7 · MIDDLE DOT &middot; &#183;
0x00b8 ¸ CEDILLA &cedil; &#184;
0x00b9 ¹ SUPERSCRIPT ONE &sup1; &#185;
0x00ba º MASCULINE ORDINAL INDICATOR &ordm; &#186;
0x00bb » RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK &raquo; &#187;
0x00bc ¼ VULGAR FRACTION ONE QUARTER &frac14; &#188;
0x00bd ½ VULGAR FRACTION ONE HALF &frac12; &#189;
0x00be ¾ VULGAR FRACTION THREE QUARTERS &frac34; &#190;
0x00bf ¿ INVERTED QUESTION MARK &iquest; &#191;
0x00c0 À LATIN CAPITAL LETTER A WITH GRAVE &Agrave; &#192;
0x00c1 Á LATIN CAPITAL LETTER A WITH ACUTE &Aacute; &#193;
0x00c2 Â LATIN CAPITAL LETTER A WITH CIRCUMFLEX &Acirc; &#194;
0x00c3 Ã LATIN CAPITAL LETTER A WITH TILDE &Atilde; &#195;
0x00c4 Ä LATIN CAPITAL LETTER A WITH DIAERESIS &Auml; &#196;
0x00c5 Å LATIN CAPITAL LETTER A WITH RING ABOVE &Aring; &#197;
0x00c6 Æ LATIN CAPITAL LETTER AE &AElig; &#198;
0x00c7 Ç LATIN CAPITAL LETTER C WITH CEDILLA &Ccedil; &#199;
0x00c8 È LATIN CAPITAL LETTER E WITH GRAVE &Egrave; &#200;
0x00c9 É LATIN CAPITAL LETTER E WITH ACUTE &Eacute; &#201;
0x00ca Ê LATIN CAPITAL LETTER E WITH CIRCUMFLEX &Ecirc; &#202;
0x00cb Ë LATIN CAPITAL LETTER E WITH DIAERESIS &Euml; &#203;
0x00cc Ì LATIN CAPITAL LETTER I WITH GRAVE &Igrave; &#204;
0x00cd Í LATIN CAPITAL LETTER I WITH ACUTE &Iacute; &#205;
0x00ce Î LATIN CAPITAL LETTER I WITH CIRCUMFLEX &Icirc; &#206;
0x00cf Ï LATIN CAPITAL LETTER I WITH DIAERESIS &Iuml; &#207;
0x00d0 Ð LATIN CAPITAL LETTER ETH &ETH; &#208;
0x00d1 Ñ LATIN CAPITAL LETTER N WITH TILDE &Ntilde; &#209;
0x00d2 Ò LATIN CAPITAL LETTER O WITH GRAVE &Ograve; &#210;
0x00d3 Ó LATIN CAPITAL LETTER O WITH ACUTE &Oacute; &#211;
0x00d4 Ô LATIN CAPITAL LETTER O WITH CIRCUMFLEX &Ocirc; &#212;
0x00d5 Õ LATIN CAPITAL LETTER O WITH TILDE &Otilde; &#213;
0x00d6 Ö LATIN CAPITAL LETTER O WITH DIAERESIS &Ouml; &#214;
0x00d7 × MULTIPLICATION SIGN &times; &#215;
0x00d8 Ø LATIN CAPITAL LETTER O WITH STROKE &Oslash; &#216;
0x00d9 Ù LATIN CAPITAL LETTER U WITH GRAVE &Ugrave; &#217;
0x00da Ú LATIN CAPITAL LETTER U WITH ACUTE &Uacute; &#218;
0x00db Û LATIN CAPITAL LETTER U WITH CIRCUMFLEX &Ucirc; &#219;
0x00dc Ü LATIN CAPITAL LETTER U WITH DIAERESIS &Uuml; &#220;
0x00dd Ý LATIN CAPITAL LETTER Y WITH ACUTE &Yacute; &#221;
0x00de Þ LATIN CAPITAL LETTER THORN &THORN; &#222;
0x00df ß LATIN SMALL LETTER SHARP S &szlig; &#223;
0x00e0 à LATIN SMALL LETTER A WITH GRAVE &agrave; &#224;
0x00e1 á LATIN SMALL LETTER A WITH ACUTE &aacute; &#225;
0x00e2 â LATIN SMALL LETTER A WITH CIRCUMFLEX &acirc; &#226;
0x00e3 ã LATIN SMALL LETTER A WITH TILDE &atilde; &#227;
0x00e4 ä LATIN SMALL LETTER A WITH DIAERESIS &auml; &#228;
0x00e5 å LATIN SMALL LETTER A WITH RING ABOVE &aring; &#229;
0x00e6 æ LATIN SMALL LETTER AE &aelig; &#230;
0x00e7 ç LATIN SMALL LETTER C WITH CEDILLA &ccedil; &#231;
0x00e8 è LATIN SMALL LETTER E WITH GRAVE &egrave; &#232;
0x00e9 é LATIN SMALL LETTER E WITH ACUTE &eacute; &#233;
0x00ea ê LATIN SMALL LETTER E WITH CIRCUMFLEX &ecirc; &#234;
0x00eb ë LATIN SMALL LETTER E WITH DIAERESIS &euml; &#235;
0x00ec ì LATIN SMALL LETTER I WITH GRAVE &igrave; &#236;
0x00ed í LATIN SMALL LETTER I WITH ACUTE &iacute; &#237;
0x00ee î LATIN SMALL LETTER I WITH CIRCUMFLEX &icirc; &#238;
0x00ef ï LATIN SMALL LETTER I WITH DIAERESIS &iuml; &#239;
0x00f0 ð LATIN SMALL LETTER ETH &eth; &#240;
0x00f1 ñ LATIN SMALL LETTER N WITH TILDE &ntilde; &#241;
0x00f2 ò LATIN SMALL LETTER O WITH GRAVE &ograve; &#242;
0x00f3 ó LATIN SMALL LETTER O WITH ACUTE &oacute; &#243;
0x00f4 ô LATIN SMALL LETTER O WITH CIRCUMFLEX &ocirc; &#244;
0x00f5 õ LATIN SMALL LETTER O WITH TILDE &otilde; &#245;
0x00f6 ö LATIN SMALL LETTER O WITH DIAERESIS &ouml; &#246;
0x00f7 ÷ DIVISION SIGN &divide; &#247;
0x00f8 ø LATIN SMALL LETTER O WITH STROKE &oslash; &#248;
0x00f9 ù LATIN SMALL LETTER U WITH GRAVE &ugrave; &#249;
0x00fa ú LATIN SMALL LETTER U WITH ACUTE &uacute; &#250;
0x00fb û LATIN SMALL LETTER U WITH CIRCUMFLEX &ucirc; &#251;
0x00fc ü LATIN SMALL LETTER U WITH DIAERESIS &uuml; &#252;
0x00fd ý LATIN SMALL LETTER Y WITH ACUTE &yacute; &#253;
0x00fe þ LATIN SMALL LETTER THORN &thorn; &#254;
0x00ff ÿ LATIN SMALL LETTER Y WITH DIAERESIS &yuml; &#255;
0x0152 Œ LATIN CAPITAL LIGATURE OE &OElig; &#338;
0x0153 œ LATIN SMALL LIGATURE OE &oelig; &#339;
0x0160 Š LATIN CAPITAL LETTER S WITH CARON &Scaron; &#352;
0x0161 š LATIN SMALL LETTER S WITH CARON &scaron; &#353;
0x0178 Ÿ LATIN CAPITAL LETTER Y WITH DIAERESIS &Yuml; &#376;
0x0192 ƒ LATIN SMALL LETTER F WITH HOOK &fnof; &#402;
0x02c6 ˆ MODIFIER LETTER CIRCUMFLEX ACCENT &circ; &#710;
0x02dc ˜ SMALL TILDE &tilde; &#732;
0x0391 Α GREEK CAPITAL LETTER ALPHA &Alpha; &#913;
0x0392 Β GREEK CAPITAL LETTER BETA &Beta; &#914;
0x0393 Γ GREEK CAPITAL LETTER GAMMA &Gamma; &#915;
0x0394 Δ GREEK CAPITAL LETTER DELTA &Delta; &#916;
0x0395 Ε GREEK CAPITAL LETTER EPSILON &Epsilon; &#917;
0x0396 Ζ GREEK CAPITAL LETTER ZETA &Zeta; &#918;
0x0397 Η GREEK CAPITAL LETTER ETA &Eta; &#919;
0x0398 Θ GREEK CAPITAL LETTER THETA &Theta; &#920;
0x0399 Ι GREEK CAPITAL LETTER IOTA &Iota; &#921;
0x039a Κ GREEK CAPITAL LETTER KAPPA &Kappa; &#922;
0x039b Λ GREEK CAPITAL LETTER LAMDA &Lambda; &#923;
0x039c Μ GREEK CAPITAL LETTER MU &Mu; &#924;
0x039d Ν GREEK CAPITAL LETTER NU &Nu; &#925;
0x039e Ξ GREEK CAPITAL LETTER XI &Xi; &#926;
0x039f Ο GREEK CAPITAL LETTER OMICRON &Omicron; &#927;
0x03a0 Π GREEK CAPITAL LETTER PI &Pi; &#928;
0x03a1 Ρ GREEK CAPITAL LETTER RHO &Rho; &#929;
0x03a3 Σ GREEK CAPITAL LETTER SIGMA &Sigma; &#931;
0x03a4 Τ GREEK CAPITAL LETTER TAU &Tau; &#932;
0x03a5 Υ GREEK CAPITAL LETTER UPSILON &Upsilon; &#933;
0x03a6 Φ GREEK CAPITAL LETTER PHI &Phi; &#934;
0x03a7 Χ GREEK CAPITAL LETTER CHI &Chi; &#935;
0x03a8 Ψ GREEK CAPITAL LETTER PSI &Psi; &#936;
0x03a9 Ω GREEK CAPITAL LETTER OMEGA &Omega; &#937;
0x03b1 α GREEK SMALL LETTER ALPHA &alpha; &#945;
0x03b2 β GREEK SMALL LETTER BETA &beta; &#946;
0x03b3 γ GREEK SMALL LETTER GAMMA &gamma; &#947;
0x03b4 δ GREEK SMALL LETTER DELTA &delta; &#948;
0x03b5 ε GREEK SMALL LETTER EPSILON &epsilon; &#949;
0x03b6 ζ GREEK SMALL LETTER ZETA &zeta; &#950;
0x03b7 η GREEK SMALL LETTER ETA &eta; &#951;
0x03b8 θ GREEK SMALL LETTER THETA &theta; &#952;
0x03b9 ι GREEK SMALL LETTER IOTA &iota; &#953;
0x03ba κ GREEK SMALL LETTER KAPPA &kappa; &#954;
0x03bb λ GREEK SMALL LETTER LAMDA &lambda; &#955;
0x03bc μ GREEK SMALL LETTER MU &mu; &#956;
0x03bd ν GREEK SMALL LETTER NU &nu; &#957;
0x03be ξ GREEK SMALL LETTER XI &xi; &#958;
0x03bf ο GREEK SMALL LETTER OMICRON &omicron; &#959;
0x03c0 π GREEK SMALL LETTER PI &pi; &#960;
0x03c1 ρ GREEK SMALL LETTER RHO &rho; &#961;
0x03c2 ς GREEK SMALL LETTER FINAL SIGMA &sigmaf; &#962;
0x03c3 σ GREEK SMALL LETTER SIGMA &sigma; &#963;
0x03c4 τ GREEK SMALL LETTER TAU &tau; &#964;
0x03c5 υ GREEK SMALL LETTER UPSILON &upsilon; &#965;
0x03c6 φ GREEK SMALL LETTER PHI &phi; &#966;
0x03c7 χ GREEK SMALL LETTER CHI &chi; &#967;
0x03c8 ψ GREEK SMALL LETTER PSI &psi; &#968;
0x03c9 ω GREEK SMALL LETTER OMEGA &omega; &#969;
0x03d1 ϑ GREEK THETA SYMBOL &thetasym; &#977;
0x03d2 ϒ GREEK UPSILON WITH HOOK SYMBOL &upsih; &#978;
0x03d6 ϖ GREEK PI SYMBOL &piv; &#982;
0x2002 ensp EN SPACE &ensp; &#8194;
0x2003 emsp EM SPACE &emsp; &#8195;
0x2009 thsp THIN SPACE &thinsp; &#8201;
0x200c zwnj ZERO WIDTH NON-JOINER &zwnj; &#8204;
0x200d zwj ZERO WIDTH JOINER &zwj; &#8205;
0x200e lrm LEFT-TO-RIGHT MARK &lrm; &#8206;
0x200f rlm RIGHT-TO-LEFT MARK &rlm; &#8207;
0x2013 EN DASH &ndash; &#8211;
0x2014 EM DASH &mdash; &#8212;
0x2018 LEFT SINGLE QUOTATION MARK &lsquo; &#8216;
0x2019 RIGHT SINGLE QUOTATION MARK &rsquo; &#8217;
0x201a SINGLE LOW-9 QUOTATION MARK &sbquo; &#8218;
0x201c LEFT DOUBLE QUOTATION MARK &ldquo; &#8220;
0x201d RIGHT DOUBLE QUOTATION MARK &rdquo; &#8221;
0x201e DOUBLE LOW-9 QUOTATION MARK &bdquo; &#8222;
0x2020 DAGGER &dagger; &#8224;
0x2021 DOUBLE DAGGER &Dagger; &#8225;
0x2022 BULLET &bull; &#8226;
0x2026 HORIZONTAL ELLIPSIS &hellip; &#8230;
0x2030 PER MILLE SIGN &permil; &#8240;
0x2032 PRIME &prime; &#8242;
0x2033 DOUBLE PRIME &Prime; &#8243;
0x2039 SINGLE LEFT-POINTING ANGLE QUOTATION MARK &lsaquo; &#8249;
0x203a SINGLE RIGHT-POINTING ANGLE QUOTATION MARK &rsaquo; &#8250;
0x203e OVERLINE &oline; &#8254;
0x2044 FRACTION SLASH &frasl; &#8260;
0x20ac EURO SIGN &euro; &#8364;
0x2111 BLACK-LETTER CAPITAL I &image; &#8465;
0x2118 SCRIPT CAPITAL P &weierp; &#8472;
0x211c BLACK-LETTER CAPITAL R &real; &#8476;
0x2122 TRADE MARK SIGN &trade; &#8482;
0x2135 ALEF SYMBOL &alefsym; &#8501;
0x2190 LEFTWARDS ARROW &larr; &#8592;
0x2191 UPWARDS ARROW &uarr; &#8593;
0x2192 RIGHTWARDS ARROW &rarr; &#8594;
0x2193 DOWNWARDS ARROW &darr; &#8595;
0x2194 LEFT RIGHT ARROW &harr; &#8596;
0x21b5 DOWNWARDS ARROW WITH CORNER LEFTWARDS &crarr; &#8629;
0x21d0 LEFTWARDS DOUBLE ARROW &lArr; &#8656;
0x21d1 UPWARDS DOUBLE ARROW &uArr; &#8657;
0x21d2 RIGHTWARDS DOUBLE ARROW &rArr; &#8658;
0x21d3 DOWNWARDS DOUBLE ARROW &dArr; &#8659;
0x21d4 LEFT RIGHT DOUBLE ARROW &hArr; &#8660;
0x2200 FOR ALL &forall; &#8704;
0x2202 PARTIAL DIFFERENTIAL &part; &#8706;
0x2203 THERE EXISTS &exist; &#8707;
0x2205 EMPTY SET &empty; &#8709;
0x2207 NABLA &nabla; &#8711;
0x2208 ELEMENT OF &isin; &#8712;
0x2209 NOT AN ELEMENT OF &notin; &#8713;
0x220b CONTAINS AS MEMBER &ni; &#8715;
0x220f N-ARY PRODUCT &prod; &#8719;
0x2211 N-ARY SUMMATION &sum; &#8721;
0x2212 MINUS SIGN &minus; &#8722;
0x2217 ASTERISK OPERATOR &lowast; &#8727;
0x221a SQUARE ROOT &radic; &#8730;
0x221d PROPORTIONAL TO &prop; &#8733;
0x221e INFINITY &infin; &#8734;
0x2220 ANGLE &ang; &#8736;
0x2227 LOGICAL AND &and; &#8743;
0x2228 LOGICAL OR &or; &#8744;
0x2229 INTERSECTION &cap; &#8745;
0x222a UNION &cup; &#8746;
0x222b INTEGRAL &int; &#8747;
0x2234 THEREFORE &there4; &#8756;
0x223c TILDE OPERATOR &sim; &#8764;
0x2245 APPROXIMATELY EQUAL TO &cong; &#8773;
0x2248 ALMOST EQUAL TO &asymp; &#8776;
0x2260 NOT EQUAL TO &ne; &#8800;
0x2261 IDENTICAL TO &equiv; &#8801;
0x2264 LESS-THAN OR EQUAL TO &le; &#8804;
0x2265 GREATER-THAN OR EQUAL TO &ge; &#8805;
0x2282 SUBSET OF &sub; &#8834;
0x2283 SUPERSET OF &sup; &#8835;
0x2284 NOT A SUBSET OF &nsub; &#8836;
0x2286 SUBSET OF OR EQUAL TO &sube; &#8838;
0x2287 SUPERSET OF OR EQUAL TO &supe; &#8839;
0x2295 CIRCLED PLUS &oplus; &#8853;
0x2297 CIRCLED TIMES &otimes; &#8855;
0x22a5 UP TACK &perp; &#8869;
0x22c5 DOT OPERATOR &sdot; &#8901;
0x2308 LEFT CEILING &lceil; &#8968;
0x2309 RIGHT CEILING &rceil; &#8969;
0x230a LEFT FLOOR &lfloor; &#8970;
0x230b RIGHT FLOOR &rfloor; &#8971;
0x2329 LEFT-POINTING ANGLE BRACKET &lang; &#9001;
0x232a RIGHT-POINTING ANGLE BRACKET &rang; &#9002;
0x25ca LOZENGE &loz; &#9674;
0x2660 BLACK SPADE SUIT &spades; &#9824;
0x2663 BLACK CLUB SUIT &clubs; &#9827;
0x2665 BLACK HEART SUIT &hearts; &#9829;
0x2666 BLACK DIAMOND SUIT &diams; &#9830;

23 marca 2017

adb android

Zaszufladkowany do: Android — Tagi: — Jacek @ 20:35

./adb root shell

./adb shell

./adb pull ‘/data/data’ /home/jsen/Pulpit/pullAndroid/

integer comparision

Zaszufladkowany do: JAVA EE — Tagi: — Jacek @ 16:43

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"))

string comparison

=

is equal to

if [ "$a" = "$b" ]

Caution 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 =.

Note 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.

Caution 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]

source: http://tldp.org/LDP/abs/html/comparison-ops.html

PrimeFaces – kolorowanki

Zaszufladkowany do: JAVA EE — Tagi: — Jacek @ 16:35

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

Strona startowa: www.jaceksen.pl