8/12/2019 JBoss RichFaces and Ajax4JSF
1/16
JBoss Ajax4jsf, RichFacesJBoss Ajax4jsf, RichFaces
&&Apache TrinidadApache Trinidad
Marco PehlaMarco Pehla
8/12/2019 JBoss RichFaces and Ajax4JSF
2/16
27/08/0727/08/07 BTU Cottbus - Chair of Internet TechnologyBTU Cottbus - Chair of Internet Technology 22
explanationexplanation
all user interface (UI co!ponents for "a#a$er#erall user interface (UI co!ponents for "a#a$er#er%aces ("$%%aces ("$%
"Boss &'ax'sf ) *ich%aces +ere pre#iously"Boss &'ax'sf ) *ich%aces +ere pre#iouslyco!!ercial pro,ucts of xa,elco!!ercial pro,ucts of xa,el
&pache Trini,a, also .no+n as racle &% %aces&pache Trini,a, also .no+n as racle &% %aces
all co!ponents are no+ open sourceall co!ponents are no+ open source
( &% 1 &pplication e#elop!ent %ra!e+or. ( &% 1 &pplication e#elop!ent %ra!e+or.
8/12/2019 JBoss RichFaces and Ajax4JSF
3/16
27/08/0727/08/07 BTU Cottbus - Chair of Internet TechnologyBTU Cottbus - Chair of Internet Technology
"Boss &'ax'sf 34343"Boss &'ax'sf 34343
&synchronous "a#a$cript an, 56 (&'ax support&synchronous "a#a$cript an, 56 (&'ax supportfor existing "a#a$er#er %aces ele!entsfor existing "a#a$er#er %aces ele!ents
partial re-ren,erble user interface (UIpartial re-ren,erble user interface (UI
no #isual UI co!ponents no #isual UI co!ponents
tag library U*Itag library U*Ihttps://ajax4jsf.dev.java.net/ajaxhttps://ajax4jsf.dev.java.net/ajax
online ,e!onstrationonline ,e!onstrationhttp://labs.jboss.com/jbossajax4jsf/demo/http://labs.jboss.com/jbossajax4jsf/demo/
https://ajax4jsf.dev.java.net/ajaxhttps://ajax4jsf.dev.java.net/ajaxhttp://labs.jboss.com/jbossajax4jsf/demo/http://labs.jboss.com/jbossajax4jsf/demo/http://labs.jboss.com/jbossajax4jsf/demo/https://ajax4jsf.dev.java.net/ajax8/12/2019 JBoss RichFaces and Ajax4JSF
4/1627/08/0727/08/07 BTU Cottbus - Chair of Internet TechnologyBTU Cottbus - Chair of Internet Technology
&'ax lifecycle o#er#ie+&'ax lifecycle o#er#ie+
( source: http://labs.jboss.com/jbossajax4jsf/)
http://labs.jboss.com/jbossajax4jsf/http://labs.jboss.com/jbossajax4jsf/8/12/2019 JBoss RichFaces and Ajax4JSF
5/16
send only this form field not more
during Ajax request ortill respond messageis received
8/12/2019 JBoss RichFaces and Ajax4JSF
6/16
27/08/0727/08/07 BTU Cottbus - Chair of Internet TechnologyBTU Cottbus - Chair of Internet Technology 99
"Boss *ich%aces 4043"Boss *ich%aces 4043
buil, on top of "Boss &'ax'sfbuil, on top of "Boss &'ax'sf
&'ax enable, UI co!ponents (+eb 240&'ax enable, UI co!ponents (+eb 240
tab panels (li.e in %irefox 2 an, !enuestab panels (li.e in %irefox 2 an, !enues
tree #ie+ (li.e the fol,er #ie+ in xplorertree #ie+ (li.e the fol,er #ie+ in xplorer
,rag ) ,rop support,rag ) ,rop support
:oogle 6aps integration:oogle 6aps integration
444444
tag library U*Itag library U*Ihttp://richfaces.ajax4jsf.org/richhttp://richfaces.ajax4jsf.org/rich
online ,e!onstration of all co!ponentsonline ,e!onstration of all co!ponents
http://livedemo.exadel.com/richfaces-demo/http://livedemo.exadel.com/richfaces-demo/
http://livedemo.exadel.com/richfaces-demo/http://livedemo.exadel.com/richfaces-demo/http://livedemo.exadel.com/richfaces-demo/8/12/2019 JBoss RichFaces and Ajax4JSF
7/16
27/08/0727/08/07 BTU Cottbus - Chair of Internet TechnologyBTU Cottbus - Chair of Internet Technology 77
*ich%aces exa!ple; tab*ich%aces exa!ple; tab
8/12/2019 JBoss RichFaces and Ajax4JSF
8/16
27/08/0727/08/07 BTU Cottbus - Chair of Internet TechnologyBTU Cottbus - Chair of Internet Technology 88
*ich%aces exa!ple; !enue*ich%aces exa!ple; !enue
... ...
8/12/2019 JBoss RichFaces and Ajax4JSF
9/16
27/08/0727/08/07 BTU Cottbus - Chair of Internet TechnologyBTU Cottbus - Chair of Internet Technology
8/12/2019 JBoss RichFaces and Ajax4JSF
10/16
27/08/0727/08/07 BTU Cottbus - Chair of Internet TechnologyBTU Cottbus - Chair of Internet Technology 3030
*ich%aces exa!ple; :oogle 6aps*ich%aces exa!ple; :oogle 6aps
...
8/12/2019 JBoss RichFaces and Ajax4JSF
11/16
27/08/0727/08/07 BTU Cottbus - Chair of Internet TechnologyBTU Cottbus - Chair of Internet Technology 3333
*ich%aces exa!ple; tree*ich%aces exa!ple; tree
ser#er (page refresh= &'ax (56>ttp*e?uest orser#er (page refresh= &'ax (56>ttp*e?uest or
client !o,e (pre-loa, !o,es are useableclient !o,e (pre-loa, !o,es are useable
to,o; i!ple!entation of your o+n tree ,ata structureto,o; i!ple!entation of your o+n tree ,ata structure(for e#ery no,e type e4g4 root=chil,s= chil,s of chil,s(for e#ery no,e type e4g4 root=chil,s= chil,s of chil,s
1@ i!ple!entation is1@ i!ple!entation is #ery#eryti!e-consu!ingti!e-consu!ing
8/12/2019 JBoss RichFaces and Ajax4JSF
12/16
27/08/0727/08/07 BTU Cottbus - Chair of Internet TechnologyBTU Cottbus - Chair of Internet Technology 3232
*ich%aces exa!ple; tree*ich%aces exa!ple; tree
ore on exaples in !he online deons!ra!ion
http://livedemo.exadel.com/richfaces-demo/http://livedemo.exadel.com/richfaces-demo/8/12/2019 JBoss RichFaces and Ajax4JSF
13/16
27/08/0727/08/07 BTU Cottbus - Chair of Internet TechnologyBTU Cottbus - Chair of Internet Technology 33
&pache Trini,a, 34043&pache Trini,a, 34043
a,,itional UI co!ponents for "$%a,,itional UI co!ponents for "$%
calen,er= color pic.ercalen,er= color pic.er
tree= na#igationtree= na#igation
interesting;interesting;
chart co!ponent creates $A: graphicschart co!ponent creates $A: graphics
file uploa, co!ponent= can store file content in "a#afile uploa, co!ponent= can store file content in "a#aob'ects in !e!ory instea, in filesob'ects in !e!ory instea, in files
ba,;ba,; #34043 runs +ith a +or.aroun, next *ich%aces 4043#34043 runs +ith a +or.aroun, next *ich%aces 4043
#34243 ,oes it#34243 ,oes it notnotin !y casein !y case
($A: 1($A: 1 scalable #ector graphicsscalable #ector graphics
8/12/2019 JBoss RichFaces and Ajax4JSF
14/16
27/08/0727/08/07 BTU Cottbus - Chair of Internet TechnologyBTU Cottbus - Chair of Internet Technology 33
Trini,a, 34043 exa!ple; chartTrini,a, 34043 exa!ple; chart
se#eral chart types= ani!ate, ren,eringse#eral chart types= ani!ate, ren,ering
8/12/2019 JBoss RichFaces and Ajax4JSF
15/16
27/08/0727/08/07 BTU Cottbus - Chair of Internet TechnologyBTU Cottbus - Chair of Internet Technology 33
Trini,a, 34043 exa!ple; chartTrini,a, 34043 exa!ple; chart
http://myfaces.apache.org/trinidad/htmlhttp://myfaces.apache.org/trinidad/html8/12/2019 JBoss RichFaces and Ajax4JSF
16/16
27/08/0727/08/07 BTU Cottbus - Chair of Internet TechnologyBTU Cottbus - Chair of Internet Technology 3939
here to fin,Dhere to fin,D
"Boss &'ax'sf"Boss &'ax'sfhttp://labs.jboss.com/jbossajax4jsf/http://labs.jboss.com/jbossajax4jsf/
"Boss *ich%aces"Boss *ich%aceshttp://labs.jboss.com/jbossrichfaces/http://labs.jboss.com/jbossrichfaces/
&pache Trini,a,&pache Trini,a,http://myfaces.apache.org/trinidad/http://myfaces.apache.org/trinidad/
http://labs.jboss.com/jbossajax4jsf/http://labs.jboss.com/jbossajax4jsf/http://labs.jboss.com/jbossrichfaces/http://labs.jboss.com/jbossrichfaces/http://myfaces.apache.org/trinidad/http://myfaces.apache.org/trinidad/http://myfaces.apache.org/trinidad/http://labs.jboss.com/jbossrichfaces/http://labs.jboss.com/jbossajax4jsf/