Did you at the element "S:nrHits" to your "D:select"?
<d:select>
<d:prop>
<S:nrHits/>
</d:prop>
</d:select>
Hth,
Nick Stolwijk
~Java Developer~
Iprofs BV.
Claus Sluterweg 125
2012 WS Haarlem
www.iprofs.nl
On Thu, Oct 30, 2008 at 11:39 AM, Wilson de Paula Pedro Junior
<[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm trying to use the hippo:page tag. But I'm getting a
> NumberFormatException at PagingTag class.
> It seems that the property "nrHits" it's not being set with the documents in
> my result.
> In line 7 the getPropertyValue method returns a null value, which causes the
> NumberFormatException.
>
>
> 1 private int determineTotal() {
> 2 if (docCollection == null || docCollection.getDocuments() ==
> null
> 3 || docCollection.getDocuments().size() == 0) {
> 4 return 0;
> 5 } else {
> 6 ExtendedDocument doc = (ExtendedDocument)
> docCollection.getDocuments().get(0);
> 7 return
> Integer.parseInt(doc.getMetadata().getPropertyValue("nrHits",
> Query.NameSpace.NS_SLIDE));
> 8 }
> 9 }
>
>
> I'm using HST version 1.02.02.
>
> Does anybody knows what could be wrong?
>
> Thanks in advance,
>
>
> Wilson
> ********************************************
> Hippocms-dev: Hippo CMS development public mailinglist
>
> Searchable archives can be found at:
> MarkMail: http://hippocms-dev.markmail.org
> Nabble: http://www.nabble.com/Hippo-CMS-f26633.html
>
>
********************************************
Hippocms-dev: Hippo CMS development public mailinglist
Searchable archives can be found at:
MarkMail: http://hippocms-dev.markmail.org
Nabble: http://www.nabble.com/Hippo-CMS-f26633.html