You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by ndnguy <pr...@gmail.com> on 2006/11/02 02:58:32 UTC
t:datascroller usage question
Hi,
I am getting started with t:dataScroller component. I was looking at the
example shown in tomahawk examples. I have a datascroller something like:
<t:dataScroller id="scroll_2"
for="data"
rowsCountVar="rowsCount"
displayedRowsCountVar="displayedRowsCountVar"
firstRowIndexVar="firstRowIndex"
lastRowIndexVar="lastRowIndex"
pageCountVar="pageCount"
immediate="true"
pageIndexVar="pageIndex"
>
My question is where and how are the attributes displayedRowsCountVar,
firstRowIndexVar .. pageIndexVar initialized. I tried the example and got
an error message given below:
[#|2006-11-01T20:46:43.437-0500|SEVERE|sun-appserver-ee8.1_02|org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlTableRendererBase|_ThreadID=12;|Row
is not available. Rowindex = 0|#]
[#|2006-11-01T20:46:43.562-0500|SEVERE|sun-appserver-ee8.1_02|javax.enterprise.system.container.web|_ThreadID=12;|ApplicationDispatcher[/PutnamProfiles]
Servlet.service() for servlet jsp threw exception
java.lang.NullPointerException
at java.text.MessageFormat.applyPattern(MessageFormat.java:414)
at java.text.MessageFormat.<init>(MessageFormat.java:350)
at java.text.MessageFormat.format(MessageFormat.java:803)
I populate my t:datatable based on a search, initially it does not have any
rows, in the examples data is initialized prior to the page load. Is that
why i am getting that error. Please help.
Thanks,
Praveen
--
View this message in context: http://www.nabble.com/t%3Adatascroller-usage-question-tf2557233.html#a7126462
Sent from the MyFaces - Users mailing list archive at Nabble.com.