大约有 103 项符合查询结果(耗时:0.0301秒) [XML]
What is the JSF resource library for and how should it be used?
The JSF <h:outputStylesheet> , <h:outputScript> and <h:graphicImage> components have a library attribute. What is this and how should this be used? There are a lot of examples on the web which use it as follows with the common content/file type css , js and img (or ima...
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...
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...
What jsf component can render a div tag?
Eg: h:inputText will render a "input type='text'" .
What jsf tag can render a "div" tag?
5 Answers
...
Understanding PrimeFaces process/update and JSF f:ajax execute/render attributes
...nput fields) or ActionSource (command fields). The process attribute tells JSF, using a space-separated list of client IDs, which components exactly must be processed through the entire JSF lifecycle upon (partial) form submit.
JSF will then apply the request values (finding HTTP request parameter b...
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...
Java EE web development, where do I start and what skills do I need? [closed]
...that since Java EE 6, JSP is removed from the Java EE tutorial in favor of JSF and that JSP has basically not changed since then. That's why you could safely use the fairly old Java EE 5 tutorial for this. Most important thing with regard to JSP is the fact that writing plain Java code in JSP files ...
How to use PrimeFaces p:fileUpload? Listener method is never invoked or UploadedFile is null / throw
...es 5.x
This does not require any additional configuration if you're using JSF 2.2 and your faces-config.xml is also declared conform JSF 2.2 version. You do not need the PrimeFaces file upload filter at all. In case it's unclear to you how to properly install and configure JSF depending on the targ...
What can , and be used for?
...oid onload() {
// ...
}
The <f:viewAction> is however new since JSF 2.2 (the <f:viewParam> already exists since JSF 2.0). If you can't upgrade, then your best bet is using <f:event> instead.
<f:event type="preRenderView" listener="#{bean.onload}" />
This is however invo...
How to use a servlet filter in Java to change an incoming servlet request url?
...
A simple JSF Url Prettyfier filter based in the steps of BalusC's answer. The filter forwards all the requests starting with the /ui path (supposing you've got all your xhtml files stored there) to the same path, but adding the xhtml ...
