Can anyone describe a component-based paradigm in Java programming?

I am trying to learn Java programming. I come from perl scripts and know very little Java, and even more so JSF / Seam / EJB3.0. I have made a lot of progress in this very steep learning curve, but there are some big conceptual issues that seem to me to bother me a bit.

Recently, I turned my attention to studying JSF. Typically, JSF discussions include a description of component-based web programming, but they seem to have experience with other web programming paradigms. I would be interested to see a more complete discussion of this component-based paradigm in the context of other paradigms.

Can someone explain?

Thanks in advance for your thoughts.

Tdr

+3
source share
3 answers

The main idea is simply an extension of object-oriented design: separate the attention of your program. In the same way, you can make several different PERL scripts and combine them together to do the work, we will make several different JSF components and put them together to do the work.

Let's take a simple registration form as an example. I want to find out your name, your date of birth, your address and send all this to the background to complete the work.

, , . , , , . , bean "". , , , , bean ( ) . .:)

, , . , , . . , h: inputText bean.

-, . h: inputText f: converter, bean . , , Java Script, . IceFaces RichFaces . : , .

-, . , , , . , . , ajaxy, . , , , <foo:address value="#{BarBean.address}"/> .

-, - . , ! - . , ui: define. , , JSF; Facelets. IceFaces - . AJAXy, , , ( .;), , , , .

, : , .

+2

, . java, , , .

: JSF -. , , , JSP, , . , ( ajax), DOM .

0

JSF Java EE , .

, , .jsp .xhtml Java bean, , .

0

Source: https://habr.com/ru/post/1709987/


All Articles