ADF FACES: af:column sortProperty not working on EL expression

If you use an EL expression as a sortProperty on an af:column element, the column is not actually made sortable.
For example, if you have this:
<af:column sortProperty="#{row.phys.name.firstName}" sortable="true">
<f:facet name="header">
<af:outputText value="First Name"/>
</f:facet>
<af:outputText value="#{row.phys.name.firstName}"/>
</af:column>
The data is properly represented in the table, but the column is not sortable. If you create a "firstName" property directly on the objects in the table data and use a specification like what's shown below, then the column is sortable.
<af:column sortProperty="firstName" sortable="true">
Why this difference in behavior? It's very common to have complex object trees and only allowing direct properties to be sortable is a significant limitation.
So, is this a bug, or is it working as designed?

My data model is fairly deep, with subordinate objects for things like Names and Addresses. So, a Physician object contains numerous sub-objects that can be accessed using simple methods GetName() and getAddress().
Given an af:table in which I'm trying to display information on a physician, I'd like to be able to reference the nested data directly and still have it be sortable. Thus, I would like to be able to specify sortProperty="phys.name.lastName" and have the column sort on the value of that nested property.
Is that enough of an explanation? If not, I'd be happy to expand on it.
Also, given that you say it is working as designed, I'm assuming that it was designed to be a simple property name directly accessible on the bound variable, correct?
Thanks.

Similar Messages

  • ADF Faces link to download not works!

    this link: http://download.oracle.com/otn/java/jdeveloper/1013/adf-faces-ea11.zip not works. Please help me.
    Kassius

    I tried it now, and was able to download the zip file. Check it out again.

  • ADF Faces EA15: table update not working properly after dialog return event

    Hi,
    in my application I have a table with read-only records and an edit button for each row.
    The button triggers a dialog where one field of of the record can be edited.
    The record is a bean which is put into processScope.
    After accepting the change in the dialog the bean makes an update in the database changing the order of the records in the table on the launching page.
    The return event triggers a re-rendering of the launching page (which I can see from the output of a phase listener) and the table model gets updated but the table output is not updated visually.
    However, if I call the dialog on another record I don't get the record I see in the table but instead I get the record which I'd expected if the table re-rendered properly.
    Do I have to trigger any kind of event on the table now so that the framework knows that a change has taken place and that the table has to be re-rendered? There is no difference whether I use PPR or not. It used to work in EA14.
    Thanks,
    Achim

    In EA14, the return from the dialog required a full-page refresh (whether the dialog was launched with PPR or not didn't matter). In EA15, it's done with PPR if possible. This avoids the flash (and re-scrolling, etc.), but means you do need to tell us what's going to get changed because of the return. You can use partialTriggers on the table with the "id" of the button to make this happen.

  • ADF Faces Developer Tools download not working

    After I submit the feedback form, it redirects to a page that cannot be found (404).

    What is the URL of the download?

  • Formula Columns are not working in Reports 10g

    Hi,
    We converted the reports developed in Reports 6i to Reports 10g. When we run the report in Reports 10g Builder everything works fine. But when we deploy the same report in Oracle Application Server and invoking the report the formula columns are not working ie., the fields/ placeholder columns which are based on the formula column are not displaying any values in the report.
    Please, someone help us in this regard.
    Thanks & Rgds,
    M T

    What version of Reports do you use..???
    Greetings...

  • ADF Faces: !-- ERROR: could not create stylesheet for oracle-desktop.xss

    Hi,
    I'm using ADF Faces EA6. Sometimes when I create the EAR, it doesn't include the file "oracle-desktop-ea6-ie-6-windows.css" which muest be present in the "adf/styles/cache" directory. If I check the source code from the browser, it starts like this:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html dir="ltr" lang="es-ES">
    <head><title>Sistema de Seguridad</title><meta name="generator" content="Oracle ADF Faces"><!-- ERROR: could not create stylesheet for oracle-desktop.xss --><script type="text/javascript" src="/fmv/adf/jsLibs/Commonea6.js"></script><script type="text/javascript">_defaultTZ()</script></head>
    Please note the comment: <!-- ERROR: could not create stylesheet for oracle-desktop.xss -->
    Does somebody know the reason?
    TIA,
    Brian

    If everything is set up properly the css will get generated if it doesn't exist. You do not have to be running in the IDE for the css to be correctly generated. Running the app first is generating the css before you deploy, so you've taken away the symptom but not solved the problem. If you try running on another browser, for example, you'll probably run into the same problem.
    Does your ear get unzipped when you deploy? Do you have a writable file system for the css to get written to? There is a known issue with WebLogic where it doesn't expand the EAR.
    Please check to see if there are errors in the logs.

  • TS3367 when open the  face time microfiche is not working but if you use headset that time working

    when open the  face time microfiche is not working but if you use headset that time working

    Read through this... http://support.apple.com/kb/HT4319

  • ADF Faces: af:column and styleClass

    The styleClass attribute of the af:column tag does not seem to have any effect. Do styleClass and inlineStyle only work with certain ADF Faces tags?
    For example,
    <af:column styleClass="headerXXSmall">
    <f:facet name="header"><af:outputText value="First Name"/></f:facet>
    <af:commandLink action="#{tabularBB.editLinkAction}">
    <af:outputText value="#{row.firstName}"/>
    </af:commandLink>
    </af:column>
    produces the following html. My "headerXXSmall" style class is ignored in favor of the ADF "xd" style class.
    <td headers="M__Ida" class="x1l x4x">
    <span class="headerXXSmall">
    <a onclick="submitForm('_id3',1,{source:'_id3:_id4:0:_id8'});return false;" href="#" class="xd">Fred
    </a>
    </span>
    </td>

    Hallo,
    Did anyone find ever a solution for that?
    I have tried it with the following:
    <af:column headerText="#{bindings.findAllFonds1.labels.quSt}" sortProperty="quSt" sortable="false" styleClass="myStyle">
    ... looking at the generated HTML, I don't see anything.
    Thx, Willi

  • Column Highlighting Not Working in Chrome or Firefox but works in IE

    Version  4.1.1.00.23
    Hello,
    I have a classic report that I'm trying to apply dynamic column highlighting on.
    I'm following the discussion from Jari https://forums.oracle.com/thread/2209261
    The columns to be highlighted are being determined from a table that gets set every month and the value are being selected in the report query.
    The javascript that is in the Region Footer is:
    [code]
    <script type="text/javascript">
        $(function()
            $('##REGION_ID# input[name="f01"]').each(function(i)
                if ($x('f01').value == 1)
                    var forcast = "JANFORECAST";
                    var actual  = "JANACTUALS";
                    var mth_var = "JANVAR";
                    var mth_var_pnct = "JANVARPER";
                if ($x('f01').value == 2)
                    var forcast = "FEBFORECAST";
                    var actual  = "FEBACTUALS";
                    var mth_var = "FEBVAR";
                    var mth_var_pnct = "FEBVARPER";
                if ($x('f01').value == 3)
                    var forcast = "MARFORECAST";
                    var actual  = "MARACTUALS";
                    var mth_var = "MARVAR";
                    var mth_var_pnct = "MARVARPER";
                if ($x('f01').value == 4)
                    var forcast = "APRFORECAST";
                    var actual  = "APRACTUALS";
                    var mth_var = "APRVAR";
                    var mth_var_pnct = "APRVARPER";
                if ($x('f01').value == 5)
                    var forcast = "MAYFORECAST";
                    var actual  = "MAYACTUALS";
                    var mth_var = "MAYVAR";
                    var mth_var_pnct = "MAYVARPER";
                if ($x('f01').value == 6)
                    var forcast = "JUNFORECAST";
                    var actual  = "JUNACTUALS";
                    var mth_var = "JUNVAR";
                    var mth_var_pnct = "JUNVARPER";
                if ($x('f01').value == 7)
                    var forcast = "JULFORECAST";
                    var actual  = "JULACTUALS";
                    var mth_var = "JULVAR";
                    var mth_var_pnct = "JULVARPER";
                if ($x('f01').value == 8)
                    var forcast = "AUGFORECAST";
                    var actual  = "AUGACTUALS";
                    var mth_var = "AUGVAR";
                    var mth_var_pnct = "AUGVARPER";
                if ($x('f01').value == 9)
                    var forcast = "SEPFORECAST";
                    var actual  = "SEPACTUALS";
                    var mth_var = "SEPVAR";
                    var mth_var_pnct = "SEPVARPER";
                if ($x('f01').value == 10)
                    var forcast = "OCTFORECAST";
                    var actual  = "OCTACTUALS";
                    var mth_var = "OCTVAR";
                    var mth_var_pnct = "OCTVARPER";
                if ($x('f01').value == 11)
                    var forcast = "NOVFORECAST";
                    var actual  = "NOVACTUALS";
                    var mth_var = "NOVVAR";
                    var mth_var_pnct = "NOVVARPER";
                if ($x('f01').value == 12)
                    var forcast = "DECFORECAST";
                    var actual  = "DECACTUALS";
                    var mth_var = "DECVAR";
                    var mth_var_pnct = "DECVARPER";
                $(this).parents("tr:first").find('[headers="' + forcast + '"]').css({"background-color":"silver"});
                $(this).parents("tr:first").find('[headers="' + actual + '"]').css({"background-color":"silver"});
                $(this).parents("tr:first").find('[headers="' + mth_var + '"]').css({"background-color":"silver"});
                $(this).parents("tr:first").find('[headers="' + mth_var_pnct + '"]').css({"background-color":"silver"});
    </script>
    [/code]
    The highlighting works in Internet Explorer, but the same columns are not being highlighted in Chrome or Firefox and there are no errors being reported in either browser.
    Can someone help me with this?
    Is there additional information I can provide that I haven't.
    Thanks,
    Joe

    Hi Fac,
    This is a classic report. After debugging all 3 browsers I finally found the issue.  First, my javascript isn't very good.
    When I looked at the source of the page, I saw that 'F01' contained the value to determine which month's columns to highlight.
    I then thought that if I evaluated the contents of 'F01', using $x('f01').value, that I could set my variables in my if statements.
    During my debugging of the javascript in each of the browsers I came upon the 'this' object being displayed in the watch window. When I expanded the node to view the contents I saw that it also contained the value of the month to highlight as well.
    I have since changed my 'if' statement to if ($x(this).value == <month number> and the hightlighting is working in all 3 browsers correctly.
    Is this still not the right approach as Jari discusses in his post I referenced above?
    Thanks,
    Joe

  • JDeveloper 11.1.2.3, ADF Faces: declarative component does not support af:clientListener?

    I am trying to create a declarative component with the following code:
    <?xml version='1.0' encoding='UTF-8'?>
    <af:componentDef xmlns:af="http://xmlns.oracle.com/adf/faces/rich" var="attrs" componentVar="comp" definition="private"
                     xmlns:afc="http://xmlns.oracle.com/adf/faces/rich/component">
        <af:xmlContent>
            <afc:component>
                <afc:display-name>DoubleClickTableDialogClientServerListener</afc:display-name>
                <afc:component-extension>
                    <afc:component-tag-namespace>org.mskcc.crdb.common.declarativecomponent</afc:component-tag-namespace>
                    <afc:component-taglib-uri>http://www.mskcc.org</afc:component-taglib-uri>
                </afc:component-extension>
            </afc:component>
                <af:clientAttribute name="serverListenerType" value="TableDoubleClickEvent"/>
                <af:clientListener method="handleTableDoubleClick" type="dblClick"/>
                <af:serverListener type="TableDoubleClickEvent"
                                   method="#{EditAddDialogTemplateBean.handleTableDoubleClick}"/>
        </af:xmlContent>
    </af:componentDef>
    At runtime I recieve the following error:
    javax.faces.view.facelets.FaceletException: ADF_FACES-60023:Component: DoubleClickTableDialogClientServerListenerComponent[oracle.adf.view.rich.component.fragment.UIXInclude$ContextualFacesBeanWrapper@7170a7, id=dctdcsl1] does not support client listeners.
      at oracle.adfinternal.view.faces.facelets.rich.BaseClientListenerHandler.apply(BaseClientListenerHandler.java:53)
    This component was intended to be dropped off within an af:table component. I would like to hear suggestions on workarounds, one other way I thought about was to create a code template for the three tags, however, the con to this approach is each developer would need to configure this template within jdeveloper. Ideas are appreciated.
    Also a side question, how can I embed code properly with the new forum? [code] tag does not seem to work now.

    Wes, can't help with the real question, but can tell you how to format code
    Change to the advanced editor (top right over the editor field), then you get more options. The one you are looking for is behind the blue '>>'. Here you select the language you want to insert and you get nice code formatting and color.
    Timo

  • Not Yet Documented ADF Sample Applications download link not working

    Steve Muench Not Yet Documented ADF Sample Applications located at http://blogs.oracle.com/smuenchadf/examples/
    The download link for the samples does not work. It directs us to Oracle JDeveloper Products Page instead.
    Clicking on the title of any sample application used to enable the download of the sample file. Now it points to http://www.oracle.com/technetwork/developer-tools/jdev/overview/index.html
    Is there an alternative way to download the sample applications?
    Thanks in advance for your help.
    Mitesh

    Unfortunately the link https://smuenchadf.samplecode.oracle.com/samples does not work. It gives message URL is not valid.
    Your samples are a very important source of reference for us. Hopefully all the samples can be migrated to the new site soon.
    I am using JDev 11.1.1.2. I am using editable checkboxes is a table with RowSelection = Single. When I click on a selectBooleanCheckbox on a different row other than the current table row, the checkbox value changes at first but immediately reverts back to the previous state. It works fine so long as I remain on current row of the table. If I turn RowSelection off then I don't face this issue.
    For information, I wanted to take a look at your sample 145. Using a CheckBox in an Editable Table with Boolean/Button Binding.
    Thank you for your help.
    Mitesh.

  • ADF faces client Demo application not able to download from oracle site

    Hi
    Why http://www.oracle.com/technetwork/developer-tools/adf/downloads/index.html  link from Oracle site shows blank area.
    I want to download source code for ADF Faces Rich Client Components Demo application.
    Can someone please provide direct URL for source code not war file.
    Thanks
    Vikas M

    Looks like the download is temporary down. Worked yesterday.
    Timo

  • ADFS 3.0 Windows Authentication not working

    I recently upgraded from ADFS 2.1 and TMG 2010 as the reverse proxy to ADFS 3.0 and Web Application Proxy as the reverse proxy.  I have upgraded to ADFS 3.0 successfully and it is working without anything changing to the end users.  This is still
    using TMG 2010 as the reverse proxy. 
    When I make the changes to use WAP as the reverse proxy, I get prompted with a forms based authentication page instead of the usual windows authentication screen.  This poses a problem since this creates an extra step for people when logging on to our
    sites that use SSO since there's no "save password" box.  I can move the traffic back to TMG and it's back to working like it should but we are looking to remove TMG very soon.
    When I am on the "inside" network connecting to ADFS without the reverse proxy, it works just fine.  However, ALL of our users are "outside" of the network will be using the reverse proxy.  None of the computers are domain joined.
    The issue seems to only be when using Web Application Proxy server to service ADFS SSO requests.....TMG servicing these requests does not have this issue.
    What's the difference?  How can I get this functionality back with WAP?

    Hi Eric,
    Based on my research, when publishing applications that use Integrated Windows authentication, the Web Application Proxy server uses Kerberos constrained delegation to authenticate users
    to the published application.
    To use Integrated Windows authentication, the Web Application Proxy server must be joined to an AD DS domain.
    More information for you:
    Web Application Proxy: Some applications are configured to perform backend authentication using Integrated Windows authentication but the server is not joined to a domain
    http://technet.microsoft.com/en-us/library/dn464299.aspx
    Best Regards,
    Amy

  • ADF Table with browser zoom not working properly

    Hi All,
    I am using ADF Table to show data from database. I am using JDeveloper 11.1.1.4.0.
    When user uses browser zoom functions (i.e. Ctrl + or Ctrl -) for zoom in or zoom out, The UI of Table disturbed and columns are not in line.
    Here is the snapshot of disturbed table image http://i.imgur.com/07YfB.jpg
    I have tested it with Firefox and Internet Explorer and in both the cases if you zoom in the columns are not in line anymore.
    I have added *<accessibility-profile>large-fonts</accessibility-profile> into trinidad-config.xml* and
    tried but it gives me the same result.( Reference Oracle Docs http://docs.oracle.com/cd/E16162_01/web.1112/e16181/af_access.htm#BEIDFIIB )
    Can anyone suggest solution for how to solve this problem so that the columns will be is line when uses browser's zoom?
    Thanks in advance,
    Viral

    Hi,
    I am not using any kind of css for table.
    It is default skin and defalut table properties that ADF provides.
    - Viral

  • IF NEW VARIABLE IN SQL QUERY, DISPLAYS AS LAST COLUMN + rpad not working

    Hello everybody and thank you in advance,
    1) if I add a new variable to my sql query to select a column which was already in the table, it shows it in the report table as the Last column to the right. That is, if I add "street" to
    something like city, postcode, street, store, manager, etc, instead of placing street between postcode and store, it places it as i said as the last column to the right.
    2) When values are entered into the cells of the tables, yes, they do expand it to their needed lenght, But, only if it is one word. If it is two, like when i enter the value "very good"
    then it takes two lines so as with a carriage return within the cell, thus, making it too high the row. I tried to padd spaces with rpad but it did not work. something like rpad(stock, 20,' ')
    I must say that the table is in the same page where there is a Form, so as the table grows in lenth it is actually squeezing the form located right on its left.
    3) rpad did not work with the most simple syntax, but less would with what i need because it turns out i am using DECODE in order to do a conversion between value displayed and
    value returned in my select list of values, something like : DECODE (TO_CHAR (stock),'1','Deficient','2','Average','3','Good','4','Very Good',null) AS stock,
    so, i have tried to put the rpad there in several places but either it gave parsing error or it left the column empty not picking any values.
    thank you very much
    Alvaro

    Alvaro
    1) That is standard behaviour of apex builder. You can change the display order with the arrows in the report attributes column report.
    2) You will have to play with the style attributes of the column to accomplice this. For instance style="white-space:pre;" in the Element Attributes of the column attributes. White-space:normal would thread several space (' ') as 1. So no matter how many you add with rpad they will be shown as 1.
    Or set a width either as attibute or in a style class for that column.
    Nicolette

Maybe you are looking for

  • How to install LV runtime engine and run .vi's in linux

    I am attemtpting to load run time engine and run a .vi on Linux system. Here is what I have done so far. 1. I don't have rpm on my system (gentoo) so I used the app on the install cd called INSTALL.norpm to install labview70-rte-7.0.1.i386.rpm. It lo

  • Error While Importing from EIF file into AW

    Hi All, I am facing the following error while importing from EIF file into AW using AWM as well as from sql prompt. java.sql.SQLException: ORA-36786: (IOSEC04) File POCAW/abc.eif does not exist or cannot be accessed. ORA-06512: at "SYS.DBMS_AW", line

  • Why do I constantly receive a pop up telling me "this URL is not valid and cannot be loaded?"

    Why do I constantly receive a pop up telling me "this URL is not valid and cannot be loaded?" How can I stop this pop up?????? HELP!!!!! == This happened == Every time Firefox opened == A week ago.

  • Why is Captivate 4 so expensive for Aussies?

    Sorry people, complain / whinging here, not a question: Can anyone explain why my Captivate 4 upgrade costs so much more just because I'm based in Australia? How can something priced USD299 be A$482? My company's been a loyal Captivate user since the

  • Why doesn't copy command in context menu work?When you

    When you right-click on a song and scroll down to copy and select, the paste function is not enabled. So you literally can't copy a song from within your itunes library to a folder. You have to instead go to the extra step and right-click show in fin