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

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

ViewParam vs @ManagedProperty(value = “#{param.id}”)

What is the difference between defining View Params like this: 2 Answers 2 ...
https://stackoverflow.com/ques... 

Migrating from JSF 1.2 to JSF 2.0

...cessary, but just for cleanup, remove any Facelets 1.x related <context-param> values from web.xml which are already default in Facelets 2.0, like the javax.faces.DEFAULT_SUFFIX with value of *.xhtml. Update root declaration of existing Facelet taglib XML's to comply Facelets 2.0. <facelet...
https://stackoverflow.com/ques... 

How to choose the right bean scope?

...you'd need to use exclusively @RequestScoped beans and fiddle with request parameters to maintain the client's state. Also note that when you have a single JSF page with differently scoped data, then it's perfectly valid to put them in separate backing beans in a scope matching the data's scope. The...
https://stackoverflow.com/ques... 

What are the main disadvantages of Java Server Faces 2.0?

...purists could breathe relieved. All you need to do is to define it as init-param in web.xml with the name javax.faces.SEPARATOR_CHAR and ensuring that you aren't using the character yourself anywhere in client ID's, such as -. Last but not least, a new scope was introduced, the view scope. It elimi...
https://stackoverflow.com/ques... 

How to use enum values in f:selectItem(s)

...is "relatively" new. Otherwise you can always grab <c:set> or <ui:param> or homebrew a custom EL function. – BalusC Apr 5 '12 at 21:49 ...
https://stackoverflow.com/ques... 

When to use f:viewAction / preRenderView versus PostConstruct?

...eful if you want to perform actions based on model values set by <f:viewParam> during update model values phase. Namely, they are not available at the moment the @PostConstruct runs. In JSF 2.0/2.1, this tag didn't exist and you have to use the preRenderView workaround. If the backing bean is...
https://stackoverflow.com/ques... 

When should I use h:outputLink instead of h:commandLink?

...text" action="destination" /> </h:form> The ?faces-redirect=true parameter on the <h:commandLink>, which triggers a redirect after the POST (as per the Post-Redirect-Get pattern), only improves bookmarkability of the target page when the link is actually clicked (the URL won't be "on...
https://stackoverflow.com/ques... 

How can I avoid Java code in JSP files, using JSP 2?

...from a database to display in some table, if necessary based on some query parameters, then implement a servlet and write code accordingly in doGet() method. E.g.: protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { try { ...
https://stackoverflow.com/ques... 

What is the need of JSF, when UI can be achieved with JavaScript libraries such as jQuery and Angula

I was reading about JSF that its a UI framework and provides some UI components. But how is it better or different from number of components that are available from jQueryUI, AngularJS, ExtJS, or even plain HTML, CSS and JavaScript. ...
https://stackoverflow.com/ques... 

JSF vs Facelets vs JSP [duplicate]

... JSF is a standardized Java framework for web UIs based on an MVC pattern JSPs are a (much older) standard for generating web pages from templates - these can be used as the View in a JSF application, but also separately from ...