richfaces

RichFaces application, should I use rich:dataTable or jQGrid, pros cons?

怎甘沉沦 提交于 2020-01-14 19:09:54
问题 Following on from here, I need to have an inline editable grid in my web application using RichFaces 3.3.3, JSF 1.2 and Facelets. My options are the rich:dataTable RichFaces control, or the jQuery plugin, jQGrid I have tried both and found the following so far: jQGrid works really well, but I am not sure what will happen if I try to refresh JSF controls from the grid, if that's possible? I am hesitant to use or trigger RichFaces modal windows from the jQGrid, can this cause problems? Or

How to highlight rows of extended datatable when mouse is over in jsf?

徘徊边缘 提交于 2020-01-14 18:54:42
问题 I am trying to do highlight the rows of the extended datatable when mouse is over. Here is my datatable: <rich:extendedDataTable onrowmouseover ="this.style.backgroundColor='#B5F3FB'" onrowmouseout="this.style.backgroundColor='white'" value="#{moneyTransferManager.allAccounts}" var="accounts" selection="#{extTableSelectionBean.selection}" id="table" frozenColumns="2" style="height:170px; width:484px;"> <a4j:ajax execute="@form" event="selectionchange" listener="#{extTableSelectionBean

<a4j:commandLink> Not Rerendering

余生颓废 提交于 2020-01-14 10:25:09
问题 I'm trying to display a shopping cart in my application (Seam/RichFaces), and have included a "remove from cart" <a4j:commandLink /> next to each item to remove the item from the cart. When I click the link it is supposed to rerender the cart contents to show that the item has been removed. However, when I click the link, nothing happens. The cart is backed by an ArrayList in my action that contains the items. I can see the call in my action, so I know the item has been removed -- and, if I

Using a commandButton in a jsf Page to download a file

空扰寡人 提交于 2020-01-13 08:29:42
问题 Using a commandButton in a jsf Page to download a file. Using: JSF & Richfaces. I have a table (extends ExtendedDataModel implements Modifiable, Serializable) with some data and in each row a button "download". <a4j:commandButton id="getDownload" value="download" style="margin-left:10px;margin-right:10px;width:100px;" action="#{controller.download}" immediate="true" ajaxSingle="true"> <f:setPropertyActionListener target="#{controller.idString}" value="#{item.id}" /> </a4j:commandButton> I

JBoss 7.1, JSF, RichFaces - rich components don't want to render

前提是你 提交于 2020-01-13 06:50:08
问题 I'm learing RichFaces now for my JSF project, but i have problem with rendering rich components in my enviroment. I have added RichFaces jar(all 4 jars from RichFaces page) to JBoss modules (E:\JBoss\modules\org\richfaces\main) with module.xml: <module xmlns="urn:jboss:module:1.1" name="org.richfaces"> <resources> <resource-root path="richfaces-components-api-4.2.1.Final.jar"/> <resource-root path="richfaces-components-ui-4.2.1.Final.jar"/> <resource-root path="richfaces-core-api-4.2.1.Final

a4j:commandLink executes action after double clicking

自古美人都是妖i 提交于 2020-01-13 05:34:09
问题 I have a table of users with an a4j:commandLink which deletes the corresponding user, but the problem is that I need to click twice for the action to execute, how can I solve it, here's the code: <h:form id="formUsuariosRegistrados"> <rich:dataScroller for="usersTable" fastControls="hide" boundaryControls="hide" /> <rich:dataTable id="usersTable" rows="10" var="user" value="#{administrationBean.tablaUsuarios}"> <f:facet name="header"> <rich:columnGroup> <rich:column> <h:outputText value=

How do I get a richfaces modal window to display without an onclick event?

ε祈祈猫儿з 提交于 2020-01-13 04:43:06
问题 I'm trying to implement a modal window like this to display an error message to the user. I have a page with a form for users to enter their information, then click Submit to add it to a database. If the database returns an error, I want the modal window to pop up with the error message. The only problem is I can't get the modal window to pop up unless there's some kind of onclick event. I tried using the following code: <rich:componentControl for="popup" attachTo="submitButton" rendered="#

row counter for html table row

对着背影说爱祢 提交于 2020-01-11 02:08:07
问题 I have HTML table in JSF web application. I am generating rows dynamically using <ui:repeat> . I want a counter for each row. How can I get this? Any help? Ssimilar to rowKeyVar in rich faces dataTable. 回答1: Since you are using richfaces, you can do it with its iteration tag ( <a4j:repeat> ), which is a bit more appropriate than using <c:forEach> , and which is like an extension to <ui:repeat> <table> <a4j:repeat value="#{bean.list}" var="item" rowKeyVar="idx"> <tr> <td><h:outputText value="#

Accessing java-based DOM tree directly from JSF/richfaces

﹥>﹥吖頭↗ 提交于 2020-01-10 04:10:08
问题 Based on this question I have a couple of other questions: 1) the map in this question which is made available to jsf is actually one of a number, so i'm now not sure what the backing bean method's return type should now be. if i modify it's current Array<String> return type to Array<Map Integer, Map<String, String[]>>> (or ArrayList<Map Integer, Map<String, String[]>>> ?) would it just be a case of further nesting the iterator on the jsf side? Trouble is an Array/ArrayList isn't a Map and I

Can't “render/not render” a4joutputpanel rendered=“” “true/false” parameter by managed bean at JBoss Seam and Richfaces

你离开我真会死。 提交于 2020-01-07 07:15:10
问题 I'm new on seam and richfaces. I want to hide/show a4joutputpanel by rendered="" "true/false" parameter by giving Managed Bean.But ı'm taking this exception: com.sun.facelets.tag.TagAttributeException: /testscreen.xhtml action="#{testBean.renderActive(true)}" Not a Valid Method Expression: #{testBean.renderActive(true) } Can anyone help me about that? Here's my xhtml and managedbean codes: <a4j:commandButton action="#{testBean.renderActive(true)}" reRender="MyPanel" value="Start" /> <a4j