(Tomahawk) DataTable sort question

Hello,
I'm showing the system properties on a webpage. The backing bean simply returns a list of entries (java.util.Map.Entry) which are shown by a t:datatable (backing bean has request scope).
So now that they are there, I'd like to have them sorted one way or another. I don't know how to use the sortColumn attribute in this case, perhaps I'll need to sort them in the backing bean instead?
Thanks,
Dave

Hi!
you dont need to stor in the been.
you can do it in the jsp page like this: (using DataTable from RichFaces)
<rich:extendedDataTable  sortPriority="#{spot.startTimeForTable}"
               value="#{scheduleResultBean.lspotsOnDate}" var="spot" id="spots"
               rowClasses="#{spot.statusName}" >
               <rich:column sortBy="#{spot.rating}" filterBy="#{spot.rating}"
                    filterEvent="onkeyup" label="Rating" >
                    <f:facet name="header">
                         <h:outputText value="Rating" />
                    </f:facet>
                    <h:outputText value="#{spot.rating}">
                    </h:outputText>
               </rich:column>
</rich:extendedDataTable>I'd like to hear if it helped you to!

Similar Messages

  • Jsf dataTable sort

    Hi all,
    How can the contents of dataTable component be sorted, tomahawk dataTable component provides a commandSortHeader how to use this, can any one show an example on how to write the sort handler ?
    Thanks in advance

    I think that the examples should have the source. Unfortunatly don't. I've decompiled the code, and i post here what you need:
    package org.apache.myfaces.examples.listexample;
    public abstract class SortableList
    protected SortableList(String defaultSortColumn)
    _sort = defaultSortColumn;
    _ascending = isDefaultAscending(defaultSortColumn);
    protected abstract void sort(String s, boolean flag);
    protected abstract boolean isDefaultAscending(String s);
    public void sort(String sortColumn)
    if(sortColumn == null)
    throw new IllegalArgumentException("Argument sortColumn must not be null.");
    if(_sort.equals(sortColumn))
    ascending = !ascending;
    } else
    _sort = sortColumn;
    ascending = isDefaultAscending(sort);
    sort(_sort, _ascending);
    public String getSort()
    return _sort;
    public void setSort(String sort)
    _sort = sort;
    public boolean isAscending()
    return _ascending;
    public void setAscending(boolean ascending)
    _ascending = ascending;
    private String _sort;
    private boolean _ascending;
    package org.apache.myfaces.examples.listexample;
    import java.util.*;
    // Referenced classes of package org.apache.myfaces.examples.listexample:
    // SortableList, SimpleCar
    public class SimpleSortableCarList extends SortableList
    public SimpleSortableCarList()
    super("type");
    _cars = new ArrayList();
    _cars.add(new SimpleCar(1, "car A", "red"));
    _cars.add(new SimpleCar(1, "car B", "blue"));
    _cars.add(new SimpleCar(1, "car C", "green"));
    _cars.add(new SimpleCar(1, "car D", "yellow"));
    _cars.add(new SimpleCar(1, "car E", "orange"));
    public List getCars()
    sort(getSort(), isAscending());
    return _cars;
    protected boolean isDefaultAscending(String sortColumn)
    return true;
    protected void sort(final String column, final boolean ascending)
    Comparator comparator = new Comparator() {
    public int compare(Object o1, Object o2)
    SimpleCar c1 = (SimpleCar)o1;
    SimpleCar c2 = (SimpleCar)o2;
    if(column == null)
    return 0;
    if(column.equals("type"))
    return ascending ? c1.getType().compareTo(c2.getType()) : c2.getType().compareTo(c1.getType());
    if(column.equals("color"))
    return ascending ? c1.getColor().compareTo(c2.getColor()) : c2.getColor().compareTo(c1.getColor());
    else
    return 0;
    Collections.sort(_cars, comparator);
    private List _cars;
    The code was decompiled with:
    // Decompiled by Jad v1.5.8f. Copyright 2001 Pavel Kouznetsov.
    // Jad home page: http://www.kpdus.com/jad.html

  • Sorting question over state...

    Hi there,
    Anyone know where you amend the over state / hover of an option in a sorting question ???
    Been looking in the object style manager but can't find it in there...
    Thanks in advance...

    You are talking about the partially transparent grey bar that appears when hovering over an answer in the Sequence type of questions. There is no style that can be customized AFAIK. It is not even changing with the included themes. Same is valid for the connecting lines in matching questions that are always black, color cannot be changed for them neither. It is a pity, would recommend you enter a feature request to be able to customize the color of both the hover bar and those lines.
    https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform
    Lilybiri

  • X:dataTable sort arrow rendered as question mark (?)

    Hey All:
    I am using tomahawk 1.1.3 and when I use sortable columns with x:dataTable, the sort arrows are being rendered as question marks (?). Any ideas?

    were would be the place to find the original system install CD.
    Ideally, your friend:
    My Friend gave me his Old Imac G5
    The Apple Store may have original system install discs but I would be surprised since no Apple Store in the US that I know of sells them any longer.
    It will not be free, but if they have one that would be the best option. Otherwise you will have to peruse the used market. In the US that could be Amazon Marketplace or eBay. I do not know where you would start in India, but many eBay sellers ship worldwide.
    Make absolutely certain you are getting a full retail installation CD and if it is Leopard or Tiger, make sure it is for your G5 and not an Intel iMac. System specific disks are grey in color and will not work except for the exact system with which they were included.

  • IceFaces 1.8 dataTable-sort example gives error

    Hi All:
    I need help, please!! Any help or hint is greatly appreciated it!!
    In the tutorial from IceFaces 1.8
    Data Table Component Tutorials
    I am using weblogic 10.3.2, IceFaces 1.8 and Jsf 1.2.
    I am using the jars that comes with the IceFaces 1.8 download.
    index.jsp:
    <html>
    <head>
    <title>ICEfaces Component Showcase</title>
    </head>
    <body>
    <jsp:forward page="sortableTable.iface" />
    </body>
    </html>
    sortableTable.jspx:
    <f:view xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:ice="http://www.icesoft.com/icefaces/component">
    <ice:outputDeclaration doctypeRoot="HTML"
    doctypePublic="-//W3C//DTD HTML 4.01 Transitional//EN"
    doctypeSystem="http://www.w3.org/TR/html4/loose.dtd"/>
    <html>
    <head>
    <meta http-equiv="Content-Type"
    content="text/html; charset=iso-8859-1"></meta>
    <title>DataTable Component Tutorial</title>
    <link href="./xmlhttp/css/xp/xp.css" rel="stylesheet" type="text/css"/>
    </head>
    <body>
    <h2>Sortable dataTable Component</h2>
    <p>In this example commandSortHeader components have been added to the
    table headers. Clicking on the headers will sort the table data.</p>
    <ice:form>
    <!--
    This is a very basic table comprising four columns. Each
    row represents an inventory item. Each column represents a
    inventory item property. commandSortHeader components have been
    added ot the table headers.
    The sortAscending and sortColumn attributes are set when a command
    sortColumnName header is activated. The sortColumn and sortAscending
    data can then be sortColumnName by a sortColumnName algorithm if a
    change is detected.
    -->
    <ice:dataTable
    id="dataSortData"
    sortColumn="#{inventoryList.sortColumnName}"
    sortAscending="#{inventoryList.ascending}"
    value="#{inventoryList.carInventory}"
    var="item">
    <!-- Stock number -->
    <ice:column>
    <f:facet name="header">
    <ice:commandSortHeader
    columnName="#{inventoryList.stockColumnName}"
    arrow="true" >
    <ice:outputText value="#{inventoryList.stockColumnName}"/>
    </ice:commandSortHeader>
    </f:facet>
    <ice:outputText value="#{item.stock}"/>
    </ice:column>
    <!-- Model number -->
    <ice:column>
    <f:facet name="header">
    <ice:commandSortHeader
    columnName="#{inventoryList.modelColumnName}"
    arrow="true" >
    <ice:outputText value="#{inventoryList.modelColumnName}"/>
    </ice:commandSortHeader>
    </f:facet>
    <ice:outputText value="#{item.model}"/>
    </ice:column>
    <!-- Description -->
    <ice:column>
    <f:facet name="header">
    <ice:commandSortHeader
    columnName="#{inventoryList.descriptionColumnName} "
    arrow="true" >
    <ice:outputText value="#{inventoryList.descriptionColumnName}"/>
    </ice:commandSortHeader>
    </f:facet>
    <ice:outputText value="#{item.description}"/>
    </ice:column>
    <!-- Odometer reading -->
    <ice:column>
    <f:facet name="header">
    <ice:commandSortHeader
    columnName="#{inventoryList.odometerColumnName}"
    arrow="true" >
    <ice:outputText value="#{inventoryList.odometerColumnName}"/>
    </ice:commandSortHeader>
    </f:facet>
    <ice:outputText value="#{item.odometer}"/>
    </ice:column>
    <!-- Price number -->
    <ice:column>
    <f:facet name="header">
    <ice:commandSortHeader
    columnName="#{inventoryList.priceColumnName}"
    arrow="true" >
    <ice:outputText value="#{inventoryList.priceColumnName}"/>
    </ice:commandSortHeader>
    </f:facet>
    <ice:outputText value="#{item.price}"/>
    </ice:column>
    </ice:dataTable>
    </ice:form>
    </body>
    </html>
    </f:view>
    Error 500--Internal Server Error
    java.lang.Exception: javax.faces.FacesException: Can't parse stream for /index.jsp The prefix "jsp" for element "jsp:forward" is not bound.
    at com.icesoft.faces.context.View.servePage(View.java :152)
    at com.icesoft.faces.webapp.http.core.MultiViewServer .service(MultiViewServer.java:67)
    at com.icesoft.faces.webapp.http.common.ServerProxy.s ervice(ServerProxy.java:11)
    at com.icesoft.faces.webapp.http.servlet.MainSessionB oundServlet$4.service(MainSessionBoundServlet.java :149)
    at com.icesoft.faces.webapp.http.common.standard.Path DispatcherServer.service(PathDispatcherServer.java :24)
    at com.icesoft.faces.webapp.http.servlet.BasicAdaptin gServlet.service(BasicAdaptingServlet.java:16)
    at com.icesoft.faces.webapp.http.servlet.PathDispatch er.service(PathDispatcher.java:23)
    at com.icesoft.faces.webapp.http.servlet.SessionDispa tcher.service(SessionDispatcher.java:53)
    at com.icesoft.faces.webapp.http.servlet.PathDispatch er.service(PathDispatcher.java:23)
    at com.icesoft.faces.webapp.http.servlet.MainServlet. service(MainServlet.java:131)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:820)
    at weblogic.servlet.internal.StubSecurityHelper$Servl etServiceAction.run(StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invok eServlet(StubSecurityHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute( ServletStubImpl.java:292)
    at weblogic.servlet.internal.TailFilter.doFilter(Tail Filter.java:26)
    at weblogic.servlet.internal.FilterChainImpl.doFilter (FilterChainImpl.java:56)
    at weblogic.servlet.internal.RequestEventsFilter.doFi lter(RequestEventsFilter.java:27)
    at weblogic.servlet.internal.FilterChainImpl.doFilter (FilterChainImpl.java:56)
    at weblogic.servlet.internal.WebAppServletContext$Ser vletInvocationAction.run(WebAppServletContext.java :3592)
    at weblogic.security.acl.internal.AuthenticatedSubjec t.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(Se curityManager.java:121)
    at weblogic.servlet.internal.WebAppServletContext.sec uredExecute(WebAppServletContext.java:2202)
    at weblogic.servlet.internal.WebAppServletContext.exe cute(WebAppServletContext.java:2108)
    at weblogic.servlet.internal.ServletRequestImpl.run(S ervletRequestImpl.java:1432)
    at weblogic.work.ExecuteThread.execute(ExecuteThread. java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java :173)
    Caused by: javax.faces.FacesException: Can't parse stream for /index.jsp The prefix "jsp" for element "jsp:forward" is not bound.
    at com.icesoft.faces.application.D2DViewHandler.rende rResponse(D2DViewHandler.java:445)
    at com.icesoft.faces.application.D2DViewHandler.rende rView(D2DViewHandler.java:159)
    at com.sun.faces.lifecycle.RenderResponsePhase.execut e(RenderResponsePhase.java:110)
    at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:1 00)
    at com.sun.faces.lifecycle.LifecycleImpl.render(Lifec ycleImpl.java:139)
    at com.icesoft.faces.webapp.http.core.JsfLifecycleExe cutor.apply(JsfLifecycleExecutor.java:19)
    at com.icesoft.faces.context.View$2$1.respond(View.ja va:48)
    at com.icesoft.faces.webapp.http.servlet.ServletReque stResponse.respondWith(ServletRequestResponse.java :201)
    at com.icesoft.faces.context.View$2.serve(View.java:7 7)
    at com.icesoft.faces.context.View.servePage(View.java :149)
    ... 25 more
    Caused by: org.xml.sax.SAXParseException: The prefix "jsp" for element "jsp:forward" is not bound.
    at com.sun.org.apache.xerces.internal.parsers.Abstrac tSAXParser.parse(AbstractSAXParser.java:1231)
    at com.sun.org.apache.xerces.internal.jaxp.SAXParserI mpl$JAXPSAXParser.parse(SAXParserImpl.java:522)
    at weblogic.xml.jaxp.WebLogicXMLReader.parse(WebLogic XMLReader.java:133)
    at weblogic.xml.jaxp.RegistryXMLReader.parse(Registry XMLReader.java:173)
    at org.apache.commons.digester.Digester.parse(Digeste r.java:1785)
    at com.icesoft.faces.webapp.parser.Parser.parse(Parse r.java:130)
    at com.icesoft.faces.application.D2DViewHandler.rende rResponse(D2DViewHandler.java:439)
    ... 34 more

    Hi All:
    I need help, please!! Any help or hint is greatly appreciated it!!
    In the tutorial from IceFaces 1.8
    Data Table Component Tutorials
    I am using weblogic 10.3.2, IceFaces 1.8 and Jsf 1.2.
    I am using the jars that comes with the IceFaces 1.8 download.
    index.jsp:
    <html>
    <head>
    <title>ICEfaces Component Showcase</title>
    </head>
    <body>
    <jsp:forward page="sortableTable.iface" />
    </body>
    </html>
    sortableTable.jspx:
    <f:view xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:ice="http://www.icesoft.com/icefaces/component">
    <ice:outputDeclaration doctypeRoot="HTML"
    doctypePublic="-//W3C//DTD HTML 4.01 Transitional//EN"
    doctypeSystem="http://www.w3.org/TR/html4/loose.dtd"/>
    <html>
    <head>
    <meta http-equiv="Content-Type"
    content="text/html; charset=iso-8859-1"></meta>
    <title>DataTable Component Tutorial</title>
    <link href="./xmlhttp/css/xp/xp.css" rel="stylesheet" type="text/css"/>
    </head>
    <body>
    <h2>Sortable dataTable Component</h2>
    <p>In this example commandSortHeader components have been added to the
    table headers. Clicking on the headers will sort the table data.</p>
    <ice:form>
    <!--
    This is a very basic table comprising four columns. Each
    row represents an inventory item. Each column represents a
    inventory item property. commandSortHeader components have been
    added ot the table headers.
    The sortAscending and sortColumn attributes are set when a command
    sortColumnName header is activated. The sortColumn and sortAscending
    data can then be sortColumnName by a sortColumnName algorithm if a
    change is detected.
    -->
    <ice:dataTable
    id="dataSortData"
    sortColumn="#{inventoryList.sortColumnName}"
    sortAscending="#{inventoryList.ascending}"
    value="#{inventoryList.carInventory}"
    var="item">
    <!-- Stock number -->
    <ice:column>
    <f:facet name="header">
    <ice:commandSortHeader
    columnName="#{inventoryList.stockColumnName}"
    arrow="true" >
    <ice:outputText value="#{inventoryList.stockColumnName}"/>
    </ice:commandSortHeader>
    </f:facet>
    <ice:outputText value="#{item.stock}"/>
    </ice:column>
    <!-- Model number -->
    <ice:column>
    <f:facet name="header">
    <ice:commandSortHeader
    columnName="#{inventoryList.modelColumnName}"
    arrow="true" >
    <ice:outputText value="#{inventoryList.modelColumnName}"/>
    </ice:commandSortHeader>
    </f:facet>
    <ice:outputText value="#{item.model}"/>
    </ice:column>
    <!-- Description -->
    <ice:column>
    <f:facet name="header">
    <ice:commandSortHeader
    columnName="#{inventoryList.descriptionColumnName} "
    arrow="true" >
    <ice:outputText value="#{inventoryList.descriptionColumnName}"/>
    </ice:commandSortHeader>
    </f:facet>
    <ice:outputText value="#{item.description}"/>
    </ice:column>
    <!-- Odometer reading -->
    <ice:column>
    <f:facet name="header">
    <ice:commandSortHeader
    columnName="#{inventoryList.odometerColumnName}"
    arrow="true" >
    <ice:outputText value="#{inventoryList.odometerColumnName}"/>
    </ice:commandSortHeader>
    </f:facet>
    <ice:outputText value="#{item.odometer}"/>
    </ice:column>
    <!-- Price number -->
    <ice:column>
    <f:facet name="header">
    <ice:commandSortHeader
    columnName="#{inventoryList.priceColumnName}"
    arrow="true" >
    <ice:outputText value="#{inventoryList.priceColumnName}"/>
    </ice:commandSortHeader>
    </f:facet>
    <ice:outputText value="#{item.price}"/>
    </ice:column>
    </ice:dataTable>
    </ice:form>
    </body>
    </html>
    </f:view>
    Error 500--Internal Server Error
    java.lang.Exception: javax.faces.FacesException: Can't parse stream for /index.jsp The prefix "jsp" for element "jsp:forward" is not bound.
    at com.icesoft.faces.context.View.servePage(View.java :152)
    at com.icesoft.faces.webapp.http.core.MultiViewServer .service(MultiViewServer.java:67)
    at com.icesoft.faces.webapp.http.common.ServerProxy.s ervice(ServerProxy.java:11)
    at com.icesoft.faces.webapp.http.servlet.MainSessionB oundServlet$4.service(MainSessionBoundServlet.java :149)
    at com.icesoft.faces.webapp.http.common.standard.Path DispatcherServer.service(PathDispatcherServer.java :24)
    at com.icesoft.faces.webapp.http.servlet.BasicAdaptin gServlet.service(BasicAdaptingServlet.java:16)
    at com.icesoft.faces.webapp.http.servlet.PathDispatch er.service(PathDispatcher.java:23)
    at com.icesoft.faces.webapp.http.servlet.SessionDispa tcher.service(SessionDispatcher.java:53)
    at com.icesoft.faces.webapp.http.servlet.PathDispatch er.service(PathDispatcher.java:23)
    at com.icesoft.faces.webapp.http.servlet.MainServlet. service(MainServlet.java:131)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:820)
    at weblogic.servlet.internal.StubSecurityHelper$Servl etServiceAction.run(StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invok eServlet(StubSecurityHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute( ServletStubImpl.java:292)
    at weblogic.servlet.internal.TailFilter.doFilter(Tail Filter.java:26)
    at weblogic.servlet.internal.FilterChainImpl.doFilter (FilterChainImpl.java:56)
    at weblogic.servlet.internal.RequestEventsFilter.doFi lter(RequestEventsFilter.java:27)
    at weblogic.servlet.internal.FilterChainImpl.doFilter (FilterChainImpl.java:56)
    at weblogic.servlet.internal.WebAppServletContext$Ser vletInvocationAction.run(WebAppServletContext.java :3592)
    at weblogic.security.acl.internal.AuthenticatedSubjec t.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(Se curityManager.java:121)
    at weblogic.servlet.internal.WebAppServletContext.sec uredExecute(WebAppServletContext.java:2202)
    at weblogic.servlet.internal.WebAppServletContext.exe cute(WebAppServletContext.java:2108)
    at weblogic.servlet.internal.ServletRequestImpl.run(S ervletRequestImpl.java:1432)
    at weblogic.work.ExecuteThread.execute(ExecuteThread. java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java :173)
    Caused by: javax.faces.FacesException: Can't parse stream for /index.jsp The prefix "jsp" for element "jsp:forward" is not bound.
    at com.icesoft.faces.application.D2DViewHandler.rende rResponse(D2DViewHandler.java:445)
    at com.icesoft.faces.application.D2DViewHandler.rende rView(D2DViewHandler.java:159)
    at com.sun.faces.lifecycle.RenderResponsePhase.execut e(RenderResponsePhase.java:110)
    at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:1 00)
    at com.sun.faces.lifecycle.LifecycleImpl.render(Lifec ycleImpl.java:139)
    at com.icesoft.faces.webapp.http.core.JsfLifecycleExe cutor.apply(JsfLifecycleExecutor.java:19)
    at com.icesoft.faces.context.View$2$1.respond(View.ja va:48)
    at com.icesoft.faces.webapp.http.servlet.ServletReque stResponse.respondWith(ServletRequestResponse.java :201)
    at com.icesoft.faces.context.View$2.serve(View.java:7 7)
    at com.icesoft.faces.context.View.servePage(View.java :149)
    ... 25 more
    Caused by: org.xml.sax.SAXParseException: The prefix "jsp" for element "jsp:forward" is not bound.
    at com.sun.org.apache.xerces.internal.parsers.Abstrac tSAXParser.parse(AbstractSAXParser.java:1231)
    at com.sun.org.apache.xerces.internal.jaxp.SAXParserI mpl$JAXPSAXParser.parse(SAXParserImpl.java:522)
    at weblogic.xml.jaxp.WebLogicXMLReader.parse(WebLogic XMLReader.java:133)
    at weblogic.xml.jaxp.RegistryXMLReader.parse(Registry XMLReader.java:173)
    at org.apache.commons.digester.Digester.parse(Digeste r.java:1785)
    at com.icesoft.faces.webapp.parser.Parser.parse(Parse r.java:130)
    at com.icesoft.faces.application.D2DViewHandler.rende rResponse(D2DViewHandler.java:439)
    ... 34 more

  • Sorting question xsl

    hi,
    I am sorting a list by category, but now I know that one of the categories should go to the bottom of the list when displayed.
    I tried concatenating some value to it so it would go to the bottom, but it's not working correctly. Any other ideas to achieve this?
    mhoran

    You are talking about the partially transparent grey bar that appears when hovering over an answer in the Sequence type of questions. There is no style that can be customized AFAIK. It is not even changing with the included themes. Same is valid for the connecting lines in matching questions that are always black, color cannot be changed for them neither. It is a pity, would recommend you enter a feature request to be able to customize the color of both the hover bar and those lines.
    https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform
    Lilybiri

  • Playlist name sorting question

    First off, sorry if this has been discussed before, I couldn't find it anywhere.
    My question is, is there any way to sort my playlists via a "Sort Name" option or something so that a playlist starting with 'the' (for example, "The Letter Black") will be sorted, in the case of the example, under 'L' instead of 'T'? Thanks in advance.
    Blessings.

    Sorry, there are no controls about the sort order of playlists. They go folders, smart playlists, and regular playlists, with a lexical sort in each.
    However, you don't need to create playlists for individual artists and albums. You can easily get to them by the column browser. To turn it on, click View > Column Browser > Show. Then type "lett" in the search bar and you will be right there.

  • Collections.sort question

    Hi,
    This is my question. I have the following classes
    class A {
         int num = 1;
    class B extends A implements Comparable<B>{
       int count = 0;
       public int compareTo(B b) {
            return count - b.getCount;  
      public void setCount(int count) {
            this.count = count;
      public int getCount() {
             return count;
    }After i put the a couple of the B classes (after setting count) in a LinkedList of type A, i get a problem trying to sort them. The compiler gives me a variable Collections error on the Collections.sort
    Any ideas on how to solve this would be appreciated.
    Thanks

    Are you talking about this A* algorithm? (I've never heard of it before.)
    http://en.wikipedia.org/wiki/A-star_search_algorithm
    The code you have with the "instanceof" test might work. Not sure what the goal is, or how the algorithm works (I didn't read the above link in detail), so I can't say for sure whether it will "work" for what you are doing. Once you sort the "B" objects, what do you need to do with that sublist (i.e., with the bList in your code)?
    I've never used generics, so I don't know much about them. Is it possible to make "A" Comparable, giving a dummy implementation to compareTo (i.e., maybe even just make it always return '0' [all values are equal]), and then have "B" implement Comparable such that B's compareTo will override A's version? I don't know if it is possible (or even desirable)--just a thought.

  • Address book field sort question

    Does anyone know how I can set upp my City field so I can sort by city? When I call customers for appointments I would like to sort by city so I can group all my calls together. Presently I group it in with Last name which does not work well if I want to do a mailing.
    Note to Palm; Why wouldn't Palm have set City field seperately so you can sort by city?
    Post relates to: Tungsten E2

    McAfee will warn you about anything sometimes lol. I've downloaded about 10 different programs and no viruses yet, so you shouldn't need worry. There should be some sort of advanced search tool on that site. You can also try using google. I do apologize the device does not come with that search method natively. I hope you find what you are looking for though through add ons.
    Let me know if you have any further questions and have a nice day.
    Post relates to: Treo 800w (Sprint)

  • Last sorting question Itunes!?

    Hi there,
    I haven't really found the answer i was looking for in this support community. Hopefully someone has the right answer for me. Sorry for the image being Dutch, but i will explain in English.
    The thing i want to do is:
    1. Being able to see a various artists album in one group (1 coverflow). This i know how to do, on the left side of the image you'll see.
    Naam = name or title if you like
    Artiest = artist
    Album-artiest = album artist (by keeping this in format of Various Artists, this keeps the album ''together'' as one cover)
    Album = Album
    On the right side
    Naamsortering = name sorting (obvious blank, since there are multiple titles in this album, otherwise it sorts no more on the artist which i prefer instead of                          title order)
    Artiestsortering = Artistsort (here i copied the artistname, so in the artist list it sort there on alfabetical order) Doesn't work btw see part 2 of my question.
    Albumartiest-sortering = (here again i copied the artistname, so when you view a album it sorts the tracks on artist order, i like that!)
    Albumsortering = albumsort (this is for sorting the album between other albums on alfabetical order)
    So i think i got this end covered. Now for part two.
    2. Search on my Apple TV within artist for example: ''Ultravox'' (see picture above).
    The problem i'm having here is that this artist ''Ultravox'' couldn't be found by the search query of my Apple TV. Why is that? I stated that the Artist is named ''Ultravox'', but never the less it can't be found unless i change the album-artist field into ''Ultravox''. But this looses the keeping the album ''together'' as one cover.
    So could anyone tell me if its possible to maintain the various artist album and still be able to search for an artist in this album on a Apple tv?
    Already many thanks in advance for your time and help

    Ah, that's the same fix as I describe in One album, still too many covers. I've no idea why iTunes does this one either. Funnily enough it seems to happen sometimes when I rename an existing album which is properly grouped so I know the values must be consistent because I've only just changed them, and did so all at the same time.
    tt2

  • Guide Sorting Question

    I just switched to FIOS and couldn't find an answer to this question.
    I noticed that I can select all of the Action movies or Comedies, etc on a particular day, but it doesn't show the time they are showing. I'd like to be able to sort by a theme at the current time and later. Is this possible?
    Thanks

    Hi,
    There is no real good way to do what you want to do.  You can go to menu> search> interest and that will give you shows coming on in the future.  A great way to search is by using your PC and going to www.verizon.com/fiostvcentral and you can do all sorts of searches in there.
    Thanks,
    Frank_VZ
    Frank
    CET/Social Media
    Notice: Content posted by Verizon employees is meant to be informational and does not supersede or change the Verizon Forums User Guidelines or Terms or Service, or your Customer Agreement Terms and Conditions or Plan.

  • AJAX: Datatable sorting using a4j:commandLink

    Hi,
    I have been using h:commandLink to sort data-table and display UP or DOWN arrow in JSF. But, when i moved to ajax-based, a4j:commandLink to sort by data-table, sort is not happening at all.
    I am attaching code for a single <h:column>
    <h:column id="c1">
    <f:facet name="header">
    <a4j:commandLink id="i21"
    action="#{bean.sortByDate}"
    reRender="suspList1">
    <h:outputText id="i22" value="#{msg.date}" />
    <%
    if(objbean != null && objbean.isSortColumn(Constants.SORT_BY_DATE)) {
    if(objbean != null && objbean.isListAscending()) {
    %>
    <f:verbatim>
    <img id="image1" border="0" src="img/arrowup.gif">
    </img>
    </f:verbatim>
    <%
    } else {
    %>
    <f:verbatim>
    <img id="image2" border="0" src="img/arrowdown.gif">
    </img>
    </f:verbatim>
    <%
    %>
    </a4j:commandLink>
    </f:facet>
    <h:outputText id="i23" value="#{Item.runDate}" styleClass="left">
    <f:convertDateTime pattern="MM/dd/yyyy" />
    </h:outputText>
    </h:column>
    can you please help?
    Thanks

    SureshScreen wrote:
    IMMTLY ASAP.After reading this my motivation to give an helpful answer went from 60% to 0%.
    [Please ask questions the smart way|http://www.catb.org/~esr/faqs/smart-questions.html].

  • Sorting questions; albums together within genres?

    Hi!
    I have some questions concerning the way iTunes sorts my Library.
    I'd like it to sort the classical section on composer, instead of artist. My library is sorted on Genre primary, and perhaps it's impossible to sort only one genre on Genre-Composer-Album . If so, I'll accept that.
    However, this next one should be possible in some way:
    How do I get iTunes to keep tha different albums sorted together in Soundtrack genre? For instance, the Buffy Ultimate Album keeps getting mixed up with Lock Stock and Two smoking barrells album, despite that I've checked "part of a collection" and entered specific CD track numbers for every one of the tracks. I even tried entering "Buffy ultimate soundtrack" into the Grouping field. What does that one do if not keep them together?
    Help please...

    How do I get iTunes to keep tha different albums sorted together in Soundtrack genre?
    I would really like to know the same thing!!!! I have a lot of movies and B'Way soundtracks that I would like to peruse by album title. It seems the ipod only lets me browse by song and I agree, they all get jumbled together.
    I am now in the process of dragging them all into a soundtracks playlist, which is a little better because at least the songs stay in the right order. I would love to be able to drag the album title into the playlist and then go onto the next song list screen from there.
    I am going to suggest it on the feedback page.
    I hope someone can shed some light on what can be done about this.

  • Cellspacing in tomahawk datatable

    Can someone please advise me how to get rid of the cellspacing in the a myspaces datatable?
    example here:
    http://www.irian.at/myfaces/optDataTable.jsf
    Thank You.

    Allow me to answer my own question.. partially.
    The error is due to a custom component parsing error of a null object.
    The object is null I suspect due to the way I'm "replacing" a managed bean with the user selected object.
    As you were.

  • Library sorting question

    I hate that all of my albums are split up when sorted by genre . I have tried 'Album artist' and 'Part of a compilation.'
    All I ask for is how can I sort by Genre, Album, then Track and not Genre, artist, then album?
    -Thanks, Nick
    home built AMD 4200+   Windows XP Pro   Nvidia 6800, 37Gb Raptor, 21" Samsung 204B

    Hi, Nick.
    Have you activated the iTunes Browser display panel?
    If not go to the iTunes View menu > Show Browser option.
    Then go to the iTunes Edit menu > Preferences > Advanced tab > General sub-tab and select Show genre when browsing.
    Now you can select a genre in the Browser and sort the contents of your iTunes Library for that genre by clicking on the Album column heading.
    Is that what you're looking for?

Maybe you are looking for

  • How can I create an installer?

    Hi! I am working with LabVIEW Version 8.6.1. After I have built an Application (exe) I would like to create an installer. Therfore I open the window "my installer properties" in my Project. After I got the "product information" I go ahead to "source

  • Sata Errors on start-up.

    Hello, when I boot my laptop it gives me a repeating error after the Grub screen. [164266.343653] ata1.00: exception Emask 0x0 SAct 0xf SErr 0x0 action 0x6 frozen [164266.343662] ata1.00: failed command: WRITE FPDMA QUEUED [164266.343671] ata1.00: cm

  • How to enhance Standard Extractor for 0CUSTOMER_ATTR

    Hi, I need to enhance the standard extractor of 0CUSTOMER_ATTR in order to populate the newly added attributes. I have few questions:- 1) Will there be any impact of manually adding attributes to 0CUSTOMER on the data flow/where used list of 0CUSTOME

  • Using translate for date in the control file !!

    Hi, I am having data file where in i expect date but get non-numeric character. I am generating control file dynamically (programatically). While creating control file i know that here the type of data will be date so i put datatype as date. But at o

  • Manually post to a different cost center during APP

    Hi, When the proposal is created, we manually go and edit the proposal and enter 2% cash discount. I have done the settign in OKB9 to pick up the cost center for the Discount Received account. Now, is there anyway that I can enter the cost center man