myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Steinkopff (JIRA)" <...@myfaces.apache.org>
Subject [jira] Commented: (TOBAGO-323) Sometimes ArrayIndexOutOfBoundsException in layout or rarely non exception but mixed layout
Date Fri, 16 Mar 2007 10:02:09 GMT

    [ https://issues.apache.org/jira/browse/TOBAGO-323?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12481548
] 

David Steinkopff commented on TOBAGO-323:
-----------------------------------------

@bernd

ok that fixed my problem. 
thanks

> Sometimes ArrayIndexOutOfBoundsException in layout or rarely non exception but mixed
layout
> -------------------------------------------------------------------------------------------
>
>                 Key: TOBAGO-323
>                 URL: https://issues.apache.org/jira/browse/TOBAGO-323
>             Project: MyFaces Tobago
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.0.11
>         Environment: Windows 2000, Java 5, Netbeans 5.5, Tomcat 5.5, Tobago 1.0.11, JSF
RI 1.1, Facelets 1.1.11
>            Reporter: David Steinkopff
>
> --- test.xhtml ---
> <f:view xmlns:f="http://java.sun.com/jsf/core"
>         xmlns:ui="http://java.sun.com/jsf/facelets"
>         xmlns:tc="http://myfaces.apache.org/tobago/component"
>         xmlns:tx="http://myfaces.apache.org/tobago/facelet-extension">
>     <tc:page>
>         <f:facet name="layout">
>             <tc:gridLayout rows="1*;3*" />
>         </f:facet>
>         <tc:cell id="overview">
>         </tc:cell>
>         <tc:cell id="input">
>             <tc:tabGroup>
>                 <tc:tab label="something">
>                     <f:facet name="layout">
>                         <tc:gridLayout columns="1*;1*;1*;1*;1*" />
>                     </f:facet>
>                     <!-- zeile -->
>                     <tx:in label="label1" />
>                     <tc:cell spanX="2" />
>                     <tc:cell spanX="2">
>                         <tx:in label="label2" />
>                     </tc:cell>
>                 </tc:tab>
>                 <tc:tab label="something2">
>                     
>                 </tc:tab>
>             </tc:tabGroup>
>         </tc:cell>
>     </tc:page>
> </f:view>
> --- end ---
> deliver me following error message
> --- message ---
> An Error Occurred:
> 5
> +- Stack Trace
> java.lang.ArrayIndexOutOfBoundsException: 5
> 	at org.apache.myfaces.tobago.util.LayoutInfo.getSpaceForColumn(LayoutInfo.java:202)
> 	at org.apache.myfaces.tobago.renderkit.html.scarborough.standard.tag.GridLayoutRenderer.setColumnWidths(GridLayoutRenderer.java:706)
> 	at org.apache.myfaces.tobago.renderkit.html.scarborough.standard.tag.GridLayoutRenderer.layoutWidth(GridLayoutRenderer.java:543)
> 	at org.apache.myfaces.tobago.renderkit.html.scarborough.standard.tag.GridLayoutRenderer.layoutEnd(GridLayoutRenderer.java:493)
> 	at org.apache.myfaces.tobago.renderkit.html.scarborough.standard.tag.GridLayoutRenderer.encodeChildrenOfComponent(GridLayoutRenderer.java:233)
> 	at org.apache.myfaces.tobago.component.UILayout.encodeChildrenOfComponent(UILayout.java:71)
> 	at org.apache.myfaces.tobago.component.UIGridLayout.encodeChildrenOfComponent(UIGridLayout.java:262)
> 	at org.apache.myfaces.tobago.renderkit.RenderUtil.encodeChildren(RenderUtil.java:56)
> 	at org.apache.myfaces.tobago.renderkit.html.speyside.standard.tag.TabGroupRenderer.encodeContent(TabGroupRenderer.java:72)
> 	at org.apache.myfaces.tobago.renderkit.html.scarborough.standard.tag.TabGroupRenderer.renderTabGroupView(TabGroupRenderer.java:321)
> 	at org.apache.myfaces.tobago.renderkit.html.scarborough.standard.tag.TabGroupRenderer.encodeEnd(TabGroupRenderer.java:155)
> 	at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:720)
> 	at org.apache.myfaces.tobago.component.UITabGroup.encodeEnd(UITabGroup.java:106)
> 	at org.apache.myfaces.tobago.renderkit.RenderUtil.encode(RenderUtil.java:84)
> 	at org.apache.myfaces.tobago.renderkit.html.scarborough.standard.tag.DefaultLayoutRenderer.encodeChildrenOfComponent(DefaultLayoutRenderer.java:47)
> 	at org.apache.myfaces.tobago.component.UILayout.encodeChildrenOfComponent(UILayout.java:71)
> 	at org.apache.myfaces.tobago.component.UIPanelBase.encodeChildren(UIPanelBase.java:43)
> 	at org.apache.myfaces.tobago.renderkit.RenderUtil.encode(RenderUtil.java:77)
> 	at org.apache.myfaces.tobago.renderkit.html.scarborough.standard.tag.GridLayoutRenderer.encodeChildrenOfComponent(GridLayoutRenderer.java:357)
> 	at org.apache.myfaces.tobago.component.UILayout.encodeChildrenOfComponent(UILayout.java:71)
> 	at org.apache.myfaces.tobago.component.UIGridLayout.encodeChildrenOfComponent(UIGridLayout.java:262)
> 	at org.apache.myfaces.tobago.renderkit.html.scarborough.standard.tag.PageRenderer.encodeEnd(PageRenderer.java:126)
> 	at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:720)
> 	at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:242)
> 	at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:239)
> 	at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:580)
> 	at org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:41)
> 	at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:132)
> 	at javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
> 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
> 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> 	at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:368)
> 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
> 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> 	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
> 	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
> 	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
> 	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
> 	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
> 	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
> 	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
> 	at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
> 	at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
> 	at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
> 	at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
> 	at java.lang.Thread.run(Thread.java:595)
> +- Component Tree
> <UIViewRoot clientProperties="org.apache.myfaces.tobago.context.ClientProperties@81db25"
locale="de_DE" renderKitId="tobago" rendered="true" transient="false" viewId="/test.xhtml">
>     <UIPage height="768" id="_id0" rendered="true" submitted="false" transient="false"
width="1024">
>         layout
>         <UIGridLayout id="_id1" ignoreFree="false" rendered="true" rows="1*;3*" transient="false"/>
>         <UICell id="overview" rendered="true" scrollbars="false" spanX="1" spanY="1"
transient="false"/>
>         <UICell id="input" rendered="true" scrollbars="false" spanX="1" spanY="1"
transient="false">
>             <UITabGroup id="_id2" immediate="false" rendered="true" selectedIndex="0"
switchType="client" transient="false">
>                 <UIPanel id="_id3" markup="[Ljava.lang.String;@1f6c18" rendered="true"
transient="false">
>                     layout
>                     <UIGridLayout columns="1*;1*;1*;1*;1*" id="_id4" ignoreFree="false"
rendered="true" transient="false"/>
>                     <!-- zeile -->
>                     <UIPanel id="_id6" markup="[Ljava.lang.String;@f1cdfb" rendered="true"
transient="false">
>                         layout
>                         <UIGridLayout columns="fixed;*" id="_id7" ignoreFree="false"
rendered="true" transient="false"/>
>                         <UILabel id="_id8" rendered="true" transient="false" value="label1"/>
>                         <UIInput id="_id9" immediate="false" localValueSet="false"
markup="[Ljava.lang.String;@10a59d2" password="false" readonly="false" rendered="true" required="false"
transient="false" valid="true"/>
>                     </UIPanel>
>                     <UICell id="_id10" rendered="true" scrollbars="false" spanX="2"
spanY="1" transient="false"/>
>                     <UICell id="_id11" rendered="true" scrollbars="false" spanX="2"
spanY="1" transient="false">
>                         <UIPanel id="_id12" markup="[Ljava.lang.String;@8f1ed7" rendered="true"
transient="false">
>                             layout
>                             <UIGridLayout columns="fixed;*" id="_id13" ignoreFree="false"
rendered="true" transient="false"/>
>                             <UILabel id="_id14" rendered="true" transient="false"
value="label2"/>
>                             <UIInput id="_id15" immediate="false" localValueSet="false"
markup="[Ljava.lang.String;@31e2ad" password="false" readonly="false" rendered="true" required="false"
transient="false" valid="true"/>
>                         </UIPanel>
>                     </UICell>
>                 </UIPanel>
>                 <UIPanel id="_id16" markup="[Ljava.lang.String;@118da51" rendered="true"
transient="false"/>
>             </UITabGroup>
>         </UICell>
>     </UIPage>
> </UIViewRoot>
> --- end ---
> I dont understand the message "5" ;-)

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


Mime
View raw message