[
https://issues.apache.org/jira/browse/TOBAGO-1006?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Bernd Bohmann resolved TOBAGO-1006.
-----------------------------------
Resolution: Fixed
Fix Version/s: 1.5.0-alpha-3
1.0.37
> Tobago.getAbsoluteTop might be report silly position
> ----------------------------------------------------
>
> Key: TOBAGO-1006
> URL: https://issues.apache.org/jira/browse/TOBAGO-1006
> Project: MyFaces Tobago
> Issue Type: Bug
> Affects Versions: 1.0.36
> Reporter: Bernd Bohmann
> Assignee: Bernd Bohmann
> Priority: Minor
> Fix For: 1.0.37, 1.5.0-alpha-3
>
>
> 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
> 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>
> 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.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira