richfaces

How to submit values in a pop-up panel?

我与影子孤独终老i 提交于 2019-12-10 07:01:33
问题 I have bean struggling to understand how to use the rich:popupPanel component in the right way. There are (at least not that I could find) few post about how to use the rich:popupPanel and how to submit values from it. To make matter worse the panel seams to add (when checking the html) a hard coded "_content" to its component id name (to the div generated). I have tried to use aj4:region tag to partial render the complete form. But that didn't seamed to work, cause nothing where posted to

How use mask in input field in JSF 2 + RichFaces 4?

江枫思渺然 提交于 2019-12-10 04:01:45
问题 I need to have some masks in my input fields in my form. I try to insert the jQuery.js and jQuery.MaskedInput.js as show in the code below: <h:head> <h:outputScript name="jquery-1.6.4.min.js" library="javascript" /> <h:outputScript name="jquery.maskedinput-1.3.js" library="javascript" /> <script> jQuery(function($){ $("#date").mask("99/99/9999"); $("#phone").mask("(999) 999-9999"); $("#tin").mask("99-9999999"); $("#ssn").mask("999-99-9999"); }); </script> <title>TITLE</title> </h:head> <h

Cannot click hidden button by JavaScript

与世无争的帅哥 提交于 2019-12-10 00:47:34
问题 function openEditDialog(){ window.showModalDialog('/atmew/pages/asset/searchInclude/assetEdit.mew'); document.getElementById('reData').click(); alert('after rerender'); } then there is a button: <a4j:commandLink id="edit" action="#{searchController.openAssetEdit}" oncomplete="openEditDialog()" immediate="true" ajaxSingle="true"> <h:graphicImage url="/images/edit_icon.png" </h:graphicImage> <f:param name="arId" id="arId" value="#{vo.assetReceiving.id}"/> </a4j:commandLink> The Other button

Can I implement multiple files selections for File Upload in RichFace, or implement a custom tag for this using javascript?

ⅰ亾dé卋堺 提交于 2019-12-09 22:40:17
问题 I want to implement multiple files selection for File Upload in RichFace, and I found a demo here. But if I can implement multiple files selection like we can do that on Windows normally, it will be a good experience for users. If this is not support in RichFace, how can I implment a custom tag for this using javascript? Could you comment out your idea and suggestions? 回答1: It seems like this issue was fixed in RichFaces v4.5.0.Alpha1: https://issues.jboss.org/browse/RF-12224 But currently

Icesfaces vs Myfaces vs Primefaces

北慕城南 提交于 2019-12-09 15:42:18
问题 I am starting out a new project that involves the use of JSF 2.0. From my initial reading, the Mojarra and Apache Implementation of the project covers the basic components that you will need. But I know that user's would seek gui with better presentation such as panel tab, accordion, slider etc... Currently, there are other implementation that I am seeing, the Primefaces, RichFaces and Icefaces. But I cant find a good article that discusses which among the three are the best. I have used

Auto refresh in JSF using Ajax

拈花ヽ惹草 提交于 2019-12-09 06:24:27
I am using this code in my .xhtml page In head tag, i am using for refresh purpose, <script type="text/javascript"> alert("hi"); setInterval(function() { document.getElementById('myForm:btnLoadData').submit(); alert("Hello"); }, 3000); </script> and inside ui:define tag i am writing this code. <h:panelGroup id="divData" layout="block"> //my jsf code.................. </h:panelGroup> <h:form id="myForm"> <h:commandButton id="btnLoadData" value="Hidden" style="display:none"> <f:ajax execute="@form" render=":divData" /> </h:commandButton> </h:form> After all this I am not getting any error, but

Alternative of richfaces components in primefaces

若如初见. 提交于 2019-12-09 04:24:57
问题 I am currently trying to migrate out project from RichFaces 3.0 to PrimeFaces 6.0, but I did not find some components in PrimeFaces like these. a4j:region rich:componentControl rich:hashParam 回答1: Following Richfaces to PrimeFaces Migration Guide was written by me as instructions for my colleagues. It partially answer your question, but maybe can be useful for other developers with similar problem. RichFaces 4.x to PrimeFaces 5.x migration guide Libraries Remove - richafaces-core- version

JSF view getting rebuild on each ajax request

谁都会走 提交于 2019-12-09 02:43:20
问题 I'm having a performance problem with my JSF/RichFaces/Facelets ajax requests and from what I can tell its because the entire component tree is being rebuild on each ajax request. This is happening even if I use ajaxSingle=true, wrap sections in a4j:region, declare a single section for rerendering or none at all. Our page is a dynamic page with many nested levels. The page may contain around 800-900 fields (inputText, rich calendars, selectOneMenus, etc). The initial load time is an issue,

reRender a specific row of rich:dataTable

…衆ロ難τιáo~ 提交于 2019-12-09 00:13:28
问题 Good Morning! Is it possible to reRender only 1 specific row of rich:dataTable? I have a rich:dataTable and, when I do something that I´m sure only 1 row has changed, I need to reRednder only this row, not the entire table. Is it possible? How? XHTML: <rich:dataTable id="myTable" value="#{bean.table}" var="me"> <rich:column> <h:outputText value="#{me.id}" /> </rich:column> <rich:column> <h:outputText value="#{me.valueOne}" /> </rich:column> <rich:column> <h:outputText value="#{me.valueTwo}" /

a4j:commandLink stops working after being reRender

我与影子孤独终老i 提交于 2019-12-08 22:11:23
问题 I have created this test case that isolates my problem. The a4j:commandLink action is not executed once the poll does an ajax update. It is executed if we close the modalPanel before the reRender of the poll. Any suggestion? Thanks in advance. test.xhtml: <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:f="http://java.sun.com/jsf/core" xmlns:a4j="http://richfaces.org/a4j" xmlns:rich="http://richfaces.org/rich"