FAQ Database Discussion Community


Using richfaces's tabPanel - tab's ontableave

richfaces,jboss-seam
Using Seam 2.2.2.Final and Richfaces 3.3.3.Final. I need to perform an action when user leaves a tab, and this action can only take place after all the page is loaded, there are some bean init taking place on each tab content. So I went and read about . Problem is,...

Migrating Atmosphere 1.0.0 to 2.X.X breaks Async communication for Internet Explorer

internet-explorer,internet-explorer-8,migration,richfaces,atmosphere
Recently I migrated my application from using Atmosphere 1.0.0 to 2.2.4 (along with RichFaces 4.5.3.Final). The problem that is now showing occurs only using Internet Explorer 8. When I enter the page such log is produced: 27-04-2015 13:16:55 AsynchronousProcessor [ERROR] Invalid request state. AsyncContext#startAsync not supported. Make sure async-supported is...

JSF Composite Component with conditional popup panel

jsf,richfaces,el,composite-component
I'm trying to render a composite component that shows a popup panel based on the outcome of a backing bean method. So far no success. Would appreciate some help. GlassFish 4.1 Mojarra 2.2 RichFaces 4.5.4 Composite Component (conditionalActionLink.xhtml): <ui:component xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core" xmlns:a4j="http://richfaces.org/a4j" xmlns:rich="http://richfaces.org/rich" xmlns:ui="http://java.sun.com/jsf/facelets"...

Richfaces custom skinning images

resources,richfaces,skinning
My web app got normal skinng working for (e)css files. I got 2 skins: Normal plainTxt=#006 plainBg=#FFF readonlyTxt=#003082 menuTxt=#0000A0 blackwhite plainTxt=#FFF plainBg=#000 readonlyTxt=#D0D0D0 menuTxt=#000 The colors work. But now i have the following issue: images For each skin i want different images. How do i get that? That i can't...

rich:toolTip not handling String values that contain quotes

jsf,richfaces
I have ran into a particularly strange problem when implementing a RichFaces tool tip component. In my project I have a table that displays a list of Strings that are entered by the user, and I want there to be a pop-up of additional information when a user mouses over...

a4j:support - Value retrieved from h:selectOneMenu is always NULL

ajax,jsf,richfaces,ajax4jsf
There's a datatable with a h:selectOneMenu in each row. I want to be able to retrieve the value selected in the selectOneMenu in the bean. I'm using richfaces a4j:support tag to make AJAX calls to the backing bean. You can see the code below: DataTable header: <t:dataTable id="datatable" var="row" value="#{myBean.dataTableRows}">...

Richfaces ExtendedDataTable update without scrolling to top

jsf,richfaces
I'm trying to implement a chat function using rich:extendedDataTable. I can receive messages as they come in by polling the table just fine, but each time I poll the table it scrolls back to the top, making it impossible to read earlier messages. Is there a way to disable that...

JSF templating and controller invocation

jsf,templates,dynamic,richfaces,jsf-1.2
I'm new to JSF, I've read some of the specs but there are still many things I don't understand. I have joined a project with JSF1.2 + Richfaces 3.3 + some EL that allows to call methods with parameters. I have created a template xhtml that is meant to be...

javax.el.ELException: Error Parsing: “#{a4jSkin.imageUrl('buttonBackgroundImage.png')}”

jsf,jsf-2,richfaces
I'm trying to use in my JSF 2.1.29_01 project the RichFaces 4.5.2.Final, but it's not exasctly working. I added the following skin parameters to my web.xml: <context-param> <param-name>org.richfaces.skin</param-name> <param-value>emeraldTown</param-value> </context-param> <!-- JSF mapping --> <servlet> <servlet-name>Faces Servlet</servlet-name> <servlet-class>javax.faces.webapp.FacesServlet</servlet-class> <load-on-startup>1</load-on-startup>...

Error Omnifaces o:validateOrder with Rich Faces Calendar component

jsf,richfaces,omnifaces
I have a problem when try to validate the rich:calendar component with o:validateOrder. Code: <!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:h="http://java.sun.com/jsf/html" xmlns:a4j="http://richfaces.org/a4j" xmlns:rich="http://richfaces.org/rich" xmlns:f="http://java.sun.com/jsf/core" xmlns:c="http://java.sun.com/jsp/jstl/core" xmlns:ui="http://java.sun.com/jsf/facelets"...

How to disable JSF components programmatically

jsf-2,richfaces
We have a JSF application with <rich:tab> which shows fields depending of some configuration stored in a database, so the components are not defined in the .xhtml page but have to be generated programmatically such in this example: Components are generated in a panel: <rich:tab id="someTab" header="#{msg['someHeader']}" immediate="true"> <rich:messages/> <h:panelGrid...

Why the Jquery Datatable doesn't work whith richfaces ?

javascript,jquery,jsf,datatables,richfaces
I work with JSF2.2 and Richfaces 4 and i try to create a table by using the Datatables of Jquery. Because all my datas are dynamic so i have to use and the too. But it gives me an empty table in the jsf. this is my jsf page: <ui:composition...

java.lang.IllegalArgumentException: Multiple entries with same key: interface javax.validation.constraints.Min

jsf,deployment,richfaces,jsf-2.2
I'm running an EAR with EJB + EJB + WAR deployment in JBoss WildFly 8.2.0.Final with JSF 2.2 and RichFaces 4.5.2.Final. My problem is, that all RichFaces resources fail to load properly in the client. The generated URL don't resolve and return with HTTP 404. The deployment is build upon...

How to display PDF in JSF, with content from ServletResponse

jsf,pdf,jsf-2,richfaces
In my application, I use jsf & richfaces, I want to display a generated pdf in web browser , I have generated this PDF in serverside and it is available in ServletResponse, but I am unable to display it in my web page. I have tried this question but, it...

Avoid onRowClick event when outputLink is clicked inside of RichFaces datatable

javascript,javascript-events,datatable,richfaces
How to avoid the call to onRowClick on the datatable on the column that has the outputlink (target to a new window)? <rich:dataTable id="dt" value="#{bean.cars} var="_car"> <a:support event="onRowClick" action="#{action.navigateToCarDetails(_car.id)}"/> <rich:column> <f:facet name="header">Select</f:facet> <a:commandLink onclick="Event.stop(event)" action="#{bean.toggleSelectedCar(_car.id)}" reRender="dt" ajaxSingle="true" limitToList="true"> <h:graphicImage...

Ajax Rerender working for selectOneMenu, but not input text

jsf,richfaces
I'm a bit out of my element here, but I have two panelGroups, one that contains an input field of type text: <input type="text" value="#{myBean.value}" id="myId" > <a4j:support event="onchange" reRender="divToRerender" oncomplete="jsFunction()"/> </input> and another that contains a selectOneMenu: <h:selectOneMenu value="#{bean.value}" id="myId" > <f:selectItems value="#{myBean.options}" /> <a4j:support event="onchange" reRender="divToRerender" oncomplete="jsFunction()"/> </h:selectOneMenu>...

What a4j eventsQueue should be replaced to?

jsf,richfaces
I'm updating my RichFaces 3.3.3 to 4.5.2.Final and I need to replace <a4j:support event="change" eventsQueue="balbanceQueue" reRender=" dropCheck"/> to the appropriate RichFaces 4.5.2.Final tag. As the migration guide stated, we should replace a4j:support with a4j:ajax and reRender with just render. But I couldn't find what eventsQueue attribute should be replaced with?...

Can't check any option of h:selectOneRadio inside h:extendedDatatable JSF

jsf,radio-button,richfaces
I'm facing a problem related to radioButtons inside a rich:column of a h:extendedDatatable. I've been reading several blogs and some questions right here in stackoverflow but almost everyone seems to want to put the radioButton options spread through several rows. This is not my case: I'd need to show 'n'...

When pressing enter on popup the submit buttons on landing page gets triggered

javascript,html,jsf-2,richfaces
I have a page with two submit buttons which also opens up a popup (id : addPopup) having another submit button. Whenever Enter is pressed on the popup the first submit button on the landing page is triggered, however I want to invoke the button on the popup instead. This...

Error Omnifaces 2.0 o:massAttribute with o:validateOrder

jsf-2,richfaces,omnifaces
Hi Im having this error when i try to combine o:massAttribute with o:validateOrder, i saw that o:validateOrder had the attribute disabled, any ideas what is causing this issue. I have this code: <!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:h="http://java.sun.com/jsf/html" xmlns:a4j="http://richfaces.org/a4j" xmlns:rich="http://richfaces.org/rich" xmlns:f="http://java.sun.com/jsf/core"...

JSF rendering popup frow a manegbean condition?

jsf,jsf-2,popup,richfaces
I´m using this for show a message in login when a error happens: <a4j:region rendered="#{usuario.fail == 1}"> <div class="alert alert-danger alert-dismissable" style="width: 470px; margin: 10px auto;"> <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button> Invalid user or password. </div> </a4j:region> But, I want to show a popup, however, this is not working, i'm...

Controlling component from backing bean

jsf,richfaces,components,javabeans
I want to 'update' a component with a new component in the bean. XHTML <composite:interface> <composite:attribute name="rootKey" required="true" /> <composite:attribute name="id" required="true" /> </composite:interface> <composite:implementation> <rich:panel id="#{cc.attrs.id}" binding="#{myBean.customPanel}"/> <a4j:jsFunction name="createPanels" action="#{myBean.createPanels}" render="#{cc.attrs.id}"> <a4j:param name="rootId" assignTo="#{myBean.rootId}"/> <a4j:param...

a4j:htmlCommandLink in RichFaces 4

jsf,migration,richfaces
I've been migrating to RichFaces 4.5.2 and while parsing the pages into xhtml format I ran into the following error: Tag Library supports namespace: http://richfaces.org/a4j, but no tag was defined for name: htmlCommandLink My quesion is what is the re-placer of this component in RichFaces 4? ...

RichFaces a4j:commandButton oncomplete

jsf,richfaces
Hi i have this demo form with RF 4.5.2, the oncomplete execute 3 times, i need a way to execute a method after the ajax call but only one time, i think that is the behaviour of the oncomplete but if it doesnt you can suggest any other ideas to...

ADF Custom Search Form

oracle11g,richfaces,oracle-adf
I'm trying to create a custom search form that updates a table without using the ADF Query Panel, since i want to keep the same header layout on the "customer" search form page and the "customer" detailed page. Any advice on how to do this? (Example using the HR Schema,...

JSF too many commandLinks (h:form) lead to ViewExpiredException

jsf,richfaces,toggle,commandlink,viewexpiredexception
I am having a JSF application which creates and presents about 50 reports. These reports are rendered PNGs and under the pictures a table is displayed. This table uses a RichFaces 4 togglePanel with switchType="client". The togglePanel is just for collapsing and expanding the table. <h:form> <rich:togglePanel id="#{param.reportWrapper}_togglePanel" stateOrder="opened,closed" activeItem="opened"...

IllegalArgumentException: Cannot convert [] of type class java.util.HashSet to class xxx

jsf,richfaces,illegalargumentexception
I am finding myself in a JSF error but no clue why it could be. I show you the view part: <rich:extendedDataTable id="objects" value="#{newObjectsBean.objectsList}" selection="#{newObjectsBean.objectToDelete}" rendered="#{newObjectsBean.anyResult}" selectionMode="single" var="item" rows="10" > <a4j:ajax execute="@form" event="selectionchange" listener="#{newObjectsBean.selectionListener}" render="deletionButton"/> <rich:column width="125px" sortBy="#{item.sId}" sortOrder="#{fragSortingBean.sortsOrders['sId']}">...

Reuse Component JSF2.1 with Facelets

jsf-2,richfaces,facelets
im using: JSF 2.1 RichFaces 4.5.2.Final Omnifaces 2.0 I have a Table that i want to reuse as datable or subtable depends of the page that i use the component, i want to put and if but it doesnt work, here is my code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0...

h:inputText allow only numbers during input [duplicate]

jsf-2,numbers,richfaces
This question already has an answer here: HTML Text Input allow only Numeric input 43 answers I have a field in JSF2, I tried execute a validation in this way: <h:inputText value="#{manutencaoContratoBean.contrato.nuContrato}" style="text-align: left; width: 90%; "> <f:convertNumber pattern="#######" maxFractionDigits="0" maxIntegerDigits="16"/> And thus: <h:inputText value="#{manutencaoContratoBean.contrato.nuContrato}" style="text-align: left; width: 90%;...

How to pass a value on selected row change?

jsf-2,richfaces
I have this permanent problem, I have a Datatable with value="#{myBean.Items}" var="itms", and I want to pass the selected item to my bean class. In columns, we use <f:setPropertyActionListener value="#{itms}" target="#{myBean.selectedrow}" /> to pass the value, but I want it for Rows. How to do that?, and where to put...

Render Panel on ajax start - JSF

ajax,jsf,jsf-2,richfaces
After processing I can render a panel in JSF like <a4j:commandButton id="myButton" render="panelId" .... ></a4j:commandButton> But what if I want to render a panel before sending the request, something like <a4j:commandButton id="myButton" onbegin="panelId" .... ></a4j:commandButton> Is there any way to do this?...

How to set dynamic height for rich:extendedDataTable rows?

css,jsf,richfaces,row
In my web application, I have extendedDataTable which shows records. <rich:extendedDataTable id="tableID" ...> <rich:column width="110px"> ... </rich:column> <rich:column width="110px"> ... </rich:column> </rich:extendedDataTable> The issue is that Some records have column value may be in multi-lines And the row height is not increased dynamically so some of data is not viewed...

Change default color of a popupPanel?

jsf-2,richfaces
I have a popupPanel: <rich:popupPanel id="popup" modal="false" autosized="true" resizeable="false"> <f:facet name="header"> <h:outputText value="Simple popup panel" /> </f:facet> <f:facet name="controls"> <h:outputLink value="#" onclick="#{rich:component('popup')}.hide(); return false;"> X </h:outputLink> </f:facet> <p>Any content might be inside this panel.</p> <p> The popup panel is open and closed from the javascript function of component client side...

RichFaces 4 ExtendedDataTable - Selecting rows programmatically

javascript,jsf,richfaces
Good evening. I've been asked to update a web app that was implemented in RichFaces. The application has a rich:extendedDataTable inside of a composite component that displays some searchable data. The update I've been asked to implement is to have the first row in the table automatically selected when a...