Make a preselection in a selectManyChoice element

Hi,
I use JDeveloper 11.1.1.0.2. With my program I want to be able to create activities. If a logged in user is surfing to the createActivity page his username should be preselected in a selectManyChoice list.
Here is my first try, that didn't work.
code in my jspx file
<af:selectManyChoice label="#{bundle.ASSIGNED_TO}"
          value="#{ backing_createActivity.selectedUsers}">
   <f:selectItems value="#{backing_createActivity.listOfUsers}"/>
</af:selectManyChoice>code in my backing_createActivity.java file
Collection<String> selectedUsers;
public CreateActivity() {
        try {
            selectedUsers = new ArrayList();
        } catch (Exception e) {
            System.err.println(e.toString());
public Collection<String> getSelectedUsers() {
  // userId is static for testing
  String userId = "5";
  selectedUsers.add(userId);
  return selectedUsers;
public List<SelectItem> getListOfUsers() {
        BindingContainer bindingContainer = this.getBindings();
        DCIteratorBinding dcIteratorBinding = (DCIteratorBinding)bindingContainer.get("findAllUsersIter");
        Row[] row = dcIteratorBinding.getAllRowsInRange();
        listOfUsers = new ArrayList<SelectItem>(row.length);
        // Add all Users in the multiselect box
        for (int i = 0; i < row.length; i++) {
          BigDecimal userId = (BigDecimal)row.getAttribute("userId");
String username = (String)row[i].getAttribute("userUsername");
listOfUsers.add(new SelectItem(userId.toString(), username));
return listOfUsers;
I get the following warning, when I surf to the createActivity page. And the logged in user is not preselected.
Warning
oracle.adfinternal.view.faces.renderkit.rich.SimpleSelectManyRenderer _getSelectedItems
WARNUNG: Could not find value:5 of type:java.lang.String among list of SelectItems
What am I doing wrong here?
Thanks for any help
Bodhy

Hi,
It should work correctly, can you try to store the selected users in an array? The code will then use a slightly different code branch so the test could help isolate the issue.
~ Simon

Similar Messages

  • Coherence::net::messaging::ConnectionException: could not establish a connection to one of the following addresses: {10.242.152.242/10.242.152.242:8088}; make sure the "remote-addresses" configuration element contains an address and port of a running TcpA

    Hi
    I have installed coheI have installed coherence server "fmw_12.1.3.0.0_coherence_Disk1_1of1.zip" along with Examples on windows machine and C++ client coherence-cpp-12.1.3.0.0b51709-windows-x86-vs2012.zip on the same machine.
    I have built the "contacts" C++ Example successfully and while I execute this "contacts" using run I am facing TcpAcceptor error.
    On my coherence server the TcpAcceptor is listening on port 8088, so I have modified the extend-cache-config.xml file with values "ip address of my windows machine" and port as "8088".
    All the time I am getting below error,
    coherence::net::messaging::ConnectionException: could not establish a connection to one of the following addresses: {10.242.152.242/10.242.152.242:8088}; make sure the "remote-addresses" configuration element contains an address and port of a running TcpAcceptor
        at class coherence::lang::TypedHandle<class coherence::component::net::extend::PofConnection> __thiscall coherence::component::util::TcpInitiator::openConne
    ction(void)(TcpInitiator.cpp:307)
        at coherence::component::util::TcpInitiator::openConnection
        at coherence::component::util::Initiator::ensureConnection
        at coherence::component::net::extend::RemoteCacheService::openChannel
        at coherence::component::net::extend::RemoteService::doStart
        at coherence::component::net::extend::RemoteService::start
        at coherence::component::util::SafeService::startService
        at coherence::component::util::SafeService::restartService
        at coherence::component::util::SafeService::ensureRunningServiceInternal
        at coherence::component::util::SafeService::start
        at coherence::net::DefaultConfigurableCacheFactory::configureService
        at coherence::net::DefaultConfigurableCacheFactory::ensureService
        at coherence::net::DefaultConfigurableCacheFactory::ensureRemoteCache
        at coherence::net::DefaultConfigurableCacheFactory::configureCache
        at coherence::net::DefaultConfigurableCacheFactory::ensureCache
        at coherence::net::CacheFactory::getCache
        at unsigned __int64 coherence::lang::class_spec<class coherence::lang::Managed<class ContactId>,class coherence::lang::extends<class coherence::lang::Object,class coherence::lang::Void<class coherence::lang::Object> >,class coherence::lang::implements<void,void,void,void,void,void,void,void,void,void,void,void,void,void,void,void> >::sizeOf(bool)
        at _onexit
        at class coherence::util::Hashtable * coherence::lang::factory<class coherence::util::Hashtable>::create(void)
        at class coherence::util::Hashtable * coherence::lang::factory<class coherence::util::Hashtable>::create(void)
        at BaseThreadInitThunk
        at RtlInitializeExceptionChain
        at RtlInitializeExceptionChain
        on thread "main"
    Caused by: coherence::net::messaging::ConnectionException: coherence::component::util::TcpInitiator::TcpConnection@029EAD78{Id=NULL, Open=1, LocalAddress=NULL,
    RemoteAddress=10.242.152.242/10.242.152.242:8088}: socket disconnect
        at class coherence::lang::TypedHandle<class coherence::net::messaging::Response> __thiscall coherence::component::net::extend::AbstractPofRequest::Status::g
    etResponse(void)(AbstractPofRequest.cpp:203)
        at coherence::component::net::extend::AbstractPofRequest::Status::getResponse
        at coherence::component::net::extend::AbstractPofRequest::Status::waitForResponse
        at coherence::component::util::Initiator::openConnection
        at coherence::component::net::extend::PofConnection::open
        at coherence::component::util::TcpInitiator::openConnection
        at coherence::component::util::Initiator::ensureConnection
        at coherence::component::net::extend::RemoteCacheService::openChannel
        at coherence::component::net::extend::RemoteService::doStart
        at coherence::component::net::extend::RemoteService::start
        at coherence::component::util::SafeService::startService
        at coherence::component::util::SafeService::restartService
        at coherence::component::util::SafeService::ensureRunningServiceInternal
        at coherence::component::util::SafeService::start
        at coherence::net::DefaultConfigurableCacheFactory::configureService
        at coherence::net::DefaultConfigurableCacheFactory::ensureService
        at coherence::net::DefaultConfigurableCacheFactory::ensureRemoteCache
        at coherence::net::DefaultConfigurableCacheFactory::configureCache
        at coherence::net::DefaultConfigurableCacheFactory::ensureCache
        at coherence::net::CacheFactory::getCache
        at unsigned __int64 coherence::lang::class_spec<class coherence::lang::Managed<class ContactId>,class coherence::lang::extends<class coherence::lang::Object
    ,class coherence::lang::Void<class coherence::lang::Object> >,class coherence::lang::implements<void,void,void,void,void,void,void,void,void,void,void,void,void
    ,void,void,void> >::sizeOf(bool)
        at _onexit
        at class coherence::util::Hashtable * coherence::lang::factory<class coherence::util::Hashtable>::create(void)
        at class coherence::util::Hashtable * coherence::lang::factory<class coherence::util::Hashtable>::create(void)
        at BaseThreadInitThunk
        at RtlInitializeExceptionChain
        at RtlInitializeExceptionChain
        on thread "main"
    Caused by: coherence::io::IOException: socket disconnect
        at unsigned int __thiscall coherence::net::Socket::readInternal(unsigned char *,unsigned int)(Socket.cpp:333)
        at coherence::net::Socket::readInternal
        at coherence::net::Socket::SocketInput::read
        at coherence::io::BufferedInputStream::fillBuffer
        at coherence::io::BufferedInputStream::read
        at coherence::component::util::TcpInitiator::readMessageLength
        at coherence::component::util::TcpInitiator::TcpConnection::TcpReader::onNotify
        at coherence::component::util::Daemon::run
        at coherence::lang::Thread::run
        on thread "ExtendTcpCacheService:coherence::component::util::TcpInitiator:coherence::component::util::TcpInitiator::TcpConnection::TcpReader"

    We are facing same issue.    Could you please provide us any working .Net sample code for the version 12.1.2.0.
    <ssl>
                  <protocol>Tls</protocol>
                  <local-certificates>
                    <certificate>
                      <url>c:\Cert\</url>
                      <password>password</password>
                      <flags>DefaultKeySet</flags>
                    </certificate>
                  </local-certificates>
                </ssl>
    thanks
    Bala

  • Is it possible to make a planning on a cost element group?

    Is it possible to make a planning on a cost element group? I have created several cost element groups with the appropriate hierarchy. Now my aim is to try to allocate cost on an element cost group.
    Thank you in advance for your reply.
    Best regards
    Pascal Cuenin

    Yes you can - There are multiple ways of doing it.
    If you have the BPS module, you can do it over there - If you want to do it in R/3, you can there too. Go to KPZ3 to view previous budget planning for Cost Center Groups.
    Hope that helps.
    Thanks,
    Nandita

  • How do i make a transparent background in Photoshop Elements 13

    how do i make a transparent background in Photoshop Elements 13

    Open the picture file
    Use one of the selection tools to select the foreground
    Place the selection on its own layer (Layer>New>Layer via copy or CTRL+J) - this will be Layer 1
    Delete the background layer
    If you want to save it, use a file format which supports transparency, e.g.PNG

  • PSE 10 Can't edit read-only layer groups (a.k.a.  I just want to make a custom DVD menu in Elements)

    A little background: I wanted to make a custom menu so I opened a copy of one of the canned menu.PSD files in PS Elements 10.  It opened up with all layers and their sublayers showing.  So far, so good.  I did a bunch of editting and had my menu just about right, saved it and burned a DVD with it.  I saw some corrections that I needed to make so I opened the same .PSD file and it showed all the main layers (with the folder icon) but not the attached layers. 
    I double-clicked to open these layers and got:
    "You are attempting to open a group, which is not supported in Photoshop Elements.  The layers in this group will be simplified into a single layer.  Simplify the layers? Yes No."
    I was just editing these things the day before yesterday.  All I've done since then is register my software online. I have seen it stated in this forum that "Elements doesn't support layer group/sets" but it was referring to an earlier version I'm guessing.
    Question 1:  Is this still true of PSE 10?
    Question 2:  If so, how was I editing them the other day? 
    Thanks in advance for any help you can offer.
    Joe

    If you haven't uninstalled premiere elements then it should work, but there are a few things that will not work when editing the dvd templates:
    (it only works on certain dvd templates and only on a machine with premiere elements installed)
    *If you change the document dimensions either larger or smaller. (not the size of the elements in the template but the overall size such as using
    Image>Resize>Image Size or Canvas Size)
    *If you delete any of the layer groups
    *Changing the name of the document
    There are probably other causes and they may know more on the premiere elements forum:
    http://forums.adobe.com/community/premiere_elements?view=discussions
    MTSTUNER

  • How to make a button in a draggable element?

    I set an image to be a draggable element. ( this means the
    cursor becomes a hand obviously ). What I want is to make one
    portion of this graphic a button so the user drags the image into
    view and then clicks on the area of the graphic that has a button
    to navigate to another scene.
    The problem is, when i create a button and place it in the
    movie ( image ), it doesnt recognize it as a clickable button.
    Essentailly its a web page that scrolls as the draggable
    element and at the bottom of the page has buttons. I dont know how
    to put them in this. :(

    you could add a button on top of the portion of the image and
    just have a hit area of that button, no over, down or up states.
    That should work for you.

  • I am trying to make a Landscape photo collage in Elements 11 but Elements crashes.Why???

    When I make a Collage in Elements 11 the Portrait mode works ok but when I try to make a Landscape one Elements crashes. Anyone any idea why?

    Yes, this was a known bug. In any event, from PSE 11 on, there's really no point at all in using the collage feature to make a collage. Unlike earlier versions of PSE, in recent versions there isn't a single thing you can do with a collage in Create that you can't do more easily in the regular editor by just making a blank file and getting out the graphics panel to add backgrounds, frames, etc.

  • Tree element: How to make nodes editable

    Is it possible to make the nodes of a Tree element (a design time element visible in the view editor) editable? Or is there a tree component that can be used via "component use" with which to accomplish that?
    I don't want to use a table with embedded TreeByKeyTableColumn or similar!

    Hi Klaus,
    It's not possible for a tree ui element. As you pointed out you could achieve it using a TreeBy* master column of a table. The ByNesting variant uses a similar context structure as a tree. In addition, using a table will enable scrolling - which is not possible for the Tree ui element.
    Best regards,
    Thomas

  • How do I get my slideshow in Photoshop Elements to make a DVD in Premiere?

    I make my slide shows in Photoshop Elements and put them into Premiere Elements to burn them to a DVD and play it on my Blu-Ray player.  I have made seven of these in Photoshop Elements 8 and Premiere Elements 8. They are about 30 minutes long.   Sometimes it will work and sometimes it won't.  The people at Adope Photoshop Elements told me a number of different things to do - each person trying something different.
    I bought Photoshop Elements 9 and Premiere Elements 9 and have a new computer. Today I burned, by hit and miss, two DVD copies of a 30 minute slide show.  They are perfect..  Now I can't get a different slide show to open up in Premiere Elements.  It says Serious Error.  Premiere is shutting down. It does not shut down.  I did get it to burn one, and it left me with pictures with black all around them.
    My pictures were 8x 10 and "Crop to fit"  Today I learned they were way too many pixels. and to 1,000 x 750 pixels.  I made a short slideshow doing this, and still couldn't get it to open in Premiere Elements.
    When I finish making a slideshow, I go to Output and Save As a movie file.  When this is finished I go to Output Edit with Premere Elements.  When Premiere comes up I click on Open Product.  From there I'm lost on just exactly what to do.  Once I get the slideshow up on Premiere Elements I have no problem going to Share and burning the DVD. 
    Is this a common problem having problems getting the slide show to Premiere Elements, or just a lack of knowledge?  I would someone telling me in simple steps just exactly what I need to do once I get to Premiere Elements.
    Photo Learner    

    Thank you very much!!!  That did it!
    JCF

  • Make Element Input value Mandatory

    Hi All ,
    I have created an earnings element with calculation rule as "HoursxRatexFactor" . The element works fine when attached to any employee . But I want to make the "Rate" input value as mandatory . I went into "Element Description" screen and then to input values screen , but I find that the required check box is greyed out and we cannot update it . Is there a way to make the input value as mandatory . Any help is of great help !! .
    Thanks for your time & attention,
    Chandu
    Edited by: Chandu_CS on Aug 28, 2009 1:24 PM

    Please create earnings elements through Total Compensation -> Earnings option. There you shoulb be able make Rate as required field, if element is new and hasn't been processed yet.

  • Is there any tools to make watermarks and copyright mark at photos in elements 13 ? I can not find any...

    I can not find any Tools or any way to make watermarks at my photos in Elements 13, can not find any tool to make Copy right mark in Elements 13...
    Is it not possible to do?

    I have a pink tint to video mirroring on my 1080i TV and not on my 1080p tv so I was wondering the same thing.

  • Action written in CS4 won't run correctly in Elements 11 - specif. the "selective color" layer

    I created an action using Adobe Photoshop CS4, and it runs correctly in CS4.  When I save and load the action into Elements 11,  there is a problem with the selective color layer.  The selective color layer shows up in the layer stack along with the expected message that it can't be edited b/c it was created in the full version of Photoshop. However, the layer itself does not have any color/changes in it.
    In Photoshop, the selective color layer makes the photo look pink.  When I run the action in Elements11,the selective color layer does absolutely nothing to the photo.  I do have the eye turned "on" to view the layer, and it's set at the correct blending options & opacity (normal, 100%). 
    If I run the action in Photoshop, save the file with all the action-created layers, and reopen the file in Elements 11, THEN the selective color layer shows its correct pink color.  But when I run the action as a stand-alone action in Elements11, it does not.
    Can anyone offer help as to why this is happening? Is there something special I need to do to make the action work correctly in Elements 11? My understanding was that it should RUN and create the layers correctly, although some of them will not be editable in Elements11. However, as it stands, it is not creating them with the correct color.
    Thanks in advance for your help!

    You probaly need to record the action in a little different way in photoshop cs4 to get the selective color adjustment layer to work.
    Try something like this:
    1. In photoshop cs4 add an selective color adjustment layer, but don't do any adjustments and stop recording the action.
    2. Undo the selective color adjustment layer and then double click on on the selective color adjustment layer step in the actions panel
       and when the dialog opens set your adjustments and click ok.
    Now it should work in pse 11:

  • Cost element 41 is not getting displayed in basic data Cost Element Basic..

    Hello All,
    Need you help in understanding and solving this issue, when ever I am creating a GL account in P&L, primary cost element is getting created, that is perfect, but for some G/L account I want to assign to CElem category to 41 for overhead, but due to some reason, only see 6 cost element category when try to look into mirror glass, or F4, only can see (1, 3, 4, 11, 12, 22). Please suggest how can I fixed this. If some one is having hard time understanding my question please feel free to write me.
    Thanks
    Nishan

    Christian,
    I belive you have not understood this issue, here I am not asking the difference between primary and secondary, let me articulate it one more time:
    When you create a G/L account under expenses for P&L and it create Primary cost element and instead of allocating it to primary costs/ cost-reducing revenue want to make it to 41 overhead cost element. but I dont see the option of 41 just see 6 option ( 1 for primary costs/ cost-revenue reducing revenues. 3 - Accrual, 4 , 11= revenue, 12 = sales deduction and 22 external settlement, and where as I dont see 41, what setting need to be changed so that I can see all the cost element type.
    thanks

  • Adding new data elements to Org Modeler.

    We are trying to add 4 fields to the org Modeler. However it is nowhere to be found like in the orgchart.
    Org Modeler 3.0 SP2
    PA0001, PA0008, HRP1005 and HRP1008. (also linking to the texts in T001P, so we will require a table inner join)

    Hi Wade,
    In order to get the fields in OrgModeler scenarios you need to make sure that your hierarchy data element in the Source OrgChart contains all fields that you want. For this I recommend creating a NakisaRFC function for the additional data, creating a data element for it and then creating a linked data element to link together the new data element and the existing hierarchy data element. There is no data center in OrgModeler so you will need to do this manually.
    Best regards,
    Luke

  • How do I create a slideshow in PSE 8.0 and share it on my website using Premiere elements 7.0.  I

    I have created a slideshow in PSE 8.0 but how do I get it into Premiere Elements 7 to create a video I want to show in my website?  Do I have to buy Premiere Elements 8.0 surely ther must be a way to pass files?

    Adobe is making it difficult for people who have Photoshop Elements 8 and Premiere Elements 7.
    If you also have Photoshop Elements 7, I suggest that in the future you consider making your slideshows in Photoshop Elements 7 because it of course does support transfer to Premiere Elements 7. Or you can make the entire slideshow in Premiere Elements 7.
    The only option that I can identify for making a file of your PSE 8 slideshow is to do a WMV file from the PSE 8 slideshow output command.
    This approach has the disadvantage of doing a compression in PSE to make the WMV file and then doing another compression in Premiere Elements 7 for whatever format you will use to upload to your website.

Maybe you are looking for

  • Office 2013 Upload Center do not display in notification area

    Hello, I am wanting to hide the Upload centre system task tray icon for Office 2013 on all of our pc's in my organisation, I have found many articles on disabling the service from starting, but this is not my intention. Instead I wish to use either a

  • Oracle application server fails with jdk1.6

    I have installed oracle application server 10.1.3.3, i want to use jdk1.6.0_xx. i configured in this following way Renamed the current JDK directory used by the Application Server installation ( in our case renamed jdk under this location "/product/1

  • Pinching screen to reduce and see full screen every time out of holster

    Hi, Since I installed the latest OS update, now every time I take my phone out of its holster, the fonts are larger than usual and I have to pinch the screen to reduce it to normal size and see all the screen like before. I have tried going into sett

  • Adapter Scaling & load balancing

    Can some one provide me info on how to achieve scaling and load balancing with Oracle Adapters? I am trying to collect this data for poplesoft Adapter & OracleApplications e-business suite adapter Thanks in advance..

  • Why do some movies show and some others don't?

    For some strange reasons different episode of the same series, with exactly the same encoding as the others, don't show on the Apple TV when streaming from iTunes: the files are identical in encoding, yet part of them just won't show. I was wondering