[ https://issues.apache.org/jira/browse/TOBAGO-1306?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13754761#comment-13754761 ]
Udo Schnurpfeil edited comment on TOBAGO-1306 at 8/30/13 3:01 PM: ------------------------------------------------------------------ The reason is the conflict between the grid layout of the popup which defines columns="auto" and the columns="*;*;*;*" of the sheet. columns="auto" means: make the popup as big as the content it requires. columns="*;*;*;*" means: use the given space and distribute it balanced. I'll find a solution. Until that you may use this workaround: replace {code} columns="auto" {code} to fix pixel values like {code}columns="300px"{code} or {code}columns="#{tobagoContext.pageDimension.width.pixel - 200}px"{code} was (Author: lofwyr): The reason is the conflict between the grid layout of the popup which defines columns="auto" and the columns="*;*;*;*" of the sheet. columns="auto" means: make the popup as big as the content it requires. columns="*;*;*;*" means: use the given space and distribute it balanced. I'll find a solution. Until that you may use this workaround: replace columns="auto" to fix pixel values like columns="300px" or columns="#{tobagoContext.pageDimension.width.pixel - 200}px" > Sheet inside layout with column="auto" (often in popups) doesn't function > ------------------------------------------------------------------------- > > Key: TOBAGO-1306 > URL: https://issues.apache.org/jira/browse/TOBAGO-1306 > Project: MyFaces Tobago > Issue Type: Bug > Components: Core > Affects Versions: 2.0.0-alpha-2 > Reporter: Michael Bädorf > Assignee: Udo Schnurpfeil > > Using a sheet inside a popup always causes > java.lang.NullPointerException > at > org.apache.myfaces.tobago.internal.util.StringUtils.joinWithSurroundingSeparator(StringUtils.java:53) > at > org.apache.myfaces.tobago.renderkit.html.scarborough.standard.tag.SheetRenderer.renderSheet(SheetRenderer.java:193) > at > org.apache.myfaces.tobago.renderkit.html.scarborough.standard.tag.SheetRenderer.encodeEnd(SheetRenderer.java:158) > at > org.apache.myfaces.tobago.renderkit.AbstractRendererBaseWrapper.encodeEnd(AbstractRendererBaseWrapper.java:103) > at > javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:877) > at > org.apache.myfaces.tobago.renderkit.util.RenderUtils.encode(RenderUtils.java:116) > at > org.apache.myfaces.tobago.renderkit.util.RenderUtils.encode(RenderUtils.java:93) > at > org.apache.myfaces.tobago.renderkit.util.RenderUtils.encodeChildren(RenderUtils.java:88) > at > org.apache.myfaces.tobago.renderkit.html.scarborough.standard.tag.GridLayoutRenderer.encodeChildren(GridLayoutRenderer.java:55) > at > org.apache.myfaces.tobago.renderkit.AbstractRendererBaseWrapper.encodeChildren(AbstractRendererBaseWrapper.java:98) > at > javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:847) > at > org.apache.myfaces.tobago.internal.component.AbstractUIPanel.encodeChildren(AbstractUIPanel.java:50) > at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1819) > at javax.faces.render.Renderer.encodeChildren(Renderer.java:168) > at > org.apache.myfaces.tobago.renderkit.AbstractRendererBaseWrapper.encodeChildren(AbstractRendererBaseWrapper.java:98) > at > javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:847) > at > org.apache.myfaces.tobago.renderkit.util.RenderUtils.encode(RenderUtils.java:110) > at > org.apache.myfaces.tobago.renderkit.util.RenderUtils.encode(RenderUtils.java:93) > at > org.apache.myfaces.tobago.renderkit.html.scarborough.standard.tag.PageRenderer.encodeEnd(PageRenderer.java:465) > at > org.apache.myfaces.tobago.renderkit.AbstractRendererBaseWrapper.encodeEnd(AbstractRendererBaseWrapper.java:103) > at > javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:877) > at > org.apache.myfaces.tobago.internal.component.AbstractUIPage.encodeEnd(AbstractUIPage.java:103) > at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1826) > at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1822) > at > com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:447) > at > com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:125) > at > com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:120) > at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101) > at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139) > at javax.faces.webapp.FacesServlet.service(FacesServlet.java:594) > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) > at > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222) > at > org.apache.catalina.core.StandardContextValve.__invoke(StandardContextValve.java:123) > at > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java) > at > org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502) > at > org.apache.catalina.core.StandardHostValve.__invoke(StandardHostValve.java:171) > at > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java) > at > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99) > at > org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953) > at > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) > at > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408) > at > org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1023) > at > org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589) > at > org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312) > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) > at java.lang.Thread.run(Thread.java:724) > due to "missing" column width! > I've tried something like > <tc:button id="tet23"> > <f:facet name="popup"> > <tc:popup > id="companySearchPopup2"> > <f:facet > name="layout"> > > <tc:gridLayout rows="auto;auto;fixed;" columns="auto" /> > </f:facet> > > <tc:box> > > <tc:sheet height="200" id="tab2" > value="#{userController.model.businessPartners2}" var="current" > state="#{userController.ui.selectedBusinessPartner}" columns="*;*;*;*;*"> > <tc:column > label="#{messages.businesspartnersearch_table_businessPartners_name}"> > <tc:out > value="#{current.name}"/> > </tc:column> > <tc:column > label="#{messages.businesspartnersearch_table_businessPartners_customerNo}"> > <tc:out > value="#{current.customerNo}"/> > </tc:column> > <tc:column > label="#{messages.businesspartnersearch_table_businessPartners_street}"> > <tc:out > value="#{current.address.street}"/> > </tc:column> > <tc:column > label="#{messages.businesspartnersearch_table_businessPartners_zip}"> > <tc:out > value="#{current.address.zip}"/> > </tc:column> > <tc:column > label="#{messages.businesspartnersearch_table_businessPartners_city}" > > <tc:out > value="#{current.address.city}"/> > </tc:column> > </tc:sheet> > </tc:box> > > </tc:popup> > </f:facet> > </tc:button> -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira