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
>
>

Reply via email to