[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
15 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
15 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
15 years, 10 months
[JBoss JIRA] Created: (RF-4481) fileUpload doesn't support attribute "onuploadcomplete"
by Alexander Belov (JIRA)
fileUpload doesn't support attribute "onuploadcomplete"
-------------------------------------------------------
Key: RF-4481
URL: https://jira.jboss.org/jira/browse/RF-4481
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.2.2
Reporter: Alexander Belov
I use fileUpload component inside modalPanel.
<rich:fileUpload maxFilesQuantity="1"
fileUploadListener="#{importTerminsBean.fileUploadListener}"
acceptedTypes="txt"
addControlLabel="#{bundle.addLabel}"
cancelEntryControlLabel="#{bundle.cancelLabel}"
stopControlLabel="#{bundle.stopLabel}"
clearAllControlLabel="#{bundle.clearAllLabel}"
clearControlLabel="#{bundle.clearLabel}"
uploadControlLabel="#{bundle.uploadLabel}"
immediateUpload="true"
onuploadcomplete="alert('complete');"
/>
It worked at 3.2.1, but now client script is not calling.
--
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
15 years, 11 months