You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Bernd Bohmann (JIRA)" <de...@myfaces.apache.org> on 2006/06/28 15:26:30 UTC

[jira] Resolved: (TOBAGO-72) tx:date inside a tc:sheet causes NullPointerException

     [ http://issues.apache.org/jira/browse/TOBAGO-72?page=all ]
     
Bernd Bohmann resolved TOBAGO-72:
---------------------------------

    Resolution: Fixed

Please reopen it if it doesn't work

>  tx:date inside a tc:sheet causes NullPointerException
> ------------------------------------------------------
>
>          Key: TOBAGO-72
>          URL: http://issues.apache.org/jira/browse/TOBAGO-72
>      Project: MyFaces Tobago
>         Type: Bug

>     Versions: 1.0.7
>     Reporter: Richard van Nieuwenhoven
>     Assignee: Bernd Bohmann
>      Fix For: 1.0.8

>
> it is not possible to use a tx:date inside a tc:sheet 
> This has somthing to do with the hidden fields for the sizes
> this is my definition:
>                 <tc:sheet value="#{example.exampleArray0}" id="suchliste" rows="5"
>                                columns="200px;150px;150px;150px" var="element"
>                                state="#{example.sheetState}"
>                                showHeader="true"
>                                showRowRange="left"
>                                showPageRange="right"
>                                showDirectLinks="center"
>                                directLinkCount="5">
>                              <tc:column label="Rollenname" id="liste_rollenname" sortable="false">
>                                 <tc:selectBooleanCheckbox value="#{element.exampleBoolean0}" label="#{element.string0}" id="t_rollenname" />
>                              </tc:column>
>                              <tc:column label="gueltig von" id="liste_gueltigvon" sortable="false" align="center" >
>                                <tc:date value="#{element.date0}" id="t_gueltigvon"/>
>                              </tc:column>
>                              <tc:column label="gueltig bis" id="liste_gueltigbis" sortable="false" align="center" >
>                                <tc:date value="#{element.date1}" id="t_gueltigbis"/>
>                              </tc:column>
>                                                            <tc:column label="" sortable="false" align="right" id="liste_anzeigen">
>                                <tc:button id="t_aktivieren" label="aktivieren" action="#{example.nixAction}" />
>                              </tc:column>
>                            </tc:sheet>        
> here the exception happens:
> 9.05.2006 11:15:00 org.apache.catalina.core.ApplicationDispatcher invoke
> SCHWERWIEGEND: Servlet.service() for servlet jsp threw exception
> java.lang.NullPointerException
>    at javax.faces.component.UIData.restoreDescendantComponentStates(UIData.java:342)
>    at javax.faces.component.UIData.restoreDescendantComponentStates(UIData.java:354)
>    at javax.faces.component.UIData.restoreDescendantComponentStates(UIData.java:354)
>    at javax.faces.component.UIData.restoreDescendantComponentStates(UIData.java:354)
>    at javax.faces.component.UIData.setRowIndex(UIData.java:293)
>    at org.apache.myfaces.tobago.renderkit.html.scarborough.standard.tag.SheetRenderer.renderSheet(SheetRenderer.java:308)
>    at org.apache.myfaces.tobago.renderkit.html.scarborough.standard.tag.SheetRenderer.encodeEndTobago(SheetRenderer.java:123)
>    at org.apache.myfaces.tobago.renderkit.RendererBase.encodeEnd(RendererBase.java:103)
>    at org.apache.myfaces.tobago.renderkit.html.scarborough.standard.tag.SheetRenderer.encodeEnd(SheetRenderer.java:597)
>    at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:536)
>    at javax.faces.component.UIData.encodeEnd(UIData.java:569)
>  

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira