This one was tricky. I had overlooked a crucial detail in the Paginator
Howto, because the Transformer seemed to work as expected straight away.
Well it did but it broke, iff the current page number occurs as the last
digit in my continuation ID (ouch!).
I've now slightly reorganized my sitemap as per the example in the Howto
and everything seems to (really!) work now :)
Sandor
Sandor Spruit wrote:
Folks,
I'm seeing a strange StringIndexOutOfBoundsException right in the middle
of the Paginator:
String index out of range: -1
I'm not capable (yet) of reproducing it, especially as we had a power
outage 30 mins ago, just as I'd nearly nailed it down :(
Maybe somebody has seen this before? The whole stacktrace is like 3
pages, relevant fragment refers (not-surprising) to String.substring:
Paginator.endElement (line 288)
> Paginator.addPaginateTags (line 360)
> Paginator.cleanUri (line 603)
> String.substring (line 1411)
> String.substring (line 1444)
It would also be a great help if somebody could explain what Paginator
does with the page numbering. It seems to fiddle with the URI to fold-in
references to other pages? It's kinda hard to see exactly what happens,
as my URI contains dozends of numbers (a continuation ID) :(
Any suggestion *very* welcome, I would normally try to figure this out
myself but, well, I'm in a hurry and could do with a hint or two :)
cheers,
Sandor
-----------------------------------------------------------------------
Information and Computing Sciences, Utrecht University, the Netherlands
'Content and knowledge engineering' http://www.informationscience.nl/
Personal coordinates: http://www.cs.uu.nl/people/sandor/
"... unthinkable surprises, about to happen, but what they are -
it's not up to you, oh, it never really was." (Bjork on Vespertine)
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
-----------------------------------------------------------------------
Information and Computing Sciences, Utrecht University, the Netherlands
'Content and knowledge engineering' http://www.informationscience.nl/
Personal coordinates: http://www.cs.uu.nl/people/sandor/
"... unthinkable surprises, about to happen, but what they are -
it's not up to you, oh, it never really was." (Bjork on Vespertine)
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]