richfaces

How to rewrite the URL

走远了吗. 提交于 2019-12-12 11:23:08
问题 I have a small application built using Seam 2.2, Richfaces 3.3, JBoss 5.1. Most of the page navigation adds the request parameters to the target URL. I would like to hide parameters to be hidden to the customer who is using the application (e.g. I would expect the URL to be something like "http://localhost:8080/books/Book.seam". The parameters (userId, orderId and cmId) are currently mapped to the backend bean via Book.page.xml. How do I prevent the request parameters from showing up in the

JSF error “Expected a child component type … Found null.”

五迷三道 提交于 2019-12-12 11:16:21
问题 When using the <a4j:support> like described in the RichFaces example I'm always getting the following error when changing the value of the drop-down-box. Expected a child component type of UISelectItem/UISelectItems for component type javax.faces.SelectOne(myId). Found null. Here's the JSF code: <h:selectOneMenu id="selectId" valueChangeListener="#{cs.myListener}" value="#{cs.selectList.selectedItem}"> <f:selectItems value="#{cs.bundeslandList.selectItems}" /> <a4j:support event="onchange"

extendedDataTable - height doesn't work

自闭症网瘾萝莉.ら 提交于 2019-12-12 11:04:55
问题 So, like the title says in my case height of the extendedDataTable doesn't work, so my table also doesn't scroll because all rows are shown. I'm using richfaces4.0-final version. So here is my piece of code: <rich:extendedDataTable value="#{advancedSearchView.criteria}" var="criteria" height="50px" selection="#{advancedSearchView.selection}" id="table" selectionMode="single"> <rich:column id="criteria_row" filterBy="#{criteria}" filterEvent="onkeyup" width="500px"> <h:outputText value="#

Ok to wrap JSF components generated html with own divs using jQuery after page load?

蹲街弑〆低调 提交于 2019-12-12 10:23:07
问题 Using RichFaces 3.3.3, JSF 1.2 and Facelets. For some presentation purposes I need to wrap the contents of some divs with other divs to be able to style them a certain way. I am using jQUery to do this as its cleaner when writing HTML and it can be controlled in one location, otherwise I have to hardcode the extra divs every place I want to use them. eg. original JSF generated HTML: <div id="j_id4:main-container"> <div id="j_id4:j_id5:nav">...</div> </div> after using jQUery the HTML now

How to show confirm (richfaces) popup when use action Method in JSF Managed Bean?

我只是一个虾纸丫 提交于 2019-12-12 09:27:28
问题 Perhaps we are familiar with the confirm popup in Javascript. However, in this example, I want to create one custom confirm popup based on popupPanel in richFaces that have 2 requirements: I can describe the requirements of the confirm box is as follows: After our application valid data (processed by one action method in ManagedBean), then the custom confirm box appears, and it asks user to confirm insert data to database. Not like when we use window.confirm, confirm box appears after we

h:command button oncomplete action

流过昼夜 提交于 2019-12-12 06:05:59
问题 When downloading file from server if i use a4j:commandLink file download fail(mean file written to browser screen) if i use h:commandLink it is okay.I want to show a rich modal panel when file downloading but standard components not have a on complete action so i cant hide modal panel after file downloaded .How can i workaround this issue,I am using rich faces 3.3 <h:commandLink value="Download" action="#{logSearcher.downloadFile}" onclick="Richfaces.showModalPanel('ajaxLoadingModalBox',

Show a WaitBar while a Form Submits

和自甴很熟 提交于 2019-12-12 05:58:36
问题 My JSF page is the following <!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:ui="http://java.sun.com/jsf/facelets" 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"> <h:head> <title>My Registration Page</title> <link href="stylesheet/reset.css" rel="stylesheet" type=

<a4j:commandLink> action not fired

久未见 提交于 2019-12-12 05:48:27
问题 I have an <a4j:commandLink> which I need to fire an action on my controller, <h:form> <a4j:commandLink actionListener="#{controller.send(viewBean.id, cc.attrs.guid)}" onbegin="$.efc.busy($.messages.sending);" oncomplete="$.efc.busy('', true);"> Send offer to this dealer </a4j:commandLink> </h:form> When I click on the link, the onbegin javascript is successfully fired but the action is never called. Here is my action from my controller: public void send(String id, String guid) { if (id !=

Mixing Primefaces 3.5 and Richfaces 4.3, will the bundled jQuery conflict?

℡╲_俬逩灬. 提交于 2019-12-12 05:03:38
问题 I'm developing a JSF project in which I must integrate both component libraries. In last versions the main problem was the jquery.js version and extras implementation in jQuery. I've looked the new version of PrimeFaces and RichFaces libraries and I noticed that both have the same jquery.js version. Can I work with both without conflicts? 回答1: I tried to use Richfaces 4.3.2 and Primefaces 3.5 together as they both include the same jQuery version 1.8.3, but it terribly failed . The inspection

jsf 2.0 @ViewScoped redirect (navigation) to target=“_blank”

好久不见. 提交于 2019-12-12 04:58:25
问题 Basically the same question as here How do I retain a ViewScoped bean on the page from which I redirect to a different browser tab: firstPage.xhtml: <h:commandLink action="#{controller.redirect}" value="#{bean.value} target="_blank"/> When redirect/navigation finishes with initializing the other beans, it destroys this #{bean} in the process. In the redirected code I am not even using #{bean}. This used to work with <a4j:keepAlive> Here's my current setup. bean class: @ViewScoped public class