Unable to dispaly selected item in option button

I am having problem with jsp code given below:
1. When user first time render this page , he is able to view all the options which is already stored in vector except "Selezionare provincia"
2. Now if user selects say "provincia2" ,the value selected for "Selezionare provincia" is also get stored in session
3. There are also some more items on the page to select but i am showing you the specific one
4. So suppose if user forget to fill up other data , the exception is thrown on same page,and for that event the value stored in session for "Selezionare provincia" (in our case its "provincia2") is not get displayed as selected value for that list.
5. which means that , when that list is get populated for second time form vector , the stored value should be dispalyed as selected value.
6. i was trying to put my logic by using some flag variable but its not working
7. The value stored in vector are provincia1,provincia2,provincia3
<select size="1" id="SelProvincia" name="SelProvincia"  class="w170" tabindex="<%=index++ %>">
<option value="" "<%=select%>">Selezionare provincia</option>
<%
Vector<Provincia> proList=new Vector<Provincia>();
Provincia provencia;
proList=GestoreSessioneIdentificazioneCittadino.getElencoProvincia(request);
for (Enumeration e = proList.elements(); e.hasMoreElements();)
provencia=(Provincia)e.nextElement();
if(flag==0)
select="";
if(provencia.getNome().equals("provincia2"))
select="selected";
flag=0;
break;
%>
<option value="<%=provencia.getNome()%>" "<%=select%>"><%=provencia.getNome()%></option>
<%
%> 
</select>

I'm having the exact same problem! I've never had this problem before. Does anyone have a solution??

Similar Messages

  • ADF - HELP -  Hash Map Select Items more Action Button

    Hi, I have that development a feature like with this.
    The screen it will have the searches filters and a grid with your results, each item will have a column with 2 radio buttons.
    On this screen the results are a list of suppliers with (ID SUPP, NAME, SUPP, STATUS SUPP) then will have to have more one column with 1 radio button for Free Register and other radio button for Block Register.
    And a Button that will be the action of to set the list of values on its respective field on database, certainly this action of button will be done after the user obtain results of the grid. That action on screen when user performing a search will be returned the datas (I already have it developed).
    The big question is ---> After the user do a search and to return more that one item, he will go select the list of suppliers some will have Free Register other Block Register after this action, the user will click on the button that will make to set a flag on field of database with a value defined.
    Anyboy have some idea how may to develop this??
    Studio Edition Version 11.1.1.2.0

    Free Register - > Have that to set a value like 0 on a field (FL_UPDATE) of my database
    Block Register -> Have that to set a value like 1 on a field (FL_UPDATE) of my database
    This items (Free Register and Block Register through radio button, with the property valueChangeListener I believe for to get the values them)
    And inside this method of valueChangeListener I have that define what are the values selects like Free register (0) and Block Register (1).
    After this, have that to define the action of button who be will to send this values for my database in its respectives fields, in others words I have who to make a UPDATE in this fields in accordance with what has been select in the radio buttons
    I would like to know how will to process in the ADF, thought of HashMap, any idea or example the how do I will make this process???

  • Have you chosen only one option button at a time

    Hi...
        I have got a problem while working with the option button in screen painter.I have three option buttons. In Run time, I want to select only one option button, mean while the other two option buttons should not be selected.
    ~
    Thank You in Advance
    Roseline Christina. B

    Hi,
    Please check the following
    To select an OptionBtn item, the item must be bound to a data source (UserDataSource or DBDataSource) using OptionBtn.DataBind
    The following is the sample to add 2 option buttons and group them.
    Dim optBtn As SAPbouiCOM.OptionBtn
        Dim oFrm As SAPbouiCOM.Form
        Dim oItem As SAPbouiCOM.Item
        Dim oUserdatasource As SAPbouiCOM.UserDataSource
        ' set oFrm = ..
        'Option 1
        Set oItem = oFrm.Items.Add("BD_rbRes", it_OPTION_BUTTON)
        oItem.Left = 240
        oItem.Top = 10
        oItem.Height = 16
        oItem.Width = 220
        Set optBtn = oItem.Specific
        optBtn.Caption = "Button One"
        Set oUserDataSource = oFrm.DataSources.UserDataSources.Add("BD_resDS", dt_SHORT_TEXT,1)
        optBtn.DataBind.SetBound True, , "BD_resDS"
        'Option 2
         Set oItem = oFrm.Items.Add("BD_rbPost", it_OPTION_BUTTON)
         oItem.Left = 240
         oItem.Top = 30
         oItem.Height = 16
         oItem.Width = 220
         Set optBtn = oItem.Specific
         optBtn.Caption = "Button Two"
         oItem.Visible = False
         Set optBtn = oItem.Specific
         optBtn.GroupWith ("BD_rbRes")
    Hope this helps,
    Vasu Natari.

  • How to disable a lead selected item in a radio button group ?

    Hi,
    I have a radio button group and there are entries to create radio buttons dynamically. means there is only one radio button group in the UI design and in runtime I will be having two radio buttons (For ex: Yes and No ) . Now If I want to disable either Yes or No radio button, I am unable to do so. because If I disable the radio button group it disables both.  So, I can have lead selected item for ex: Yes which I want to disable. I want to know specifically how this Yes button to be disabled by taking lead selected index item.
    Please help.
    Thanks
    Praveen

    Try setting the radio button value of the lead selected button to abap_false/space.

  • How to get the current selected value of a combo box or a option button?

    Hello All,
    I want to catch the current selected value of a combo box and also of a option button and want save it into different variables in my code. These option button and combo box are in a SAP business one form which I have created through VB dot.net coding.
    But I don't know how to do that, can any one send any example code for this.
    Regards,
    Sudeshna.

    Hi Sudesha,
    If you want to get the selected values you can do it as follows: The Combo Box value you can get from the combo box. If you want to get it on the change event, you must make sure that you check when BeforeAction = False. If you want to get an Option Button value you should check the value in the data source attached to the option button.
            Dim oForm As SAPbouiCOM.Form
            Dim oCombo As SAPbouiCOM.ComboBox
            Dim oData As SAPbouiCOM.UserDataSource
            oForm = oApplication.Forms.Item("MyForm")
            oCombo = oForm.Items.Item("myComboUID")
            oApplication.MessageBox(oCombo.Selected.Value)
            oData = oForm.DataSources.UserDataSources.Item("MyDataSourceName")
            oApplication.MessageBox(oData.ValueEx)
    Hope it helps,
    Adele

  • In iPhoto '11 I cannot change the book settings. For example, adding page numbers. There is no "option" button as is suggested by the help item.

    In iPhoto '11 I cannot change the book settings. For example, adding page numbers. There is no "option" button as is suggested by the help item. How can I change to book settings?

    The "options" button should appear at the bottom of the iPhoto window, when you view your book, then the Book Settings Button should be available and you can activate page numbers.
    But remember, that the settings available will depend on the Book Theme you selected. The above shows the settings for one of the "Travel" themes. In a Picture Book Theme, e.g. you cannot add page numbers.
    What theme and book size are you using?
    Regards
    Léonie

  • Unable to sync new iPhone 4s. I have iTunes version 10.6.1. Using Windows 7. My device appears on iTunes but I am not able to select the sync option and it does not automatically start the sync option when plugged in. Ive tried reseting the device.

    I am unable to sync my new iPhone 4s OR my iPod Touch 4 to iTunes.(this is the first time I am plugging them into iTunes) I have version 10.6.1. Both devices are up to date with the latest software version. Once I plug the device in, it is recognized on iTunes.The synce process does not start automatically. I am unable to select the sync option. I've tried reseting the device and restarting iTunes and the same problem happens. I have plugged in my husbands iPhone 3gs and the sync process starts automatically. I have also added my computer as an authorized computer for the new devices. What now?

    Many thanks.
    With those symptoms, I'd try the following document:
    Apple software on Windows: May see performance issues and blank iTunes Store
    (If there's a SpeedBit LSP showing up in Autoruns, it's usually best to just uninstall your SpeedBit Video Accelerator.)

  • TS4009 I have followed the steps above but when I get to the screen to select a downgraded option, the  Done button is grayed out and won't let me select a new option. I see a lock up in top right-hand corner, but not sure how to unlock it.

    I have followed the steps above for downgrading iCloud storage options, but when I get to the screen to select a downgraded option, the  Done button is grayed out and won't let me select a new option. I see a lock in top right-hand corner, but not sure where to go to unlock it.

    Choose Apple () menu > System Preferences, then click the iCloud icon.
    Click the Manage button.
    Click Change Storage Plan.
    Click Downgrade Options.
    Enter your Apple ID password, then click Manage.
    Choose your current plan, then click Done.
    (from http://support.apple.com/kb/HT5527 )

  • SHOW ALL / HIDE ALL BUTTONS produce error in chm but not in "View Selected Item"

    My SHOW ALL and HIDE ALL buttons work in the View Selected
    Item mode. However, the compiled version generates an error tag:
    Line: 72
    Char: 1
    Error: Object expected
    Code: 0
    URL:
    mk:@MSITSTORE:C\Documents%20and%20Settings\glenn_michaels\RoboHelp%206.0\TCA\!SSL!
    In short, the the compiled chm is located in the SSL. I tried
    adding showhide.js and ehlpDhtm.js to the SSL folder, but that
    didn't make a difference. What is missing? How do I fix this?
    Many thanks in advance...
    glennito

    Mr. Grainge,
    I've tried to follow your instructions to the letter, but I'm
    not having any luck.
    1) I copied the showhide.js to
    a) RoboHelp 6.0 > Project Folder
    b) RoboHelp 6.0 > Project Folder > SSL
    c) RoboHelp 6.0 > Project Folder > SSL >
    MicroSoft_HTML_Help
    2) I pasted btnhideall.gif, btnshowall.gif, printerblue.gif
    into
    a) RoboHelp 6.0 > Project Folder > SSL
    b) they are also listed in RoboHelp 6.0 > Project Folder
    3)The Project Manager > Baggage File originally displayed
    a
    a) Project (Name) folder
    b) ehelp.xml
    c) RoboHHre.Ing
    I opened the Baggage File > Project (Name) folder,
    selected New Baggage File, and added, respectively:
    i. btnhideall.gif
    ii. btnshowall.gif
    iii. ehlpDhtm.js
    iv. printerblue.gif
    v. printerred.gif
    vi. showhide.js
    vii. TCA.fpj
    vii. root.fpj
    4) I also opened rhbag.apj in Notepad. It shows
    a) ehelp.xml and RoboHHRE.Ing accompanied by
    <usercreated>false</usercreated> tags
    b) the remaining baggage files are accomanied by
    <usercreated>true</usercreated> tags
    5) Finally, I used Notepad to display two topic files in
    which the error message identified a Line: XX. In one case the line
    # is 42, in another, 19. In both cases, when I counted lines,
    starting with <body>, I ended up on:
    onClick="JavaScript:hideEm()"
    However, I am none the wiser for my effort and don't know
    what (5) might be telling me.
    6) The only thing I can think of is that the compiled chm
    file is two levels away from the Project Name directory that holds
    all the files. The files live in Robohelp 6.0 > Project Name
    while the compiled help is found in Robohelp 6.0 > Project Name
    > SSL! > MicroSoft_HTML_Help > Project Name.chm.
    Should I be adjusting the Relative Path within the topics?
    Many thanks for your attention and assistance.
    glenn

  • How to disable the select options button, while audio is playing in the question template in captivate 8?

    How to disable the select options button, while audio is playing in the question template in captivate 8?

    Apologies for late reply.
    I mean "On Question screens audio keeps on playing even after we have selected an option or options depending on the question type and clicked Submit. How do we stop the audio on selecting an option?"

  • TS4009 How do you downgrade to the free option or get refund? After selecting free the done button can not be pressed.

    How do you downgrade to the free option or get refund? After selecting free the done button can not be pressed.

    Refund:
    If in the US, follow the link below (you must request a refund within 15 days) -
    https://discussions.apple.com/message/16968425#16968425
    it gives the USA phone number - if you don't live there you will have to find an equivalent number from the 'Contact Us' link at bottom right of this page.
    Keeping current plan, but downgrading when it ends:
    Settings>icloud>Storage & Backup>Change Storage Plan.  Look at downgrade options.  There you can choose the plan you want when the current one ends.

  • My iPhone 4s calendar doesn't have an add " " button so I'm unable to create calendar items- Any idea how to fix this?

    My iPhone 4s calendar doesn’t have an add “+” button so I’m unable to create calendar items… Any idea how to fix this?

    Sounds like a hardwware problem.
    Make an appointment at an Apple Store if there is one nearby to confirm.

  • I am unable to select any 3D options in PhotoShop cc. Can anyone tell me why?

    I am unable to select any 3D options in PhotoShop CC. Can anyone tell me why?

    If on a Mac, It's in Preferences > Performance, if using Windows, Edit > Preferences > Performance
    This should be checked on.
    This should be at least 512 MB

  • Unable to move some items to Buckets by using option 'Move to' in Item dash

    Hi All,
    i am unable to move some items from one bucket to another bucket by using option "MOVE TO"  in Item dashboard in screen.
    and also some items(100 out of 95) are moving ine.
    Can anybody help me
    Thanks&Regards,
    Dhananjaya
    Edited by: cvdreddy on Oct 4, 2011 3:45 PM

    Hi Amit,
    I am not getting any error.when i am trying to move item from one bucket to another bucket, its not moving.
    Regards,
    Dhannajaya

  • Pages:  I am trying to put an image to the background of text.  When the image is selected I am unable to click on the Background option.  Help.

    Pages:  I am trying to put an image to the background of text.  When the image is selected I am unable to click on the Background option.  Help.

    Thanks for responding!!!  Please help.  In last years pages version it worked great!!!
    Pages: 5.1
    OSX: 10.9.1
    Template:  Just a Blank.  I am working on a document that I created last year.  Now just making edits.
    Ben

Maybe you are looking for