Hi Hani,
now I'm able to reproduce this warning. Thanks for the info. But I'm not able to
find a workaround for this problem. Because it doesn't seem to be a serious
problem, I will try to configure log4j to prevent this warning.
Regards,
Helmut
Am 06.06.2011 11:51, schrieb Abushammala, Hani (EXTERN: conceptQ):
Hi Helmut,
In the item list we have defined 26 items and the warning comes out by
selecting the below items after scrolling down in the selectOneChoice. It seems
like a rendering problem of selectOneChoice with many values under FF.
Regards,
Hani
-----Ursprüngliche Nachricht-----
Von: Abushammala, Hani (EXTERN: conceptQ)
[mailto:[email protected]]
Gesendet: Montag, 6. Juni 2011 10:03
An: MyFaces Discussion
Betreff: AW: [Tobago] PageRendererBase warning
Hi Helmut,
In the controller class we have defined some countries and cities in the item
list. After selecting some items (e.g Southafrica) to call an action we became
this warning.
Regards,
Hani
-----Ursprüngliche Nachricht-----
Von: Helmut Swaczinna [mailto:[email protected]]
Gesendet: Mittwoch, 1. Juni 2011 17:45
An: MyFaces Discussion
Betreff: Re: [Tobago] PageRendererBase warning
Hi Hani,
I'm still not able to reproduce it with your code and FF 3.6.17. What exactly do
you mean with "by selecting the same items to performe an action"?
Regards,
Helmut
Am 01.06.2011 13:07, schrieb Abushammala, Hani (EXTERN: conceptQ):
Hi Helmut,
I`ve got this warning with FF 4.0.1 and 3.6.17.
Regards,
Hani
-----Ursprüngliche Nachricht-----
Von: Helmut Swaczinna [mailto:[email protected]]
Gesendet: Mittwoch, 1. Juni 2011 12:49
An: MyFaces Discussion
Betreff: Re: [Tobago] PageRendererBase warning
Hi Hani,
with which browser version do you get this warning exactly? Only with FF 4.0.1?
Regards,
Helmut
Am 01.06.2011 12:07, schrieb Abushammala, Hani (EXTERN: conceptQ):
Hi,
We could reproduce the warning by selecting the same items to performe an
action.
Test page:
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://myfaces.apache.org/tobago/component" prefix="tc"%>
<f:view>
<tc:page id="statusbar">
<tc:panel>
<f:facet name="layout">
<tc:gridLayout rows="20px;*" columns="222px;*" margin="0"
cellspacing="0" />
</f:facet>
<tc:panel>
<f:facet name="layout">
<tc:gridLayout rows="*" columns="160px;*" />
</f:facet>
<tc:selectOneChoice id="selector"
value="#{controller.selectedItem}">
<f:facet name="change">
<tc:command id="changeAction"
action="#{controller.doSomething}" />
</f:facet>
<tc:selectItems value="#{controller.items}" />
</tc:selectOneChoice>
<tc:panel />
</tc:panel>
<tc:panel />
<tc:cell spanX="2" />
</tc:panel>
</tc:page>
</f:view>
Regards,
Hani
-----Ursprüngliche Nachricht-----
Von: Helmut Swaczinna [mailto:[email protected]]
Gesendet: Dienstag, 31. Mai 2011 16:31
An: MyFaces Discussion
Betreff: Re: [Tobago] PageRendererBase warning
Hi,
I found this warning often in our customers log file too, but I wasn't able to
reproduce it myself. I had a look in tobago.js and found this code:
getAbsoluteLeft: function(element) {
var left = 0;
var parent = false;
while (element&& element.offsetParent) {
left += element.offsetLeft;
left -= element.scrollLeft;
if (parent&& element.currentStyle) { // IE only
left += element.currentStyle.borderLeftWidth.replace(/\D/g, "") - 0;
}
element = element.offsetParent;
parent = true;
}
return left;
}
I'm not sure, if it's correct for all browsers and if the page content is
scrolled.
Regards,
Helmut
Am 31.05.2011 15:51, schrieb Abushammala, Hani (EXTERN: conceptQ):
Hello,
Sometimes we got a warning from PageRendererBase class while calling an
action. In contrast to firefox, internet explorer don`t produce this
warning.
I found out, that by decoding the requested page the request parametr
"actionPositionString" contains negative pixel values.
I don`t know what that means and why.
Log:
WARN org.apache.myfaces.tobago.renderkit.PageRendererBase - Can't
analyse parameter for action-position
java.lang.IllegalArgumentException: Can't parse to any measure: '-12px'
at org.apache.myfaces.tobago.layout.Measure.parse(Measure.java:39)
at org.apache.myfaces.tobago.layout.Position.<init>(Position.java:38)
at org.apache.myfaces.tobago.layout.Box.<init>(Box.java:40) at
Env:
Tabago Version: 1.0.30
MyFaces: 1.1.7
FireFox: 4.0.1
IE: 6.0
Regards,
Hani