[xwiki-users] Table - Pagination / Filtering capabilities
I have to choose between the normal Table and the Livetable. I like the possibility to make select boxes with the normal table (using: class=unsortable selectFilter) But I have problems with the filtering. If I add pagination and use the filter field he shows me only the results of the current page. Livetable finds all pages but I can't make such Filter-Boxes. Please tell me if I did something wrong with the normal table! Here is my code: ## The full data to display #set ($spaceDocs = $xwiki.getSpaceDocsName(Projects-Todo)) #set($itemsPerPage = 3) #if($request.ipp) #set($itemsPerPage = $xwiki.parseInt($request.ipp)) #end #set($pageNumber = 0) #if($request.page) #set($pageNumber = $xwiki.parseInt($request.page)) #end #set($startAt = $itemsPerPage * $pageNumber) #if($startAt 0) #set($startAt = 0) #end #set($endAt = $itemsPerPage * ($pageNumber + 1)) #if($endAt $spaceDocs.size()) #set($endAt = $spaceDocs.size()) #end #if($startAt $endAt) #set($startAt = $endAt) #end #set($totalPages = ($spaceDocs.size() - 1) / $itemsPerPage) #set($crtPageNumber = $startAt / $itemsPerPage) #set($spaceDocsInPage = $spaceDocs.subList($startAt, $endAt)) #set ($hql = , BaseObject as obj where obj.name=doc.fullName and obj.className='XWiki.Todo2Class' and obj.name'XWiki.Todo2Template' order by doc.date desc) #set ($todos= $xwiki.searchDocuments($hql, $itemsPerPage, $startAt)) table id=todoTable class=grid sortable filterable doOddEven cellpadding=0 cellspacing=0 border=0 tr class=sortHeader thPage/th thDescription/th th class=unsortable selectFilterPriority/th th class=unsortable selectFilterStatus/th thDate/th /tr #foreach ($todo in $todos) tr #set ($todoDoc = $xwiki.getDocument($todo)) #set ($todoObj = $todoDoc.getObject(XWiki.Todo2Class)) td[$todo]/td td$todoObj.Description/td td$todoObj.Priority/td td$todoObj.Status/td td$todoObj.Date/td /tr #end /table -- View this message in context: http://xwiki.475771.n2.nabble.com/Table-Pagination-Filtering-capabilities-tp5237458p5237458.html Sent from the XWiki- Users mailing list archive at Nabble.com. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] [ANN] XWiki Enterprise 2.4 Milestone 2 Released
The XWiki development team is pleased to announce the release of XWiki Enterprise 2.4 Milestone 2. Go grab it at http://www.xwiki.org/xwiki/bin/view/Main/Download This is second and last milestone of the XWiki Enterprise 2.4 version. Main changes from XWiki Enterprise 2.4 Milestone 2: * Objects and classes editor improvements * New Template-based page creation * New Invitation Manager application * New search application improvements * WYSIWYG Improvements * JMX Administration Console * Watchlist improvements * Script improvements * Javascript improvements * Lots of bugs fixes For more information see the Release notes at: http://www.xwiki.org/xwiki/bin/view/Main/ReleaseNotesXWikiEnterprise24M2 Thanks - The XWiki dev team ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Panel Wizard not working in XE2.3.1
Hi XWiki users, Using XE2.3.1, the Panel Wizard does not work. You can try to save your new layout, it is not registered. A workaround is to define the list of panels in the Presentation section. Do you encounter the same issue ? Regards, Maxime ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Table - Pagination / Filtering capabilities
On 06/30/2010 11:56 AM, Aleks87 wrote: I have to choose between the normal Table and the Livetable. I like the possibility to make select boxes with the normal table (using: class=unsortable selectFilter) But I have problems with the filtering. If I add pagination and use the filter field he shows me only the results of the current page. Livetable finds all pages but I can't make such Filter-Boxes. Please tell me if I did something wrong with the normal table! The FilterableSortable behavior is just a javascript improvement of existing HTML tables, it does not do any actual data fetch from the server, so it will never be able to go beyond the already displayed data. This means that you can't use pagination and FilterableSortable. But the Livetable does support filters, are you sure you read the documentation on http://code.xwiki.org/xwiki/bin/Macros/LiveTableMacro ? There's a filterable option for the $columnProperties parameter. -- Sergiu Dumitriu http://purl.org/net/sergiu/ ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] state of xwiki concerto
On 06/30/2010 01:15 PM, Ponder Muse wrote: Hi, I am interested in trying out xwiki concerto but I am unable to download the installer jar from its website at http://concerto.xwiki.org/xwiki/bin/view/Main/DownloadAndInstall. Does anybody know what is the current state of the xwiki concerto project? I understand that xwiki concerto was a research project that ran until sometime in 2008 and I am interested in knowing what progress there's been on it since then (if any). i.e. does the main xwiki project now maybe include support for replication of xwiki content in a distributed environment? Any insight on this would be much appreciated! The sources are available at https://svn.xwiki.org/svnroot/xwiki/contrib/sandbox/concerto/ , a plain mvn install should give you a ready-to-use file in concerto-installer/target. There are no official releases of the project yet, so you'll have to build it manually. As for the state of the project, it has been mostly abandoned in a successful state. The goals of the project have been met, but the final result didn't prove to be ready for prime-time usage, and the promises, which sounded promising in 2007 when the project started (actually 2005 was the real start of the P2P wiki work, outside Concerto, as a Google Summer of Code project), by the time the project ended interest shifted to other domains, such as cloud computing, distributed caches, distributed databases, offline web storage (Google Gears, now part of the HTML5 family of specifications), Wave. Thus, IMO there's no real incentive to further push the P2P ideas. There hasn't been any real work in these new directions. We do have distributed caches, which allows to setup parallel servers, which offers better scalability, and this is ready to be used. There has been an initial proof-of-concept deployment as a cloud application, when Google first announced support for Java, which proved to be successful, but it wasn't expanded into a real feature so far (coming soon). So, I'd say that if you want a distributed environment, you should look into distributed caches/events, ask for further help on this mailing list. -- Sergiu Dumitriu http://purl.org/net/sergiu/ ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Table - Pagination / Filtering capabilities
Hi, Table filtering can only work with data available on the page,so you can only do that with small volumes of data and need to make sure everything is there. This is why we moved away from that to do LiveTables. They can handle very big amount of data with both filtering and pagination. As you date is in a XWiki.Todo2Class you should be able to have select filter boxes for fields that are List fields Ludovic Le 30/06/10 11:56, Aleks87 a écrit : I have to choose between the normal Table and the Livetable. I like the possibility to make select boxes with the normal table (using: class=unsortable selectFilter) But I have problems with the filtering. If I add pagination and use the filter field he shows me only the results of the current page. Livetable finds all pages but I can't make such Filter-Boxes. Please tell me if I did something wrong with the normal table! Here is my code: ## The full data to display #set ($spaceDocs = $xwiki.getSpaceDocsName(Projects-Todo)) #set($itemsPerPage = 3) #if($request.ipp) #set($itemsPerPage = $xwiki.parseInt($request.ipp)) #end #set($pageNumber = 0) #if($request.page) #set($pageNumber = $xwiki.parseInt($request.page)) #end #set($startAt = $itemsPerPage * $pageNumber) #if($startAt 0) #set($startAt = 0) #end #set($endAt = $itemsPerPage * ($pageNumber + 1)) #if($endAt $spaceDocs.size()) #set($endAt = $spaceDocs.size()) #end #if($startAt $endAt) #set($startAt = $endAt) #end #set($totalPages = ($spaceDocs.size() - 1) / $itemsPerPage) #set($crtPageNumber = $startAt / $itemsPerPage) #set($spaceDocsInPage = $spaceDocs.subList($startAt, $endAt)) #set ($hql = , BaseObject as obj where obj.name=doc.fullName and obj.className='XWiki.Todo2Class' and obj.name'XWiki.Todo2Template' order by doc.date desc) #set ($todos= $xwiki.searchDocuments($hql, $itemsPerPage, $startAt)) table id=todoTable class=grid sortable filterable doOddEven cellpadding=0 cellspacing=0 border=0 tr class=sortHeader thPage/th thDescription/th th class=unsortable selectFilterPriority/th th class=unsortable selectFilterStatus/th thDate/th /tr #foreach ($todo in $todos) tr #set ($todoDoc = $xwiki.getDocument($todo)) #set ($todoObj = $todoDoc.getObject(XWiki.Todo2Class)) td[$todo]/td td$todoObj.Description/td td$todoObj.Priority/td td$todoObj.Status/td td$todoObj.Date/td /tr #end /table -- Ludovic Dubost Blog: http://blog.ludovic.org/ XWiki: http://www.xwiki.com Skype: ldubost GTalk: ldubost ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users