richfaces

Richfaces modalPanel load with Ajax

霸气de小男生 提交于 2019-12-06 09:06:11
问题 I use richfaces in my project and particularly the tag rich:modalPanel which allows to display popups in pages. So to do this, I include my popup like this: <ui:include src="popup.xhtml" /> This popup contains this code: <rich:modalPanel id="sra" width="400" autosized="true" left="100" > ... </rich:modalPanel> Finally to display the popup, I do this in the main page: <a4j:commandLink id="linkSRA" value="#{msg['SRA']}" action="#{controller.checkSRA}" oncomplete="#{rich:component('sra')}.show()

a4j:ajax won't render h:panelgrid

喜欢而已 提交于 2019-12-06 08:51:08
This is the code: <h:panelGrid columns="3" style="margin-left: auto; margin-right:auto;"> <f:facet name="header"> <rich:column colspan="2"> <h:outputText value="Ingrese datos del padre" /> </rich:column> </f:facet> <label for="padreRut">RUT</label> <h:inputText id="padreRut" value="#{IngresoAlumno.padre.per_Rut}"> <a4j:ajax event="keyup" render="formPadre" immediate="true" /> <f:validateLongRange minimum="0" /> </h:inputText> <rich:message for="padreRut" ajaxRendered="true" /> </h:panelGrid> <h:panelGrid id="formPadre" columns="3" style="margin-left: auto; margin-right:auto;" rendered="#

Redirect to an error page in JSF

烂漫一生 提交于 2019-12-06 08:31:37
问题 Im working in a web application using JSF 2 and richFaces 4 and I want to handle exceptions with an error page. I used the JSF standard. Every thing works good but when an exception is throwed I have the error page with the exception details but we are not really redirected to the error page because in the address bar I have the URL of the page where the exception was thrown. Due to this problem I have other problems with links and images paths in the error page. Thanks in advance. 回答1: That

How to change the suggestion made by the richfaces combobox?

删除回忆录丶 提交于 2019-12-06 07:25:58
I'm currently playing with the richfaces comboBox. You can check is here I would like to know if there a way change how the suggestion are made in the combo box, instead of suggesting juste word that start with the same letter it would suggest word that have other word starting with that letter or combination of letter. Here a example from the demo: From the current combo box if I type "Mo" the combo show Mongomery and " Monpelier" but I would like it to detect "Des Moines" has well since "Moines" start with "Mo". You can use <rich:suggestionBox> and define the custom autocomplete algorithm.

How to embed and call a javascript script in a RichFaces/JSF page

别等时光非礼了梦想. 提交于 2019-12-06 06:22:28
问题 I've been looking around for a method to embed and call javascript functions in JSF pages. I'm also using RichFaces. To define the function, it appears I can do this in a cross-browser supported fashion: <a4j:outputPanel ajaxRendered="true"> <f:verbatim> <script type="text/javascript"> function datum() { alert("hi"); } </script> </f:verbatim> </a4j:outputPanel> but I'm not sure how I can call this function when the page loads so the text it returns is embedded in an h:outputPanel . The plan

How to use a4j:mediaOutput correctly for displaying images?

寵の児 提交于 2019-12-06 06:20:30
Using the code below I can't get the image in the web page. I'm not sure if I understand the documentation in the right way and I'm not able to find any problem with this code. BEAN @ManagedBean(name = "imageBean") @RequestScoped public class ImageBean { public void paint(OutputStream os, Object data) throws IOException { BinaryContent content = (BinaryContent) data; BufferedImage image = ImageIO.read(new ByteArrayInputStream(content.getContent())); ImageIO.write(image, "jpg", os); } } PAGE <rich:dataTable value="#{dataProviderBean.aoRequests}" var="item"> <f:facet name="noData">No messages

How to upload folder in web application

落爺英雄遲暮 提交于 2019-12-06 06:00:40
I am developing simple application using JSF with richfaces. I want to upload folder(select folder only). I tried, t:inputFileUpload and rich:fileUpload . but both components are support file only. Not support select folder. Is possible to select folder. Help Me. thanks in advance The standard HTML <input type="file"> already can't do it. So the <t:inputFileUpload> which just renders exactly that HTML element is out of question. Also, Flash also doesn't allow folder selection due to security restrictions. So, the <rich:fileUpload> is also out of question. Your best bet is using a Java applet

JSF Combine ui:param with composite component

这一生的挚爱 提交于 2019-12-06 05:50:40
问题 you have saved me many times ago with this forum, but now I am really stuck and don't now where to search any longer... I always get the following error message (warning level, but method is also not executed correctly): javax.el.PropertyNotFoundException: Target Unreachable, identifier 'editor' resolved to null: javax.faces.FacesException: #{cc.attrs.selectionListener} I have isolated the problem to a few lines of code: This is my main file: <c:forEach items="#{myBean.getEditors()}" var=

JSF a4j:support with h:selectManyCheckbox

可紊 提交于 2019-12-06 04:49:38
问题 I'm having trouble with a JSF selectManyCheckbox and A4J support. The purpose is to run some action when a checkbox is selected. This works perfectly in Firefox. Yet, when testing in any IE (ie6 / ie7 / ie8), found out that the action was being called but the selected value was put to null. Just to test it, I placed a JSF commandButton to submit the form and to check the value that was selected and it was correct. So the problem is really in the ajax action (without submiting the form). Here

Richfaces column Filter: How to fire an event on intro key

我怕爱的太早我们不能终老 提交于 2019-12-06 03:02:37
问题 I have a rich:extendedDataTable and I am using column filtering. I want the filter to be fired once the user enters the "intro" key, but in javascript there is no such event. I want to do so because if I use events such as onkeyup I get too many requests and I have problems because of that. I'm using richfaces 3.3.0GA and facelets. This is the component: <ui:composition> <a4j:form ajaxSingle="true" requestDelay="700"> <rich:extendedDataTable id="tablePatients" value="#{user.patientsTab