Preferred workaround for inability to bind a List as a parameter.

I've discovered that the JPA spec doesn't allow one to bind a List to an query like "select foo from Foo foo where status in (:statusList)". What is the preferred workaround?
Do I need to change my query to something like "select foo from Foo foo where status in (:status1, :status2, :status3, ..., :statusN), and bind each element individually?
Thanks.
Josh Davis

EclipseLink's Expression criteria API allows the use of lists as arguments. So you should be able to define this query using the native Expression or DatabaseQuery API.
http://wiki.eclipse.org/EclipseLink/Examples/JPA/EMAPI#EntityManager_createQuery.28Expression.29
Otherwise you will need to dynamically generate your JPQL as you listed.
Also see bug,
https://bugs.eclipse.org/bugs/show_bug.cgi?id=219814
James : http://www.eclipselink.org

Similar Messages

  • Workaround for inability to scan on USB 3.0 port

    I've got a late 2012 era Mac Mini (specifications here) that I'm trying to set up as a printing and scanner server for my Brother MFC-7340.
    Long story short, I have discovered that scanning does not work when the MFC-7340 is plugged in to a USB 3.0 port. In this case, scanimage returns the following error:
    scanimage: open of device brother3:bus4;dev2 failed: Invalid argument
    and does not scan. This occurs on both my Mac Mini and my laptop (both running Arch) when plugged into a USB 3.0 port. When I plug the scanner in to a USB 2.0 port on my laptop, however, scanimage is successful.
    I have found some mentions of this as a bug here and here, though unfortunately there is no mention of a solution beyond plugging the device in to a USB 2.0 port. However, this is not an option for my Mac Mini since all of its ports are USB 3.0.
    As such, I am wondering whether there is any way to force a USB 3.0 port to function as a USB 2.0 port? Failing that, would anyone have any ideas of other possible workarounds? Note I have attempted all the possible fixes/workarounds listed in the first answer to this question on askubuntu that I was able to -- I didn't set "XHCI Pre-Boot mode", for example, since AFAIK Apple provides no mechanism for changing BIOS/UEFI options.
    As a final note, I am fairly certain that I am not facing any fundamental hardware limitation that would prevent this setup, since I have been able to use the same scanner with the Mac Mini from inside OSX.

    How would I test this out? Would blacklisting xhci-hcd cause ehci-hcd to be loaded automatically as its replacement?
    EDIT: I blacklisted xhci-hcd, updated my initramfs and rebooted. xhci_hcd was gone from lsmod, and ehci_hcd had been loaded, so that all seems to have worked. However, now when I run scanimage, for example, I get
    # scanimage > out.pnm
    scanimage: no SANE devices found
    and lsusb can no longer see the scanner (and for that matter can't see an external HDD I have plugged in either).
    Last edited by 12qu (2014-07-27 10:37:11)

  • JDev team: is there a workaround for bug1482140?

    I would like to know if anybody has figured out a workaround for bug 1482140 which is listed in the JDeveloper 3.2.2 readme. It states that it is not possible to deploy EJBs to 8.1.7 running on Solaris. It also indicates that it should have been fixed in 8.1.7.1 but the list of fixed bugs in 8.1.7.1 does not include this one. When is this going to be fixed? Why is there no status on it in Metalink? Is there something clever I can do similar to the workaround given for deploying BC4J?
    Thanks for any help,
    Matt

    Uh, dude? What are you talking about? I've seen the workaround for the aurora_client.jar bit but I thought it only applied to BC4J as it says in the HOWTO under the JDEV docs. As for the 8.1.7.1b patch, this is the first I've heard of it. It doesn't help that searching for this bug under Metalink doesn't produce any results. The way I see it is that I should be able to enter the Bug number in Metalink, and it tells me what patchset the bug is fixed in. That mechanism seems to have broken down here. oh well, I have no problem with having to be told something twice, I'm not perfect. At least I have the stones to post messages with my name and email address Mr d. cheers.
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by d:
    Matt's been told about both of those options previously and he does not understand !!<HR></BLOCKQUOTE>
    null

  • Suggested workaround for list itemrenderer bug?

    Can someone point me in the right direction for a workaround for the problem described as Flex bug 28191:
    https://bugs.adobe.com/jira/browse/SDK-28191
    Steps to reproduce:
    1. Populate a Tree/List with data and provide a custom itemRenderer class factory.
    2. Change the class factory and dataProvider at the same time.
    3. List.createItemRenderer() will crash during since Factory is the key and it has been changed.
                    delete freeItemRenderersByFactory[factory][renderer];
    Actual Results:
    Crash because the renderer can not be found since it does not exist on that factory dictionary since the class factory was changed and the lookup is using the new factory.
    Expected Results:
    Not crash.
    Seems like a race condition, as sometimes during this process it skips that block of code but in other cases it falls into this block and fails.
    I need to change the data provider and item renderer of a tree control at runtime. Is there one or more methods I should run to prevent this? As the bug notes state, this is an intermittent problem. The error occurs here:
    if (factory == itemRenderer)
                if (freeItemRenderers && freeItemRenderers.length)
                    renderer = freeItemRenderers.pop();
                    delete freeItemRenderersByFactory[factory][renderer];

    Thanks. Actually, I have been updating (not setting or changing) the tree's dataprovider, and then changing the classFactory like this:
    processesXML = event.result as XML;
    nodeTreeData.source = processesXML.children();
    if (treeMultiSelect)
    nodeTree.itemRenderer=new ClassFactory(renderers.TreeItemRendererV1);
    nodeTree.allowMultipleSelection = true;
    nodeTree.setStyle("selectionColor", "0xFFFFFF");
    nodeTree.setStyle("disclosureOpenIcon", MinusIcon);
    nodeTree.setStyle("disclosureClosedIcon", PlusIcon);
    else
    nodeTree.itemRenderer=new ClassFactory(mx.controls.treeClasses.TreeItemRenderer);
    nodeTree.allowMultipleSelection = false;
    nodeTree.setStyle("selectionColor", "0x7FCEFF");
    nodeTree.setStyle("disclosureOpenIcon", OpenArrowIcon);
    nodeTree.setStyle("disclosureClosedIcon", ClosedArrowIcon);
    I had tried using validateNow after changing the ClassFactory before but did get the error again. I will try it again but update the data provider after. Since it's an intermittent error I'm finding it hard to know if a fix is really working.

  • Workaround for AE inability to swap layer?

    I'm wondering if there exists (either as an actual feature in AE or as a workaround technique) a way to switch between several stills on a single layer. Specifically, I'm wanting to have one layer as a 'Mouth' layer, and animate that layer jumping between several mouth positions (for lipsync).
    In Flash, you could animate a swap of the contents of the layer....
    Is there an existing feature that could do that? Or, has anyone developed a workaround for that?
    The only one I could think of offhand is to have a precomp with a single layer containing each of the mouths (1 frame each), then on the main comp, use time remapping (with Hold keyframes) to keyframe a jump to each of the frames in the precomp. Haven't tried it, but it seems like it might work. I'm wondering if there's a better method.
    Any comments?

    Another good method I came up with (which apparently others have thought of too!) is using CCSplit for creating a mouth. That was a real gem of a find...
    But, in the link that you gave me, I noticed that people are using audio to drive the CCSplit... that's something I never thought of! I've used audio to control the vertical stretch of a generic mouth shape long ago in an earlier version of AE... but didn't know of the more precise controls you can get with current Expressions.
    So, I tried the audio driven CCSplit technique they go over, and it works nice. Only thing is, the Split effect needs to be stronger.
    The current expression I'm using (which is linked to a layer created by the Convert Audio To Keyframes feature) is:
    thisComp.layer("Audio Amplitude").effect("Both Channels")("Slider")
    What coding can I put in to amplify the effect of the Split? I'm not very familiar with Expressions, so I'm a little stuck. I tried putting things like *10 after the ("Slider"), but it wasn't correct syntax...
    Anyone able to help?
    [EDIT: Nevermind! I just got it... I just put the *10 right after the ("Slider"), and not inside the brackets. Excellent... That works!]

  • Support for virtual IP in WKA list

    I am attempting to implement Coherence Grid Edition 3.5.3 Patch 7 . It's running on Sun Java 1.6.06 on a Solaris 5.10 machine (which I will call machine A1) which has an ip address 1.2.3.261. Also, there is a virtual IP address 1.2.3.260 which points to this same machine A1, as well as a hostname that maps to the virtual IP address of the machine A1.
    (Note: I have mocked up the IP addresses in this post for security reasons).
    I am using WKA due to concerns of the local network admins regarding multicast (debatable, but for now let's please assume I need to go with WKA).
    If this production machine A1 develops any problem, we can quickly switch to an alternate machine A2. The alternate machine A2 contains automatically replicated copies of all of our important sub-directories (including the coherence xml configuration files), but it does have a different IP.
    During a failure of machine A1, we would shut down machine A1, start up machine A2, and reroute the virtual IP to alternate machine A2's true IP. Machine A2 would be supplied a copy of the file-system that A1 had when A1 was shutdown.
    We would seek to not have to edit any configuration files on A2. It is difficult to maintain alternate configuration files using our current replication scheme, and any machine-specific customizations are problematic.
    Therefore, we would prefer to list the virtual IP of machines A1 and A2 in the WKA list, rather than the true IP of these machines.
    However, when I attempt to list the virtual IP in the WKA list...
                   <well-known-addresses>
                        <socket-address id="1">
                        <address>1.2.3.260</address> <!--virtual ip -->
                        <port>8088</port>
                        </socket-address>
                   </well-known-addresses>
    ... I get the error below.
    2010-09-03 12:01:51.464/1.401 Oracle Coherence GE 3.5.3/465p7 <D5> (thread=Cluster, member=n/a): Service Cluster joined the cluster with senior service member n/a
    2010-09-03 12:01:54.760/4.697 Oracle Coherence GE 3.5.3/465p7 <Error> (thread=Cluster, member=n/a): Node myhostname/1.2.3.261:8088 is not allowed to create a new cluster; WKA list: [1.2.3.260:8088]
    2010-09-03 12:01:54.760/4.697 Oracle Coherence GE 3.5.3/465p7 <D5> (thread=Cluster, member=n/a): Service Cluster left the cluster
    Exception in thread "main" java.lang.RuntimeException: Failed to start Service "Cluster" (ServiceState=SERVICE_STOPPED, STATE_ANNOUNCE)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.start(Service.CDB:38)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.start(Grid.CDB:38)
    at com.tangosol.coherence.component.net.Cluster.onStart(Cluster.CDB:395)
    at com.tangosol.coherence.component.net.Cluster.start(Cluster.CDB:11)
    at com.tangosol.coherence.component.util.SafeCluster.startCluster(SafeCluster.CDB:3)
    at com.tangosol.coherence.component.util.SafeCluster.restartCluster(SafeCluster.CDB:7)
    at com.tangosol.coherence.component.util.SafeCluster.ensureRunningCluster(SafeCluster.CDB:27)
    at com.tangosol.coherence.component.util.SafeCluster.start(SafeCluster.CDB:2)
    at com.tangosol.net.CacheFactory.ensureCluster(CacheFactory.java:998)
    at com.tangosol.net.DefaultConfigurableCacheFactory.ensureService(DefaultConfigurableCacheFactory.java:905)
    at com.tangosol.net.DefaultCacheServer.start(DefaultCacheServer.java:139)
    at com.tangosol.net.DefaultCacheServer.main(DefaultCacheServer.java:60)
    2010-09-03 12:01:54.763/4.700 Oracle Coherence GE 3.5.3/465p7 <Error> (thread=main, member=n/a): Error while starting cluster: java.lang.RuntimeException: Failed to start Service "Cluster" (ServiceState=SERVICE_STOPPED, STATE_ANNOUNCE)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.start(Service.CDB:38)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.start(Grid.CDB:38)
    at com.tangosol.coherence.component.net.Cluster.onStart(Cluster.CDB:395)
    at com.tangosol.coherence.component.net.Cluster.start(Cluster.CDB:11)
    What exactly is being checked here? Does each Coherence instance expect to see it's own IP listed in the WKA list, and refuse to run if it can't find it's own IP on the list?
    Is the instance detecting it's own IP via an operating system call, or is there some way I can influence the instance's sense of what IP it is running on?
    Is there any advice for supporting this kind of virtual IP scenario?
    I have tried listing the hostname with no better success, because the hostname points to the virtual IP, and therefore has the same effect as listing the virtual IP.
    As a workaround, I have altered the WKA list to list of the true IPs of both machines...
                   <well-known-addresses>
                        <socket-address id="1">
                        <address>1.2.3.261</address> <!-- A1 -->
                        <port>8088</port>
                        </socket-address>
                        <socket-address id="2">
                        <address>1.2.3.262</address> <!-- A2 -->
                        <port>8088</port>
                        </socket-address>
                   </well-known-addresses>
    ... even though both machines will never be up and running at the same time. This workaround avoids the error and the cluster appears to come up. I am not sure if there's any ill effect that at any given time one of these two IPs will never be up and running.
    Despite my workaround, true support for virtual IPs would be superior; listing all the true non-virtual IPs in the WKA list means re-editing the list as the hardware changes.
    Thanks for any advice!
    P.S. I tried the above with Coherence 3.5.2 with the same results.
    Edited by: user11114413 on Sep 3, 2010 11:45 AM

    Hi user11114413,
    The issue you are seeing actually has little to do with VIP, and more to do with there being multiple IP addresses for us to choose from on your box. For such multi-IP boxes, you'll want to tell us the IP to use, and in your case you want to tell as a VIP. This can be done either by editing your operational configuration file, and including an <address> element within the <unicast-listener> element, or via the tangosol.coherence.localhost system property. For example:
    <unicast-listener>
        <well-known-addresses>
            <socket-address id="1">
                <address>1.2.3.260</address> <!--virtual ip -->
                <port>8088</port>
            </socket-address>
        </well-known-addresses>
        <address>1.2.3.260</address> <!--virtual ip -->
        <port>8088</port>
    </unicast-listener>or
    java ... -Dtangosol.coherence.localhost=1.2.3.260If you are using the same operational configuration on all nodes in your cluster then the system property approach is likely preferable, and would only be necessary on the two machines sharing the VIP.
    As for using VIP or an extended WKA list, the choice is yours, either will work. If you do go the VIP route, it would obviously be a very bad idea to simultaneously use the same VIP and port at the same time from the two machines.
    thanks,
    Mark
    Oracle Coherence

  • [svn:fx-trunk] 13288: Changing the workaround for custom whitespace preservation in spark components in order to cater for fixes to SDK-24699 and SDK-24611 .

    Revision: 13288
    Revision: 13288
    Author:   [email protected]
    Date:     2010-01-05 15:21:57 -0800 (Tue, 05 Jan 2010)
    Log Message:
    Changing the workaround for custom whitespace preservation in spark components in order to cater for fixes to SDK-24699 and SDK-24611.
    We now preserve whitespace for all of the spark "text" tags at compile time (but not only-whitespace content if an alternate text attribute was specified).
    QE notes: Please ensure that whitespace preservation continues to work, including for the scenarios mentioned in previous issues SDK-22601, SDK-23160, SDK-23972.
    Doc notes: N/A
    Bugs:
    SDK-24699 - Binding does not work with Spark TextInput "text" property
    SDK-24611 - MXML compiler should preserve whitespace in FlowElement tags (such as
    Reviewer: Paul
    Tests run: checkintests, mustella RichText, List, TextArea (the 2 baseline position failures existed prior to these changes)
    Is noteworthy for integration: Yes
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-24699
        http://bugs.adobe.com/jira/browse/SDK-24611
        http://bugs.adobe.com/jira/browse/SDK-22601
        http://bugs.adobe.com/jira/browse/SDK-23160
        http://bugs.adobe.com/jira/browse/SDK-23972
        http://bugs.adobe.com/jira/browse/SDK-24699
        http://bugs.adobe.com/jira/browse/SDK-24611
    Modified Paths:
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/dom/MxmlScanner.java
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/dom/Node.java
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/lang/StandardDefs.java

    This bug figures out also when creating a custom spark ComboBox, then trying to programatically update the userProposedSelectedIndex property. The proposed selected index is selected, but does not apply the same skin as when mouse is on rollover or item is selected due to up and down keys.
    The issue seems like updating the status of the item renderer to rollover or selected to get the same skin applied.
    Please could you attach DropDow nList.as that you edited ?
    Thank you so much.

  • Workaround for missing ADF Faces Cache taglib

    I've downloaded Steve's migrated version of SRdemo (http://otn.oracle.com/products/jdev/tips/muench/1013srdemo/SRDemoSampleADFBC_migrated_to_11g_otn3.zip) and am trying to run it on JDev 11g TP3. However it couldn't find the ADF Faces Cache taglib in the afc.jar file that is deployed within the UserInterface project as it looks for a D:\temp... path.
    A workaround for this is to:
    * go to UserInterface "Project Properties...", choose JSP Tag Libraries: "ADF Faces Cache 1.0" will be shown in red as it references jar:file:/D:/temp/SRDemoSampleADFBC/UserInterface/public_html/WEB-INF/lib/afc.jar!/META-INF/afc.tld
    * delete the red "ADF Faces Cache 1.0"
    * click "Add", "User" folder at top, then click "New" button.
    * navigate to the directory where your SRDemo project is stored and then UserInterface/public_html/WEB-INF/lib/afc.jar - then click OK.
    * it calls this "ADF Faces Cache [1] 1.1" - select this and click OK, then save the project properties.
    You should now see ADF Faces Cache [1] 1.1 in the list - I'm assuming this is a new version of afc.jar not yet bundled with JDev 11g.
    HTH. Any comments or alternative suggestions welcome!

    2. Answer its question Itself. Yes, change the filling items in SelectOneChoice through ForEach on preparing the reference book in BackBean and bind it with attribute "value" of f:selectItems speedup rendering about 6 times!

  • Workaround for not being able to reference a multi-select field in a calculated field?

    Does anyone have a workaround for the fact that SP doesn't allow the use of a multi-select choice field to be used in a calculation in a calculated column?  I have a list that WAS a single choice in a Status field with three other calculated columns
    that were dependent upon that field.  Then I had to change the Status field to be to multi-select (checkboxes). Now of course my calculated columns don't work.  In addition, the end user can't fill them in either.
    I've got a Status field (multi-select), a Status Date field and Expiration Date field (calc).  The expiration date's calculation is shown below.   This worked great until I was asked
    to change the Status field to multi-select.<o:p></o:p>
    =IF(Status="NoI
    Review",DATE(YEAR([Status Date]),MONTH([Status Date]),DAY([Status
    Date])+21),"")<o:p></o:p>
    There are no mistakes; every result tells you something of value about what you are trying to accomplish.

    Hi run4it,
    Since SharePoint calculated column cannot reference the choice field with multiple-select value enabled, a workaround is to use workflow to copy the "Status" column value to another single line text column, then reference this single line text column in
    calculated column.
    Thanks,
    Daniel Yang
    Forum Support
    If you have feedback for TechNet Subscriber Support, contact [email protected] 
    Daniel Yang
    TechNet Community Support

  • Workarounds for lack of sub-folder support

    I'm trying to find a workaround for the lack of sub-folder support for photos. For example, are there any apps that synchronise my photos with the original folder structure from my PC? I've spent quite a lot of time searching, but can't find the right solution.

    Hi all. Hope this helps...
    There is NO sub-folder (two or more folder levels) support in OS3x and OS4x until today. Hope this will change in near future, however that also means foregoing smoothness operation of the iDevice due to how the internal memory works inside (so far, thousands of photos can be viewed without a lag because how fast the iDevice can find the memory location of each file inside its big memory, and creating sub-folders will take great amount of time for the processor to find, put-together, and present the many photos to screen).
    There are other applications that support photos with sub-folders (folders inside folders inside folders inside folders inside folders and so on), however these are not specialized photo viewing app and will not show picture thumbnails but file listing instead:
    - GoodReader
    - OPlayer
    Two good photo and video viewing apps with privacy security; Photo Safe and Video Safe, are also available, which supports high-definition without reducing photo quality as in original iDevice, BUT does not support sub-folders (only one level folders/albums).
    I was hoping iOS4 had the Sub-folders feature for its iPhoto... doesn't have to be three-folder levels, but just additional one level sub-folders would be great.
    Cheers!

  • Is there a workaround for the Safari "clickable hidden content" bug?

    Hi,
    I'm encountering a bug in Safari where hidden content (non-visible content hidden with the CSS attribute overflow:hidden) to be clickable. I did some googling and found other people who are having this same problem:
    http://www.dmxzone.com/forum/go/?35908
    http://archivist.incutio.com/viewlist/css-discuss/76660
    http://lists.macosforge.org/pipermail/webkit-dev/2005-November/000496.html
    But no one seems to have a workaround for this. The last post contains a reply by an Apple developer saying he checked in a bug fix for this, but his reply was posted two years ago and I'm still seeing the problem.
    Does anyone know of a workaround for this? Hacks or kludges welcome.
    Cheers,
    -bri
    Message was edited by: omega-

    Hi
    As Safari uses the WebKit structure, you may find an answer to your question at the FreeNode Network. You may also find help at the WebKit Open Source Project.

  • Any workaround for mixed media playlist on ipod classic?

    On Itunes I can create a mixed media playlist (music and music videos)
    I can put that playlist on my ipod.
    But when it comes to playing the video the ipod will only show the audio if coming from the playlist.
    It shows up fine when being accessed via music videos.
    If I plug the ipod into itunes, and click "on this ipod" my playlist shows up.
    When I play the playlist on the ipod and a video comes up, the video starts in itunes with no problem.
    Does anyone have a workaround for this to happen on the ipod classic?
    Can I encode audio only in mp4?
    Then maybe all songs will be listed as music videos, and those with audio only will display the cover?
    Just brainstorming out loud here.
    Thanks,
    Dan
    P.S. Just noticed other people had a similar question.  A lot of discussion but no definitive answer.
    Maybe someone will have discovered a workaround since the last thread.

    I found the problem !!! I had many smart playlist with a rule that was -> "Album - is - "empty"". It seems that the new iTunes this kind of "empty rule" would not accept. I had to add a new rule -> "Playlist - is - Music". Now it shows all the songs on the iPod.
    It seems to be an Apple Bug on iTunes. I hope they can resolve this problem.

  • Preferred Vendors for  Product Category

    Hi,
    We are using SRM 7.0, Classic Scenario.
    My client wants a list of preferred suppliers that need to be maintained for a product category. So that whenever the requester selects the product category, he should get the list of preferred vendors for that product category.
    Thanks
    Ron

    Hi,
    How about maintaining "Supplier List" ?
    http://help.sap.com/saphelp_srm70/helpdata/EN/46/48e3de2f155d5ee10000000a1553f7/frameset.htm
    Search help with "Supplier List" is available in Preferred Supplier selection.
    Regards,
    Masa

  • Getting problem in binding DropDown List with table data in visual JSF

    Hi All,
    I am new to visual JSF.
    I am getting few problems while working over components.
    I have succeeded in binding data of Person table in a drop down list .
    By just drag drop ..it worked.
    But while connecting to external DB this drag drop mechanism didn't work for me .
    1st problem that i faced was by dragging method columns are not visible when i did right click-> bind to Data -> DataProvider window .
    But i am successfully printed table Data in backend ie: by putting
    for(int i=0; i<xn_white_listDataProvider.getAllRows().length;i++){
           System.out.println("  value :"+xn_white_listDataProvider.getValue("SUB_ID",xn_white_listDataProvider.getRowKey(Integer.toString(i))));
    }I am not getting how to set Items in dropdown1
    I tried putting
    HelloSh.xn_white_listDataProvider.options['XNODE.XN_WHITE_LIST.SUB_ID, XNODE.XN_WHITE_LIST.SUB_ID'but it didn't work while for person data table
      items="#{HelloSh.personDataProvider.options['PERSON.PERSONID,PERSON.NAME']}"it is working
    when i am writting items="24,28" in dropdown1 box
    & printing its value in static text Like
    <webuijsf:staticText id="staticText3" style="position: absolute; left: 72px; top: 120px" text="#{HelloSh.dropDown1.items}"/> it is printing fine .
    Plz help me in this regard.
    Any clarification if needed plz let me know.
    Thanks in advance.

    <h:selectOneMenu id="menu1" styleClass="selectOneMenu">
    <f:selectItems value="*#{selectitems.pc_DynamicPortletEdit.regList}*" />
    </h:selectOneMenu>When we bind the list to the h:selectOneMenu the code in the JSP will be as given above.
    My doubts here are
    1) But when i tried to bind the list to a selectonemenu the code in the JSP is looking like this one
    <h:selectOneMenu id="menu1" styleClass="selectOneMenu">
    <f:selectItems value="*#{selectitems.pc_DynamicPortletEdit.regList.regList.toArray}*" />
    </h:selectOneMenu>2) Also in the runtime instead of displaying the values in the dropdown, i am getting the object names (javax.faces.model.SelectItem@680d0ccc) in the drop down.
    What am I doing wrong? Any help here would be usefull for me.
    BTW,
    the code in the backing bean for setting the values is like this
    List dropListValue = new ArrayList();
        for (int x=0; x<result.length; x++){ //where result is array of string values              
            SelectItem tempSelect = new SelectItem();
            tempSelect.setLabel(result[x]);
            tempSelect.setValue(result[x]);
            dropListValue.add(result[x]);                      
    this.setRegList(dropListValue );The bean is in request scope only.

  • Workaround for "An error occurred while contacting the radio tuning service. Check your Internet connection, or try again later."

    While Apple tries to figure out what's wrong I came upon a great workaround for those of us that like the radio feature of iTunes. This actually doesn't take long either.
    When trying to expand the categories you get the error "An error occurred while contacting the radio tuning service. Check your Internet connection, or try again later." This happens enough to think that the service is completely broken. Actually, it seems intermittent. Try clicking it a few times. you WILL GET THROUGH. When you do get there, highlight all of the stations(or just the ones you want), create a playlist (I use the name of the category as I take the entire list), and paste into the playlist. You can then play the stations EVERY TIME from the playlist. Works perfectly.
    It doesn't seem to have anything to do with what version of iTunes you have or what plugin you have. I have seen this on over 600 computers - Windows & MAC - and the workaround is 100%.
    Let me know how you make out. And, PLEASE SHARE THIS FIX!!!

    Yes indeed, this workaround was posted a few days ago at https://discussions.apple.com/message/17739684

Maybe you are looking for

  • Iphone 3GS 32gb stuck on plug into itunes screen after trying to update OS

    I installed itunes on my new computer.  When I plugged in my iphone to sync, itunes identified my phone and offered an OS update.  I followed the steps to update and began the process, shortly after there was an error message and now I my phone is pa

  • Accounting document not generating

    hi friends, when i put internal order in sales order profit centre changes, delivery done,billing done , perhaps it generate acounting document regarding excise only ,and not revenue, does any one knows why is it so.

  • Multiple PO output layout

    Hello, I have a working SAP MM system. Purchase orders are printed using sapscript. I have a new requirement for an additional PO layout. So, the PO processing will be done in the same plant, company code, etc, but the layout should be different for

  • App mesenger 4.2.1

    Hello, I need an internet messaging app for iphone 3g whastapp nor the most famous work .... help

  • Only "half" a connection

    Hello, I just got a refurbished 802.11n Airport Express and find that it is unable to, for the lack of a better phrase, form a lasting connection. For example, web pages will load half way and clunk out. Or the CSS will fail to load. To make sure thi