myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Volker Weber" <v.we...@inexso.de>
Subject Re: [Tobago] Rendered troubles
Date Fri, 06 Apr 2007 08:31:01 GMT
Hi Boris,

you need to put a layout constraint for EACH component into the lyaout.

in this case you have 4 components, so you need 4 tokens, even when
two of them are mutually exclusive.

try <tc:gridLayout rows="fixed;20px;1*;1*"/>

Regards,
  Volker

2007/4/6, Boris Kovalenko <boris@tagnet.ru>:
> Hello!
>
>     I use the next code (I dropped here some componets like f:facet to
> shorter message)
>     <tc:panel>
>        <tc:gridLayout rows="fixed;20px;1*"/>
>        <tc:box/>
>        <tc:cell/>
>        <tc:sheet rendered="#{!empty maSearchForm.mailAccounts}"/>
>        <tc:cell rendered="#{empty maSearchForm.mailAccounts}"/>
>
> When maSearchForm.mailAccounts is empty, the page renders correct.
> Otherwise I get exception. Is this normal or am I doing something wrong?
>
> |java.lang.ArrayIndexOutOfBoundsException: 3
>         at org.apache.myfaces.tobago.renderkit.html.scarborough.standard.tag.GridLayoutRenderer.layoutHeight(GridLayoutRenderer.java:571)
>         at org.apache.myfaces.tobago.renderkit.html.scarborough.standard.tag.GridLayoutRenderer.layoutEnd(GridLayoutRenderer.java:480)
>         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.component.UIPanel.encodeChildren(UIPanel.java:45)
>         at org.apache.myfaces.tobago.renderkit.RenderUtil.encode(RenderUtil.java:77)
>         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.UIPanel.encodeChildren(UIPanel.java:45)
>         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:539)
>         at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:252)
>         at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:249)
>         at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:573)
>         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:140)
>         at com.caucho.server.dispatch.ServletFilterChain.doFilter(ServletFilterChain.java:103)
>         at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:167)
>         at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:226)
>         at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:263)
>         at com.caucho.server.port.TcpConnection.run(TcpConnection.java:477)
>         at com.caucho.util.ThreadPool$Item.runTasks(ThreadPool.java:591)
>         at com.caucho.util.ThreadPool$Item.run(ThreadPool.java:513)
>         at java.lang.Thread.run(Thread.java:595)
> |
>
> With respect,
>     Boris
>
>

Mime
View raw message