RichFaces 面试题与答案
问题 1. What is RichFaces?
RichFaces is a JSF component library that consists of two main parts:
- A full set of AJAX enabled components in two libraries
- a4j: page centric AJAX controls
- rich: self contained, ready to use components
- Client-side validation, expanding JSR 303 Bean Validation all the way to the browser.
- Advanced queueing to match the high performance requirements of real world enterprise applications.
- Push component upgrades including JavaMessaging Service (JMS) integrations, and various transport mechanisms based on browser support.
- Our own Component Development Kit (CDK).
- Comprehensive documentation covering development best practices, and component details.
- Detailed and automated testing facilities for components, actions, listeners, and pages.
- Broad cross-browser support
- Large and active community at its foundation!!
这有帮助吗?
添加评论
查看评论
问题 2. What is <a4j:support> tag?
Sends an
<h:inputText value="#{document.docOrigtor}" id="docClaimOrigId" binding="#{handler.docOrig}">
<a4j:support actionListener="#{handler.createDocumentName}" event="onkeyup" reRender="docId"/>
</h:inputText>
Here, on keyup event it will call handler.createDocumentName method with ajax call and rendering docId value.
这有帮助吗?
添加评论
查看评论
问题 3. What are the basic configurations of web.xml for Rich Faces?
Configuration of web.xml while you are using RichFaces in your application:
<context-param>
<param-name>org.richfaces.CONTROL_SKINNING</param-name>
<param-value>enable</param-value>
</context-param>
<context-param>
<param-name>org.richfaces.LoadStyleStrategy</param-name>
<param-value>ALL</param-value>
</context-param>
<context-param>
<param-name>org.richfaces.LoadScriptStrategy</param-name>
<param-value>ALL</param-value>
</context-param>
<filter>
<display-name>RichFaces Filter</display-name>
<filter-name>richfaces</filter-name>
<filter-class>org.ajax4jsf.Filter</filter-class>
<init-param>
<param-name>maxRequestSize</param-name>
<param-value>999999999</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>richfaces</filter-name>
<servlet-name>Faces Servlet</servlet-name>
<dispatcher>REQUEST</dispatcher>
<dispatcher>FORWARD</dispatcher>
<dispatcher>INCLUDE</dispatcher>
</filter-mapping>
这有帮助吗?
添加评论
查看评论
问题 4. How to control traffic in RichFaces?
Controlling traffic can be done using Queues mechanism.
Queues can be defined using <a4j:queue…../>
3 types of queues are there: Named, Unnamed, and Global queue.
这有帮助吗?
添加评论
查看评论
问题 5. How to keep a managed bean between requests?
这有帮助吗?
添加评论
查看评论
用户评价最有帮助的内容:
- What is RichFaces?
- What is rich:dataGrid in RichFaces?
- What are the basic configurations of web.xml for Rich Faces?
- What is limitToList attribute?
- What is rich:messages in RichFaces?