大约有 40,000 项符合查询结果(耗时:0.0244秒) [XML]
How to choose the right bean scope?
...too). A @ViewScoped bean lives as long as you're interacting with the same JSF view by postbacks which call action methods returning null/void without any navigation/redirect. A @FlowScoped bean lives as long as you're navigating through the specified collection of views registered in the flow confi...
javax.faces.application.ViewExpiredException: View could not be restored
...ariables and multithreading.
There is also a limit on the amount of views JSF will store in the session. When the limit is hit, then the least recently used view will be expired. See also com.sun.faces.numberOfViewsInSession vs com.sun.faces.numberOfLogicalViews.
With the state saving method set t...
Get JSF managed bean by name in any Servlet related class
...s @WebServlet, @WebFilter and @WebListener, you can grab a "plain vanilla" JSF @ManagedBean @RequestScoped by:
Bean bean = (Bean) request.getAttribute("beanName");
and @ManagedBean @SessionScoped by:
Bean bean = (Bean) request.getSession().getAttribute("beanName");
and @ManagedBean @ApplicationSco...
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
...
What components are MVC in JSF MVC framework?
In JSF MVC framework who is Model, View, and Controller?
4 Answers
4
...
How to include another XHTML in XHTML using JSF 2.0 Facelets?
... xmlns="http://www.w3.org/1999/xhtml"
xmlns:f="http://xmlns.jcp.org/jsf/core"
xmlns:h="http://xmlns.jcp.org/jsf/html"
xmlns:ui="http://xmlns.jcp.org/jsf/facelets">
<h:head>
<title>Include demo</title>
</h:head>
<h:body>
<...
Performing user authentication in Java EE / JSF using j_security_check
...roach is regarding user authentication for a web application making use of JSF 2.0 (and if any components do exist) and Java EE 6 core mechanisms (login/check permissions/logouts) with user information hold in a JPA entity. The Oracle Java EE tutorial is a bit sparse on this (only handles servlets)....
Differences between action and actionListener
...he parentheses in the argumentless method expression. If they were absent, JSF would still expect a method with ActionEvent argument.
If you're on EL 2.2+, then you can declare multiple action listener methods via <f:actionListener binding>.
<h:commandXxx ... actionListener="#{bean.actionLi...
How do CDI and EJB compare? interact?
...there are now multiple component models in Java EE. They are CDI, EJB3 and JSF Managed Beans.
CDI is the new kid on the block. CDI beans feature dependency injection, scoping and an event bus. CDI beans are the most flexible with respect to injection and scoping. The event bus is very lightweight a...
Choosing a Java Web Framework now? [closed]
...zen of frameworks around there and no clear winner. Just to cite a few:
JSF: Lots of skeptics about this component based framework, including me so I'm not the best one to talk about it but...
JSF 2 (+ CDI/Weld): JSF skeptics are encouraged (by Gavin King) to "take a second look". Indeed, I think...