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

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

Why JSF saves the state of UI components on server?

...k to the server. The component tree provides information about the request parameter names, the necessary converters/validators, the bound managed bean properties and action methods. Until what point in time does JSF save the state of UI components on the server side and when exactly is the UI com...
https://stackoverflow.com/ques... 

JSTL in JSF2 Facelets… makes sense?

... ones which extend from UIComponent are also JSF UI components, e.g. <f:param>, <ui:fragment>, <ui:repeat>, etc. From JSF UI components only the id and binding attributes are also evaluated during view build time. Thus the below answer as to JSTL lifecycle also applies to the id an...
https://stackoverflow.com/ques... 

How to include another XHTML in XHTML using JSF 2.0 Facelets?

...ontent inside <ui:insert> will be displayed instead, if any. <ui:param> You can pass parameters to <ui:include> or <ui:composition template> by <ui:param>. <ui:include ...> <ui:param name="foo" value="#{bean.foo}" /> </ui:include> <ui:composi...
https://stackoverflow.com/ques... 

How to use PrimeFaces p:fileUpload? Listener method is never invoked or UploadedFile is null / throw

...web.xml (it will parse the multi part request and fill the regular request parameter map so that FacesServlet can continue working as usual): <filter> <filter-name>primeFacesFileUploadFilter</filter-name> <filter-class>org.primefaces.webapp.filter.FileUploadFilter&lt...
https://stackoverflow.com/ques... 

javax.faces.application.ViewExpiredException: View could not be restored

...ack the state yourself by fiddling with hidden inputs and/or loose request parameters. Mainly those forms with input fields with rendered, readonly or disabled attributes which are controlled by ajax events will be affected. Note that the <f:view> does not necessarily need to be unique throug...
https://stackoverflow.com/ques... 

What can , and be used for?

... Process GET parameters The <f:viewParam> manages the setting, conversion and validation of GET parameters. It's like the <h:inputText>, but then for GET parameters. The following example <f:metadata> <f:viewParam...
https://stackoverflow.com/ques... 

When to use , tag files, composite components and/or custom components?

...t suffice. Generally, having an <ui:include> with one or more <ui:param> which passes a managed bean property (and thus not a hardcoded value) is a signal that the include file can better be a tag file. Examples: How to create a custom Facelets tag? How to make a grid of JSF composite c...
https://stackoverflow.com/ques... 

commandButton/commandLink/ajax action/listener method not invoked or input value not set/updated

...er Exception handling in JSF ajax requests, nor when you set below context parameter in web.xml, <context-param> <param-name>javax.faces.PROJECT_STAGE</param-name> <param-value>Development</param-value> </context-param> and you are also not seeing any goo...
https://stackoverflow.com/ques... 

Understanding PrimeFaces process/update and JSF f:ajax execute/render attributes

... form submit. JSF will then apply the request values (finding HTTP request parameter based on component's own client ID and then either setting it as submitted value in case of EditableValueHolder components or queueing a new ActionEvent in case of ActionSource components), perform conversion, valid...
https://stackoverflow.com/ques... 

How can I pass selected row to commandLink inside dataTable or ui:repeat?

..., like as JBoss EL. For configuration detail, see this answer. Use <f:param> in UICommand component. It adds a request parameter. <h:commandLink action="#{bean.insert}" value="insert"> <f:param name="id" value="#{item.id}" /> </h:commandLink> If your bean is request...