[JBoss JIRA] Created: (RF-5847) NPE when rendering faces messages with no client id
by David Green (JIRA)
NPE when rendering faces messages with no client id
---------------------------------------------------
Key: RF-5847
URL: https://jira.jboss.org/jira/browse/RF-5847
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.3.0
Reporter: David Green
Priority: Critical
If one or more FacesMessages are in the context with no client id then a NullPointerException occurs in the RenderResponse phase.
{noformat}
java.lang.NullPointerException
at java.io.ObjectOutputStream$BlockDataOutputStream.getUTFLength(ObjectOutputStream.java:2097)
at java.io.ObjectOutputStream$BlockDataOutputStream.writeUTF(ObjectOutputStream.java:1968)
at java.io.ObjectOutputStream.writeUTF(ObjectOutputStream.java:841)
at org.richfaces.component.UIRichMessages$FacesMessageWithId.writeObject(UIRichMessages.java:302)
... snip ...
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
at com.sun.faces.renderkit.ResponseStateManagerImpl.writeState(ResponseStateManagerImpl.java:269)
at javax.faces.render.ResponseStateManager.writeState(ResponseStateManager.java:166)
at org.ajax4jsf.application.AjaxStateManager.writeState(AjaxStateManager.java:294)
at org.ajax4jsf.application.AjaxStateManager.writeState(AjaxStateManager.java:256)
at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:606)
at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:100)
at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:176)
at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:109)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
{noformat}
--
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
16 years, 10 months
[JBoss JIRA] Created: (RF-5975) rich:messages null pointer when client side state saving and clientId is NULL
by Steven Murray (JIRA)
rich:messages null pointer when client side state saving and clientId is NULL
-----------------------------------------------------------------------------
Key: RF-5975
URL: https://jira.jboss.org/jira/browse/RF-5975
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.3.0
Environment: rich faces 3.3.0 GA on windows platform
Reporter: Steven Murray
Using rich:messages, client side state saving, entity (backing bean) scope is Event. Add faces message with clientId null
Relevant part of the stack
java.lang.NullPointerException
at java.io.ObjectOutputStream$BlockDataOutputStream.getUTFLength(ObjectOutputStream.java:2097)
at java.io.ObjectOutputStream$BlockDataOutputStream.writeUTF(ObjectOutputStream.java:1968)
at java.io.ObjectOutputStream.writeUTF(ObjectOutputStream.java:841)
at org.richfaces.component.UIRichMessages$FacesMessageWithId.writeObject(UIRichMessages.java:302)
Relevant part of UIRichMessages
/**
* <p>
* Persist {@link FacesMessageWithId} artifacts,
* including the non serializable <code>Severity</code>.
* </p>
*/
private void writeObject(ObjectOutputStream out) throws IOException {
out.writeUTF(clientId);
out.writeInt(message.getSeverity().getOrdinal());
out.writeUTF(message.getSummary());
out.writeUTF(message.getDetail());
}
--
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
16 years, 10 months
[JBoss JIRA] Created: (RF-6008) reRender doesn´t work after submitting a form with a required="true" empty inputText
by Aimar Tellitu (JIRA)
reRender doesn´t work after submitting a form with a required="true" empty inputText
------------------------------------------------------------------------------------
Key: RF-6008
URL: https://jira.jboss.org/jira/browse/RF-6008
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.3.0
Environment: JDK 1.6.0_05, JBoss AS 4.2.1, Mojarra 1.2_04-b16-p02, RichFaces 3.3.0.GA, Facelets 1.1.14
Reporter: Aimar Tellitu
The first time that the page is loaded it works fine. If you change the value of id="text1" inputText, the value of id="text3" inputText is updated.
But after clicking the commandButton "Test" (with id="text2" empty), the reRender of the id="text3" inputText doesn't work anymore.
This is the code of the page home.xhtml:
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:rich="http://richfaces.org/rich"
xmlns:a4j="http://richfaces.org/a4j">
<f:view>
<head></head>
<body>
<a4j:form>
<h:inputText id="text1" value="#{test.text1}">
<a4j:support
event="onchange"
ajaxSingle="true"
reRender="text3"
actionListener="#{test.onText1Changed}" />
</h:inputText>
<h:inputText id="text2" value="#{test.text2}" required="true" />
<h:inputText id="text3" value="#{test.text3}" />
<a4j:commandButton value="Test" />
<rich:messages/>
</a4j:form>
</body>
</f:view>
</html>
This is the definition of the managed bean test:
<managed-bean>
<managed-bean-name>test</managed-bean-name>
<managed-bean-class>
com.code.aon.ui.finance.controller.Test
</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
</managed-bean>
This is the code of the com.code.aon.ui.finance.controller.Test class:
package com.code.aon.ui.finance.controller;
import javax.faces.event.ActionEvent;
public class Test {
private String text1;
private String text2;
private String text3;
public String getText1() {
return text1;
}
public void setText1(String text1) {
this.text1 = text1;
}
public String getText2() {
return text2;
}
public void setText2(String text2) {
this.text2 = text2;
}
public String getText3() {
return text3;
}
public void setText3(String text3) {
this.text3 = text3;
}
public void onText1Changed(ActionEvent event) {
setText3( getText1() + "*" );
}
}
--
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
16 years, 10 months
[JBoss JIRA] Created: (RF-5950) Action param value is assined AFTER actionListener is called.
by Sergey Halipov (JIRA)
Action param value is assined AFTER actionListener is called.
-------------------------------------------------------------
Key: RF-5950
URL: https://jira.jboss.org/jira/browse/RF-5950
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.3.0
Environment: 3.3.0.GA
java version "1.6.0_10"
apache-tomcat 6.0.18
Reporter: Sergey Halipov
Priority: Critical
XHTML:
<a4j:commandButton styleClass="button"
value="${messages['freesale.action.stop.sale']}"
actionListener="#{managementBean.update}"
action="#{salesTab.afterManage}">
<a4j:actionparam name="userId"
value="#{formTab.currentUserId}"
assignTo="#{managementBean.userId}" />
</a4j:commandButton>
Beans:
public void update(final ActionEvent event) {
System.out.println(">>> Action listener invoked.");
}
public String afterManage() {
System.out.println(">>> Action invoked.");
return null;
}
public void setUserId(Long userId) {
this.userId = userId;
System.out.println(">>> Set action param.");
}
3.3.0 GA output:
>>> Action listener invoked.
>>> Set action param.
>>> Action invoked.
3.2.1 GA output:
>>> Set action param.
>>> Action listener invoked.
>>> Action invoked.
--
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
16 years, 10 months
[JBoss JIRA] Created: (RF-6096) <rich:dataTable> column sorting breaks in Safari when table contains <h:commandLink>
by Rasmus Aveskogh (JIRA)
<rich:dataTable> column sorting breaks in Safari when table contains <h:commandLink>
------------------------------------------------------------------------------------
Key: RF-6096
URL: https://jira.jboss.org/jira/browse/RF-6096
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.2.2
Environment: Glassfish v2.1, Safari 3.2.1, OS X 10.5.6
Reporter: Rasmus Aveskogh
When a <rich:dataTable> column contains <h:commandLink> the sorting functionality (sortBy) on <rich:column> will make the table data vanish upon clicking on the sort markers in the header.
Example (that does not work in Safari):
<h:form>
<rich:dataTable id="dataTable" value="#{customers}" var="customer">
<rich:column sortBy="#{customer.id}">
<f:facet name="header">Header</f:facet>
<h:commandLink action="#{viewCustomerActions.viewCustomer(customer)}">#{customer.name}</h:commandLink>
</rich:column>
</rich:dataTable>
</h:form>
--
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
16 years, 10 months