[jboss-jira] [JBoss JIRA] Created: (JBPORTAL-2386) Response.setProperty is not resetting the value as per the api doc
Magesh Kumar B (JIRA)
jira-events at lists.jboss.org
Tue May 5 05:29:47 EDT 2009
Response.setProperty is not resetting the value as per the api doc
------------------------------------------------------------------
Key: JBPORTAL-2386
URL: https://jira.jboss.org/jira/browse/JBPORTAL-2386
Project: JBoss Portal
Issue Type: Bug
Security Level: Public (Everyone can see)
Affects Versions: 2.7.2 Final
Reporter: Magesh Kumar B
Assignee: Thomas Heute
Calling ActionResponse.setProperty or RenderResponse.setProperty does not reset the property value. The reason is that the PortletResponseImpl.setProperty calls addProperty which in turn calls getProperties().getTransportHeaders().addValue(key, value) rather than resetting it by calling getProperties().getTransportHeaders().setValue(key, value).
http://docs.jboss.com/jbportal/v2.7.0/javadoc-bundle/portlet/javax/portlet/PortletResponse.html#setProperty(java.lang.String,%20java.lang.String)
"This method resets all properties previously added with the same key."
--
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
More information about the jboss-jira
mailing list