Re: Selecting Row on sortable Datatable
Thanks Catalin, but that still doesn't work... I don't know what to do now, should I give up on myfaces or what? It seems like such an obvious thing but even using your suggestion, the 'car' I get is the one originally occupying that row, not the one thats there after the sort. Any more suggestions? Has anybody actually done this and have it work? -- View this message in context: http://www.nabble.com/Selecting-Row-on-sortable-Datatable-tf1905482.html#a5248448 Sent from the MyFaces - Users forum at Nabble.com.
Re: Selecting Row on sortable Datatable
Thanks Holger, but I have the same problem using this method. As soon as I sort the rows in the datatable they are out of sync with the backing bean. Somehow, somewhere, a copy of the list exists as it was originally sorted, and selecting a row, either with index or an actionlistener as in the link you gave me, returns the from this original list. Sorting the datatable doesn't effect this list so it goes out of sync. It's very frustrating. Surely I can't be the only one with this problem? -- View this message in context: http://www.nabble.com/Selecting-Row-on-sortable-Datatable-tf1905482.html#a5218575 Sent from the MyFaces - Users forum at Nabble.com.
Selecting Row on sortable Datatable
Hi, can someone please explain the following behaviour to me: I have a dataTable and am using myfaces automatic sorting (although I have the same issue using the old commandSortHeader method). For each row in the table I have a link which is supposed to open an editable form representing the data in the selected row. I have a managed bean which contains an ArrayList of data objects, this list is passed to the datatable. The managed bean also has the sort method which basically sorts or reverses the sort on the ArrayList. The link on each row is an updateActionListener which passes the selected index to a method on the managed bean which just retrieves the data object using the arraylist.get(index) method. The problem is that there seems to be a copy of the list which is not sorted. So if I select the item in the first row of the datatable I get the first object in the arraylist. If I reverse the sort on the table and select the -- View this message in context: http://www.nabble.com/Selecting-Row-on-sortable-Datatable-tf1905482.html#a5214553 Sent from the MyFaces - Users forum at Nabble.com.
Re: dataScroller not working, help please
I solved my own problem, seems like I HAVE to ask for help before I figure things out! Anyway, my dataTable / scroller was nested inside a tag, which is apparently a no no... -- View this message in context: http://www.nabble.com/dataScroller-not-working%2C-help-please-t1556234.html#a4227432 Sent from the MyFaces - Users forum at Nabble.com.
dataScroller not working, help please
I have a dataTable / dataScroller nested in a tabbedPane, which is itself in a nested Tile jsp. The dataTable / dataScroller jsp is almost exactly the same as given in the example. It displays the table and the scroller as it should. The correct number of pages according to the number of records, etc, which tells me the scroller is connecting to the table (if I have less than 10 records the scroller dissapears, if I have more than 10 it appears with 2 pages listed, so I assume that's correct). The problem is that the scroller buttons / page links don't actually do anything. It's like they are not links at all. When I view the source of the example and compare it to the source of my page I can see that there is a javascript function (getScrolling()) in the example source which is missing on my page. Any ideas please? What am I doing wrong / missing? I'm feeling pretty desperate now as I've been trying for days to get it working, and searched the web for answers, to no avail... -- View this message in context: http://www.nabble.com/dataScroller-not-working%2C-help-please-t1556234.html#a4227180 Sent from the MyFaces - Users forum at Nabble.com.
Re: Using Custom CSS with extensions filter
Thanks for the responses! Mike, I'll try your suggestion and let you know how it goes. I haven't used filters much before so I guess it's time I learnt how! -- View this message in context: http://www.nabble.com/Using-Custom-CSS-with-extensions-filter-t1400335.html#a3779615 Sent from the MyFaces - Users forum at Nabble.com.
Using Custom CSS with extensions filter
I used the tabbedpane component, without using the extensions filter, by copying the relevant resource files into my local directory and then worked on the relevant css files to get the exact look and feel that I wanted. In one of the tabs I put a inputCalendar component. In order to get it to work though, I had to add the extensions filter to the web.xml. Unfortunately, doing this messes up my carefully designed tabbedPane component as my custom css file is ignored in place of the css found in tomahawk. Is there anyway around this? ie, can I either override the css supplied when using the extensions filter for my tabbedpane, or, can I get the inputcalendar component to work without the extensions filter? Any insight appreciated! Thanks -- View this message in context: http://www.nabble.com/Using-Custom-CSS-with-extensions-filter-t1400335.html#a3767274 Sent from the MyFaces - Users forum at Nabble.com.
arrow on jscookmenu missing
In the jscookmenu example, after the "components" menu item, there is a little black arrow indicating that there are sub-menu items. When I implement it there is no arrow. I can't seem to find any way of adding it. Can anyone explain to me how to get this arrow to show. I see the gif file is in the theme folder, do I need to add something to the nav menu item tag to make it visible? Thanks Joel -- View this message in context: http://www.nabble.com/arrow-on-jscookmenu-missing-t1368158.html#a3669046 Sent from the MyFaces - Users forum at Nabble.com.
Re: using split in jscookmenu breaks it
Thanks for the reply, I'm really confused, but it's probably something small I've missed! The MyFaces example works fine on the same server. I was really just experimenting, so the code is really simple: <[EMAIL PROTECTED] contentType="text/html"%> <[EMAIL PROTECTED] pageEncoding="UTF-8"%> <[EMAIL PROTECTED] uri="http://java.sun.com/jsp/jstl/core"; prefix="c"%> <[EMAIL PROTECTED] uri="http://java.sun.com/jsf/core"; prefix="f"%> <[EMAIL PROTECTED] uri="http://java.sun.com/jsf/html"; prefix="h"%> <%@ taglib uri="http://myfaces.apache.org/tomahawk"; prefix="t"%> http://www.w3.org/TR/html4/loose.dtd";> JSCookMenu The generated source contains this script: -- View this message in context: http://www.nabble.com/using-split-in-jscookmenu-breaks-it-t1362900.html#a3665654 Sent from the MyFaces - Users forum at Nabble.com.
using split in jscookmenu breaks it
I'm a newbie to myfaces. I've setup jscookmenu and it works great. My problem is that as soon as I put split="true" into any of the navigation items the entire menu no longer displays! As soon as I remove it, or set it to false, the menu displays perfectly again! Very confusing... Any ideas? -- View this message in context: http://www.nabble.com/using-split-in-jscookmenu-breaks-it-t1362900.html#a3652315 Sent from the MyFaces - Users forum at Nabble.com.