richfaces

using A4J, how do I rerender a javascript function, and call it after rerendering?

天大地大妈咪最大 提交于 2019-12-11 07:49:50
问题 for example, I've tried <a4j:region id="scriptSuggested" > <f:verbatim> <script> reallyUpdateIt = function () { // javascript code that changes after aj4 ajax call is triggered } </script> </f:verbatim> <a4j:jsFunction reRender="scriptSuggested" ignoreDupResponses="true" ajaxSingle="true" name="updateSuggestionValues" action="#{bean.action}" oncomplete="reallyUpdateIt();"> <a4j:actionparam name="userInput" assignTo="#{bean.input}" /> </a4j:jsFunction> </a4j:region> I would expect that calling

rich:calendar and “The class 'java.lang.String' does not have the property …” error

别等时光非礼了梦想. 提交于 2019-12-11 07:31:41
问题 I have the following situation: Interface public interface Ranged{ public Object getRangeStart(); public Object getRangeEnd(); public void setRangeStart(Object rangeStart); public void setRangeEnd(Object rangeEnd); public void setRange(boolean isRange); public boolean getRange();} implementing class: public class CreationDateRange implements Ranged, Serializable{ private static final long serialVersionUID = SerialVersionUID.getSerialVersionUID(); public DateRange() { super(); } private Date

Losing validation with <f:ajax>

独自空忆成欢 提交于 2019-12-11 06:51:18
问题 I have this form: <h:form id="form"> <h:panelGrid columns="3" > <h:outputLabel for="name" value="Name:" /> <h:inputText id="name" value="#{register.person.name}" > <f:ajax event="blur" listener="#{register.validateName}" render="m_name" /> </h:inputText> <rich:message id="m_name" for="name" ajaxRendered="false"/> <!-- other fields --> <h:commandButton value="Register" action="#{register.registerPerson}" > <f:ajax execute="@form" render="out" /> </h:commandButton> <h:outputText value="#

Migrating from richfaces 3.3.2 to richfaces 4.0.0 final

非 Y 不嫁゛ 提交于 2019-12-11 06:24:38
问题 I'm trying to migrate a web application from richfaces 3.3.2 to 4.0.0 so I changed the necessary stuff in the web.xml file (servlet mapping ".xhtml" and removed Ajax4jsf Filter). I also changed the richfaces 3 jars to the 4th version but now I've got some errors and don't know how to resolve them: The import org.ajax4jsf cannot be resolved The import org.ajax4jsf cannot be resolved The import org.ajax4jsf cannot be resolved The import org.richfaces cannot be resolved The import org.richfaces

Pagination not working in jsf rich:datascroller

廉价感情. 提交于 2019-12-11 06:17:00
问题 how to make work rich:datascoller with nested components. Data table iteration works fine but pagination is not working. does rich:datascroller works with nested component? <a4j:repeat > <rich:datatable id="test"> ...... </rich:datatable> <rich:datascroller for="test"></rich:datascroller> </a4j:repeat > any help will be greatly appreciated 回答1: Firstly please answer the my question asked in comment section. About your issue i do not know why you did not add at lease full code of Datatable .

Richfaces drag and drop object not defined?

谁都会走 提交于 2019-12-11 06:11:24
问题 Mozilla is spitting out DnD is not defined errors on all of my rich:dragSupport and rich:dropSupport tags. When I check out the generated javascript the DnD object is where it should be and things look ok. Any ideas on why my DnD object is not defined? Has anyone come accross gotchas with using richfaces dnd? We are using Richfaces 3.2.1 (drag and drop started in 3.0.0 acording to docs) An example of how we are using this: <a4j:outputPanel><rich:panel> <rich:dropSupport dropListener="#{myBean

RichFaces rich:clientId within facelets

[亡魂溺海] 提交于 2019-12-11 06:04:42
问题 I'm trying to something like this: <?xml version="1.0"/> <ui:composition ....> <h:inputText id="#{id}InputText" value="#{value}"/> <rich:calendar id="#{id}Shevron" popup="true" datePattern="ddMMyy" showInput="false" todayControlMode="hidden" enableManualInput="false" showApplyButton="false" updateDays="14" ondateselected="alert('#{rich:clientId('#{id}Shevron')}');" inputClass="xwingml-input"/> </ui:composition> The problem I'm facing here is that the actual client id is generated for my

Ajax scripts don't work in IE

你说的曾经没有我的故事 提交于 2019-12-11 05:59:11
问题 I am using JSF 1,2 and I found that IE9 or higher doesn't support Ajax scripts and requests. In my project I have the same problems and errors as u can reproduce on: this source using IE 9+ <ui:composition 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"> <h:form> <rich:panel bodyClass="rich-laguna-panel-no-header"> <a4j:commandButton value="Set

JSF Myfaces NullPointerException: serialFactory

ぃ、小莉子 提交于 2019-12-11 05:45:03
问题 Im a bit at my wits end here. Im getting the following in my logs when I try to render a JSF page: java.lang.NullPointerException: serialFactory at org.apache.myfaces.shared_impl.util.StateUtils.getAsByteArray(StateUtils.java:182) at org.apache.myfaces.shared_impl.util.StateUtils.construct(StateUtils.java:149) at org.apache.myfaces.renderkit.html.HtmlResponseStateManager.writeViewStateField(HtmlResponseStateManager.java:104) at org.apache.myfaces.renderkit.html.HtmlResponseStateManager

Download log file using JSF application?

一曲冷凌霜 提交于 2019-12-11 05:35:56
问题 In my application developed by JSF2.0 + Richfaces3.3.3 + Tomcat6.0.29. I maintain my log file into this location : E:\Tomcat-6.0.29\Tomcat6.0\logs\project.log My tomcat(webapps) Location : E:\Tomcat-6.0.29\Tomcat 6.0\webapps When i click that a4j:commandbutton i want to download that log file, without change the content and filename. The following code worked in (JSF1.2). But After convert JSF2.0, the following code doesn't work. download.jsp <h:form id="downloadForm" binding="#{Download