TInvalidDataValueException

Description

TRepeater.PageSize must be an integer no smaller than 1.

Source File

/home2/yahayco/public_html/framework/Web/UI/WebControls/TDataBoundControl.php (240)

0229:     {
0230:         return $this->getViewState('PageSize',10);
0231:     }
0232: 
0233:     /**
0234:      * @param integer the number of data items on each page.
0235:      * @throws TInvalidDataValueException if the value is less than 1
0236:      */
0237:     public function setPageSize($value)
0238:     {
0239:         if(($value=TPropertyValue::ensureInteger($value))<1)
0240: throw new TInvalidDataValueException('databoundcontrol_pagesize_invalid',get_class($this));
0241: $this->setViewState('PageSize',TPropertyValue::ensureInteger($value),10); 0242: } 0243: 0244: /** 0245: * @return integer number of pages of data items available 0246: */ 0247: public function getPageCount() 0248: { 0249: return $this->getViewState('PageCount',1); 0250: } 0251: 0252: /**

Stack Trace

#0 /home2/yahayco/public_html/framework/TComponent.php(135): TDataBoundControl->setPageSize(NULL)
#1 /home2/yahayco/public_html/protected/Pages/Posts/ListPost.php(222): TComponent->__set('PageSize', NULL)
#2 /home2/yahayco/public_html/protected/Pages/Posts/ListPost.php(91): ListPost->loadPost()
#3 /home2/yahayco/public_html/framework/Web/UI/TControl.php(1286): ListPost->onLoad(NULL)
#4 /home2/yahayco/public_html/framework/Web/UI/TPage.php(210): TControl->loadRecursive()
#5 /home2/yahayco/public_html/framework/Web/UI/TPage.php(193): TPage->processNormalRequest(Object(THtmlWriter))
#6 /home2/yahayco/public_html/framework/Web/Services/TPageService.php(474): TPage->run(Object(THtmlWriter))
#7 /home2/yahayco/public_html/framework/Web/Services/TPageService.php(420): TPageService->runPage(Object(ListPost), Array)
#8 /home2/yahayco/public_html/framework/TApplication.php(1066): TPageService->run()
#9 /home2/yahayco/public_html/framework/TApplication.php(376): TApplication->runService()
#10 /home2/yahayco/public_html/index.php(28): TApplication->run()
#11 {main}
2012-05-21 05:08 Apache PRADO/3.1.2