You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Richard van Nieuwenhoven (JIRA)" <de...@myfaces.apache.org> on 2006/05/19 12:32:29 UTC
[jira] Created: (TOBAGO-72) tx:date inside a tc:sheet causes
NullPointerException
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.8
Reporter: Richard van Nieuwenhoven
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
[jira] Commented: (TOBAGO-72) tx:date inside a tc:sheet causes
NullPointerException
Posted by "Bernd Bohmann (JIRA)" <de...@myfaces.apache.org>.
[ http://issues.apache.org/jira/browse/TOBAGO-72?page=comments#action_12416674 ]
Bernd Bohmann commented on TOBAGO-72:
-------------------------------------
Please try this with the latest SNAPSHOT
<tc:panel>
<f:facet name="layout" >
<tc:gridLayout columns="1*;15px"/>
</f:facet>
<tc:date value="#{XXXX}" />
<tc:datePicker for="@auto" />
</tc:panel>
> 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
>
> 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
[jira] Commented: (TOBAGO-72) tx:date inside a tc:sheet causes
NullPointerException
Posted by "Richard van Nieuwenhoven (JIRA)" <de...@myfaces.apache.org>.
[ http://issues.apache.org/jira/browse/TOBAGO-72?page=comments#action_12412725 ]
Richard van Nieuwenhoven commented on TOBAGO-72:
------------------------------------------------
your right i mean the tc:date tag. i now use tc:in but the requirments say that we must have a datepicker here...
> 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
>
> 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
[jira] Commented: (TOBAGO-72) tx:date inside a tc:sheet causes
NullPointerException
Posted by "Richard van Nieuwenhoven (JIRA)" <de...@myfaces.apache.org>.
[ http://issues.apache.org/jira/browse/TOBAGO-72?page=comments#action_12419220 ]
Richard van Nieuwenhoven commented on TOBAGO-72:
------------------------------------------------
sorry for the delay, i checked it and it works!
> 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
[jira] Commented: (TOBAGO-72) tx:date inside a tc:sheet causes
NullPointerException
Posted by "Bernd Bohmann (JIRA)" <de...@myfaces.apache.org>.
[ http://issues.apache.org/jira/browse/TOBAGO-72?page=comments#action_12412528 ]
Bernd Bohmann commented on TOBAGO-72:
-------------------------------------
Do you mean tx:date or tc:date?
If you mean tc:date one workaround would be using tc:in with a datetime converter.
I will try to look at this issue later.
> 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
>
> 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
[jira] Commented: (TOBAGO-72) tx:date inside a tc:sheet causes
NullPointerException
Posted by "Bernd Bohmann (JIRA)" <de...@myfaces.apache.org>.
[ http://issues.apache.org/jira/browse/TOBAGO-72?page=comments#action_12412728 ]
Bernd Bohmann commented on TOBAGO-72:
-------------------------------------
Ok, i will look at this issue later. But I have not to much time :-(
> 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
>
> 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
[jira] Commented: (TOBAGO-72) tx:date inside a tc:sheet causes
NullPointerException
Posted by "Bernd Bohmann (JIRA)" <de...@myfaces.apache.org>.
[ http://issues.apache.org/jira/browse/TOBAGO-72?page=comments#action_12413645 ]
Bernd Bohmann commented on TOBAGO-72:
-------------------------------------
I think the reason for this problem is that the DateRenderer create components at renderer time.
We should try to create the components in the UIComponent or in the tx alternative.
> 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
>
> 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
[jira] Resolved: (TOBAGO-72) tx:date inside a tc:sheet causes
NullPointerException
Posted by "Bernd Bohmann (JIRA)" <de...@myfaces.apache.org>.
[ 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