JBoss.orgCommunity Documentation

Frequently Asked Questions

Based on RichFaces Users Forum


+1. FAQ
1.1. Where could I find additional information on RichFaces?
1.2. Where are binary/source distribution for RichFaces?
1.3. How to build RichFaces snapshot manually?
1.4. How to configure Maven for RichFaces
1.5. What is the structure of RichFaces SVN repository?
1.6. How to build richfaces-samples applications?
1.7. Where could I find a demo for RichFaces components?
1.8. How to use Skinnability?
1.9. Why does a problem with prototypes in RichFaces 3.1.0 happen? The Prototype.Browser() function can't be found.
1.10. Why RichFaces library contains <rich:dataTable> component, though there is the standard <h:dataTable>?
1.11. How to organize wizards using the <rich:modalPanel> component?
1.12. How to prevent modalPanel from closing when the validation inside fails?
1.13. Why when I use suggestionBox inside the modalPanel content the popup suggestion list doesn't show since it is behind the modalPanel.
1.14. Does RichFaces work with facelets?
1.15. Is it possible to create dynamic menu using <rich:dropDownMenu> component?
1.16. Is it possible to customize the look of datascroller (the forward/back buttons) and replace them with an images?
1.17. How to place simple links inside menu?
1.18. Can I use dropDownMenu as context menu?
1.19. How to pass own parameters during a modalPanel opening or closing?
1.20. How to add a simple link to the tree node?
1.21. Is it possible to place tabs upright in the tabPanel?
1.22. How to get a commandButton working within the modalPanel?
1.23. How to define the currently selected tab?
1.24. How to remember the current selected tab?
1.25. How to navigate from one tab to another using buttons (apart from tabPanel functionality)?
1.26. How to retrieve the current value from the inputNumberSlider?
1.27. How to apply skins to the standard input components?
1.28. Is there a way to capture the rowdata of dataTable and subTable?
1.29. Is it possible to use datascroller without its table border and styles (to show only links)?
1.30. How to use subTable in combination with dataTable?
1.31. How to do correct pagination using datascroller (load a part of data from database)?
1.32. How to make html scrollbars in modalPanel?
1.33. How to expand/collapse tree nodes from code?
1.34. How to use JavaScript API?
1.35. How to load the Scriptaculous library?
1.36. How to avoid a problem with text wrapping in <rich:tab> in Internet Explorer 7?
1.37. How to save <rich:effect> status?
1.38. How to send an additional parameter to server working with <rich:suggestionbox>?
1.39. How to set <rich:dataTable> border to 0px?
1.40. How to create <rich:suggestionBox> dynamically?
1.41. How to apply button label for <rich: calendar>?
1.42. What should I change on the server side?
1.43. How to check sending request conditions? Custom JavaScript before request "OnSubmit" attribute.
1.44. What is differences of "onCompelete" attribute after release 1.0?
1.45. Is it possible to use InvokeOnComponent with JSF 1.2?
1.46. How to avoid generating exception for <a4j:keepAlive> component?
1.47. Why form isn't submitted or setter isn't called after AJAX request?
1.48. How to create "a4j delayed render zone"?
1.49. How to stop <a4j:poll>?
1.50. How to use IgnoreDupResponses and requestDelay?
1.51. How to refresh an image using <a4j:support> component?
1.52. How to use "EventQueue" attribute?
1.53. Is <a4j:page> component required or not?
1.54. Can I have several <a4j:status> components on one page?
1.55. Can I use <a4j:region> within <a4j:repeat>?
1.56. Why custom Ajax request does not work?
1.57. How to reRender single dataTable column?
1.58. How to disable skinability?
1.59. Why does reRendering fail? Hide/Show components using rendered.
1.60. How to prevent duplicate reRendering when using <a4j:poll>?
1.61. Why does JavaScript call don't work in <a4j:include>?
1.62. How to use <a4j:include> and navigation rules?
1.63. What does ResourceNotRegistered Exception mean?
1.64. How to reRender only particular row(s) of table?
1.65. How to get row selection in scrollableDataTable using one and multi-selection rows mode?
1.66. How to select several rows in a scrollableDataTable and Drag-and-Drop them on dataTable?
1.67. How to save the state of <rich:simpleTogglePanel>?
1.68. How to save the state of <rich:panelMenuGroup>?
1.69. How to highlight rows in a dataTable when the mouse is over?
1.70. How to select one row of a <rich:dataTable> by clicking on it, even if clicked in an <h:inputText> of this row?
1.71. How to reRender table cells with <a4j:support>?
1.72. How to dynamic columns?
1.73. RichFaces with Trinidad?
1.74. Why does Java Script conflict?
1.75. <rich:fileUpload> with Seam
1.76. <rich:fileUpload> with MyFaces
1.77. Optional object selection in <rich:suggestionbox>
1.78. How to handle ViewExpiredException?
1.79. How to handle Request Errors and Session Expiration?
1.80. How to add cookie in an AJAX Respond?
1.81. What's new in a4j in 3.2.x release
1.82. How to launch the RichFaces sample on the JBoss server

There are two places where you can find binary/source distribution:

  • JBoss RichFaces Downloads area which can be found here. Source distribution you can see in the richfaces-ui-3.3.0-src.zip. Binary stored in richfaces-ui-3.3.0-bin.zip
  • If you use Maven, Maven knows the place where all distributions are stored. Actual links to the Maven repository can be found here

  • Download and install Maven if you have not it yet installed. Follow the instruction at http://maven.apache.org/download.html.

  • Open <Maven-Root>/conf/settings.xml file to edit

    Add into the <profile> section:

    
    
       <id>RichFaces</id>
       <repositories>
          <repository>
             <releases>
                <enabled>true</enabled>
             </releases>
             <snapshots>
                <enabled>false</enabled>
                <updatePolicy>never</updatePolicy>
             </snapshots>
             <id>repository.jboss.com</id>
             <name>Jboss Repository for Maven</name>
             <url>
                http://repository.jboss.com/maven2/
             </url>
             <layout>default</layout>
          </repository>
          <repository>
             <releases>
                <enabled>false</enabled>
             </releases>
             <snapshots>
                <enabled>true</enabled>
                <updatePolicy>always</updatePolicy>
             </snapshots>
             <id>maven2-snapshots.jboss.com</id>
             <name>Jboss Repository for Maven Snapshots</name>
             <url>http://snapshots.jboss.com/</url>
             <layout>default</layout>
          </repository>
       </repositories>
     <pluginRepositories>
       <pluginRepository>
             <id>maven2-snapshots.jboss.com</id>
             <name>Jboss Repository for Maven Snapshots</name>
             <url>http://snapshots.jboss.com/</url>
         <releases>
           <enabled>false</enabled>
         </releases>
         <snapshots>
           <enabled>true</enabled>
           <updatePolicy>always</updatePolicy>
         </snapshots>
       </pluginRepository>
       <pluginRepository>
             <releases>
                <enabled>true</enabled>
             </releases>
             <snapshots>
                <enabled>false</enabled>
                <updatePolicy>never</updatePolicy>
             </snapshots>
             <id>repository.jboss.com</id>
             <name>Jboss Repository for Maven</name>
             <url>
                http://repository.jboss.com/maven2/
             </url>
             <layout>default</layout>
       </pluginRepository>
     </pluginRepositories>

    Add into the <activeProfiles> section:

    
    <activeProfile>RichFaces</activeProfile>

Here is an article that explains the Skinnability basics.

For information you can also see discussion about this problem on the RichFaces Users Forum

Also, the effect of predefined skins on the application whole look-and-feel could be seen here.

It's necessary to put <a4j:include> inside the <rich:modalPanel> and perform navigation inside it, as it's shown in the example below:

Example:


...
        <f:verbatim>
                <a href="javascript:Richfaces.showModalPanel('_panel',{left:'auto', top:'auto'})">Show Modal Panel</a>
        </f:verbatim>
        <rich:modalPanel id="_panel">
                <a4j:outputPanel id="view" >
                        <a4j:include viewId="/pages/included1.xhtml"></a4j:include>
                </a4j:outputPanel>
        </rich:modalPanel>
...

faces-config.xml:
...

        <navigation-rule>
                <from-view-id>/pages/included1.xhtml</from-view-id>
                <navigation-case>
                        <from-outcome>included2</from-outcome>
                        <to-view-id>/pages/included2.xhtml</to-view-id>
                </navigation-case>
        </navigation-rule>
...

included1.xhtml:
...
        <h:form>
                <h:outputText value="Go to the step 2"/>
                <a4j:commandButton value="next" action="included2" reRender="view"/>
        </h:form>
...

included2.xhtml

...
        <h:form>
                <h:outputText value="Close window"/>
                <h:commandButton type="button" value="Close" onclick="javascript:Richfaces.hideModalPanel('_panel')"/>
        </h:form>
...

The discussion about <a4j:include> and navigation rules can be found on the Ajax Users Forum.

Main demo of RichFaces is a facelets based application. Full Facelets support is one of the main features. Hence, the answer is yes.