richfaces

Extend Richfaces components - for example customize Datatable component for specific implementation

自古美人都是妖i 提交于 2019-12-07 12:48:10
问题 How to extend the functionality of Richfaces components for example Data table with custom header and sorting techniques. i have seen extended data table but did not get much information from it. Please point me to an example if at it is available. Thanks Soma 回答1: Well, you can extend a JSF component with the regular java extension ( extends ). You will have to extend a number of classes, depending on the exact component: UIComponentName / HtmlComponentName HtmlComponentNameRenderer

How to access a parameter in a4j:jsFunction's oncomplete attribute

心不动则不痛 提交于 2019-12-07 09:33:27
Is there any way to access a parameter for a <a4j:jsFunction> in the oncomplete="" attribute of it, without using the action="" attribute and assingTo="" of <a4j:param> ? <a4j:jsFunction name="refreshTableFilter" render="table,scroller" execute="@form" oncomplete="setCursor(componentId);"> <a4j:param name="componentId" /> </a4j:jsFunction> I'm looking for a way to access the <a4j:param> directly. I don't need the parameter in a BackingBean and I don't need the action="" attribute. UPDATE My current code is: <rich:extendedDataTable id="table" rowKeyVar="index" selectionMode="single" selection="

JSF problem with FireFox 3.5 caching, wyciwyg:// prefix

左心房为你撑大大i 提交于 2019-12-07 09:21:40
问题 I am new to JSF and have a problem with my simple JSF application. I use Facelets and Richfaces on WebLogic 10.3.2 (11g). The application is essentially 3 pages: A <--> B <--> C where the intermediate arrows denote navigation rules. The navigation is performed through a4j:commandButtons The problem is in Firefox 3.5, when I click from B to C, I get a url starting from wyciwig:// . In more detail, the starting url is: http://localhost:7001/myapp/index.faces and the url I get when I navigate

How do I use the latest version of jQuery and get back the '$' for jQuery in RichFaces?

旧巷老猫 提交于 2019-12-07 09:09:28
RichFaces 3.3.3 comes baked in with jQuery 1.3.2 and prototype and scriptaculous as well. How can I try and use the latest version of jQuery? Can I use the Google CDN one? Also the $() object is defaulted to prorotype and to use jQuery I have to do jQuery() is there a way to get back the $ for jQuery without breaking RichFaces? UPDATE: You can use multiple versions of jQuery side by side. For now, I've gone ahead and used the version that comes baked with RichFaces. You can use $ with jQuery without breaking RichFaces by wrapping your jQuery code in this manner: (function($) { /* your jQuery

JSF invoke backing bean method and reRender components on ENTER key

人盡茶涼 提交于 2019-12-07 05:06:17
问题 I have a datatable with as search fields. I want a method on the backing bean to be invoked when ENTER key is pressed, as well as the DataTable to be re-rendered. My approach so far only works in IE 6, and 7, not in FF. This is the inputText: <h:inputText value="#{applicantProductListBean.applicantNameFilterValue}" id="applicantNameFilterValue" onkeypress="submitByEnter(event)"> </h:inputText> and this is the Javascript method I am invoking: function submitByEnter(e){ if(e.keyCode==13){ //

RichFaces 3.3.3 with JSF 2.0 working example

筅森魡賤 提交于 2019-12-07 04:38:01
问题 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 this jboss article but the sample application has a lot of configurations. If you have successfully made RichFaces and JSF 2 work, please share you config. Thank you. 回答1: You have to add the latest facelets, richfaces 3.3.3 and jsf 2.x libraries. this is my web.xml config i'm using for my project: <?xml version="1.0" encoding="UTF

<h:inputText> enabled/disabled - change background color

家住魔仙堡 提交于 2019-12-07 03:09:44
问题 can I change background color for disabled <h:inputText> ? I've tried to do this way: <h:inputText value="test" disabled="true" styleClass="input"/> css contains: input:disabled {background-color:blue;} input:enabled {background-color:red;} and result is: reason, why I'm trying to change the background is, that since I've installed richfaces, disabled and enabled has the same color, both are white Thank you UPDATE: HTML: <td class="width10">Směna:</td> <td class="width15"><input name="bde:j

Is that possible to combine Primefaces and Richfaces in one web application?

随声附和 提交于 2019-12-06 23:59:45
问题 After reading RichFaces Vs PrimeFaces (for performance), I was tempted to use both in my web application to get the maximum benefit from both. Do you think that is possible? What are the advantages and disadvantages? 回答1: Both are great component libraries. You can definitely combine them. But it is not true that it's 1+1=2 here. It's more 1*1=1. You should really investigate the both component libraries more closely. What exactly do you need from RichFaces which PrimeFaces doesn't offer?

Passing action in <rich:modalPanel>

跟風遠走 提交于 2019-12-06 22:01:38
There is some way to pass action in <rich:modalPanel> . I want to write simple popup with "Yes" and "No" button, and I want to reuse this popup in different pages, that's why I need that different action was invoked when "Yes" button pressed. There is a way to pass some value in <rich:modalPanel> with <a4j:actionparam> : <a4j:commandButton value="See details…" id="det" reRender="popup_dataIdField, …"> <rich:componentControl for="popup" operation="show" event="onclick" /> <a4j:actionparam name="message" assignTo="#{popupBean.message}" value="#{myBean.message}" /> </a4j:commandButton> But is

Getting started with JSF - Richfaces on Eclipse

孤者浪人 提交于 2019-12-06 16:56:51
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 do I need to add. Like splitting projects into 4 or so and what server to use, etc. You can also find many RichFaces resources on my blog: http://mkblog.exadel.com/tag/richfaces-howto/ , including this project template: http://mkblog.exadel.com/2010/04/the-easiest-way-to-start-with-richfaces/ Here is hello world and Practical Richfaces But I suggest you to use Primefaces . I think primefaces is the best among jsf components because of its ajax and ui