richfaces 1 « RichFaces « JSF Q&A





1. How do I set the HttpOnly flag on JSF/Richfaces    stackoverflow.com

I'd like to add the HttpOnly flag to JSF/richfaces cookies, especially the session cookie, to up the level of security on my web app. Any ideas?

2. JSF RichFaces and a dual slider    stackoverflow.com

I see in richfaces that there is a single slider, wondering if anyone has created a dual slider like in Scriptaculous for it. Is there any concerns in mixing JSF, Richfaces and ...

3. Problem using richfaces to blind up and blind down    stackoverflow.com

Using JSP and RichFaces. The search div should blind up when the "Run Search" button is clicked and the results div should blind down.

       ...

4. What are the options to replace Java Swing GUI?    stackoverflow.com

We have a desktop client application developed in Swing. This application interacts with backend server using Servlet. The new requirement is to make a web based client. I have read about JavaFX, ...

5. JSF Richfaces frontend performance tuning    stackoverflow.com

I've developed a web application using MyFaces 1.2.6 and Richfaces 3.3.1GA (just upgrated). Despite the ease of use, I found out that Richfaces components are very slow. I also found out that they ...

6. How to disable ?    stackoverflow.com

There is some way to disable ? I want allow or not allow user to edit data. Maybe I need other component?

7. Java - RichFaces - RTL    stackoverflow.com

I'm looking for Java "Faces" that supports RTL (Right To Left) user interfaces. The only library that I've checked so far is RichFaces. It seems that it doesn't support ...

8. Richfaces repeating elements    stackoverflow.com

I'm trying to work on a user interface for adding "events". These events have either 0 or many contacts. Ideally I would like to have an interface that when ...

9. Richfaces enable on only one page    stackoverflow.com

I worked hard on this problem but no way to find a solution. I juste wan't to enable richfaces for one and only one HTML page. Why ? Because I use RichFaces on only ...





10. Displaying XML in JSF    stackoverflow.com

I have a method that gives back a formatted XML string. I want to show that on a JSF page in a nicely wrapped, readable way. I used this solution first.

<pre><h:outputText ...

11. JSF + RichFaces gives me an HTTP Status 404 in my pages    stackoverflow.com

probably this is a lack of attention issue, if so, forgive me, but I can't see what I'm doing wrong, it took me all the afternoon, I need you help. I'm doing ...

12. Problem with Rich faces panelBar?    stackoverflow.com

I am using rich faces panel bar control in my application. There some problem with the control. The code is some thing like this

<rich:panelBar contentClass="some-class">
    <rich:panelBarItem label="Panel 1" headerClass="some-css-class">
 ...

13. populate drop-down values dynamically using Ajax    stackoverflow.com

I have 3 drop-downs. 1st drop-down contains some values when the page loads. I need to populate 2 nd drop-down based on the value selected in 1st dropdown. Similarly, I need to populate ...

14. what is data.foo syntax in JSF/Rich Faces    stackoverflow.com

what is data.foo syntax in JSF/Rich Faces? Say for example,

  <a4j:support event="onchange"  action="#{bean.retrieveStates}"  
  reRender="states_dropDown" data="#{student}"></a4j:support>
i am passing student object in data attribute. can I access in managed ...

15. How to access complex java maps in jsf/richfaces    stackoverflow.com

I hope you can help me. I'm new to java and jsf and richfaces and I've created a java map in a class (called "TaskListData") accessed by my backing bean ...

16. Deprecated richfaces javax.faces.el.MethodBinding replacement use    stackoverflow.com

I found this piece of code works in that i can programmatically creates a richfaces dropdown menu. But some of the code is deprecated. Can anyone tell me what ...





17. In html/JSF - How to make any component respond to clicks?    stackoverflow.com

I've replaced the content of this question since I didn't think the previous one was formulated right. I would like to know how to make a JSF/RichFaces component handle events like mouse ...

18. In JSF - Trying to achieve something similiar to "#{bean.run(3)}"    stackoverflow.com

I would like to add buttons dynamically from a backing bean to a JSF page (supporting Rich Faces as well). The value of the buttons needs to be determined in run time ...

19. JSF/RichFaces: conditional text styling    stackoverflow.com

I have a string which can be yes or no, instantiated in an object in a Java backing bean. I can't seem to find the best way to conditionally style ...

20. Dynamic value binding of JSF component    stackoverflow.com

How do I bind a value of certain component dynamically at runtime? For example, I have the following component tag,

<h:inputText value="#{bean.someProp}" />
In my case, "#{bean.someProp}" is only known at runtime. What's the best ...

21. Request-scoped beans and datamodel initialization?    stackoverflow.com

UPDATE II: OK, I managed to narrow it down a little. I have a page with a datatable with sorting and filtering functionalities, both taking place in the DB. In other words, I ...

22. How to hide RichFaces component on load?    stackoverflow.com

I would like to hide selected rendered component (for example: label) on page load. This gives mi opportunity to subsequently show component after user action (for example: when user clicks link). ...

23. Changing font universally - richfaces    stackoverflow.com

i was wondering is there a way to change font universally for richfaces irrespective of what skin i am using.

24. RichFaces rich:insert takes a long time to output large files    stackoverflow.com

I'm using a RichFaces <rich:insert like this:

<rich:panel header="my head">
    <a4j:outputPanel ajaxRendered="true">
        <rich:insert src="#{MyBacking.myPath}" highlight="groovy" />
    </a4j:outputPanel>
</rich:panel>
If I have ...

25. ViewHandlerWrapper Error in JSF Application    stackoverflow.com

I have application written with JSF and RichFaces. For some reason I'm getting error below. I tried to find a solution but had no luck. Can someone help me to fix ...

26. I am working in JSF and Richfaces technology    stackoverflow.com

I need to club rich panel menu with iteration to fetch data from database. kindly help

27. How to insert multiple input boxes during run time in JSF richfaces    stackoverflow.com

HI, suppose i have one input box which takes value for mobile no. and when the user wants to add another mobile no at that time user will click 'plus' button. as ...

28. Override jsf implentation in WAS    stackoverflow.com

I want to develop richface implented app on Ibm Websphere. I include *.jars under WEB-INF/libs and it runs succesfull. But first deployment proccess is realy terriable.. So I want to add libraries ...

29. JSF single select box with customizable look-and-feel    stackoverflow.com

I'm looking for a control that allows me to choose a single option from a list of choices via a dropdown box. The h:singleSelectMenu or h:singleSelectListBox worked well, but now I ...

30. How To: Use FileUpload.setFileUploadListener(MethodBinding) with a MethodExpression    stackoverflow.com

I have a problem with adding a FileUploadListener object to HtmlFileUpload (rich:fileupload) programmatically: This works but is deprecated:

HtmlFileUpload upload = new HtmlFileUpload();
upload.setFileUploadListener(FacesContext.getCurrentInstance()
    .getApplication().createMethodBinding(
    "#{actions.storedObjects["+this.getActionID()+"].uploadEventListener}",
   ...

31. how to hide jsf framework that used in application from users who browse my site?    stackoverflow.com

when i view the source of application in browser i undrestand richfaces or trinidad or ... jsf framework used for developing this application for example in richfaces

application.url/a4j/s/3_3_2.SR1org.richfaces.renderkit.html.Paint2DResource
shown as src ...

32. RichFaces Save File    stackoverflow.com

I am using richfaces 3.3 I want my user to able to specify a location on the server where he can save the file. How do I do it ?

33. How to dynamically change the content of a facet in a custom component?    stackoverflow.com

Let's consider that I want to extend an existing JSF component, such as the <rich:datatable/>. My main requirement is to dynamically modify the content of a <f:facet>, to change its content. What ...

34. FacesContext == null    stackoverflow.com

I have a problem - I am trying to get FacesContext by calling FacesContext.getCurrentInstance(), but it returns null. I am using jsf with richfaces, here my web.xml:

     <?xml ...

35. Can I add round cornres to HtmlPanelGrid in code or in page? If yes - how?    stackoverflow.com

I have a task - add round corners to HtmlPanelGrid. Now I am trying to do it with css (using 4 images for each corner - that css create our designer). ...

36. Error with JSF2 and RichFaces    stackoverflow.com

I'm trying to use RichFaces on a working JSF2 application. I incorporated the RichFaces jars, changed the web.xml but got the following error:

17:49:13,097 SEVERE [javax.enterprise.resource.webcontainer.jsf.application] Error Rendering View[/login.xhtml]: java.lang.NullPointerExcept
ion
   ...

37. To handle Window.open in request Scope in jsf    stackoverflow.com

I am using JSF 1.2 here i have a managed bean in request scope, my scenario is to open a seperate window. After action is performed oncomplete i am opening ...

38. richfaces 3.3.3 problem with ie6    stackoverflow.com

I am working using richfaces 3.3.3 , tomcat 6. when i try to access my application using IE6 and the windows language is set to arabic, i get the following exception: IllegalArgumentException: ...

39. Interrupt a JSF Ajax request    stackoverflow.com

I have a JSF application, in which a RichFaces modal panel is shown using a4j:status while an ajax request is being handled by my backing bean. I want to put ...

40. How to embed and call a javascript script in a RichFaces/JSF page    stackoverflow.com

I've been looking around for a method to embed and call javascript functions in JSF pages. I'm also using RichFaces. To define the function, it appears I can do this in a ...

41. Setting initial state of a JSF component to invalid    stackoverflow.com

I have a small JSF application where the user is required to enter some data about themselves. For each component on the page that has required="true" I want to show an icon ...

42. JSF runtime pagename passing    stackoverflow.com

I have an include page which is a navigation menu. When i click on those menu i want to refresh the content area of layout with a certain page. How can ...

43. Avoid richfaces to send back javascript libraries in the ajax responses    stackoverflow.com

I'm using JSF 1.2 with Richfaces, and for every ajax request, the server is sending back the response, whichi is good, but it also contains all the links to the javascript ...

44. Forcing a save as dialogue from any web browser from JSF application    stackoverflow.com

I have a modal that will be shown and then I have an export button which should bring up the save dialog, if I have use h:commandButton, the validation checks are ...

45. How to find if String contains html data?    stackoverflow.com

How do I find if a string contains HTML data or not? The user provides input via rich:editor component and it's quite possible he could have used either a simple text ...

46. How do I turn off minified JavaScript under Richfaces?    stackoverflow.com

For the purposes of debugging I need to make Richfaces use non-minified JavaScript. Is there a simple way to accomplish this?

47. Richfaces: Passing additional parametrs to suggestionbox`s suggest method    stackoverflow.com

Possible Duplicate:
richfaces suggestionBox passing additional values to backing bean
I need to pass additional parametrs to my suggest method. For example: I have one selectList in ...

48. JSF2 Composite component tag incompatibility problem?    stackoverflow.com

This code, a test case for a custom component using JSF2 Just for the record, the file: panel.xhtml , located at /resources/panels/panel.xhtml test.xhtml:

<head>
</head>
<body>
<panels:panel/>
</body>
</html>
Returns the following ...

49. Richfaces Support    stackoverflow.com

how can i add rich faces support in my simple application in JSF any good tutorial which help me i am using eclipse and tomcat

50. richfaces how to detect mouse position    stackoverflow.com

How can I detect the mouse position on a "onclick" event in RichFaces? Thanks!

51. "no tag was found" Error    stackoverflow.com

I am trying to implement a very simple RichFaces application (following the example at the developer guide, but am encountering an error I cannot solve. My code appears to build ...

52. RichFaces 3.3.3 with JSF 2.0 working example    stackoverflow.com

I'm very new to JSF and i'm looking for a pure configuration of JSF 2.0 with RichFaces 3.3.3.Final. The documentation on JBoss website is for JSF 1.2. I also find ...

53. JSF AjaxStatusTag how to add programmatically    stackoverflow.com

I tried so hard but I just cannot get a simple Richfaces AjaxStatusTag inserted in my page. I generate the components from Java code, not xhtml. That's what I do:

  ...

54. JSF2 Design query on ManagedBean    stackoverflow.com

I am new to JSF2 and would like to know something from a design perspective. For e.g. if we have multiple multiple usecases based on various actor types, which is better way ...

55. No component found to process as 'ajaxSingle'    stackoverflow.com

Found strange problem, possibly bug. I have 2 identical web-pages with Richfaces:suggestionbox. On the first one my suggestionBox is doing well, everything works fine, but on another one i have some problems. ...

56. How to refresh entire JSF page from the backing bean    stackoverflow.com

We have a rich:comboBox on a JSF page which has a valueChangeListener that calls a backing bean function:

<rich:comboBox id="cbmodel" defaultLabel="${accessUtils.activeRole}" value="${accessUtils.activeRole}" 
 style="float: right;" valueChangeListener="${accessUtils.valueChangeListener}" >
   <c:forEach var="role" items="${accessUtils.currentUserRoles}"> ...

57. How to dynamically display a status update?    stackoverflow.com

Here is the situation I'm at right now. I have a list of requests on my bean such as

public void processUpdates {

 for (MyRequest req: requests) {
     ...

58. how can I dynamically create html components in Jsf2    stackoverflow.com

how can I dynamically create html components in Jsf2. I have to make a dynamic form which is to be filled by user, so I am not getting how can I ...

59. How do I know which version of RichFaces I am running?    stackoverflow.com

Can you tell me how to find out which version of Richfaces I am running? I need to know if I have jQuery already installed so perhaps a way to test that ...

60. Page loading bar in JSF?    stackoverflow.com

Is there a way to make a progess/loading bar while a JSF page is loading (something like the thing google has when you're loggin into gmail, the thin bar in the ...

61. JSF - RichFaces performance problems showing complex page    stackoverflow.com

I am working on Weblogic 10.3.2, JSF 1.2, Richfaces 3.3.2 and Facelets 1.1.14. I have a serious performance problem, particularly showing my home page, which contains a very complex rich:datatable. When ...

62. jsf databinding does not work    stackoverflow.com

I am trying to create a page using richfaces, I created the following field

<h:inputText value="#{petTest.pet.name}"/>
faces-config:
<managed-bean>
    <managed-bean-name>petTest</managed-bean-name>
    <managed-bean-class>petstore.PetTest</managed-bean-class>
    <managed-bean-scope>request</managed-bean-scope>
</managed-bean>
managed bean:
package petstore;

public class PetTest ...

63. Get the value in a jsf page?    stackoverflow.com

I'm trying to pass a <f:param name="id" value="{someValue.id}" /> and retrieve it in the next page (so I can put it in an output link). This is what I tried:

<h:outputLink value="#{linkController.clientEdit}?id={id}">#{linkController.clientEdit}?id={id}</h:outputLink>
The ...

64. Unable to instantiate class...because it's looking for the wrong one    stackoverflow.com

I'm using IBM RAD with a WAS 7.0 application server. I'm developing a JSF project using RichFaces components and I'm having some trouble with one of the classes. Whenever I start ...

65. Captcha in JSF 2.0    stackoverflow.com

In my project I have to integrate Captcha to my Signup Form, I have seen JCaptcha and google recaptcha can anybody suggest me the best and easy way to integrate captcha. ...

66. Richfaces and Headless mode    stackoverflow.com

I am working on richfaces and everything seem to work on my dev machine (windows os). Deploying it on a linux machine,I don't see any images that comes with richfaces components(like ...

67. how to display rich content using jsf component?    stackoverflow.com

I used the rich: editor component to enter rich content and I save it in a database. but when I tried to display it in outputText field , rich tags ...

68. REST and JSF: Library to use? How to solve it?    stackoverflow.com

The problem: When the user clicks on www.example.com/myapp/myview?id=1 I need to display the item with id=1 which is in the database. To do that I need to execute bean methods. (Ideally the ...

69. How to Refresh only components in certain 'box'    stackoverflow.com

Say I have a websites with 3 panel grid (just for example..) and I would like to have buttons inside each grid that only cause the contents of that grid to ...

70. richfaces and displaying errormessages    stackoverflow.com

        <h:form id="userSettingsForm">
            <rich:messages>
          ...

71. JSF throws argument type mismatch when binding    stackoverflow.com

I'm trying to do the following: When the user enters a value in the rich:calendar component, then the h:inputText should have its required attributed set to true. I'm following the instructions ...

72. Getting started with JSF - Richfaces on Eclipse    stackoverflow.com

I used to work with JSF - Richfaces but had no idea of how to start it and I quit before I learned it. Is there any easy way to start? What ...

73. How concerned should we be about thread safety with JSF managed beans?    stackoverflow.com

I'm working on a JSF 1.2 project which has AJAX functionality on it's pages (using RichFaces). My bean builds a list of objects to be edited and then has methods to support ...

74. JSF : How to refresh required field in ajax request    stackoverflow.com

Ok, here you are the core problem. The page. I have two required "input text". A command button that changes the bean value and reRenderes the "job" object.

<a4j:form id="pervForm">  ...

75. Getting an h:inputbox to become disabled once I checked a h:selectBooleancheckbox    stackoverflow.com

I'm trying to make a "h:selectBooleanCheckbox" component make another h:inputbox become disabled once the checkbox is set to true (checked). There are a few versions I tried and none succeeded (When I ...

76. ie6 crash for richfaces 3.3.3 component rich:fileUpload    stackoverflow.com

I am using richfaces3.3.3 on my JBoss5.2. One of my views contains comopnent rich:fileUpload and it makes IE6(version IE 6.0.2900.2180 SP2) crash with a message "iexplore.exe offset 0012bd68". There is no ...

77. JSF Richfaces upgrade    stackoverflow.com

I'm fairly new to JSF and Richfaces. I'm looking to upgrade our system from JSF 1.1.2 to the latest 2.0. Also looking at upgrading our Richfaces 3.0 to 3.3 Under the lib folder ...

78. Need comment/help in defining a JSF application skeleton with good design and architecture    stackoverflow.com

I have developped a JSF/Richfaces skeleton for a contact application of which I would like to check the architecture and coding style before going further. The application has only one page, 1 ...

79. Iterate through items in a list with richfaces in javascript    stackoverflow.com

Is there a way, in richfaces preferably, to access a Java collection object and loop through the items in a java-script function? I know richfaces dataTables can access the ...

80. NPE in UIComponentBase#getRenderer() after migration from JSF 1.2 to JSF 2.0    stackoverflow.com

I migrated my web application from JSF 1.2 to JSF 2.0. The logout page which was working in the previous version throws NullPointerException in JSF 2.0. Rest of the things are ...

81. Extending Richfaces components    stackoverflow.com

I'm looking to override the functionality of some Richfaces components (mostly the extendedDataTable). Could somebody provide a thorough example of any component they extended, with code examples? I know the below thread describes ...

82. Need to implement Richfaces 4.0 with JSF 2.0    stackoverflow.com

I need to migrate my app to use Richfaces 4.0 and JSF 2.0 (currently using Richfaces 3.3.1 and JSF 1.2) This is a NON-Maven based project IDE: IBM RAD 7.5 Replaced older jar files ...

83. List shuttle selected value    stackoverflow.com

Background

Using a JSF listShuttle component.

Problem

Put the selected value of the second box to be in the other outtext box.

Question

How do I put the value selected in the right-hand box of ...

84. Need richfaces drag-drop example    stackoverflow.com

i am in need of example of drag and drop component in richfaces.In their website they offer the sample without backing bean(java class).So i need the detailed example of drag-drop component.Please ...

85. Suggest the appropriate method of managing beans in Richfaces    stackoverflow.com

The scenario is like this. I have a rich:tabPanel with about 5 tabs. On first tab there is a rich:datatable. When I click on first column's element (a4j:commandLink), I get another ...

86. Managed bean is constructed again after i left the page    stackoverflow.com

i've faced a strange problem with managed beans. Sometimes when i navigate from one page to another a bean from first page is constructed again after second page is loaded (it's ...

87. Problem updating config-config.xml from 1_2 to 2    stackoverflow.com

I'm having issues trying to configure JSF 2. I get the following error when starting up my tomcat 7 server locally.

SEVERE: Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener
com.sun.faces.config.ConfigurationException: ...

88. Richfaces Problem: shows code in output/input text    stackoverflow.com

I have the following problem: The jsp file shows me code on input and output text field in the screen. Which is the problem? Thanks in advance. Code:

<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@ taglib uri="http://richfaces.org/rich" ...

89. Display console output in webapp    stackoverflow.com

I want to come up with a web application that does a maven build on a server and displays the build console output as it happening. I am looking for something ...

90. RichFaces 4 and @ViewScoped    stackoverflow.com

I'm migrating from RichFaces 3.3.3 to 4.0, and have come across a problem that can't figure out how to solve. Until now, I've used RichFaces'@KeepAlive annotation to achieve View scope with beans, ...

91. What qualifies as a JSF or Richfaces "container" for the process attribute?    stackoverflow.com

Edit I think the process attribute must point to an element in the same a4j:form. You can skip to my answer below.


Reading the Using process attribute section of this

92. MyEclipse not support jsf2 tags and richfaces 4 tags    stackoverflow.com

I use jsf2 and richfaces4 with myeclipse 8.5 but i find it does not support those tags. when i enter <h:head> and <h:form> the ide show an error : unknow resource and i enter a4j: ...

93. Richfaces Custom Component Renderer Problem    stackoverflow.com

I've create a custom component, and below is the renderer of the component, at start the component get rendered OK, but the AjaxOuputPanel never get rendered again with each ajax request... ...

94. Using RichFaces 4 in a JSF 2.0 application    stackoverflow.com

I'm trying to add RichFaces to JSF 2.0 application, but I get this: The requested resource () is not available. That's from Console:

java.lang.ClassNotFoundException: org.ajax4jsf.Filter
My web.xml:
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" ...

95. RichFaces 4.0 skins won't work    stackoverflow.com

RichFaces 4.0 skins won't work. System default style displayed instead. Here is a xhtml-file content:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
 xmlns:ui="http://java.sun.com/jsf/facelets"
 xmlns:h="http://java.sun.com/jsf/html"
 xmlns:f="http://java.sun.com/jsf/core"
 xmlns:rich="http://richfaces.org/rich"
 xmlns:a4j="http://richfaces.org/a4j">

  <head>
   ...

96. RichFaces 4.0 TagException for recursiveTreeNodesAdaptor/treeNodesAdaptor tags    stackoverflow.com

I am having problems when using recursiveTreeNodesAdaptor and treeNodesAdaptor in RichFaces 4.0 along with Mojarra 2.0. When I use them, I get a TagException:

Tag Library supports namespace: ...

97. debugging richfaces/jsf project    stackoverflow.com

can anyone please tell me method to debug richfaces or jsf project? thanks in advance.

98. Lazy Loading of Richfaces CollapsiblePanel    stackoverflow.com

I'm working with Richfaces 4 and want to use the rich:collapsiblePanel to display a table (tab2) inside anothers table (tab1) row. Due I'm working with large datasets I hoped that the ...

99. Attribute completion richfaces on eclipse    stackoverflow.com

I have a problem with my web app on eclipse (helios). I use jsf with richfaces and I haven't the attributes completion for richfaces tag. All work fine for jsf. I have ...

100. Adding RICHFACES to existing JSF2 project    stackoverflow.com

I'm trying add richfaces to my JSF 2 project using this jboss guide. I've did what they say in point 2.6, but after restart my tomcat server, HTTP Status ...