How to make a af:selectOneChoice without basedatasource

I am using jDeveloper 11.1.1.3.0 and i am a beginner on ADF.
My Problem : I have a simple readonly jsp in which there is no data insertion/updation, in this i want to have a <af:selectOneChoice> which will display the list of values comming from a sql query. But i dont need to have a base datasource in which the selected value will be populated. Rather i want the selected value to be stored in a variable, which will be used by other component of the same page.
I understand that basedatasource is needed in case if i want to save the value in some view object which will later be saved in the database.
Please help me with your expert knowledge on how can i achieve this.

Thank You very much Gabriel, I am now successfully able to populate the selectOneChoice now with the result of my sql query which is the list of salary dates. But the value that gets stored in my bean variable is eg. 0 or 1 (this seems like the counter of the iterator). When i checked the view source, the <option> tag values are like below
<option value="0">DECEMBER -2002</option>
<option value="1">NOVEMBER -2002</option> ......
So the values getting stored in my backing bean member is like 0 or 1...
What i want actually is ,that the value should be an another attribute of my sql result set, and the displayed value in the dropdown list should be a description attribute.
eg. the value stored in the bean member should be 12/31/2002 , but the displayed value in the dropdown list should be DECEMBER -2002
Also. how can i eliminate the blank value comming in the dropdownlist.
For the better understanding i am providing the code which i have written.
My sql query has 2 columns which are PYRL_MTH_YR | PAYMONTH . And the sample resultset of the query is below.
12/31/2002 | DECEMBER -2002
11/30/2002 | NOVEMBER -2002
My pageDef binding code is below.
<list ListOperMode="navigation" IterBinding="PaySlipMonthListVO1Iterator"
ListIter="PaySlipMonthListVO1Iterator" id="PaySlipMonthListVO1"
StaticList="false">
<AttrNames>
<Item Value="Paymonth"/>
</AttrNames>
<ListAttrNames>
<Item Value="PyrlMthYr"/>
</ListAttrNames>
<ListDisplayAttrNames>
<Item Value="Paymonth"/>
</ListDisplayAttrNames>
</list>
My selectOneChoice is below.
<af:selectOneChoice value="#{requestScope.backing_PersonalDashboard.selectedMonth}"
label="PayMonth"
id="paymon2" ?
<f:selectItems value="#{bindings.PaySlipMonthListVO1.items}" id="si2"/>
</af:selectOneChoice>
Please help me with your expert solution.

Similar Messages

  • How to make a multiple request without waiting for a response in java ?

    A more specific question:
    how to make a multiple HTTP request without waiting for a HTTP response in java (using httpURLConnection)?
    Thanks

    Thanks for responding.
    But i want to make further request to the same resource URL. I want to reuse the connection, don't want to create a new connection for each of individual request.
    How can i do that using HttpURLConnection ?
    Thanks.

  • HT5293 how to make our folder hidden, without writing in terminal console in apple mac book air OSX10.8.5

    Hey all users
    I am using this mac book air OSX10.8.5.
    i NEED TO ASK THAT HOW TO MAKE OUR FOLDER HIDDEN IN THIS , WITHOUTING PUTTING ANY COMMAND IN TERMINAL CONSOLE.
    PLS SUGGEST . WHAT IS THE PROCEDURE IF ANYBODY KNOW ABOUT THIS .

    First don't write in all caps, that's tantamount to shouting and hurts our eyes. You can't. Using the Terminal app is simple and detailed in https://discussions.apple.com/message/16507198#16507198

  • How to make movie in iDVD without themes.  iDVD app quitting during burning

    I am trying to make movie without themes and still having problems. I have tried using the map view in themes, dragging movie into the first box on left, looping it - but am seeing a yellow error sign in the theme box. Don't know why this is. Have tried to burn movie anyway but iDVD app quits halfway thru. Today I tried just simply going to iDVD >file>onestep DVD from movie>select movie and inserting disc. This seems to be the simple solution I have been looking for to burn a movie without themes but iDVD still quit on me halfway thru burning just now. Is this a space problem? Disc problem? help...

    OK F Shippey - Using this computer for anything other than email is pretty new to me. I have just recently began using imovie and idvd. I have burned one idvd and working on a second. While making the movie I was constantly having to delete old footage to make room for space. In other words I don't know much about space and usage. I know that in my new imovie project it says that i have 7.53 Gb available. I know i have a Lacie external with one DVD on it. So what do i need to know about space on a hard drive while using imovie? How do you monitor how much hard drive space you have while working on projects like this? Do I find this info in About This Mac? Sorry for so many dumb questions. Clearly I don't know what I am doing. Thanks for your reply.

  • How to make an alert view without buttons on iphone?

    Hi,
    I'm trying to create an alert view without buttons. On my iphone application I have to run a process, while the process is running I want to display an alert view with info about the process, and then when the process is done I want to dismiss that alert view.
    Any ideas about how to do this?
    Thx!

    this is what i use. I added in an ActivityIndicator just for looks
    UIActivityIndicatorView *loadingInd = [[UIActivityIndicatorView alloc] initWithFrame:CGRectMake(120.0, 90.0, 30.0, 30.0)];
    alertView = [[UIAlertView alloc] initWithTitle:@"Loading" message:@"Telling your Mom" delegate:self cancelButtonTitle:nil otherButtonTitles: nil];
    loadingInd.activityIndicatorViewStyle = UIActivityIndicatorViewStyleWhiteLarge;
    [loadingInd startAnimating];
    [alertView addSubview:loadingInd];
    [loadingInd release];
    [alertView show];
    [alertView release];

  • How to make changes through JAG without affecting manual changes in jspx?

    hi,
    In our Application , we are using JHeadStart for creating JSPX pages. We made manual changes to some component in Jspx page. Now I has to change TextBox Component to LOV (List Of values) Component. So I made changes in the ApplicationDefinition. xml file. Now If I run the ApplicationDefinition File, the Manual changes (adding setActionListener,creating ManagedBean, etc...) whatever I had made to the particular page is updated to its own default page based on ApplicationDefinition.xml.
    So , is there any possibility that manual changes made to jspx file should not be affected even if we make changes through ApplicationDefinition.xml file.
    Thanks,

    You should write your customizations in generator templates before you JAG. You can add your customizations to affect various components, beans, etc. You then configure these templates to be used by JAG. Once you do this you do not need to re-write your customized code. You will need to know the basics of VTL (velocity template language) as all the templates used by JAG are written in .vm files that use VTL.
    For a more detailed understanding of how using and implementing customized templates read Oracle JHeadstart 10g for ADF Developers Guide, chapter 4.7
    Regards,
    Amit

  • How to make Random questions work without closing and restarting?

    I have a quiz using random question slides and random pools.
    The random slides display random questions when I run the CP4 file, let it close then relaunch it. I'm using an LMS.
    I would like to be able to repeat the quiz again without closing and relaunching, but my method does not work.
    I tried using a button (retake) on the last slide to 'jump to' slide 1 when clicked. The quiz does repeat, but show the exact same questions.
    I thought there might be a variable that would reset the quiz, but could not find one.
    Does anyone have method to do this?
    Thanks,
    Dave

    I don't know of a way. My experience is the same as yours. The quiz questions are selected and shuffled when the lesson is launched. When 'retake' is clicked, the quiz repearts the same questions. The only way to get a new set of questions is to close and relaunch it.
    I suppose there's be some function to invoke or array to manipulate via AS, but I've no idea what that may be...
    So no help here, just backing what you're seeing.
    Erik

  • How to make a push transition without the obnoxious fade aspect

    I see that a view controller can do a push over transition where the new view pushes over the old view; the UIView animations have a push but their implementation adds an obnoxious fade aspect, how is the view controller doing theirs? Must be an undocumented transition code....

    Here's an example of the animation I described in my last post:
    - (void)pushViewFromRight:(UIViewController*)coming over:(UIViewController*)going {
    CGRect frameComing = coming.view.frame;
    CGRect frameGoing = going.view.frame;
    frameComing.origin.x = 320;
    coming.view.frame = frameComing;
    if ([coming.view superview] == nil)
    [self.view insertSubview:coming.view atIndex:0];
    [UIView beginAnimations:@"frame" context:nil];
    [UIView setAnimationDuration:0.5];
    [UIView setAnimationCurve:UIViewAnimationCurveEaseInOut];
    // [UIView setAnimationCurve:UIViewAnimationCurveLinear];
    [coming viewWillAppear:YES];
    [going viewWillAppear:YES];
    frameComing.origin.x = 0;
    coming.view.frame = frameComing;
    frameGoing.origin.x = -320;
    going.view.frame = frameGoing;
    [going viewDidDisappear:YES];
    [coming viewDidAppear:YES];
    [UIView commitAnimations];
    I hacked the above from the ViewSwitcher project in Chapter 6 of Mark & LaMarche, btw, in case it looks familiar. It uses insertSubview because there's a tool bar in the root view. I haven't tested when the superview isn't full-screen or in landscape, so don't know how much work is needed for those cases (obviously 320 shouldn't be hard coded).

  • How to make a Text/image without a white background?

    I have an image that I would like to eliminate the white background to use in Dreamweaver CS4 I also found a funky text I would like to use without a white background as well and turn the text into an image. ANy help greatly appreciated. I trie dnumerous ways in Photoshop but I think it can be done in Illustrator. Thanks

    noname,
    If you have a raster image with some white, you may remove it in Photoshop, or maybe in one of the latest versions of Illy.
    When you create vector artwork in Illy, there is no background, so just choose a raster format with transparency such as PNG or GIF. Remember to tick Transparency, choose a Matte colour, and to tick Anti-Aliasing in the Image Size window when you Save for Web (etc).

  • How to make a method sleep without affecting the responsiveness of the GUI

    Hi,
    I want to make a method sleep for a few second before executing the rest of its body. Apparently Thread.sleep(10000) doesn't do the job as it makes the GUI non-responsive.
    Any advice would be deeply appreciated.
    Thomas

    Here's an example:
    package tjacobs.ui.ex;
    import java.awt.Color;
    import javax.swing.Icon;
    import javax.swing.JLabel;
    import tjacobs.ui.util.WindowUtilities;
    * @author tjacobs
    public class Blink extends JLabel implements Runnable {
         public static final long DEFAULT_TIME_LENGTH = 1000;
         private long mTimeLength = DEFAULT_TIME_LENGTH;
         private String mLabel;
         private Icon mIcon;a
         public void run() {
              mLabel = getText();
              mIcon = getIcon();
              try {               
                   while (true) {
                        Thread.sleep(mTimeLength);
                        String current = getText();
                        if (current.equals(mLabel)) {
                             setText("");
                             setIcon(null);
                        else {
                             setText(mLabel);
                             setIcon(mIcon);
                        repaint();
              catch (InterruptedException ex) {
                   ex.printStackTrace();
              finally {
                   setText(mLabel);
                   setIcon(mIcon);
         public Blink() {
         public Blink(String arg0) {
              super(arg0);
         public Blink(Icon arg0) {
              super(arg0);
         public Blink(String arg0, int arg1) {
              super(arg0, arg1);
         public Blink(Icon arg0, int arg1) {
              super(arg0, arg1);
         public Blink(String arg0, Icon arg1, int arg2) {
              super(arg0, arg1, arg2);
         public void setBlinkTime(long time) {
              mTimeLength = time;
         public long getBlinkTime() {
              return mTimeLength;
         public static void main(String[] args) {
              // TODO Auto-generated method stub
              Blink b = new Blink("Hello World");
              b.setBackground(Color.RED);
              WindowUtilities.visualize(b);
              b.setFont(b.getFont().deriveFont(24.0f));
              b.run();
    }

  • How to Make A Video Call (without FaceTime) from iPhone 4?

    I would like to make a video call from my iPhone 4 just like the way all the 3G devices nowadays do (not using the FaceTime, Fring, Tango or Skype).
    I want to make video calls to other smartphones using the below facility provided by my telecom service provider :
    http://www.rcom.co.in/Rcom/personal/3G/HTML/VideoCalling.html
    The above feature charges a nominal amount for the video calls, and does not require any data to make the call, and they are also quite good in quality.
    Also, when my friend calls me using this feature from his Nokia C7, he gets the error "The mobile phone you are trying to make a video call to, does not support it"
    For the record, I'm using iOS 4.2.1.
    Any help would be greatly appreciated.

    After the skype 5 headache which many users are experiencing, I just found "" vtok "" in apples app store.
    It supports VIDEO and CALL over wifi AND 3G !!  It does work fantastic and is FREE.
    BUT you would have to set up a free "Google mail" address to get it to work.
    It's painless and is a great option.
    Amen

  • How to make a page break in numbers

    The only way I found to make a new page in Numbers was to make new rows down to where the page would break, but it's only letting me add a few new rows to the new page.  I'd like to know how to make a page break without just adding rows.

    Hi Yellowbox,
    Still I'm not convinced, it gives you indeed some advantages but this page break is a great fault.
    All the company is working on Apple, we try even to keep Microsoft away but what when you make a quote of several pages and have to make your lay out at the end, it is a pain in your xxx to make it well.
    We cannot make different tables for each page nor I want to make it in Pages with a Numbers table.
    Secondly, what do you do when you get a Excell offer that you want to bring to Numbers.
    It opens well but again, you need to make all the page lay out afterwards!
    Thanks for yoru reply.
    It won't change my mind about Apple and Microsoft but for timing earning I won't changes all Excel offers to Numbers anymore. Even if I do not want, it would take me less time to work it out in Excel.
    Our own offers will remain in Numbers ...
    It is a pity but time is so important nowadays!
    Nice week-end.

  • I've been trying to make an account with iTunes n everytime I get to the part of the credit card that's as far as I get because I dnt have one, how can I make an iTunes account without a credit card??

    I've been trying to make an account with iTunes n everytime I get to the part of the credit card that's as far as I get because I dnt have one, how can I make an iTunes account without a credit card??

    Where are you located?
    Just go and buy an iTunes gift card at any store in your country.
    Then follow all the steps you did, but when it asks you for the credit card number, there shoujld be a GIFT CARD option which will let you load your account witht eh funds form the gift card without providing a credit/debit card #.

  • HT201363 How can I make an Apple ID without credit card if the "none" tab is not visible to me?

    How can I make an Apple ID without credit card if the "none" tab is not visible to me?
    Help me out please

    Hello, aligt9p. 
    Thank you for visiting Apple Support Communities. 
    To create an Apple ID without a credit card, there is a specific series of steps that have to be processed in order to allow the payment to be set as none on creation of the account.
    Creating an iTunes Store, App Store, iBooks Store, and Mac App Store account without a credit card
    http://support.apple.com/kb/HT2534
    Why can’t I select None when I edit my payment information?
    http://support.apple.com/kb/TS5366
    If the specific steps have not been processed, a credit or debit card will be required to complete the setup the account.
    However, it can be removed and payment method changed to none as long as there is not an outstanding balance.
    iTunes Store: Changing account information
    http://support.apple.com/kb/ht1918
    Cheers,
    Jason H. 

  • How can i make an apple ID without any visa card?

    How can i make an apple ID without any visa card?
    I don't wanna add my visa online.
    i just want to make a fast APPLE ID because me and a friend are using same Apple ID, and i wanna make a new one so...
    how?

    Look to the right on this page under 'More like this'.

Maybe you are looking for

  • Can't import single images or folders from iPhoto 6.0.2 into Aperture 1.1

    Hi everbody: After the Aperture 1.1 update, I can no longer import folders or single images from my iPhoto 6.0.2 library into Aperture. When I click "File" - "Import" - "Files and folders", I can browse through the iPhoto library and see all my film

  • Issue with bluetooth conection

    Hi, I've been having problems with the conection of bluetooth in my car stereo. it pairs normally but after some time connected it suddenly disconnects (whenever I receive a phone call mostly) I never had this problem with kitkat. What can I do?

  • Issues with LiveCycle ES4 - "Distribute Form" greyed out and "email button" not functioning

    Bought this software on 8/1/13. Designed my first form, "saved to repository" and proceeded to test. The email function for whatever reason does not work. Went back and examined the properties to the button, I have it set up correctly. In fact the XM

  • Cannot open any Internet Explorer  files

    Here's the other question. ( I have Tiger. I still have OS 9 with Classic. ) 2) when I click on a file in Mac Intosh HD that was created under OS 9, with Internet Explorer 5.1.6, a file with the IE logo (the letter e + a globe), I see now a message s

  • Flash 6 to 8 problems

    Howdy. For school, we've been set the task of making a folio website made entirely in flash. I recently just added an mp3 player to it, after finding an obscure example somewhere. Using Flash 8, I ended up converting the Flash 6 file to Flash 8, and