SelectOrderShuttle.. Default Right hand side values

Hi,
We have a requirement like when page loads records have to be displayed in the both right hand and left hand side of selectOrderShuttle,
am able to populate the left hand side,
How can we populate the Right hand side values when the page fist time load?
I will appreciate if you give some small example.
We are using Jdeveloper 11.1.1.4.0
Thanks,
Vijay.

Check this sample:
SelectOrderShuttle.jspx:
<?xml version='1.0' encoding='UTF-8'?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
<jsp:directive.page contentType="text/html;charset=UTF-8"/>
<f:view>
<af:document id="d1">
<af:form id="f1">
<af:selectOrderShuttle label="Select Order Shuttle"
value="#{SelectOrderShuttleBean.displayValue}"
leadingHeader="Available Items"
trailingHeader="Selected Items"
binding="#{SelectOrderShuttleBean.selectOrderShuttle}">
<f:selectItems value="#{SelectOrderShuttleBean.selectValues}"/>
</af:selectOrderShuttle>
<af:commandButton text="Display Selected Items" id="cb1"
partialSubmit="true"
actionListener="#{SelectOrderShuttleBean.showSelectedValues}"/>
</af:form>
</af:document>
</f:view>
</jsp:root>
SelectOrderShuttleBean.java:
import java.util.ArrayList;
import java.util.List;
import javax.faces.event.ActionEvent;
import javax.faces.model.SelectItem;
import oracle.adf.view.rich.component.rich.input.RichSelectOrderShuttle;
public class SelectOrderShuttleBean {
private RichSelectOrderShuttle selectOrderShuttle;
private List<SelectItem> selectValues = new ArrayList<SelectItem>();
private List<String> displayValue = new ArrayList<String>();
public SelectOrderShuttleBean() {
super();
// Populate the list
if (selectValues != null) {
selectValues.clear();
selectValues.add(new SelectItem("Value",
"Display Text For Value"));
selectValues.add(new SelectItem("Value1",
"Display Text For Value1"));
selectValues.add(new SelectItem("Value2",
"Display Text For Value2"));
selectValues.add(new SelectItem("Value3",
"Display Text For Value3"));
// Populate the selected list
if (displayValue != null) {
displayValue.clear();
displayValue.add("Value");
displayValue.add("Value1");
public void setDisplayValue(List<String> displayValue) {
this.displayValue = displayValue;
public List<String> getDisplayValue() {
return displayValue;
public void setSelectValues(List<SelectItem> selectValues) {
this.selectValues = selectValues;
public List<SelectItem> getSelectValues() {
return selectValues;
public void setSelectOrderShuttle(RichSelectOrderShuttle selectOrderShuttle) {
this.selectOrderShuttle = selectOrderShuttle;
public RichSelectOrderShuttle getSelectOrderShuttle() {
return selectOrderShuttle;
public void showSelectedValues(ActionEvent actionEvent) {
if (this.selectOrderShuttle != null) {
List<String> currentSelectedItems =
(List<String>)this.selectOrderShuttle.getValue();
if (currentSelectedItems != null) {
System.out.println("::: Current Selected Items ::");
for (String currentSelectedItem : currentSelectedItems) {
System.out.println(currentSelectedItem);
You can download the sample at
http://code.google.com/p/adfsampleapplications/source/browse/trunk/SelectOrderShuttleSample.zip
Thanks,
Navaneeth

Similar Messages

  • Need to check tls/ssl but getting stuck with "You must provide a value expression on the right-hand side of the '-' operator."

    I would like to disable ssl 3 but need to test what sites only support ssl 3. I keep getting stuck with an error that is over my head. I've tried manipulating the string a dozen different ways and keep getting the same error. I am not familiar with -notin
    or how to specify which part of the property its checking: thanks a ton
    http://blog.whatsupduck.net/2014/10/checking-ssl-and-tls-versions-with-powershell.html
    line with issues:
    $ProtocolNames = [System.Security.Authentication.SslProtocols] | gm -static -MemberType Property | where-object{$_.Name -notin @("Default","None") | %{$_.Name}
    You must provide a value expression on the right-hand side of the '-' operator.
    At S:\scripts\test23.ps1:50 char:126
    + $ProtocolNames = [System.Security.Authentication.SslProtocols] | gm -static -MemberType Property | where-object{$_.Name - <<<< noti
    n @("Default","None") | %{$_.Name}
    + CategoryInfo : ParserError: (:) [], ParseException
    + FullyQualifiedErrorId : ExpectedValueExpression
    <#
    .DESCRIPTION
    Outputs the SSL protocols that the client is able to successfully use to connect to a server.
    .NOTES
    Copyright 2014 Chris Duck
    http://blog.whatsupduck.net
    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at
    http://www.apache.org/licenses/LICENSE-2.0
    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
    .PARAMETER ComputerName
    The name of the remote computer to connect to.
    .PARAMETER Port
    The remote port to connect to. The default is 443.
    .EXAMPLE
    Test-SslProtocols -ComputerName "www.google.com"
    ComputerName : www.google.com
    Port : 443
    KeyLength : 2048
    SignatureAlgorithm : rsa-sha1
    Ssl2 : False
    Ssl3 : True
    Tls : True
    Tls11 : True
    Tls12 : True
    #>
    function Test-SslProtocols {
    param(
    [Parameter(Mandatory=$true,ValueFromPipelineByPropertyName=$true,ValueFromPipeline=$true)]
    $ComputerName,
    [Parameter(ValueFromPipelineByPropertyName=$true)]
    [int]$Port = 443
    begin {
    $ProtocolNames = [System.Security.Authentication.SslProtocols] | gm -static -MemberType Property | where-object{$_.Name -notin @("Default","None") | %{$_.Name}
    process {
    $ProtocolStatus = [Ordered]@{}
    $ProtocolStatus.Add("ComputerName", $ComputerName)
    $ProtocolStatus.Add("Port", $Port)
    $ProtocolStatus.Add("KeyLength", $null)
    $ProtocolStatus.Add("SignatureAlgorithm", $null)
    $ProtocolNames | %{
    $ProtocolName = $_
    $Socket = New-Object System.Net.Sockets.Socket([System.Net.Sockets.SocketType]::Stream, [System.Net.Sockets.ProtocolType]::Tcp)
    $Socket.Connect($ComputerName, $Port)
    try {
    $NetStream = New-Object System.Net.Sockets.NetworkStream($Socket, $true)
    $SslStream = New-Object System.Net.Security.SslStream($NetStream, $true)
    $SslStream.AuthenticateAsClient($ComputerName, $null, $ProtocolName, $false )
    $RemoteCertificate = [System.Security.Cryptography.X509Certificates.X509Certificate2]$SslStream.RemoteCertificate
    $ProtocolStatus["KeyLength"] = $RemoteCertificate.PublicKey.Key.KeySize
    $ProtocolStatus["SignatureAlgorithm"] = $RemoteCertificate.PublicKey.Key.SignatureAlgorithm.Split("#")[1]
    $ProtocolStatus.Add($ProtocolName, $true)
    } catch {
    $ProtocolStatus.Add($ProtocolName, $false)
    } finally {
    $SslStream.Close()
    [PSCustomObject]$ProtocolStatus
    Test-SslProtocols -ComputerName "www.google.com"

    V2 version:
    function Test-SslProtocols {
    param(
    [Parameter(
    Mandatory=$true,
    ValueFromPipelineByPropertyName=$true,
    ValueFromPipeline=$true
    )]$ComputerName,
    [Parameter(
    ValueFromPipelineByPropertyName=$true
    )][int]$Port = 443
    begin {
    $protocols=[enum]::GetNames([System.Security.Authentication.SslProtocols])|?{$_ -notmatch 'none|default'}
    process {
    foreach($protocol in $protocols){
    $ProtocolStatus = @{
    ComputerName=$ComputerName
    Port=$Port
    KeyLength=$null
    SignatureAlgorithm=$null
    Protocol=$protocol
    Active=$false
    $Socket = New-Object System.Net.Sockets.Socket('Internetwork','Stream', 'Tcp')
    $Socket.Connect($ComputerName, $Port)
    try {
    $NetStream = New-Object System.Net.Sockets.NetworkStream($Socket, $true)
    $SslStream = New-Object System.Net.Security.SslStream($NetStream, $true)
    $SslStream.AuthenticateAsClient($ComputerName, $null, $protocol, $false )
    $RemoteCertificate = [System.Security.Cryptography.X509Certificates.X509Certificate2]$SslStream.RemoteCertificate
    $protocolstatus.Active=$true
    $ProtocolStatus.KeyLength = $RemoteCertificate.PublicKey.Key.KeySize
    $ProtocolStatus.SignatureAlgorithm = $RemoteCertificate.PublicKey.Key.SignatureAlgorithm.Split("#")[1]
    catch {
    Write-Host 'Failed'
    finally {
    New-Object PsObject -Property $ProtocolStatus
    $SslStream.Close()
    Test-SslProtocols -ComputerName www.google.com
    ¯\_(ツ)_/¯

  • On PDF report I need Photo copy box on the right hand side

    When I generate Pdf report then on the right hand side I need the Photo copy box for attaching the photo.
    This is the my xsl file.
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:fo="http://www.w3.org/1999/XSL/Format"
    xmlns:fn="http://www.w3.org/2005/xpath-functions">
    <xsl:output method="xml" indent="yes" encoding="utf-8" omit-xml-declaration = "yes" />
    <xsl:template match="/">
    <fo:root>
    <fo:layout-master-set>
         <fo:simple-page-master master-name="my-page">
              <fo:region-body margin="1in"/>
              <fo:region-before extent="1in" background-color="silver" />
         </fo:simple-page-master>
    </fo:layout-master-set>
    <fo:page-sequence master-reference="my-page">
         <fo:static-content flow-name="xsl-region-before">
              <fo:block height="150px" width="1024px" background-color="#003366" >
              <fo:external-graphic width="340px" src="http://localhost:9000/web-determinations9000/images/logo.png"/>
              </fo:block>
         </fo:static-content>
         <fo:flow flow-name="xsl-region-body">
              <fo:block>
              <xsl:apply-templates mode="dump" select="/session/entity[@name='global']/instance[@label='global']"/>
              </fo:block>
         </fo:flow>
    </fo:page-sequence>
    </fo:root>
    </xsl:template>
    <xsl:template match="/session/entity[@name='global']/instance[@label='global']" mode="dump" priority="100">
         <fo:block margin-top=".5cm" margin-left=".1cm" border-start-style="">
              Student ID : <xsl:value-of select="attribute[@id='StudentId']/number-val"/>
         </fo:block>
         <fo:block margin-top=".5cm" margin-left=".1cm" border-start-style="">
              First Name : <xsl:value-of select="attribute[@id='StudentName']/text-val"/>
         </fo:block>
         <fo:block margin-top=".5cm" margin-left=".1cm" border-start-style="">
              Last Name : <xsl:value-of select="attribute[@id='p3@Properties_studentProps_xsrc']/text-val"/>
         </fo:block>
    </xsl:template>
    </xsl:stylesheet>
    Thanks.
    Edited by: 848231 on Apr 13, 2011 4:40 AM

    Unfortunately, there aren't any XSL-FO gurus tracking this forum. You might have better luck posting to a forum dedicated to that type of discussion.
    Kind regards,
    Davin.

  • If I do not select F11 ( full screen ) a big part of the screen "falls" of the right hand side of my monitor and is not readable, I am not able to find the neccesary adjustments.

    Question
    If I do not select F11 ( full screen ) a big part of the screen "falls" of the right hand side of my monitor and is not readable, I am not able to find the neccesary adjustments.
    Screen 2/3 blanco on the left side
    With F11 all OK.

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode
    *https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

  • VERTICAL SLIDING BAR ON RIGHT HAND SIDE OF THE SCREEN HAS DISAPPEARED - HOW DO I GET IT BACK PLEASE?

    VERTICAL SLIDING BAR ON RIGHT HAND SIDE OF THE SCREEN HAS DISAPPEARED - HOW DO I GET IT BACK PLEASE?

    This issue can be caused by the Babylon Toolbar extension
    *https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode

  • Why can't i see the Toolbox - the support documents talk about a toolbox but I don't have anything on the right hand side of my editor.

    I can't find the toolbox on the right hand side of the editor. ANy ideas why??

    I haven't seen this documented anywhere, and I can't replicate it for Administrator / Partner users of BC sites, but the toolbox does get closed (by default?) for some users in some circumstances.
    To get it back, you'll need to click the 'Add Modules' button, which is on the page editor between the "Page Content" heading, and the WYSWIG editor window.
    Pics:

  • How do I hide the right hand side menu thing in CS3?

    What's the deal with the annoying new menu in CS3 on the right hand side taking up unnecessary space on my screen?   how do I get rid of it?  All I want is my layer and history pallette.  All the rest I want to hide.  And if I want to remove the tool bar, how do I do this?  it doesn't have a close box anymore? Also every time I open a file now, it opens up with the black background as default.  How do I go back to the old way where it just opens a window? 

    What's the deal with the annoying new menu in CS3 on the right hand side taking up unnecessary space on my screen? 
    how do I get rid of it?  All I want is my layer and history pallette.  All the rest I want to hide.
    Click the very top part of each pallet and this minimizes everything in that pallet to the side. If you want to close the pallet altogether, be sure it is open and then click the "x" in the top right of that pallet.
    And if I want to remove the tool bar, how do I do this?  it doesn't have a close box anymore?
    Don't think that can be done anymore.
    Also every time I open a file now, it opens up with the black background as default.  How do I go back to the old way where it just opens a window?
    I'm guessing you need to hit the "F"key a few times (if this fixes it then it really isn't the "background" color that has changed). Otherwise you can change it here when opening a new file:

  • How do I force all Tabs to the right hand side, leaving space on the left?

    It feels more intuitive to have the first tab against the right hand side and it's easier to find because it always remains in the same position when, eg, closing other tabs. I use TabMixPlus, but can't find the required option. Many thanks.

    You can check out code in the userChrome.css file to see that it doesn't really work well (tabs move around when you hover or click).
    Add code to the <b>userChrome.css</b> file below the default @namespace line.
    *http://kb.mozillazine.org/userChrome.css
    <pre><nowiki>@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */
    #tabbrowser-tabs tab:first-child {-moz-box-ordinal-group:2}
    </nowiki></pre>
    The customization files userChrome.css (user interface) and userContent.css (websites) are located in the <b>chrome</b> folder in the Firefox profile folder.
    *http://kb.mozillazine.org/Editing_configuration
    You can use this button to go to the currently used Firefox profile folder:
    *Help > Troubleshooting Information > Profile Directory: Show Folder (Linux: Open Directory; Mac: Show in Finder)
    * Create the chrome folder (lowercase) in the <xxxxxxxx>.default profile folder if this folder doesn't exist
    * Use a plain text editor like Notepad to create a (new) userChrome.css file in this folder (the names are case sensitive)
    * Paste the code in the userChrome.css file in the editor window and make sure that the userChrome.css file starts with the default @namespace line
    * Make sure that you select "All files" and not "Text files" when you save the file via "Save file as" in the text editor as userChrome.css.<br>Otherwise Windows may add a hidden .txt file extension and you end up with a not working userChrome.css.txt file

  • I have lost scroll bar on right hand side of the playlist, how can I get it back?

    I have lost the scroll bar on the right hand side of my playlist. Does anyone know how to get it back?

    This issue can be caused by the Babylon Toolbar extension
    *https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode

  • In the previous version of Firefox you would open a new tab by clicking on the small "Open New Tab" button at the Right Hand Side of the Tabs. This button has now disappeared in my upgrade.

    I just installed Firefox 4. In the previous version you would open a new tab by clicking on the small "Open New Tab" button at the Right Hand Side of the Tabs. This button has now disappeared in my upgrade. Firefox help still says you can open a new Tab by using the "Open New Tab" Button so how do I get it back??

    I got it back by going to "customize toolbar" and hitting "restore default set"! Now there is a small tab next to my open tabs with a "+" on it.

  • Place my contacts list back to the right hand side of my e mail page

    My contacts list in my e mail ,are no longer on the right hand side and visual when reading my mail. How can I put them back to the old system? PV3-571G OS system Windows 7 home Premium 64 bit.

    Hi,
    Firefox and other browsers only temporarily displays the contents. The actual content, settings etc. are stored at the email site. So you may have to change the email settings to display the contacts list on the left. The email support/forum would be helpful. On the other hand, if there is a display problem/error, you can reset Firefox and start afresh.
    The Reset Firefox feature can fix many issues by restoring Firefox to its factory default state while saving your essential information.
    Note: ''This will cause you to lose any Extensions, Open websites, and some Preferences.''
    To Reset Firefox do the following:
    #Go to Firefox > Help > Troubleshooting Information.
    #Click the "Reset Firefox" button.
    #Firefox will close and reset. After Firefox is done, it will show a window with the information that is imported. Click Finish.
    #Firefox will open with all factory defaults applied.
    Further information can be found in the [[Reset Firefox – easily fix most problems]] article.
    Did this fix your problems? Please report back to us!
    If you would like to take a listing of the add-ons, changed preferences/settings etc. to quickly replicate the previous profile, please '''Copy all to clipboard''' (on the left of the reset button), and paste it into MS Office Excel, or OpenOffice/LibreOffice Calc, or notepad. However, it would be a good idea to check for the existence of the issue immediately after the reset.

  • Aperture 2.0 Inspector (move it to Right hand side?)

    I saw somewhere in this discussion group that the inspector can be moved to the right hand side from it's default on left. I cant find it anywhere in the manual. Can someone give me the keyboard short cut to make that move?

    view -> inspector -> swap position ...
    or shift-i ...

  • I have iMovie application open, but the iMovie application keeps disappearing off the right hand side of the screen and and I can not see it, even though the application is open..help, please!

    I have iMovie application open, but the iMovie application keeps disappearing off the right hand side of the screen and and I can not see it, even though the application is open..help, please!

    Thanks. I don't know why it wouldn't just go back there when I tried putting it back? I didn't change anything, so I assumed the new "default" was over on the left. Glad it was a simple solution after all.

  • Checkbox prompt coming at right hand side

    Hi,
    I had created a checkbox in my already existing custom page. I added a prompt to that checkbox, its prompt is coming at right hand side of checkbox.
    It is looking a bit awkward as all the other columns prompt are coming at the left hand side and only prompt for this checkbox is coming at right hand side.
    Please help me on this.
    Best regards
    Ragni Gupta

    Hi,
    This is the OAF default behaviour of check box, confirm with the user/ client whether they need the prompt in left hand side.
    A small workaround could be:
    Donot specify prompt to messagecheckbox
    create a row layout and in that create a static styled text or raw text and specify text as prompt of message check box and create a messagecheckbox (donot specify prompt for messagecheck box)
    Regards.
    Edited by: niranj.s on Apr 4, 2012 10:14 AM

  • Shifting Portlet tabs to Right hand Side

    The Question on building the portlets.
    Can any body suggest me how to shift the tab to the right hand
    side as i create new tabs in the Pages by default its going to
    left hand side.
    I just want look and feel of Oracle website page as tabs are on
    right side.
    Regards
    Suresh

    Hi Muhammad,
    Is {Notes.NOTE_details} and {ABC.old_ENTRY} or images ? Or is it a long text ? what is the data type of these fields ?
    Can you try to right click on the field and go in Format field-- Common--Horizontal Alignment : select Right from the drop down and see..
    -Sastry

Maybe you are looking for

  • Mac has stopped recognising canon mp600 printer

    After 2 months of working without a problem, my imac kept telling my printer canon mp 600 was offline.  Foolishly thought I should try to reinstall and deleted it. Now despite using original disc an downloading drivers still cannot get mac to install

  • Vendor Securtiy Block

    Dear Sir, We received from securtiy from vendor but at time  of payment security amount refund by mistak so I want to how the vendor security amount block for payment and how can remove block payment and if another solulation is there then also tell

  • Insert "head" should put content in the header -- but doesn't

    Insert Head Meta Provides a call up box to complete the description or other meta data. Since it is in the insert "head" area, one would assume that it would mean whatever you enter would go as a meta tag in the header. Low an behold it inserts it wh

  • Process and Form version question

    a few questions related to the versions of Forms and Processes: 1) in WorkSpace, launch a process, then put the form in "Draft". then modify its XDP, the form gets a new version in the repository. what's going to happen to my Draft? when I launch the

  • When i plug i pod to computer, the laptop says the iipod is corrupt and i tunes shuts down

    when i plug in ipod to computer a pop up saays the ipod  is corrupt, when its scanned by the computer is comes up as clean. if i open i tunes and then plug in the ipod the i tunes shuts down everytime. I have updated both itunes and ipod and brought