alltiers.blogspot.com
JSF - MyFaces: Auto Sorting Facelets vs JSP Version
http://alltiers.blogspot.com/2006/08/auto-sorting-facelets-vs-jsp-version.html
Friday, August 18, 2006. Auto Sorting Facelets vs JSP Version. The next issue that I came across was that the sorting on the Facelets version would only sort one way. That is it would only sort in Ascending Order and the arrows on the Column Header would not be visible. Basically the majority of the changes where in faces-config and web.xml. The JSP version works fine. Thus, I have to conclude there is a problem with facelets and the tomahawk datatable. I will investigate more next week.
alltiers.blogspot.com
JSF - MyFaces: Cannot use a List if using Sorting
http://alltiers.blogspot.com/2006/08/cannot-use-list-if-using-sorting.html
Friday, August 18, 2006. Cannot use a List if using Sorting. One of the first things I changed in the Car Example was to have the data displayed based on a button. For example a Search Screen that goes out to the database and gets the data that is to be displayed in the list. When the Find or Get Data Button is pressed it gives a. Javalang.ClassCastException: org.apache.myfaces.component.html.ext.SortableModel. Posted by Tom Innes @ 7:58 AM. Comments: Post a Comment. View my complete profile.
alltiers.blogspot.com
JSF - MyFaces: Missing Rows Attribute in Example
http://alltiers.blogspot.com/2006/08/missing-rows-attribute-in-example.html
Friday, August 18, 2006. Missing Rows Attribute in Example. Ok I next changed from a SortableModel to a dataModel as Follows. In my Controller my Class Variable became. Public DataModel dataModel = new ListDataModel();. And everything else remained the same. When I execute the Find button I now get. Javaxfaces.FacesException: Missing 'rows' attribute on component 'dataTableId'. At org.apache.myfaces.custom.datascroller.HtmlDataScroller.getPageIndex(HtmlDataScroller.java:246). Posted by Tom Innes @ 8:28 AM.
alltiers.blogspot.com
JSF - MyFaces: Missed Navigation Case
http://alltiers.blogspot.com/2006/08/missed-navigation-case.html
Friday, August 18, 2006. The next problem I had was that I missed a navigation case for the Find button. Bascially if I sorted the data based on one of the columns and then pressed the Find button to re-initialze the List, I was not getting the Unsorted List displayed. I added the following to faces-config. And the problem was resolved. Posted by Tom Innes @ 10:20 AM. Comments: Post a Comment. View my complete profile.
alltiers.blogspot.com
JSF - MyFaces: August 2006
http://alltiers.blogspot.com/2006_08_01_archive.html
Wednesday, August 30, 2006. Sort Workaround with Facelets. I download the 1.15 Tomahawk source and tried to debug what was happening. All I could ascertain was the the data table component was converting the outputText for the column label to be a CommandSortHeader, and then basing its sort off of that. For some reason Facelets was causing the component to still view itself as a outputText and thus the sort was not working. Thus my Facelet component became. Ltc:set var="sortable" value="${true}" />.
alltiers.blogspot.com
JSF - MyFaces: Sort Workaround with Facelets
http://alltiers.blogspot.com/2006/08/sort-workaround-with-facelets.html
Wednesday, August 30, 2006. Sort Workaround with Facelets. I download the 1.15 Tomahawk source and tried to debug what was happening. All I could ascertain was the the data table component was converting the outputText for the column label to be a CommandSortHeader, and then basing its sort off of that. For some reason Facelets was causing the component to still view itself as a outputText and thus the sort was not working. Thus my Facelet component became. Ltc:set var="sortable" value="${true}" />.
alltiers.blogspot.com
JSF - MyFaces: getRowData() wrong if preserveDataModel="true"
http://alltiers.blogspot.com/2006/08/getrowdata-wrong-if.html
Friday, August 18, 2006. GetRowData() wrong if preserveDataModel="true". Caused by: java.lang.IllegalArgumentException: row is unavailable. At javax.faces.model.ListDataModel.getRowData(ListDataModel.java:63). At test.CarFormController.edit(CarFormController.java:13). I will be creating a bug report for this one, because based on the description of preserve data model I can't understand why this would affect what row I selected. To solve this problem I have set. Posted by Tom Innes @ 11:30 AM.
alltiers.blogspot.com
JSF - MyFaces: Myfaces Data Table with Facelets
http://alltiers.blogspot.com/2006/08/myfaces-data-table-with-facelets.html
Friday, August 18, 2006. Myfaces Data Table with Facelets. Posted by Tom Innes @ 7:50 AM. Comments: Post a Comment. View my complete profile.
alltiers.blogspot.com
JSF - MyFaces: DataModel - SortableModel - Null Pointer Exception
http://alltiers.blogspot.com/2006/08/datamodel-sortablemodel-null-pointer.html
Friday, August 18, 2006. DataModel - SortableModel - Null Pointer Exception. The next thing I did was set the DataTable to use a Sortable Data Model as indicated in the previous Exception. And in the Controller created a Class variable as follows. Public SortableModel dataModel = new SortableModel();. When the Find button is Pressed it will set the data in the dataModel as follows. Before the page is even Loaded I get a null pointer Exception. Posted by Tom Innes @ 8:05 AM. Comments: Post a Comment.