大约有 40,000 项符合查询结果(耗时:0.0150秒) [XML]

https://stackoverflow.com/ques... 

Backing beans (@ManagedBean) or CDI Beans (@Named)?

... CDI is preferred over plain JSF because CDI allows for JavaEE-wide dependency injection. You can also inject POJOs and let them be managed. With JSF you can only inject a subset of what you can with CDI. ...
https://stackoverflow.com/ques... 

Java EE 6 @javax.annotation.ManagedBean vs. @javax.inject.Named vs. @javax.faces.ManagedBean

... First of all let me do some clarifications: Managed bean definition : generally a managed bean is an object that its life cycle (construction, destruction, etc) is managed by a container. In Java ee we have many containers that mana...
https://stackoverflow.com/ques... 

What components are MVC in JSF MVC framework?

...e as below: M - Entity V - Facelets/JSP page C - Managed bean In the smaller client picture, the developer V is in turn dividable as below: M - JSF component tree V - Rendered HTML output C - Client (webbrowser) In the yet smaller JavaScript picture, the client V is in turn dividable as below:...
https://stackoverflow.com/ques... 

Get JSF managed bean by name in any Servlet related class

...ted by JSF beforehand. Else these will return null. You'd then need to manually create the bean and use setAttribute("beanName", bean). If you're able to use CDI @Named instead of the since JSF 2.3 deprecated @ManagedBean, then it's even more easy, particularly because you don't anymore need to man...
https://stackoverflow.com/ques... 

Choosing a Java Web Framework now? [closed]

...eb application with multiple web sites with similar functionality but radically different look and feel. 17 Answers ...
https://stackoverflow.com/ques... 

Differences between action and actionListener

...just specify exactly that string in the action attribute. Thus, this is totally clumsy: <h:commandLink value="Go to next page" action="#{bean.goToNextpage}" /> With this senseless method returning a hardcoded string: public String goToNextpage() { return "nextpage"; } Instead, just put t...
https://stackoverflow.com/ques... 

Performing user authentication in Java EE / JSF using j_security_check

... and sun-web.xml, but instead of using BASIC authentication, use FORM (actually, it doesn't matter which one you use, but I ended up using FORM). Use the standard HTML , not the JSF . Then use BalusC's tip above on lazy initializing the user information from the database. He suggested doing it in a...
https://stackoverflow.com/ques... 

Difference between JSP EL, JSF EL and Unified EL [closed]

...tailed difference between the Expression Languages (EL). There is JSP EL, JSF EL and Unified EL. 2 Answers ...
https://stackoverflow.com/ques... 

How do CDI and EJB compare? interact?

...s, different implementations or algorithms (so you don't need EJB there at all). EJB: you do understand, and probably you are confused by @EJB annotation - it allows you to inject implementation into your service or whatever. The main idea is that class, where you inject, should be managed by EJB co...
https://stackoverflow.com/ques... 

Modify request parameter with servlet filter

...modify the source. I've decided to write a servlet filter to sanitize the parameter before it is seen by the page. 8 Answe...