-
1. Re: Alternative DataTable component ?
fmarwede Jan 16, 2008 12:24 PM (in response to basharaj)Let me add: There is a high number of bugs concerning the scrollableDataTable and one RF team member is assigned to all of them. But in JIRA I can't see any effort done to reduce the bugs.
I'm wondering about that for a couple of weeks. Is Konstantin Mishin on holiday or is something happen what I can't see in JIRA?
Don't misunderstand me, I don't want to push somebody, it's only a question. -
2. Re: Alternative DataTable component ?
brachie Jan 16, 2008 3:31 PM (in response to basharaj)Hi,
I must absolutely agree with what you said. I also spend a lot of time looking for a good datatable component which meets the requirements above. At the moment we ended up using the table of the Apache Trinidad framework. This table has sortable headers, is pageable, fast and you can easily customize its look. You can even back this table with an EntityQuery, so paging and sorting is database backed (look at the seamsiscs example in Seam).
However, there is one limitation when using Richfaces and Trinidad together: Richfaces (ajax4jsf) and Trinidad use different approaches for ajax requests. If you try to reRender (ajax4jsf) a page fragment containing e.g. a Trinidad table, the style of the table is gone. Maybe there are other side effects for other Trinidad components...
Regards,
Alexander -
3. Re: Alternative DataTable component ?
brachie Jan 16, 2008 5:37 PM (in response to basharaj)Hi again,
it looks like Richfaces partial page rendering works with Trinidad components. I recently found this hint in the seamdiscs example:
Trinidad and RichFaces Ajax both provide partial page refresh and submit. For Trinidad PPR to work, it needs to be surrounded by a component which enables PPR. The example uses <tr:panelPartialRoot /> to achieve this:<tr:panelPartialRoot> <tr:form> <tr:table value="#{artists.dataModel}" var="artist"> <tr:column> ...
If you want to use RichFaces' partial page refresh with Trinidad components then you'll need to disable Trinidad's compressed style keys:<context-param> <param-name> org.apache.myfaces.trinidadinternal.DISABLE_CONTENT_COMPRESSION </param-name> <param-value>true</param-value> </context-param>
-
4. Re: Alternative DataTable component ?
brachie Jan 17, 2008 3:59 AM (in response to basharaj)Hi,
I just realized that for all Trinidad versions > 1.2.1 the parameter to disable the style compression is now in org.apache.myfaces.trinidad.DISABLE_CONTENT_COMPRESSION
If you set this to true, the ajax4jsf reRender works with Trinidad components :-)