richfaces

How to pass parameters to a validator of a rich:inplaceInput component

Hello I've seen BalusC's page on passing values to a validator but that is using inputText components. I'm using rich:inplaceInput components and it doesn't seem to work. Can someone tell me if it is possible, and if it is how to do simply? Thanks ...

Conditionally display a richfaces modal panel

Hello Quite simple: <a4j:commandButton id="bob" action="#{MyBacking.doAction}" image="/img/btn.png" reRender="stuff" oncomplete="#{not empty MyBacking.myCondition ? #{rich:component('myModelPanel')}.show()" : <do nothing>}" ajaxSingle="true"> </a4j:commandButton> Thats obviously...

Show/Hide RichFaces component onclick client-side? (without AJAX)

I'm looking for a way to show/hide an arbitrary RichFaces component. In this case, I have a <rich:dataTable> that contains several rows. Each row needs to have it's own, independent Show/Hide link, such that when you click "Show details", two things happen: The "Show details" link is re-rendered as "Hide details" The associated details...

How to dynamically change the content of a facet in a custom component?

Hello, 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 is the best way to achieve that? Or where is the best place in the code to achieve that? In my faces-config.xml, I have the following...

FacesMessages and rich:effect?

I'd like to be able to make an Ajax call using JSF/Seam/RichFaces and have the page update with the relevant h:messages component. That works with no problem. I'm able to perform the appropriate reRender. However, I'd also like to be able to make use of rich:effect to make it a bit prettier. Ideally, I'd like to be able to have the m...

richfaces progressBar polling

Hi, I've got a progressBar component defined as the following on my webpage: <rich:modalPanel id="pb1Panel"> <rich:progressBar id="pb1" oncomplete="javascript:#{myBean.handleProgressEvent()} closeProgressModalPanel()" value="#{pb1Listener.percentageComplete}" label="#{pb1Listener.percentageComplete} %" minValue="1" maxValue="100" l...

reRendering is not happening in jsf using data table

Rerendering is not working in my code: <rich:simpleTogglePanel id="bookIncomeHeader1" value="#{myBean.ftBoookIncomelst}" label="BOOK INCOME" bodyClass="STP" style="ReptxtBold Reptxt_LtPad" switchType="server"> <rich:dataTable id="bookIncome" value="#{myBean.ftBoookIncomelst}" var="item" rowKeyVar="row" first="0" widt...

How to change the suggestion made by the richfaces combobox ?

I'm currently playing with the richfaces comboBox. You can check is here: http://livedemo.exadel.com/richfaces-demo/richfaces/comboBox.jsf?c=comboBox&amp;tab=usage I would like to know if there a way change how the suggestion are made in the combo box, instead of suggesting juste word that start with the same letter it would suggest wo...

jsf, richfaces, popup window

Hi I would like to make a list-detail view with richfaces. There will be a link for every record in the list that should open a new window containing record details. I tried to implement the link this way: <a4j:commandLink oncomplete="window.open('/pages/serviceDetail.jsf','popupWindow', 'dependent=yes, menubar=no, toolbar=no, height=5...

Richfaces 3.3.2 is not working in Websphere7

I'm new to this rich faces and JSF. I have developed a sample app and it's working fine in Tomcat6. When I move this app to Websphere7, I'm facing a problem. Exception on console: Unable to locate the tag library for uri //richfaces.org/rich List of jars in build path: Commons-beanutils-1.8.3.jar commons-codec-1.4.jar commons-colle...

Strange problem with SEAM stateful session bean

Hi, I've got a stateful session bean. @Scope(ScopeType.SESSION) @Name("chuckNorrisBean") public class ChuckNorrisBean implements Serializable, ChuckNorris with some function public void roundHouseKick() { ... } interface @Local public interface ChuckNorris { public void roundHouseKick() { ... } } and cal...

How to Prepopulate <rich:calendar> in JSF?

In My application I am pre-populating some data from the Server. When I assign the data for the <rich:Calendar> I am not able to see the date in the UI. I am trying to convert the string from the database to Date format. Kindly help. My JSF Code <a4j:outputPanel> <rich:calendar id="myCalendar" popup="true" mode="client" preloadDateR...

FacesContext == null

Hi all! 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 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:we...

RichFaces a4j:support parameter passing

Hello I have a number of rich:inplaceInput tags in RichFaces which represent numbers in an array. The validator allows integers only. When a user clicks in an input and changes a value, how can I get the bean to sort the array given the new number and reRender the list of rich:inplaceInput tags so that they're in numerical order? EG ...

Alternative rowclasses in IE7 (richfaces)

The use of rowClasses in a datatable with 2 different rowclasses renders successfully in FF,IE8,Opera,Safari but not in IE7. It defaults all rows to white background color. Is there any workaround for this ? ...

Using a4j:support 's onchange event with h:selectOneMenu

<h:selectOneMenu id="selectOneMenu" value="#{Bean1.val1}" > <f:selectItems value="#{Bean1.selectItems}"/> <a4j:support event="onchange" action="#{Bean1.onSelectOneMenuChange}" reRender="textbox1 , textbox2 , textbox3, textbox4" /> </h:selectOneMenu> <h:inputText id="textbox1" value="#{Bean1.textbox1}"> </h:inputText> <h:input...

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

Hi all! 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). I load css and try to do this in my code: this.grid = new HtmlPanelGrid(); this.grid.setStyleClass("toplist,toplist-top"); But no changes I could see in my page. I tried to loa...

How to set value of an input using jQuery ?

Hi , I am trying to change the value of an input depending on selection from a combo box, so is user selects "Yes" from combo box the input should contain "test" value and than if user selects "No" the input should be empty , "test" value remove from it. I tryed to do it runing the following code: <h:inputText id="myInput" value="aaa"...

Problem in Rich : menubar

I'm using rich:toolbar with backing bean menuAction method.I'm facing one problem in menu link icons.Suppose if i ve child menu in my parent menu it is displaying "hand symbol" for that.else if i dont ve any child menu in my parent menu it is showing "I" this icon.While clicking parent menu(without having child menu) i want hand symbo...

How to find jquery versin in richfaces

What version of jquery that richfaces(3.3.3.CR1) supports. How to find it? ...