[JBoss JIRA] Created: (RF-8036) RichFaces doesn't work with latest Neko release
by Stan Silvert (JIRA)
RichFaces doesn't work with latest Neko release
-----------------------------------------------
Key: RF-8036
URL: https://jira.jboss.org/jira/browse/RF-8036
Project: RichFaces
Issue Type: Bug
Reporter: Stan Silvert
Right now, RichFaces will not work with the latest version of Neko,. which is 1.9.13. I believe that this is because Neko has deprecated/removed some of its API.
The API's were deprecated for a long time before they were removed. So, when this is fixed, RichFaces should work with many previous versions of Neko.
I talked to Alex about this and here is his response:
That is mix of problems. RichFaces has pluggable set of filters that converts JSF Html response to well-formed XML that could be parsed by JavaScript XMLHttpRequest. One of these filters is based on Neko html
and that is default RichFaces demo configuration. These test errors seem like API change between versions that blocks AJAX response processing. I did not pay attention to that because we had had no problems with Neko libraries before. It would take a while to figure out Neko API changes and fix that issue, so I suggest two workarounds:
1) Switch back to earlier HtmlUnit version.
2) Change init parameter in application web.xml from:
<context-param>
<param-name>org.ajax4jsf.xmlparser.ORDER</param-name>
<param-value>NEKO, TIDY</param-value>
</context-param>
to:
<context-param>
<param-name>org.ajax4jsf.xmlparser.ORDER</param-name>
<param-value>TIDY</param-value>
</context-param>
that disables Neko parser.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years, 10 months
[JBoss JIRA] Created: (RF-5752) reRender of components inside modalPanel does not work
by Juan Ignacio Garzon (JIRA)
reRender of components inside modalPanel does not work
------------------------------------------------------
Key: RF-5752
URL: https://jira.jboss.org/jira/browse/RF-5752
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.2.2
Environment: Microsoft Windows XP, Tomcat 6.0.16
Reporter: Juan Ignacio Garzon
I have a table showing items and a button to edit them. When I click on the button, the entity is set on a session bean property, and a modal panel appears, with a form to edit the selected entity (in the example, the entity has only a name).
The first time I select an entity, the modal panel shows an inputText with the name of the entity, in order to edit it. After that first time, the inputText in the modal panel never changes again, it will show always the name of that first entity.
I also have an inputText outside the modalpanel that rerenders every time the edit button is clicked, and It changes every time another entity is selected.
Here is a reduced version of the code that also shows the problem:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<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"
xmlns:t="http://myfaces.apache.org/tomahawk"
xmlns:bdrc="http://www.pan-energy.com.ar/bdrc">
<f:view>
<f:loadBundle basename="#{paisController.resourceGeneralName}"
var="msg" />
<f:loadBundle basename="#{paisController.resourceBundleName}"
var="msgEntidad" />
<a4j:form id="formListado">
<rich:dataTable var="entidad" value="#{paisController.listado}">
<rich:column width="18">
<f:facet name="header">
<h:outputText value="" />
</f:facet>
<h:outputText value="#{entidad.nombre}" />
</rich:column>
<rich:column width="18">
<!-- THIS IS THE "EDIT" BUTTON -->
<a4j:commandLink
oncomplete="javascript:Richfaces.showModalPanel('ventanaEditar');"
reRender="nombre, nombre2">
<a4j:actionparam name="componenteEditar" value="#{entidad}"
assignTo="#{paisController.entidadSeleccionada}"
converter="#{paisController.converterEntidad}" />
<h:graphicImage value="/img/pencil.png"
style="cursor:pointer; border: 0px" />
</a4j:commandLink>
</rich:column>
</rich:dataTable>
</a4j:form>
<!-- THIS INPUTTEXT RE RENDERS CORRECTLY -->
<h:inputText id="nombre2" value="#{paisController.entidadSeleccionada.nombre}" />
<rich:modalPanel id="ventanaEditar" zindex="2000" autosized="true"
resizeable="false">
<a4j:form id="formEditar" status="statusGeneral">
<!-- THIS INPUTTEXT DOES NOT RE RENDER-->
<h:inputText id="nombre" value="#{paisController.entidadSeleccionada.nombre}" />
<a4j:commandLink id="btnSubmit" styleClass="botonLink"
action="#{paisController.guardarEntidadSeleccionada}"
reRender="formListado"
oncomplete="javascript:windowclose_ventanaEditar();"
style="float:right" status="statusGeneral" immediate="false">
<h:graphicImage value="/img/accept.png"
style="cursor:pointer; border: 0px" />
<h:outputText value="#{msg.guardar}" />
</a4j:commandLink>
<a4j:commandLink id="btnCancelar"
action="#{paisController.cancelarModificacion}"
reRender="formListado"
oncomplete="javascript:windowclose_ventanaEditar();"
styleClass="botonLink" style="float:right" status="statusGeneral"
immediate="true">
<h:graphicImage value="/img/cancel.png"
style="cursor:pointer; border: 0px" />
<h:outputText value="#{msg.cancelar}" />
</a4j:commandLink>
</a4j:form>
</rich:modalPanel>
<script type="text/javascript"> function
windowclose_ventanaEditar(){
javascript:Richfaces.hideModalPanel('ventanaEditar'); }; </script>
</f:view>
</html>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years, 10 months