richfaces

Richfaces modalPanel load with Ajax

自作多情 提交于 2019-12-04 13:54:52
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()" /> All work fine but my problem is the next: In a page, I have many popup and each popup is included

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

杀马特。学长 韩版系。学妹 提交于 2019-12-04 12:00:14
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="#{backingBean.isError}" operation="show" event="onclick"/> The idea is that the backing bean would render

<meta http-equiv=“X-UA-Compatible” content=“IE=8” /> ignored in RichFaces webapp

自作多情 提交于 2019-12-04 11:27:28
I'm using JSF 2.0 and RichFaces 3.3.3 on Glassfish 2.1. I've created a web application with a modal panel that works great in my computer (local server). Because of IE9 incompatibility of the specific RichFaces version, I'm using the X-UA-Compatible: IE=8 meta tag in my HTML head: <meta http-equiv="X-UA-Compatible" content="IE=8" /> The modal panel look like this when I deploy in my local environment: But when I deploy in the production server, I've a problem. If I use IE with compatibility view (source: geneanet.org ) , my modal panel look like this: If I don't use the compatibility view, I

JSF Combine ui:param with composite component

我们两清 提交于 2019-12-04 10:53:36
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="currentEditor" > <ui:include src="#{currentEditor.getPanel()} > <ui:param name="editor" value="#

JSF a4j:support with h:selectManyCheckbox

我是研究僧i 提交于 2019-12-04 09:57:34
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 is my code: <h:selectManyCheckbox id="supportCategoryCardFilter" value="#{cardListProvider

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

本小妞迷上赌 提交于 2019-12-04 09:23:42
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 is to have a js clock embedded in the page which is served to the client. Note I'm not using the body

How to refresh parent jsf page from richfaces popup

偶尔善良 提交于 2019-12-04 09:13:42
I have a JSF page with a few fields. I followed this tutorial from BalusC and all is good. I then added RichFaces support to it, which is working fine. I can see popups etc working. Now what I am trying to do is that once a person has been registered, I want to show the name in the popup (this is also fine I can see that in the popup). Then I want to be able to change that name inside the popup and have that reflected in the parent, but I have no clue how to do that. Please have a look. XHTML Page <!DOCTYPE html> <html lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:f="http://java.sun.com

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

帅比萌擦擦* 提交于 2019-12-04 07:13:56
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.patients}" var="patient" rows="20" onRowMouseOver="this.style.backgroundColor='#F1F1F1'" onRowMouseOut="this

Using backing bean value in javascript

穿精又带淫゛_ 提交于 2019-12-04 05:55:05
问题 <h:form prependId="false" id="vt_sel_form"> <p:panelGrid styleClass="center" columns="2"> <p:commandButton value="GO" oncomplete="alert(#{test.i})" actionListener="#{test.testfxn()}" update="@this"/> </p:panelGrid> </h:form> import java.io.Serializable; import javax.faces.bean.ManagedBean; import javax.faces.bean.ViewScoped; @ViewScoped @ManagedBean(name = "test") public class TestClass implements Serializable { int i ; public int getI() { return i; } public void setI(int i) { this.i = i; }

Conditionally including a Facelet file via <ui:include>

拟墨画扇 提交于 2019-12-04 05:51:40
问题 I have 2 Facelets files (index.xhtml and report.xhtml). I use the RichFaces <ui:include src="report.xhtml"/> to load the report into the index. Works fine. But when I try to only show report on certain conditions, I fail! What does not work is this: <ui:include src="report.xhtml" rendered="#{indexService.contentName == 'report'}"/> . The rendered attribute of ui:include does not seem to work. How can I load the report.xhtml into the index.xhtml on certain conditions? Where is the error in my