richfaces

params not getting passed to backing bean for h:commandLink under rich:popupPanel and t:dataList

谁说我不能喝 提交于 2019-12-04 05:09:34
问题 I have rich:popupPanel which contains t:dataList under one column of t:dataTable. This dataList has h:commandLink which has f:param inside it. It was working fine for richfaces 3.3 but after migration to richfaces 4, it stopped working. To mention the fact that I was using rich:modalPanel in place of rich:popupPanel over there. I went through quite a few links: https://community.jboss.org/thread/202583 commandButton/commandLink/ajax action/listener method not invoked or input value not

How to add richfaces to maven project

眉间皱痕 提交于 2019-12-04 05:05:38
问题 I'm trying to use popup component in my app. I use JSF, Glassfish. Here's my pom.xml : <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>pl.karta</groupId> <artifactId>epacjent</artifactId> <version>1.0-SNAPSHOT</version> <packaging>war</packaging> <name>epacjent</name> <properties> <org.richfaces

javax.faces.FacesException: Error decode resource data while loading JSF page

半城伤御伤魂 提交于 2019-12-04 04:09:31
I am getting the below mentioned error while loading the JSF page. The page gets loaded successfully and the desired operation on the page is also done but this error comes. The jsf page contains tab panels and on click of each tab panel the error comes. Also I found that if I keep a certain portion of my page as rendered=false then the error does not come but the portion is again not rerendered. I am using JSF2.0 with JSPs. and RF3.3 ERROR [[Faces Servlet]] Servlet.service() for servlet Faces Servlet threw exception javax.faces.FacesException: Error decode resource data at org.ajax4jsf

a4j:included rich:dataTable negatively affects a4j:commandButton

旧巷老猫 提交于 2019-12-04 02:03:57
问题 I have a JSF/RichFaces setup with an index.jsp which a4j:include s another piece of code which contains a rich:dataTable . It initially renders fine, and selecting an item on the index.jsp 's dropDown list and clicking the 'Retrieve' a4j:commandButton uses the backing bean's setChosen method to do it's bidding on the back end. The backing bean updates class members whose getters are then called by the model reading elements in a separate file content.jsp which is a4j:include d. My updated

Richfaces - Get Element By Id

点点圈 提交于 2019-12-04 01:25:45
We are using Richfaces in one of our projects. I need to focus the element dynamically on some user action. The issue here is I only have the id ( JSF specific id that I give to element.) For example: for h:inputText I use it as <h:inputText id="userNameInputBox" value="<<some binding>>/> and this input box is embedded in separate form. When I include the input box in form, the id of the input box will be: formName:userNameInputBox (<<formName>>:<<elementId>>) I will be re-using the input box in multiple JSP s. That means, I do not know the parent form in which I will include the input box.

Disable button and show loading image while processing JSF

依然范特西╮ 提交于 2019-12-03 23:05:42
I have this module in my webapp where i need to update come catalogs. The idea is to disable the h:commandButton and show a h:graphicImage , both actions are supposed to happen right after the button was clicked. Finally, when the update process has ended it should do the other way, hide the h:graphicImage , enable the h:commandButton but this time also show a label h:outputText that says either 'Update Success' or 'Update Failure'. The problem in my code is that the image and the label appear right after the process is finished and I can't find the way to do what I described above. Where or

JSF ReRender support with selectBooleanCheckbox

泄露秘密 提交于 2019-12-03 20:52:16
I have a JSF page on which I want to have a checkbox that, when clicked, will add/remove certain other form fields from the page. Here is the (simplified) code I currently have for the checkbox: <h:selectBooleanCheckbox title="showComponentToReRender" value="#{backingBean.showComponentToReRender}"> <a4j:support event="onsubmit" reRender="componentToReRender" /> </h:selectBooleanCheckbox> Here is the code for the component I want to hide: <h:selectOneMenu id="componentToReRender" value="#{backingBean.value}" rendered="#{valuesList.rowCount>1 && backingBean.showComponentToReRender}"> <s

Rich TabPanel's getters invoked when tab content not rendered

て烟熏妆下的殇ゞ 提交于 2019-12-03 20:44:00
I have a question about RichFace's (3.3.3) TabPanel. I have worked on two projects that have used the TabPanel. On each project, I have noticed that components that are on tabs that are not visible still have their "getter" methods called. For example, the first tab has a datatable on in and any time requests are made from any of the other tabs (including ajax requests) the bean that is bound to the datatable on the first tab still has its getter called. I assume this happens (even though the tab is currently not rendered in the UI) because the component is still in the component hierarchy? In

Is @Produces more efficient that a getter in an EL expression

℡╲_俬逩灬. 提交于 2019-12-03 18:18:07
问题 I'm wondering which of those two code snippets is more efficient. First one In userSearch.xhtml : <rich:dataTable var="user" value="#{userSearchResultList}" rendered="#{not empty userSearchResultList}"> ... </rich:dataTable> In UserSearchAction.java : @Produces @RequestScoped @Named("userSearchResultList") public List<User> getResultList() { return resultList; } Second one In userSearch.xhtml : <rich:dataTable var="user" value="#{userSearchAction.resultList}" rendered="#{not empty

Richfaces 4 a4j:commandLink action not firing in rich:popupPanel

最后都变了- 提交于 2019-12-03 17:00:20
I seem to be having a problem where I have an a4j:commandLink on a rich:popupPanel but the action is not firing. The xhtml looks as follows: <rich:popupPanel id="rate-panel" modal="true" height="444" width="780" top="60" show="false" onmaskclick="#{rich:component('rate-panel')}.hide()" styleClass="cs-modal"> /**Some html here**/ <a4j:commandLink immediate="false" action="#{venueScore.up}" render="rate-panel" styleClass="rate love"> <span>Love it</span> </a4j:commandLink> /**Some more html here**/ </rich:popupPanel> And the managed bean looks as follows: @Named("venueScore") @ViewScoped public