[ 
https://issues.apache.org/jira/browse/TOBAGO-642?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Udo Schnurpfeil resolved TOBAGO-642.
------------------------------------

    Resolution: Fixed

Handling of the "seleced" was fixed:
Javacode on Server uses as format: e. g. ,1,2,3,4,
but the JavascriptCode uses ,1,,2,,3,,4, in that case.
The bug makes it possible that the upper sample will be modified to ,12,,3,,4, 
which is totally wrong.
So, I've fixed the Javascript-Code with uses now the same format.

> Problem with SheetSelection-JavaScript
> --------------------------------------
>
>                 Key: TOBAGO-642
>                 URL: https://issues.apache.org/jira/browse/TOBAGO-642
>             Project: MyFaces Tobago
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.0.15
>            Reporter: Matthias Wronka
>            Assignee: Udo Schnurpfeil
>            Priority: Critical
>             Fix For: 1.0.16, 1.1.0
>
>
> There is a problem in the JavaScript-Code, that handels the RowSelection 
> within a sheet. In larger sheets the index exeeds the int-range and a 
> NumberFormatException occurs. Apparently there is a problem with commata as 
> seperators:
> <snip>
>    key = component.getClientId(facesContext) + SELECTED_POSTFIX;
>     if (requestParameterMap.containsKey(key)) {
>       String selected = (String) requestParameterMap.get(key);
>       if (LOG.isDebugEnabled()) {
>         LOG.debug("selected = " + selected);
>       }
>       List<Integer> selectedRows;
>       try {
>         selectedRows = StringUtil.parseIntegerList(selected);
>       } catch (NumberFormatException e) {
>         LOG.warn(selected, e);
>         selectedRows = Collections.emptyList();
>       }
>       component.getAttributes().put(
>           ATTR_SELECTED_LIST_STRING, selectedRows);
>     }
> <snap>
> [3/19/08 17:17:06:369 CET] 00000e88 AjaxUtils     I 
> org.apache.myfaces.tobago.ajax.api.AjaxUtils parseAndStoreComponents 
> ajaxComponentIds = "main:DokumenteSheet2"
> [3/19/08 17:17:06:397 CET] 00000e88 AjaxUtils     I 
> org.apache.myfaces.tobago.ajax.api.AjaxUtils parseAndStoreComponents 
> ajaxComponent for "main:DokumenteSheet2" = "[EMAIL PROTECTED]"
> [3/19/08 17:17:06:416 CET] 00000e88 UIData        I 
> org.apache.myfaces.tobago.component.UIData queueEvent queueEvent = "[EMAIL 
> PROTECTED]"
> [3/19/08 17:17:06:438 CET] 00000e88 SheetRenderer W 
> org.apache.myfaces.tobago.renderkit.html.scarborough.standard.tag.SheetRenderer
>  decode 1357911131517,18,19,20,21,22,
>                                  java.lang.NumberFormatException: For input 
> string: "1357911131517"
>                at 
> java.lang.NumberFormatException.forInputString(NumberFormatException.java(Compiled
>  Code))
>                at java.lang.Integer.parseInt(Integer.java(Compiled Code))
>                at java.lang.Integer.<init>(Integer.java(Inlined Compiled 
> Code))
>                at 
> org.apache.myfaces.tobago.util.StringUtil.parseIntegerList(StringUtil.java(Compiled
>  Code))
>                at 
> org.apache.myfaces.tobago.renderkit.html.scarborough.standard.tag.SheetRenderer.decode(SheetRenderer.java(Compiled
>  Code))
>                at 
> javax.faces.component.UIComponentBase.decode(UIComponentBase.java(Compiled 
> Code))
>                at 
> javax.faces.component.UIData.processDecodes(UIData.java(Compiled Code))
>                at 
> org.apache.myfaces.tobago.util.ApplyRequestValuesCallback.execute(ApplyRequestValuesCallback.java:34)
>                at 
> org.apache.myfaces.tobago.component.ComponentUtil.invokeOrPrepare(ComponentUtil.java(Compiled
>  Code))
>                at 
> org.apache.myfaces.tobago.component.ComponentUtil.prepareOnUIComponent(ComponentUtil.java(Inlined
>  Compiled Code))
>                at 
> org.apache.myfaces.tobago.component.ComponentUtil.invokeOrPrepare(ComponentUtil.java(Compiled
>  Code))
>                at 
> org.apache.myfaces.tobago.component.ComponentUtil.prepareOnUIComponent(ComponentUtil.java(Inlined
>  Compiled Code))
>                at 
> org.apache.myfaces.tobago.component.ComponentUtil.invokeOrPrepare(ComponentUtil.java(Compiled
>  Code))
>                at 
> org.apache.myfaces.tobago.component.ComponentUtil.prepareOnUIComponent(ComponentUtil.java(Inlined
>  Compiled Code))
>                at 
> org.apache.myfaces.tobago.component.ComponentUtil.invokeOrPrepare(ComponentUtil.java(Compiled
>  Code))
>                at 
> org.apache.myfaces.tobago.component.ComponentUtil.prepareOnUIComponent(ComponentUtil.java(Inlined
>  Compiled Code))
>                at 
> org.apache.myfaces.tobago.component.ComponentUtil.invokeOrPrepare(ComponentUtil.java(Compiled
>  Code))
>                at 
> org.apache.myfaces.tobago.component.ComponentUtil.prepareOnUIComponent(ComponentUtil.java(Inlined
>  Compiled Code))
>                at 
> org.apache.myfaces.tobago.component.ComponentUtil.invokeOrPrepare(ComponentUtil.java(Compiled
>  Code))
>                at 
> org.apache.myfaces.tobago.component.ComponentUtil.prepareOnUIForm(ComponentUtil.java(Compiled
>  Code))
>                at 
> org.apache.myfaces.tobago.component.ComponentUtil.invokeOrPrepare(ComponentUtil.java(Compiled
>  Code))
>                at 
> org.apache.myfaces.tobago.component.ComponentUtil.prepareOnUIComponent(ComponentUtil.java(Inlined
>  Compiled Code))
>                at 
> org.apache.myfaces.tobago.component.ComponentUtil.invokeOrPrepare(ComponentUtil.java(Compiled
>  Code))
>                at 
> org.apache.myfaces.tobago.component.ComponentUtil.invokeOnComponent(ComponentUtil.java(Inlined
>  Compiled Code))
>                at 
> org.apache.myfaces.tobago.lifecycle.ApplyRequestValuesExecutor.execute(ApplyRequestValuesExecutor.java(Compiled
>  Code))
>                at 
> org.apache.myfaces.tobago.lifecycle.TobagoLifecycle.executePhase(TobagoLifecycle.java(Compiled
>  Code))
>                at 
> org.apache.myfaces.tobago.lifecycle.TobagoLifecycle.execute(TobagoLifecycle.java(Compiled
>  Code))
>                at 
> javax.faces.webapp.FacesServlet.service(FacesServlet.java(Compiled Code))
>                at 
> com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java(Compiled
>  Code))
>                at 
> com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java(Compiled
>  Code))
>                at 
> com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java(Compiled
>  Code))
>                at 
> org.apache.myfaces.tobago.webapp.TobagoMultipartFormdataFilter.doFilter(TobagoMultipartFormdataFilter.java(Compiled
>  Code))
>                at 
> com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java(Compiled
>  Code))
>                at 
> com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java(Compiled
>  Code))
>                at 
> de.nordlbit.base.context.ContextFilter.doFilter(ContextFilter.java(Compiled 
> Code))
>                at 
> com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java(Compiled
>  Code))
>                at 
> com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java(Compiled
>  Code))
>                at 
> com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java(Compiled
>  Code))
>                at 
> com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java(Compiled
>  Code))
>                at 
> com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java(Compiled
>  Code))
>                at 
> com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java(Compiled 
> Code))
>                at 
> com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java(Compiled
>  Code))
>                at 
> com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java(Compiled
>  Code))
>                at 
> com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java(Compiled
>  Code))
>                at 
> com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java(Compiled
>  Code))
>                at 
> com.ibm.ws.ssl.channel.impl.SSLReadServiceContext$SSLReadCompletedCallback.complete(SSLReadServiceContext.java(Compiled
>  Code))
>                at 
> com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java(Compiled
>  Code))
>                at 
> com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java(Compiled
>  Code))
>                at 
> com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java(Compiled
>  Code))
>                at 
> com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java(Compiled
>  Code))
>                at 
> com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java(Compiled Code))

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to