大约有 7,000 项符合查询结果(耗时:0.0376秒) [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... 

Recommended way to save uploaded files in a servlet application

...e server anyway as it is not portable, transactional and requires external parameters. However, given that I need a tmp solution for tomcat (7) and that I have (relative) control over the server machine I want to know : ...
https://stackoverflow.com/ques... 

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)....
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... 

Difference between getAttribute() and getParameter()

What is the difference between getAttribute() and getParameter() methods within HttpServletRequest class? 10 Answers ...
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...