Dab tsi yog tswj tau taum hauv JSF?
Dab tsi yog tswj tau taum hauv JSF?

Video: Dab tsi yog tswj tau taum hauv JSF?

Video: Dab tsi yog tswj tau taum hauv JSF?
Video: Nkauj Ntseeg -Tsis Muaj dab hauv lub ntiaj teb 2024, Kaum ib hlis
Anonim

Tswj taum yog ib txwm Java Taum chav kawm sau npe nrog JSF . Hauv lwm lo lus, Managed Taum yog Java taum tswj los ntawm JSF lub moj khaum. Managed taum muaj cov getter thiab setter txoj kev, lag luam logic, los yog txawm a thaub qab taum (a taum muaj tag nrho cov HTML daim ntawv tus nqi). Managed taum ua haujlwm ua qauv rau UI tivthaiv.

Ib yam li ib tug yuav nug, dab tsi yog cov taum thaub qab hauv JSF?

Rov qab taum hauv JSF yog ib tug subtype ntawm tswj tau Bean tab sis muaj cov khoom ntawm tag nrho lossis qee qhov ntawm UI tivthaiv hauv a JSF nplooj. Cov thaub qab taum yog pab tau rau UI tivthaiv validations, hloov dua siab tshiab, tshwm sim tuav thiab lwm yam. Nyob rau hauv lwm yam lus, thaub qab taum cov khoom khi rau UI Cheebtsam Hauv JSF nplooj.

Tsis tas li ntawd, JSF lub moj khaum yog dab tsi? Java Server Faces ( JSF ) yog Java-based web application lub moj khaum npaj los ua kom yooj yim txhim kho kev koom ua ke ntawm web-based user interfaces. JavaServer Faces yog ib qho qauv siv thev naus laus zis, uas tau ua tiav hauv qhov kev qhia tshwj xeeb los ntawm Java Community Process.

JSF saib Scope yog dab tsi?

Cov saib scope Nws yog qhov yooj yim heev, txij li nws tso cai rau tus qauv ntawm kev pib cov ntaub ntawv thaum koj thawj zaug nkag mus rau nplooj ntawv (ntawm qhov kev thov tsis yog ntsej muag, uas feem ntau yog GET thov) thiab tom qab ntawd khaws cov ntaub ntawv ntawd thaum koj ua haujlwm ntawm nplooj ntawv, ua postbacks, AJAX thov, lwm.

Java bean class yog dab tsi?

JavaBeans yog chav kawm uas encapsulate ntau yam khoom rau hauv ib yam khoom (the taum ). Nws yog ib java chav uas yuav tsum ua raws li cov lus pom zoo hauv qab no: Yuav tsum siv Serializable. Nws yuav tsum muaj ib tug pej xeem tsis-arg constructor. Txhua yam khoom hauv java taum yuav tsum yog tus kheej nrog pej xeem getters thiab setter txoj kev.

Pom zoo: