I have extract the WAR-file into \Enterprise\webapps\xwiki
and imported the XAR over XWIKI -> Administer Wiki -> Import
For the M1 I used the Standalone installation including a Jetty container
and an HSQLDB database and had no changes in the hibernate.cfg.xml or
xwiki.cfg. So there is no need to copy them in the new WEB-INF.
Now tell me what did I do wrong?!
The new creations/applications seem to don't have a translation and the
Class Editor site also looks curious.
Here a screenshot:
http://xwiki.475771.n2.nabble.com/file/n5243269/ClassEditorM2.jpg
--
View this message in context: http://xwiki.475771.n2.nabble.com/Upgrate-XWiki-Enterprise-2-4-M1-to-M2-tp5…
Sent from the XWiki- Users mailing list archive at Nabble.com.
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">
<th>Page</th>
<th>Description</th>
<th class="unsortable selectFilter">Priority</th>
<th class="unsortable selectFilter">Status</th>
<th>Date</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-t…
Sent from the XWiki- Users mailing list archive at Nabble.com.