Using a List as the value class of a Map - How?

Hello,
I have a managed-property of the following type
Map<String, List<String>> myMap;How can I set the values for the List in the faces-config.xml?
I tried sth like this, but this is no valid XML according to the schema.
Any ideas?
Regards,
Jan
<managed-property>
<property-name>myMap</property-name>
  <property-class>java.util.TreeMap</property-class>
  <map-entries>
  <key-class>java.lang.String</key-class>
  <value-class>java.lang.ArrayList</value-class>
    <map-entry>
      <key>key1</key>
      <value>
      <list-entries>
        <value>value1</value>
        <value>value2</value>
      </list-entries>
      </value>
    </map-entry>
  </map-entries>
</managed-property>

You don't need a cfloop. Try an IN(...) clause instead.
Obviously you have to validate that the #riderlist# is not empty
first or the query will error.
SELECT riderId,
SUM(IIf(month(rideDate)=1, rideDistance, 0)) AS janSum,
SUM(IIf(month(rideDate)=2, rideDistance, 0)) AS febSum,
SUM(IIf(month(rideDate)=3, rideDistance, 0)) AS marSum,
SUM(IIf(month(rideDate)=4, rideDistance, 0)) AS aprSum,
SUM(IIf(month(rideDate)=5, rideDistance, 0)) AS maySum,
SUM(IIf(month(rideDate)=6, rideDistance, 0)) AS junSum,
SUM(IIf(month(rideDate)=7, rideDistance, 0)) AS julSum,
SUM(IIf(month(rideDate)=8, rideDistance, 0)) AS augSum,
SUM(IIf(month(rideDate)=9, rideDistance, 0)) AS sepSum,
SUM(IIf(month(rideDate)=10, rideDistance, 0)) AS octSum,
SUM(IIf(month(rideDate)=11, rideDistance, 0)) AS novSum,
SUM(IIf(month(rideDate)=12, rideDistance, 0)) AS decSum
FROM mileageLog
WHERE riderId IN (<cfqueryparam value="#riderList#"
cfsqltype="the column type here" list="true"> )
AND Year(rideDate)=#useYear#
GROUP BY riderId
ORDER BY riderId

Similar Messages

  • Powerpivot pivottable - I can't add or drag a "value field" from the pivottable field list into the "values" section.

    I built a pivottable using Powerpivot.
    Initially, I can add or drag any data field I want to columns, Rows or the Values area inside the field list (those 4 squares). However, as times goes by...suddenly... I just no longer can add or drag a "value field" from the pivottable field list into the
    "values" section. 
    Does anybody know how to fix this problem ?

    Hi Bin Long,
    I tried what you suggested.
    I believe that there is a glitch in the Powerpivot field list (where you find the 4 squares for columns, rows, values, filter)
    When I initially create a pivottable with powerpivot, everything works fine when I am adding field list items to the the columns, rows, values sections, filters.
    However.....IF I close the powerpivot field list or if I save and close the excel file...then I cannot add more items to the "values" section.
    I can comment about one thing that seems different in my powerpivot field list. When I can no longer add items to the "values" section, I realized that in the TOP section of the field list I see in bold letters a summary of the items that are SUM ∑ in the "values"
    section.
    Does anybody know how to fix this ?
    Thanks.

  • Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.

    Hi,
    I'm running WebLogic 5.1 sp10 on a Solaris box and I get the
    following error:
    java.rmi.RemoteException: java.lang.InternalError: Can't connect to
    X11 window server using ':0.0' as the value of the DISPLAY variable.
         at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
         at sun.awt.X11GraphicsEnvironment.(X11GraphicsEnvironment.java:59)
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Class.java:120)
         at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:58)
         at java.awt.Font.initializeFont(Font.java:264)
         at java.awt.Font.(Font.java:298)
         at com.hrw.xls.EmailXLSThread.getCellWidth(EmailXLSThread.java:162)
    caused by the following code fragment:
    Font f = new Font(fontName, fontStyle, fontHeight);
    FontMetrics fm = (new Panel()).getFontMetrics(f);
    Have I just forgotten to set an environment variable? I would prefer
    not to install bulky pieces of software, but if that's what it takes
    to get over this error, so be it.
    Thanks, Dave A.

    A Java AWT, X11 problem posted in the weblogic ejb newsgroup. I haven't been in here for long, but
    that has to be a first.
    If you have the DISPLAY env variable set to :0.0, you have to be at the console on a Solaris box
    running the XServer. 'xdm' I think is the code that has to be running. Also, I think the format is
    <hostname:0.0> or better <hostname:0> unless you are on a multi-headed workstation. Something like:
    export DISPLAY=hostname:0
    where hostname is the name of the host running an XServer and the .xhosts file allows access to the
    XServer from the display client.
    Apparently, you are not at the console?
    Anyway, I don't think there is a newsgroup here that I could even recommend to cross-post this to as
    it is not a WebLogic question. I think I would try the Discussion Forums at http://java.sun.com.
    Bill
    "D. Alvarado" wrote:
    Hi,
    I'm running WebLogic 5.1 sp10 on a Solaris box and I get the
    following error:
    java.rmi.RemoteException: java.lang.InternalError: Can't connect to
    X11 window server using ':0.0' as the value of the DISPLAY variable.
    at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
    at sun.awt.X11GraphicsEnvironment.(X11GraphicsEnvironment.java:59)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:120)
    at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:58)
    at java.awt.Font.initializeFont(Font.java:264)
    at java.awt.Font.(Font.java:298)
    at com.hrw.xls.EmailXLSThread.getCellWidth(EmailXLSThread.java:162)
    caused by the following code fragment:
    Font f = new Font(fontName, fontStyle, fontHeight);
    FontMetrics fm = (new Panel()).getFontMetrics(f);
    Have I just forgotten to set an environment variable? I would prefer
    not to install bulky pieces of software, but if that's what it takes
    to get over this error, so be it.
    Thanks, Dave A.

  • Can't connect to X11 window server using ':0.0' as the value of the DISPLAY

    i try to use jfreechart to create a piechart on a aix os with jdk1.3.1 and the aix system does not have a xwindow installed
    and the found the following error
    java.lang.InternalError: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.
    at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
    at sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:77)
    at java.lang.Class.forName1(Native Method)
    at java.lang.Class.forName(Class.java(Compiled Code))
    at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:72)
    at java.awt.Font.initializeFont(Font.java:285)
    at java.awt.Font.<init>(Font.java:319)
    at org.jfree.chart.plot.PiePlot.<clinit>(PiePlot.java:230)
    i got the tip of passing -Djava.awt.headless=true to vm to disable system graphic calls but after restart weblogic i still get the same error
    i am wondering if this case has something to do with jdk 1.3.1, and perhaps newer versions of jdk can take the parameter and operate correctly
    is that right?

    is headless option supported in jdk1.3.1?No,
    It was added in JDK 1.4:
    http://java.sun.com/j2se/1.4.2/docs/guide/awt/AWTChanges.html#headless
    http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4281163
    Kaj

  • When i go to the app store to update the one app that needs to be updated, the screen is blank.  It used to list all the apps that need updating and have a button called update all.  Now nothing.  Just a blank screen.

    when i go to the app store to update the one app that needs to be updated, the screen is blank.  It used to list all the apps that need updating and have a button called update all.  Now nothing.  Just a blank screen.  How can I fix this?

    There's been a problem with this all day.  Seems to be a server problem  -  wait a day and try again, or use itunes on the computer to update, that works.

  • Updated my iPhone 5 to ios7, in the App store after installing updates I now have a never ending list of the Apps I've updated.  How do I get rid of the list after they've been updated?  In the previous version I did not have an annoying permanent list.

    Updated my iPhone 5 to ios7, in the App store after installing updates I now have a never ending list of the Apps I've updated.  How do I get rid of the list after they've been updated?  In the previous version I did not have an annoying permanent list.

    iOS 7 allows you to have your apps update automatically. Therefore, the list of what has been updated stays so that you can see what was updated, when and what the release notes say. It has been suggested that they list has a limit, much like Recents. Currently, there is no way for the user to delete the entries manually. Just try not to look at them.

  • After updating with ios7, I cannot proceed because I cannot enter my password since it uses Greek letters but the keyboard available is Latin. How can I change the keyboard to Greek?

    After updating with ios7, I cannot proceed because I cannot enter my password since it uses Greek letters but the keyboard available is Latin. How can I change the keyboard to Greek?

    try tapping holding on the key that would be most similar to the letter you want to enter, that will bring up a menu of other characters similar to that character and maybe the greek letter will be included in that menu

  • I feel that other people use my computer from the outside without my permission. How do we know?

    I feel that other people use my computer from the outside without my permission. How do we know?
    Thanks for your help

    First thing to do is find the information you received on your internet service, which should have the info on logging in to your router itself.  Login, usually from a browser like Safari, and find where to change the admin password, not the netowrk or WiFi password.  Change the admin password from the factory default, and write it down so you don't forget it...if there is ever a problem with your service you have to have that.
    Once the router is secure, on your iMac how do you operate?  Did you just set it up out-of-the box without adding user accounts?
    With the router secure there is little risk of an intruder using your equipment...but it would be worth it to change your network password, especially the wireless part of the network, and to check to see what security method is being used.  The most secure is WPA2.

  • Using select list as default value in tabular form.

    Hi,
    I am using Application Express 4.1.0.00.32. I have two questions that are related.
    I have a Select item *'P1_SELECT'* and a tabular form My Items.
    Question 1. The My Items tabular form col1 Attributes are set Display As Text Field, and the Tabular Form Attributes are set Default Type = item(application or page item name), Default = P1_SELECT. I have checked the session state value is set on P1_SELECT ie. Fred. What I need to know is, why, when adding a row to the tabular form My Items does col1 not display 'Fred' as the default value from the select item P1_SELECT? I can change col1 of the Tabular form to be Display as Text (save state) and this will work. However that leads me on to:
    Question 2. After adding say 3 rows to the form, I then change the select P1_SELECT value to Bob and Bob is now set in session state on the P1_SELECT item, but when I again add row to the form the value Fred is still the value not Bob. It seems that the tabular form keeps the default value as Fred and not Bob. How can I get this to look or work like:
    col1_
    Fred
    Fred
    Fred
    Bob
    Your help is needed.
    Thanks.

    Howard (DBA in Training) wrote:
    Do you submit the page or set the value after changing the selection? If not, the display value seems to be Bob but the working value is still Fred. That's what you are seeing right? In the "Settings" section, what do you have for "Page Action when Value Changed". I've been using "Redirect and Set Value" because I was staying on the same page after the selection.
    Additional info which might be helpful (or NOT). ====================
    NOTE: I am just a novice's novice with APEX and I had much agony with Select Lists. It was challenging to have the Select List value displayed because there seem to be so many different sources of the Select List value, namely:
    1) the current value in the session state
    2) the value you can specify in "Source value or expression" in the "Source" section of the Select List item
    3) the value you can specify in the "Post Calculation Compution" in the "Source" section of the Select List item
    4) the value you can specify in the "Default value" of the "Default" section of the Select List item
    [Now, if I've misdescribed any of these, remember, this is from a novice's perspective.]
    It's like putting a clock (back) together. Get any of the pieces wrong and it will probably not work right.
    I had an addiitonal challenge in that I wanted the same Select List displayed on multiple pages and for the currently selected value (from the former page) to already be set on the new page when it was displayed. What fun!
    To see what I did here: http://apex.oracle.com/pls/apex/f?p=43250:101 login Dever/Ima9Dever
    Remember, I'm doing many things you will likely not need to do. I iniitalized the Select List for the first time it displayed. I copied the Select List value from old page to new page by storing it in an application item F217_SYS_NIC_NM.
    Best wishes,
    HowardHi Howard,
    You don't have submit the page for just setting one item's session state. you can use a Dynamic Action OR use Page Items to Submit property if available (this is available in various places such as sql region,chart region etc)
    In context to this question you don't have to do any of those..just see my example above
    Thanks

  • [WPF] Use IValueConverter but hide the value in cell

    Hi, 
    I have a column with a range of age.
    I'm using a Convert to set a background color to a single cell of my column 'age'...
    I would color the cell but hide the numeric value.
    I can set a custom background, but I can't hide the value.
    How can I make this?
    This is my code:
    XAML:
                        <DataGridTextColumn Binding="{Binding Age}" Header="Age - Color Range" Width="200">
                            <!-- COLOR CELLA -->
                            <DataGridTextColumn.ElementStyle>
                                <Style TargetType="{x:Type TextBlock}">
                                    <Setter Property="Background" Value="{Binding Age, Converter={StaticResource ColorToCell}}"/>
                                </Style>
                            </DataGridTextColumn.ElementStyle>
                        </DataGridTextColumn>
    C#
    public class ColorToCell : IValueConverter
            public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
                int tempValue = int.Parse(value.ToString());
                string tempString = "Red";
                if (tempValue >= 0 && tempValue <= 20)
                    tempString = "#FF0000";
                if (tempValue > 20 && tempValue <= 40)
                    tempString = "#F09300";
                if (tempValue > 40 && tempValue <= 60)
                    tempString = "#EDDF00";
                if (tempValue > 60 && tempValue <= 80)
                    tempString = "#CC00FF55";
                if (tempValue > 80 && tempValue <= 100)
                    tempString = "#85AB00";
                SolidColorBrush brush = new SolidColorBrush();
                BrushConverter conv = new BrushConverter();
                brush = conv.ConvertFromString(tempString) as SolidColorBrush;
                return brush;
            public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
                return DependencyProperty.UnsetValue;
    Thanks.

    If you want to hide the value in the cell you could just set the Visibility of the TextBlock to Collapsed based on some converter logic:
    <DataGridTextColumn.ElementStyle>
    <Style TargetType="{x:Type TextBlock}">
    <Style.Triggers>
    <DataTrigger Binding="{Binding Age, Converter={StaticResource ageConverter}}" Value="True">
    <Setter Property="Visibility" Value="Collapsed"/>
    </DataTrigger>
    </Style.Triggers>
    </Style>
    </DataGridTextColumn.ElementStyle>
    Return true from the Convert method of the ageConverter to hide the TextBlock. You can then set the background of the cell using a CellStyle:
    <DataGridTextColumn.CellStyle>
    <Style TargetType="DataGridCell">
    <Setter Property="Background" Value="{Binding Age, Converter={StaticResource ColorToCell}}"/>
    </Style>
    </DataGridTextColumn.CellStyle>
    The other option is to set the Foreground property of the TextBlock to the same colour as the Background:
    <DataGridTextColumn.ElementStyle>
    <Style TargetType="{x:Type TextBlock}">
    <Setter Property="Background" Value="{Binding Age, Converter={StaticResource ColorToCell}}"/>
    <Setter Property="Foreground" Value="{Binding Age, Converter={StaticResource ColorToCell}}"/>
    </Style>
    </DataGridTextColumn.ElementStyle>
    Please remember to mark helpful post(s) as answer to close your threads.

  • Issue using JS to change the value of an output text component dynamically

    I am developing an application and I need to change the output text component value at run time when the mouse moves over a field. I am using javascript and then using UIComponent.setproperty to change the value.
    I am not able to do this and am getting nothing.
    Kindly let me know what am I doing wrong
    I am using ADF 11g (10th November release).
    Regards,
    Deepak

    Hi i'm doing the same thing with an input text
    here is my code
    jspx:
    <af:inputText value="#{bindings.MiddleName.inputValue}"
    label="#{bindings.MiddleName.hints.label}"
    required="#{bindings.MiddleName.hints.mandatory}"
    columns="#{bindings.MiddleName.hints.displayWidth}"
    maximumLength="#{bindings.MiddleName.hints.precision}"
    shortDesc="#{bindings.MiddleName.hints.tooltip}"
    id="it4" autoSubmit="true">
    <f:validator binding="#{bindings.MiddleName.validator}"/>
    <af:clientListener type="valueChange" method="mo_UpperCase"/>
    </af:inputText>
    js:
    function mo_UpperCase(event){
    var inputField = event.getSource();
    if (event.getNewValue().toUpperCase()!=event.getNewValue())
    inputField.setValue(event.getNewValue().toUpperCase());
    In my case i change the input text to upercase when the value is changing
    I hope it works with output text also,
    change my examples clientlistener type from valueChange to mouseOver
    If you have more than one component and you need to pass parameters check this thread also:
    bug at af:clientAttribute 11.1.1.2.0
    Tilemahos

  • Any one have the list for the values of SRW.SET_FILL_PATTERN

    Dear all ,
    I want to change the pattern of field in the report according the condition through SRW.SET_FILL_PATTERN('VALUE?'); but I am unable to do so, by web seraching I got the values for SRW.SET_FILL_PATTERN are 'transparent', 'solid', 'solid dimond' but it is not working can any one help me how can I change the pattern of report field according the conditions ???
    Regards,
    Najeebullah Soomro

    Hi,
    check the following support note as your issue maybe related to that issue too.
    Reference
         NULL Value Items Are No Longer Shaded After Applying 10.1.2.3 Patchset (Doc ID 788852.1)
    Regards, RZ

  • How to get the values from table region and how to set

    Hi,
    I have a requirement as Seeded Page Having One Table Region having around 8 columns, In That Item Description field is there. My Requirement is I need add one more field for that Region and assign the value depending Item Description.
    I will create one new Item in that region and will give name as Item, But how to set the values to Item Depending on Item Description.
    Is it possible to through CO Extension, If yes..Pls help how to get it.
    Thanks in Advance,
    Hanimi

    Hi Hanimi,
    1. You need to extend the VO, add a new Attribute.
    2. In VORowImpl of the extended VO, you can find the getter for your new attribute (example getItem())
    3. In this getter method you can write some code like:
    if("ABC".equals(getItemDescription())
    return "XYZ" ;
    -Prince
    http://princekapoor82.blogspot.com

  • When importing a CD, the CD Lookup Results dialogue box came up and I choose the wrong CD title.  Now iTunes is importing a different song list than the one on my CD.  How can I retrieve the CD Lookup Results to choose the correct title?

    When importing a CD, the "CD Lookup Results" dialogue box came up and I choose the wrong CD title.  Now iTunes is wanting to import a different song list than the one on my CD.  I've shut down my computer and opened iTunes from the hard drive Program Files and tried to import the CD again with the same problem.  How can I retrieve the "CD Looup Results" diaglogue box to choose the correct CD title to fit the song list on my original CD?

    You might also be able to do it without importing the songs again I think. Just highlight the tracks, right click them and choose "Get Track Names". This feature only works on CDs that were imported via iTunes.

  • ITunes 11.0.1 Where has the radio option gone from my source list on the left side of iTunes ? How can I restore it?

    Where has the radio option gone from the source list on the left hand side of my itunes? How can I restore it

    If you have it turned on it is now under the music section on the top where you have Songs, Albums etc. It is on the far right next to Match.
    If you cannot see it then Preferences and Tick Radio Option
    If it is still npt there the Preferences, Parental and untick Disable Radio

Maybe you are looking for

  • PSC 1610 All-in-One error:0x880f253c

    I'm getting an error message and cannot print. The printer starts to print then stops, tells me that the print job failed then tries to start again and stops. I get an error message on the printer display panel error:0x880f253c. After I've cancelled

  • Error in perform

    Hi PERFORM HEADER(ZSREPTIT) USING W_REPID         " Report Name                                   SY-LINSZ.       " Line size This is my perform used in my program showing error in extended check stating that 'Different number of parameters in form a

  • Zenworks slow on vmware virtual machine

    Hello, we are migrating a windows 2000 terminal server from a physical box to a virtual one on vmware esx 3.0.1 If zenworks (6.5sp2 or 7sp1 ) is installed on the virtual server it is extremely slow for applications to run. However once you remove zen

  • Purchased Photoshop/Lightroom subscription, PSCC fine, LR still shows trial and requires a serial number

    Hi all, I had downloaded Lightroom and Photoshop CC 2014 trials, then bought the $9.99 subscription.  Photoshop CC works fine after restart, but Lightroom still shows trial in play and asks for a serial number. I can't see a serial number in any emai

  • OVI locked my phone, help !

    I had the bad idea to update the software of my phone, after completing the process it seems that the OVI suite decided to change the security code of the phone [I refer to the phone lock code, not the SIM card code] and now my phone is locked. I hav