richfaces

jsFunction pass data to backingbean

I have a javascript that is calling a function addData(param1,param2,param3,param4) which is calling addClip at the end And I need to pass those to a backing bean. <a4j:form> <a4j:jsFunction name="addClip" action="#{backingBean.goGo}"> <a4j:actionparam name="param1" assignTo="#{backingBean.param1}"/> </a4j:jsFunction> <...

RichFaces rich:inplaceInput null validation having trouble with different component

Hello In my webapp I've just inserted some <rich:inplaceInput> elements to allow XML JAXB unmarshalled data coming into a table to be editable. Briefly: <h:outputText value="Directory:" /> <rich:inplaceInput value="#{f.dir}" defaultLabel="click to edit" showControls="true"> <a4j:support event="onviewactivated" reRender="table"...

Error while using JSFUnit/HtmlUnit/CSSParser

We've just recently converted our project to using Maven for builds and dependency management, and after the conversion I'm getting the following exception while trying to run any JSFUnit tests in my project. Exception class=[java.lang.UnsupportedOperationException] com.gargoylesoftware.htmlunit.ScriptException: CSSRule com.steadystate....

Allow unauthorized users to access RichFaces Skin CSS files

I've created a small web application using AppFuse(with JSP as Web Framework) and RichFaces. There is a page that uses rich:dataTable that should be accessible without authentication. To make this page public I put it into a folder called "public" and added the following line to the security.xml: <intercept-url pattern="/public/*" acce...

f:convertDateTime displays wrong Date

Hi! In my Web Application I retrieve data using Hibernate and display it in a RichFaces dataTable. In my MySQL-table there is a field of type "date". When I print this field to the log in my Bean, it shows the correct date from database (e.g. 2010-04-21). But in the rich:dataTable it shows up like this: 4/20/10 So there is a disc...

Why does a subTable break a4j:commandLink's reRender?

Here is a minimal rich:dataTable example with an a4j:commandLink inside. When clicked, it sends an AJAX request to my bean and reRenders the dataTable. <rich:dataTable id="dataTable" value="#{carManager.all}" var="item"> <rich:column> <f:facet name="header">name</f:facet> <h:outputText value="#{item.name}" /> </r...

Rich Tooltip for SelectItem

How to attach a rich:tooltip to the list generated by f:selectItems when using a variable for the attribute for inside the rich:tooltip. This code works fine (the value of #{prefix} is theprefixvalue <ui:composition> <a4j:form id="#{prefix}_form"> <h:selectOneRadio style="text-align:left" id="#{prefix}_rating"> <f:selectItems value="#{...

Richfaces: rich:datatable rowspan using rich:subtable

Hi, I use Richfaces, Seam and JSF, and I want something like the following: and I have managed it to a degree using a rich:subtable like this: <rich:dataTable value="#{backingBean.companyList}" rows="100" var="company"> <f:facet name="header"> <rich:columnGroup> <rich:column>Company Name</rich:column> <rich:colum...

Can I add a java portlet to an existing java Web App?

Hi. I'm building a webapp that uses jboss-seam with jsf, facelets and rich faces, running on top of jboss AS 5.1. I would like to add a portlet area where I could add my own portlets, but from what I got (reading forums and documentation) I need to be running a portlet container/portal (something like liferay or gatein). But I don't w...

How to default to collapased groups in a richfaces:extendedDataTable

The default behavior for a richfaces:extendedDataTable with groups is to display all the groups in their expanded view. The user can then collapse them or expand them using the UI. How can the groups be displayed collapsed by default? ...

rich:editor ruins html?

Hi, Strange behaviour. I use rich:editor with these attributes: (Irrelevant data removed) HtmlEditor editor = new HtmlEditor(); editor.setValueExpression("value", ve); editor.setTheme("advanced"); editor.setValueExpression("viewMode", viewModeValueExpression); panel.getChildren().add(editor); Now my proble...

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

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 of img tag or in trinidad org.apache.myfaces.trinidad.faces.FORM sho...

I have a problem with a4j:commandButton and a reredering ...

The code below show whiche thing that is failing in my appliaction. It is a quick add information form, fill out the form and submit it add a new entry into a database and synchronize my a databasle.. This is all done with ajax. The first form submission happens correctly but the second one fails to run the desired ActionListener. The se...

Are there “server-side comments” in JSF / Seam / RichFaces?

With the JSF/Seam/RichFaces stack, is there a way to mark up comments (on XHTML pages) so that they will not be included in the HTML output? I.e., something like JSP's <%-- comments --%>, as opposed to normal <!-- comments -->. I heard that facelets.SKIP_COMMENTS context-param migth do this for normal HTML comments, but is there any oth...

How to set focus to a textbox on page load event

I am trying to set focus to the text box on page load event. I tried many solutions by referring the element id, but couldn't able to focus the element. Later when I inspect the element using firebug I found for the same element the id changes in different execution. I am looking for the simplest solution using javascript or jquery to ac...

Richfaces, sortable datatable, sort icons

Hi there, is there a way to change the sort icons of the datatable? I know, it is possible to set the tag attribute sortIcon for the rich:column but this only replaces the icon which is set at the generated <img> tag. There seems no way to change the align of this img or the size. ...

Richfaces a4j:include loading two pages!?

I have this seemingly-innocent code on my main JSF page: <a4j:outputPanel id="sidebarContainer"> <a4j:include viewId="#{UserSession.currentSidebar}"/> </a4j:outputPanel> Here is how the sidebar changes: A jsFunction calls a backing-bean method which sets the page (like "sidebar2.jsp") in UserSession The jsFunction has "rerender...

Actions are not working when modifying the facet of a custom datatable

Hello, My application is using JSF 1.2 and Richfaces 3.3.2. We have implemented our own datatable component, which is based on the Richfaces datatable component. One of the features of our datatable is to modify the header to include some new components (such as a data scroller). What I do is that I modify the content of the <f:facet n...

Getter and Setter methods or any other methods are not getting called..

Hello All, I am doing small Project in JSF richfaces. I have specified getter and setter methods for member variables... Mbean created for the same. The Constructor getting called but all other methods which i have specified is not calling. i have specified bean in faces-config also please help me out Thanks, Jungle_Hacker ...

RichFaces Save File

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 ? ...