[JBoss JIRA] Created: (RF-4426) Framework: error parsing date header under WL 10.3
by Nick Belaevski (JIRA)
Framework: error parsing date header under WL 10.3
--------------------------------------------------
Key: RF-4426
URL: https://jira.jboss.org/jira/browse/RF-4426
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.2.2
Environment: WL 10.3/FF 3.01 as client
Reporter: Nick Belaevski
Assignee: Nick Belaevski
Fix For: 3.2.2
09.09.2008 4:50:59 org.ajax4jsf.resource.InternetResourceService serviceResource
WARNING: Error in parsing request If-Modified-Since header
java.lang.IllegalArgumentException: Bad date header: 'Tue, 09 Sep 2008 01:47:21 GMT'
at weblogic.servlet.internal.ServletRequestImpl.getDateHeader(ServletRequestImpl.java:983)
at javax.servlet.http.HttpServletRequestWrapper.getDateHeader(HttpServletRequestWrapper.java:83)
at org.ajax4jsf.resource.InternetResourceService.serviceResource(InternetResourceService.java:167)
at org.ajax4jsf.resource.InternetResourceService.serviceResource(InternetResourceService.java:141)
at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:500)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3496)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(Unknown Source)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2180)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2086)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
--
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, 1 month
[JBoss JIRA] Created: (RF-5385) rich:comboBox ignore label of SelectItem(s)
by Andreas Höhmann (JIRA)
rich:comboBox ignore label of SelectItem(s)
-------------------------------------------
Key: RF-5385
URL: https://jira.jboss.org/jira/browse/RF-5385
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.2.2
Environment: java 1.5
myfaces 1.2
Reporter: Andreas Höhmann
Priority: Critical
<rich:comboBox id="scaleOfActions"
defaultLabel="Enter some value"
directInputSuggestions="false"
enableManualInput="false"
selectFirstOnUpdate="false"
value="#{Bean.value}">
<f:selectItems value="#{utils:selectItemsLocalizedEnumString('PER_HOUR,PER_DAY,PER_WEEK,PER_MONTH,PER_YEAR')}" />
</rich:comboBox>
I expected this (this is the correct output of h:selectOneMenu with a4j:support ...)
<select id="form_subsystem_safety:scaleOfActions" class="smallField" name="form_subsystem_safety:scaleOfActions" size="1" onkeyup="if(event.keyCode!=13) return false; ;A4J.AJAX.Submit('_viewRoot','form_subsystem_safety',event,{'eventsQueue':'sid','parameters':{'form_subsystem_safety:scaleOfActions_livevalidation_enterpressed':'form_subsystem_safety:scaleOfActions_livevalidation_enterpressed'} ,'actionUrl':'../../sid-base-web-app/main/sid.jsf;jsessionid=1xss4deh2fa52','ignoreDupResponses':true,'requestDelay':250} )" style="" onchange=";A4J.AJAX.Submit('_viewRoot','form_subsystem_safety',event,{'eventsQueue':'sid','parameters':{'form_subsystem_safety:scaleOfActions_livevalidation_onchange':'form_subsystem_safety:scaleOfActions_livevalidation_onchange'} ,'actionUrl':'../../sid-base-web-app/main/sid.jsf;jsessionid=1xss4deh2fa52','ignoreDupResponses':true,'requestDelay':250} )">
<option value="PER_HOUR" selected="selected" title="PER_HOUR">Pro Stunde</option>
<option value="PER_DAY" title="PER_DAY">Pro Tag</option>
<option value="PER_WEEK" title="PER_WEEK">Pro Woche</option>
<option value="PER_MONTH" title="PER_MONTH">Pro Monat</option>
<option value="PER_YEAR" title="PER_YEAR">Pro Jahr</option>
</select>
You see the items are correct localized ...
but rich:combobox render this:
<div id="form_subsystem_safety:scaleOfActions_r"><div class="rich-combobox-font rich-combobox smallField" id="form_subsystem_safety:scaleOfActions_rcombobox" style="width: 148px; position: static; z-index: 0;" onkeyup="if(event.keyCode!=13) return false; ;A4J.AJAX.Submit('_viewRoot','form_subsystem_safety',event,{'eventsQueue':'sid','parameters':{'form_subsystem_safety:scaleOfActions_r_livevalidation_enterpressed':'form_subsystem_safety:scaleOfActions_r_livevalidation_enterpressed'} ,'actionUrl':'../../sid-base-web-app/main/sid.jsf;jsessionid=1xss4deh2fa52','ignoreDupResponses':true,'requestDelay':250} )"><div class="rich-combobox-list-cord"/><div class="rich-combobox-font rich-combobox-shell" style="width: 150px;"><input type="text" autocomplete="off" class="rich-combobox-font-inactive rich-combobox-input-inactive" id="form_subsystem_safety:scaleOfActions_rcomboboxField" name="form_subsystem_safety:scaleOfActions_rcomboboxField" readonly="true" style="width: 135px;" value="PER_HOUR"/><input type="text" class="rich-combobox-font-inactive rich-combobox-button-background-inactive rich-combobox-button-inactive" id="form_subsystem_safety:scaleOfActions_rcomboBoxButtonBG" readonly="true"/><input type="text" class="rich-combobox-font-inactive rich-combobox-button-icon-inactive rich-combobox-button-inactive" id="form_subsystem_safety:scaleOfActions_rcomboboxButton" readonly="true" style=""/><div class="rich-combobox-strut rich-combobox-font" style="width: 140px;">Strut</div></div><input type="hidden" id="form_subsystem_safety:scaleOfActions_rcomboboxValue" name="form_subsystem_safety:scaleOfActions_r" value="PER_HOUR" class=""/><div class="rich-combobox-list-cord" id="form_subsystem_safety:scaleOfActions_rlistParent" style="position: absolute; z-index: 1000; visibility: visible; left: 458px; top: 173px; display: none;"><div class="rich-combobox-shadow"><table cellspacing="0" cellpadding="0" border="0" id="form_subsystem_safety:scaleOfActions_rshadow" style="width: 157px; height: 129px;"><tbody><tr><td class="rich-combobox-shadow-tl"><img height="1" width="10" border="0" src="../../sid-base-web-app/a4j/g/3_2_2.SR1images/spacer.gif.jsf"/><br/></td><td class="rich-combobox-shadow-tr"><img height="10" width="1" border="0" src="../../sid-base-web-app/a4j/g/3_2_2.SR1images/spacer.gif.jsf"/><br/></td></tr><tr><td class="rich-combobox-shadow-bl"><img height="10" width="1" border="0" src="../../sid-base-web-app/a4j/g/3_2_2.SR1images/spacer.gif.jsf"/><br/></td><td class="rich-combobox-shadow-br"><img height="10" width="10" border="0" src="../../sid-base-web-app/a4j/g/3_2_2.SR1images/spacer.gif.jsf"/><br/></td></tr></tbody></table></div><div class="rich-combobox-list-position" id="form_subsystem_safety:scaleOfActions_rlistPosition"><div class="rich-combobox-list-decoration" id="form_subsystem_safety:scaleOfActions_rlistDecoration"><div class="rich-combobox-list-scroll" id="form_subsystem_safety:scaleOfActions_rlist" style="height: 120px; width: 148px;"/></div></div></div></div><script type="text/javascript">//<![CDATA[
var clientId = 'form_subsystem_safety:scaleOfActions_r';
RichComboUtils.execOnLoad( function(){
Richfaces.ComboBox.CLASSES = {
BUTTON : {CLASSES :
{NORMAL : "rich-combobox-font-inactive rich-combobox-button-icon-inactive rich-combobox-button-inactive ",
ACTIVE : "rich-combobox-font rich-combobox-button-icon rich-combobox-button ",
DISABLED : "rich-combobox-font-disabled rich-combobox-button-icon-disabled rich-combobox-button-disabled ",
HOVERED : "rich-combobox-button-hovered"},
STYLE :
{NORMAL: "",
ACTIVE: "",
DISABLED: ""}
},
BUTTONBG : {CLASSES :
{NORMAL:"rich-combobox-font-inactive rich-combobox-button-background-inactive rich-combobox-button-inactive",
ACTIVE: "rich-combobox-font rich-combobox-button-background rich-combobox-button",
DISABLED : "rich-combobox-font-disabled rich-combobox-button-background-disabled rich-combobox-button-disabled"}
},
BUTTONICON : {STYLE :
{NORMAL: "",
ACTIVE: "",
DISABLED: ""}
},
FIELD : {CLASSES:
{NORMAL : "rich-combobox-font-inactive rich-combobox-input-inactive ",
ACTIVE : "rich-combobox-font rich-combobox-input ",
DISABLED : "rich-combobox-font-disabled rich-combobox-input-disabled "},
STYLE :
{NORMAL : "",
ACTIVE : "",
DISABLED : ""}
},
COMBO_LIST : {
LIST : {CLASSES :{ACTIVE : "rich-combobox-list-cord rich-combobox-list-scroll rich-combobox-list-decoration rich-combobox-list-position "},
STYLE : {ACTIVE: ""}
},
ITEM : {NORMAL : "rich-combobox-item ",
SELECTED : "rich-combobox-item rich-combobox-item-selected "
}
}
}
var combobox = new Richfaces.ComboBox( "form_subsystem_safety:scaleOfActions_r",
"form_subsystem_safety:scaleOfActions_rlist",
"form_subsystem_safety:scaleOfActions_rlistParent",
"form_subsystem_safety:scaleOfActions_rcomboboxValue",
"form_subsystem_safety:scaleOfActions_rcomboboxField",
"form_subsystem_safety:scaleOfActions_rcomboboxButton",
"form_subsystem_safety:scaleOfActions_rcomboBoxButtonBG",
"form_subsystem_safety:scaleOfActions_rshadow",
Richfaces.ComboBox.CLASSES,
"150px", "200px",
['PER_HOUR','PER_DAY','PER_WEEK','PER_MONTH','PER_YEAR'] ,
false,
true,
false,
null,
null,
"Enter some value",
false, 'PER_HOUR',
0, 0);
}, RichComboUtils.Condition.ElementPresent("form_subsystem_safety:scaleOfActions_r"), 100);
//
//]]>
</script></div>
The result is a unlocalized ui.
I guess the problem is in org.richfaces.renderkit.ComboBoxBaseRenderer:
public List<Object> encodeItems(FacesContext context, UIComponent component) throws IOException, IllegalArgumentException {
if (!isAcceptableComponent(component)) {
return null;
}
UIComboBox comboBox = (UIComboBox) component;
Object suggestionValues = comboBox.getSuggestionValues();
ResponseWriter writer = context.getResponseWriter();
List <Object>values = encodeSuggestionValues(context, component, writer, suggestionValues);
List<SelectItem> selectItems = SelectUtils.getSelectItems(context, component);
for (SelectItem selectItem : selectItems) {
String value = getConvertedStringValue(context, comboBox, selectItem.getValue());
// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
// selectItem.getLabel() will never called - why?
values.add(value);
encodeSuggestion(writer, comboBox, value, RICH_COMBOBOX_ITEM_CLASSES);
}
return values;
}
--
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, 2 months
[JBoss JIRA] Created: (RF-3080) a4j:actionparam is not working properly in RichFaces 3.2
by Linh Le (JIRA)
a4j:actionparam is not working properly in RichFaces 3.2
--------------------------------------------------------
Key: RF-3080
URL: http://jira.jboss.com/jira/browse/RF-3080
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.2.0
Environment: JBoss app server 4.3, JSF 1.2, Richfaces 3.2
Reporter: Linh Le
Does the fix for this issue "http://jira.jboss.com/jira/browse/RF-2634" really get included in RichFaces 3.2 release???
I have just upgraded from Richfaces 3.1.4 to 3.2, and the assignTo of a4j:actionparam does not work properly anymore. I worked fine with 3.1.4. Why???
Specifically, I'm having a4j:actionparam inside an a4j:support onclick event. Then the a4j:support is put inside a h:panelGrid. At the very first click on the panelGrid, the bean property is NULL. The value was not set to the bean property of the assignTo attrib at all, but it is set after the action listener method completed its execution. The bean property should be set before the action listener method get executed (like in 3.1.4). Therefore, for any subsequent click on the panelGrid, the bean property shows the value of the previous click.
Your prompt response is highly appreciated.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years, 3 months
[JBoss JIRA] Created: (RF-4471) Usage of ImageIO in ResourceBuilderImpl causes memory leak
by Philipp Schoepf (JIRA)
Usage of ImageIO in ResourceBuilderImpl causes memory leak
----------------------------------------------------------
Key: RF-4471
URL: https://jira.jboss.org/jira/browse/RF-4471
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.1.6
Environment: any
Reporter: Philipp Schoepf
It seems as we found a memleak in the ResourceBuilderImpl class. The call to
ImageIO.setCache(false)
causes sun.awt.AppContext to statically initialize itself (inside static initialization of IIORegistry). The problem is that AppContext seems to hold a static reference to the contextclassloader of the calling thread. When our application gets undeployed the reference to the applications classloader is still hold by AppContext causing that loaded classes cannot be garbage collected.
I only checked richfaces 3.16 but if ResourceBuilderImpl still exists in 3.2 stream I suppose that the problem exists there as well.
--
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, 3 months